@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.js CHANGED
@@ -1285,7 +1285,7 @@ function buildUserAgent(sdkVersion, appInfo) {
1285
1285
  }
1286
1286
 
1287
1287
  // src/version.ts
1288
- var SDK_VERSION = "0.3.0";
1288
+ var SDK_VERSION = "0.3.3";
1289
1289
  var DEFAULT_API_VERSION = "2026-02-25";
1290
1290
 
1291
1291
  // src/base-client.ts
@@ -1625,6 +1625,15 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
1625
1625
  ...options.headers
1626
1626
  }
1627
1627
  });
1628
+ var postCatalogProductVariants = (options) => (options.client ?? client).post({
1629
+ security: [{ scheme: "bearer", type: "http" }],
1630
+ url: "/catalog/product-variants",
1631
+ ...options,
1632
+ headers: {
1633
+ "Content-Type": "application/vnd.api+json",
1634
+ ...options.headers
1635
+ }
1636
+ });
1628
1637
  var postCrmRelationships = (options) => (options.client ?? client).post({
1629
1638
  security: [{ scheme: "bearer", type: "http" }],
1630
1639
  url: "/crm/relationships",
@@ -1644,6 +1653,20 @@ var getAgentVersionsById = (options) => (options.client ?? client).get({
1644
1653
  url: "/agent-versions/{id}",
1645
1654
  ...options
1646
1655
  });
1656
+ var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
1657
+ security: [{ scheme: "bearer", type: "http" }],
1658
+ url: "/llm_analytics/costs",
1659
+ ...options
1660
+ });
1661
+ var postCatalogTaxonomyNodes = (options) => (options.client ?? client).post({
1662
+ security: [{ scheme: "bearer", type: "http" }],
1663
+ url: "/catalog/taxonomy-nodes",
1664
+ ...options,
1665
+ headers: {
1666
+ "Content-Type": "application/vnd.api+json",
1667
+ ...options.headers
1668
+ }
1669
+ });
1647
1670
  var deleteCrmRelationshipsById = (options) => (options.client ?? client).delete({
1648
1671
  security: [{ scheme: "bearer", type: "http" }],
1649
1672
  url: "/crm/relationships/{id}",
@@ -1673,11 +1696,35 @@ var getCrmCustomEntitiesWorkspaceByWorkspaceId = (options) => (options.client ??
1673
1696
  url: "/crm/custom-entities/workspace/{workspace_id}",
1674
1697
  ...options
1675
1698
  });
1699
+ var getBreachIncidentsById = (options) => (options.client ?? client).get({
1700
+ security: [{ scheme: "bearer", type: "http" }],
1701
+ url: "/breach-incidents/{id}",
1702
+ ...options
1703
+ });
1676
1704
  var getEmailMarketingSequencesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1677
1705
  security: [{ scheme: "bearer", type: "http" }],
1678
1706
  url: "/email-marketing/sequences/workspace/{workspace_id}",
1679
1707
  ...options
1680
1708
  });
1709
+ var getCatalogTaxonomyNodesTaxonomyByTaxonomyId = (options) => (options.client ?? client).get({
1710
+ security: [{ scheme: "bearer", type: "http" }],
1711
+ url: "/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}",
1712
+ ...options
1713
+ });
1714
+ var getBreachIncidents = (options) => (options.client ?? client).get({
1715
+ security: [{ scheme: "bearer", type: "http" }],
1716
+ url: "/breach-incidents",
1717
+ ...options
1718
+ });
1719
+ var postBreachIncidents = (options) => (options.client ?? client).post({
1720
+ security: [{ scheme: "bearer", type: "http" }],
1721
+ url: "/breach-incidents",
1722
+ ...options,
1723
+ headers: {
1724
+ "Content-Type": "application/vnd.api+json",
1725
+ ...options.headers
1726
+ }
1727
+ });
1681
1728
  var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
1682
1729
  security: [{ scheme: "bearer", type: "http" }],
1683
1730
  url: "/api-keys/{id}/rotate",
@@ -1753,6 +1800,11 @@ var getCrmExportsById = (options) => (options.client ?? client).get({
1753
1800
  url: "/crm/exports/{id}",
1754
1801
  ...options
1755
1802
  });
1803
+ var getLlmAnalyticsWorkspace = (options) => (options.client ?? client).get({
1804
+ security: [{ scheme: "bearer", type: "http" }],
1805
+ url: "/llm_analytics/workspace",
1806
+ ...options
1807
+ });
1756
1808
  var deleteCrmDealsById = (options) => (options.client ?? client).delete({
1757
1809
  security: [{ scheme: "bearer", type: "http" }],
1758
1810
  url: "/crm/deals/{id}",
@@ -1781,6 +1833,11 @@ var postUsersAuthResetPasswordRequest = (options) => (options.client ?? client).
1781
1833
  ...options.headers
1782
1834
  }
1783
1835
  });
1836
+ var getSupportTagsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1837
+ security: [{ scheme: "bearer", type: "http" }],
1838
+ url: "/support/tags/workspace/{workspace_id}",
1839
+ ...options
1840
+ });
1784
1841
  var getSearchIndexes = (options) => (options.client ?? client).get({
1785
1842
  security: [{ scheme: "bearer", type: "http" }],
1786
1843
  url: "/search/indexes",
@@ -1884,6 +1941,49 @@ var postConnectorsFullscriptSessionGrant = (options) => (options.client ?? clien
1884
1941
  ...options.headers
1885
1942
  }
1886
1943
  });
1944
+ var deleteCatalogTaxonomyNodesById = (options) => (options.client ?? client).delete({
1945
+ security: [{ scheme: "bearer", type: "http" }],
1946
+ url: "/catalog/taxonomy-nodes/{id}",
1947
+ ...options
1948
+ });
1949
+ var getCatalogTaxonomyNodesById = (options) => (options.client ?? client).get({
1950
+ security: [{ scheme: "bearer", type: "http" }],
1951
+ url: "/catalog/taxonomy-nodes/{id}",
1952
+ ...options
1953
+ });
1954
+ var patchCatalogTaxonomyNodesById = (options) => (options.client ?? client).patch({
1955
+ security: [{ scheme: "bearer", type: "http" }],
1956
+ url: "/catalog/taxonomy-nodes/{id}",
1957
+ ...options,
1958
+ headers: {
1959
+ "Content-Type": "application/vnd.api+json",
1960
+ ...options.headers
1961
+ }
1962
+ });
1963
+ var deleteRetentionPoliciesById = (options) => (options.client ?? client).delete({
1964
+ security: [{ scheme: "bearer", type: "http" }],
1965
+ url: "/retention-policies/{id}",
1966
+ ...options
1967
+ });
1968
+ var getRetentionPoliciesById = (options) => (options.client ?? client).get({
1969
+ security: [{ scheme: "bearer", type: "http" }],
1970
+ url: "/retention-policies/{id}",
1971
+ ...options
1972
+ });
1973
+ var patchRetentionPoliciesById = (options) => (options.client ?? client).patch({
1974
+ security: [{ scheme: "bearer", type: "http" }],
1975
+ url: "/retention-policies/{id}",
1976
+ ...options,
1977
+ headers: {
1978
+ "Content-Type": "application/vnd.api+json",
1979
+ ...options.headers
1980
+ }
1981
+ });
1982
+ var getCatalogTaxonomiesApplicationByApplicationId = (options) => (options.client ?? client).get({
1983
+ security: [{ scheme: "bearer", type: "http" }],
1984
+ url: "/catalog/taxonomies/application/{application_id}",
1985
+ ...options
1986
+ });
1887
1987
  var postEmailMarketingCampaignsByIdSend = (options) => (options.client ?? client).post({
1888
1988
  security: [{ scheme: "bearer", type: "http" }],
1889
1989
  url: "/email-marketing/campaigns/{id}/send",
@@ -1966,6 +2066,20 @@ var postEmailMarketingCampaigns = (options) => (options.client ?? client).post({
1966
2066
  ...options.headers
1967
2067
  }
1968
2068
  });
2069
+ var getConfigs = (options) => (options.client ?? client).get({
2070
+ security: [{ scheme: "bearer", type: "http" }],
2071
+ url: "/configs",
2072
+ ...options
2073
+ });
2074
+ var postConfigs = (options) => (options.client ?? client).post({
2075
+ security: [{ scheme: "bearer", type: "http" }],
2076
+ url: "/configs",
2077
+ ...options,
2078
+ headers: {
2079
+ "Content-Type": "application/vnd.api+json",
2080
+ ...options.headers
2081
+ }
2082
+ });
1969
2083
  var deleteCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
1970
2084
  security: [{ scheme: "bearer", type: "http" }],
1971
2085
  url: "/crm/custom-entities/{id}",
@@ -2035,6 +2149,15 @@ var postCrmCompanies = (options) => (options.client ?? client).post({
2035
2149
  ...options.headers
2036
2150
  }
2037
2151
  });
2152
+ var patchLegalDocumentsByIdUnpublish = (options) => (options.client ?? client).patch({
2153
+ security: [{ scheme: "bearer", type: "http" }],
2154
+ url: "/legal-documents/{id}/unpublish",
2155
+ ...options,
2156
+ headers: {
2157
+ "Content-Type": "application/vnd.api+json",
2158
+ ...options.headers
2159
+ }
2160
+ });
2038
2161
  var getVoiceSessionsMine = (options) => (options.client ?? client).get({
2039
2162
  security: [{ scheme: "bearer", type: "http" }],
2040
2163
  url: "/voice/sessions/mine",
@@ -2228,6 +2351,35 @@ var getSearchSuggest = (options) => (options.client ?? client).get({
2228
2351
  url: "/search/suggest",
2229
2352
  ...options
2230
2353
  });
2354
+ var getAuditChainEntries = (options) => (options.client ?? client).get({
2355
+ security: [{ scheme: "bearer", type: "http" }],
2356
+ url: "/audit-chain-entries",
2357
+ ...options
2358
+ });
2359
+ var deleteCatalogTaxonomiesById = (options) => (options.client ?? client).delete({
2360
+ security: [{ scheme: "bearer", type: "http" }],
2361
+ url: "/catalog/taxonomies/{id}",
2362
+ ...options
2363
+ });
2364
+ var getCatalogTaxonomiesById = (options) => (options.client ?? client).get({
2365
+ security: [{ scheme: "bearer", type: "http" }],
2366
+ url: "/catalog/taxonomies/{id}",
2367
+ ...options
2368
+ });
2369
+ var patchCatalogTaxonomiesById = (options) => (options.client ?? client).patch({
2370
+ security: [{ scheme: "bearer", type: "http" }],
2371
+ url: "/catalog/taxonomies/{id}",
2372
+ ...options,
2373
+ headers: {
2374
+ "Content-Type": "application/vnd.api+json",
2375
+ ...options.headers
2376
+ }
2377
+ });
2378
+ var getLegalAcceptancesById = (options) => (options.client ?? client).get({
2379
+ security: [{ scheme: "bearer", type: "http" }],
2380
+ url: "/legal-acceptances/{id}",
2381
+ ...options
2382
+ });
2231
2383
  var deleteCrmRelationshipTypesById = (options) => (options.client ?? client).delete({
2232
2384
  security: [{ scheme: "bearer", type: "http" }],
2233
2385
  url: "/crm/relationship-types/{id}",
@@ -2307,6 +2459,15 @@ var patchEmailMarketingGeneratedEmailsByIdApprove = (options) => (options.client
2307
2459
  ...options.headers
2308
2460
  }
2309
2461
  });
2462
+ var postSupportTickets = (options) => (options.client ?? client).post({
2463
+ security: [{ scheme: "bearer", type: "http" }],
2464
+ url: "/support/tickets",
2465
+ ...options,
2466
+ headers: {
2467
+ "Content-Type": "application/vnd.api+json",
2468
+ ...options.headers
2469
+ }
2470
+ });
2310
2471
  var getCreditPackagesById = (options) => (options.client ?? client).get({
2311
2472
  security: [{ scheme: "bearer", type: "http" }],
2312
2473
  url: "/credit-packages/{id}",
@@ -2420,6 +2581,15 @@ var postTenantsByIdCredit = (options) => (options.client ?? client).post({
2420
2581
  ...options.headers
2421
2582
  }
2422
2583
  });
2584
+ var postCatalogProducts = (options) => (options.client ?? client).post({
2585
+ security: [{ scheme: "bearer", type: "http" }],
2586
+ url: "/catalog/products",
2587
+ ...options,
2588
+ headers: {
2589
+ "Content-Type": "application/vnd.api+json",
2590
+ ...options.headers
2591
+ }
2592
+ });
2423
2593
  var patchSchedulingBookingsSchedulingBookingsByIdCancel = (options) => (options.client ?? client).patch({
2424
2594
  security: [{ scheme: "bearer", type: "http" }],
2425
2595
  url: "/scheduling/bookings/scheduling/bookings/{id}/cancel",
@@ -2467,6 +2637,11 @@ var patchVoiceSessionsByIdStop = (options) => (options.client ?? client).patch({
2467
2637
  ...options.headers
2468
2638
  }
2469
2639
  });
2640
+ var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
2641
+ security: [{ scheme: "bearer", type: "http" }],
2642
+ url: "/llm_analytics/summary",
2643
+ ...options
2644
+ });
2470
2645
  var getSchedulingParticipants = (options) => (options.client ?? client).get({
2471
2646
  security: [{ scheme: "bearer", type: "http" }],
2472
2647
  url: "/scheduling/participants",
@@ -2495,6 +2670,11 @@ var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? c
2495
2670
  ...options.headers
2496
2671
  }
2497
2672
  });
2673
+ var getSupportTicketMessagesTicketByTicketId = (options) => (options.client ?? client).get({
2674
+ security: [{ scheme: "bearer", type: "http" }],
2675
+ url: "/support/ticket-messages/ticket/{ticket_id}",
2676
+ ...options
2677
+ });
2498
2678
  var deleteCrawlerJobsById = (options) => (options.client ?? client).delete({
2499
2679
  security: [{ scheme: "bearer", type: "http" }],
2500
2680
  url: "/crawler/jobs/{id}",
@@ -2505,6 +2685,11 @@ var getCrawlerJobsById = (options) => (options.client ?? client).get({
2505
2685
  url: "/crawler/jobs/{id}",
2506
2686
  ...options
2507
2687
  });
2688
+ var getConsentRecordsById = (options) => (options.client ?? client).get({
2689
+ security: [{ scheme: "bearer", type: "http" }],
2690
+ url: "/consent-records/{id}",
2691
+ ...options
2692
+ });
2508
2693
  var getCrmExportsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2509
2694
  security: [{ scheme: "bearer", type: "http" }],
2510
2695
  url: "/crm/exports/workspace/{workspace_id}",
@@ -2515,11 +2700,30 @@ var getTrainingSessionsAgentsByAgentIdSessions = (options) => (options.client ??
2515
2700
  url: "/training-sessions/agents/{agent_id}/sessions",
2516
2701
  ...options
2517
2702
  });
2703
+ var patchLegalDocumentsByIdPublish = (options) => (options.client ?? client).patch({
2704
+ security: [{ scheme: "bearer", type: "http" }],
2705
+ url: "/legal-documents/{id}/publish",
2706
+ ...options,
2707
+ headers: {
2708
+ "Content-Type": "application/vnd.api+json",
2709
+ ...options.headers
2710
+ }
2711
+ });
2712
+ var getScanResults = (options) => (options.client ?? client).get({
2713
+ security: [{ scheme: "bearer", type: "http" }],
2714
+ url: "/scan-results",
2715
+ ...options
2716
+ });
2518
2717
  var getSearch = (options) => (options.client ?? client).get({
2519
2718
  security: [{ scheme: "bearer", type: "http" }],
2520
2719
  url: "/search",
2521
2720
  ...options
2522
2721
  });
2722
+ var getCatalogProductsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2723
+ security: [{ scheme: "bearer", type: "http" }],
2724
+ url: "/catalog/products/workspace/{workspace_id}",
2725
+ ...options
2726
+ });
2523
2727
  var getVoiceSessionsById = (options) => (options.client ?? client).get({
2524
2728
  security: [{ scheme: "bearer", type: "http" }],
2525
2729
  url: "/voice/sessions/{id}",
@@ -2609,6 +2813,11 @@ var patchCrmPipelineStagesById = (options) => (options.client ?? client).patch({
2609
2813
  ...options.headers
2610
2814
  }
2611
2815
  });
2816
+ var getLegalAcceptances = (options) => (options.client ?? client).get({
2817
+ security: [{ scheme: "bearer", type: "http" }],
2818
+ url: "/legal-acceptances",
2819
+ ...options
2820
+ });
2612
2821
  var getCrmPipelinesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2613
2822
  security: [{ scheme: "bearer", type: "http" }],
2614
2823
  url: "/crm/pipelines/workspace/{workspace_id}",
@@ -2651,6 +2860,20 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
2651
2860
  ...options.headers
2652
2861
  }
2653
2862
  });
2863
+ var patchImpactAssessmentsByIdApprove = (options) => (options.client ?? client).patch({
2864
+ security: [{ scheme: "bearer", type: "http" }],
2865
+ url: "/impact-assessments/{id}/approve",
2866
+ ...options,
2867
+ headers: {
2868
+ "Content-Type": "application/vnd.api+json",
2869
+ ...options.headers
2870
+ }
2871
+ });
2872
+ var getSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2873
+ security: [{ scheme: "bearer", type: "http" }],
2874
+ url: "/support/tickets/workspace/{workspace_id}",
2875
+ ...options
2876
+ });
2654
2877
  var deleteNotificationPreferencesById = (options) => (options.client ?? client).delete({
2655
2878
  security: [{ scheme: "bearer", type: "http" }],
2656
2879
  url: "/notification-preferences/{id}",
@@ -2684,6 +2907,11 @@ var postWatcherClaims = (options) => (options.client ?? client).post({
2684
2907
  ...options.headers
2685
2908
  }
2686
2909
  });
2910
+ var getLlmAnalytics = (options) => (options.client ?? client).get({
2911
+ security: [{ scheme: "bearer", type: "http" }],
2912
+ url: "/llm_analytics",
2913
+ ...options
2914
+ });
2687
2915
  var getCrawlerJobs = (options) => (options.client ?? client).get({
2688
2916
  security: [{ scheme: "bearer", type: "http" }],
2689
2917
  url: "/crawler/jobs",
@@ -2735,6 +2963,16 @@ var patchVoiceSessionsByIdFinalize = (options) => (options.client ?? client).pat
2735
2963
  ...options.headers
2736
2964
  }
2737
2965
  });
2966
+ var deleteProcessingActivitiesById = (options) => (options.client ?? client).delete({
2967
+ security: [{ scheme: "bearer", type: "http" }],
2968
+ url: "/processing-activities/{id}",
2969
+ ...options
2970
+ });
2971
+ var getProcessingActivitiesById = (options) => (options.client ?? client).get({
2972
+ security: [{ scheme: "bearer", type: "http" }],
2973
+ url: "/processing-activities/{id}",
2974
+ ...options
2975
+ });
2738
2976
  var postThreadsByIdExport = (options) => (options.client ?? client).post({
2739
2977
  security: [{ scheme: "bearer", type: "http" }],
2740
2978
  url: "/threads/{id}/export",
@@ -2744,6 +2982,34 @@ var postThreadsByIdExport = (options) => (options.client ?? client).post({
2744
2982
  ...options.headers
2745
2983
  }
2746
2984
  });
2985
+ var getDataSubjectRequests = (options) => (options.client ?? client).get({
2986
+ security: [{ scheme: "bearer", type: "http" }],
2987
+ url: "/data-subject-requests",
2988
+ ...options
2989
+ });
2990
+ var postDataSubjectRequests = (options) => (options.client ?? client).post({
2991
+ security: [{ scheme: "bearer", type: "http" }],
2992
+ url: "/data-subject-requests",
2993
+ ...options,
2994
+ headers: {
2995
+ "Content-Type": "application/vnd.api+json",
2996
+ ...options.headers
2997
+ }
2998
+ });
2999
+ var getImpactAssessmentsById = (options) => (options.client ?? client).get({
3000
+ security: [{ scheme: "bearer", type: "http" }],
3001
+ url: "/impact-assessments/{id}",
3002
+ ...options
3003
+ });
3004
+ var patchImpactAssessmentsById = (options) => (options.client ?? client).patch({
3005
+ security: [{ scheme: "bearer", type: "http" }],
3006
+ url: "/impact-assessments/{id}",
3007
+ ...options,
3008
+ headers: {
3009
+ "Content-Type": "application/vnd.api+json",
3010
+ ...options.headers
3011
+ }
3012
+ });
2747
3013
  var postAgentsByIdTeach = (options) => (options.client ?? client).post({
2748
3014
  security: [{ scheme: "bearer", type: "http" }],
2749
3015
  url: "/agents/{id}/teach",
@@ -2780,6 +3046,11 @@ var postExtractionSchemaDiscoveries = (options) => (options.client ?? client).po
2780
3046
  ...options.headers
2781
3047
  }
2782
3048
  });
3049
+ var getDataSubjectRequestsById = (options) => (options.client ?? client).get({
3050
+ security: [{ scheme: "bearer", type: "http" }],
3051
+ url: "/data-subject-requests/{id}",
3052
+ ...options
3053
+ });
2783
3054
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
2784
3055
  security: [{ scheme: "bearer", type: "http" }],
2785
3056
  url: "/users/register-isv",
@@ -2892,6 +3163,11 @@ var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get
2892
3163
  url: "/extraction/documents/{id}/view",
2893
3164
  ...options
2894
3165
  });
3166
+ var getAuditLogs = (options) => (options.client ?? client).get({
3167
+ security: [{ scheme: "bearer", type: "http" }],
3168
+ url: "/audit-logs",
3169
+ ...options
3170
+ });
2895
3171
  var getBuckets = (options) => (options.client ?? client).get({
2896
3172
  security: [{ scheme: "bearer", type: "http" }],
2897
3173
  url: "/buckets",
@@ -3013,6 +3289,11 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
3013
3289
  ...options.headers
3014
3290
  }
3015
3291
  });
3292
+ var getBreachNotificationsById = (options) => (options.client ?? client).get({
3293
+ security: [{ scheme: "bearer", type: "http" }],
3294
+ url: "/breach-notifications/{id}",
3295
+ ...options
3296
+ });
3016
3297
  var postTenantsByIdSchedulePurge = (options) => (options.client ?? client).post({
3017
3298
  security: [{ scheme: "bearer", type: "http" }],
3018
3299
  url: "/tenants/{id}/schedule-purge",
@@ -3074,6 +3355,11 @@ var patchAgentsById = (options) => (options.client ?? client).patch({
3074
3355
  ...options.headers
3075
3356
  }
3076
3357
  });
3358
+ var getAuditChainEntriesById = (options) => (options.client ?? client).get({
3359
+ security: [{ scheme: "bearer", type: "http" }],
3360
+ url: "/audit-chain-entries/{id}",
3361
+ ...options
3362
+ });
3077
3363
  var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
3078
3364
  security: [{ scheme: "bearer", type: "http" }],
3079
3365
  url: "/threads/{id}/unarchive",
@@ -3106,6 +3392,30 @@ var postAiSearch = (options) => (options.client ?? client).post({
3106
3392
  ...options.headers
3107
3393
  }
3108
3394
  });
3395
+ var deleteAiGraphNodesById = (options) => (options.client ?? client).delete({
3396
+ security: [{ scheme: "bearer", type: "http" }],
3397
+ url: "/ai/graph/nodes/{id}",
3398
+ ...options
3399
+ });
3400
+ var getImpactAssessments = (options) => (options.client ?? client).get({
3401
+ security: [{ scheme: "bearer", type: "http" }],
3402
+ url: "/impact-assessments",
3403
+ ...options
3404
+ });
3405
+ var postImpactAssessments = (options) => (options.client ?? client).post({
3406
+ security: [{ scheme: "bearer", type: "http" }],
3407
+ url: "/impact-assessments",
3408
+ ...options,
3409
+ headers: {
3410
+ "Content-Type": "application/vnd.api+json",
3411
+ ...options.headers
3412
+ }
3413
+ });
3414
+ var getLegalAcceptancesLatest = (options) => (options.client ?? client).get({
3415
+ security: [{ scheme: "bearer", type: "http" }],
3416
+ url: "/legal-acceptances/latest",
3417
+ ...options
3418
+ });
3109
3419
  var getWorkspacesShared = (options) => (options.client ?? client).get({
3110
3420
  security: [{ scheme: "bearer", type: "http" }],
3111
3421
  url: "/workspaces/shared",
@@ -3153,6 +3463,15 @@ var getTransactions = (options) => (options.client ?? client).get({
3153
3463
  url: "/transactions",
3154
3464
  ...options
3155
3465
  });
3466
+ var postCatalogTaxonomies = (options) => (options.client ?? client).post({
3467
+ security: [{ scheme: "bearer", type: "http" }],
3468
+ url: "/catalog/taxonomies",
3469
+ ...options,
3470
+ headers: {
3471
+ "Content-Type": "application/vnd.api+json",
3472
+ ...options.headers
3473
+ }
3474
+ });
3156
3475
  var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
3157
3476
  security: [{ scheme: "bearer", type: "http" }],
3158
3477
  url: "/connectors/oauth/initiate",
@@ -3162,6 +3481,11 @@ var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
3162
3481
  ...options.headers
3163
3482
  }
3164
3483
  });
3484
+ var getConsentRecordsActive = (options) => (options.client ?? client).get({
3485
+ security: [{ scheme: "bearer", type: "http" }],
3486
+ url: "/consent-records/active",
3487
+ ...options
3488
+ });
3165
3489
  var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
3166
3490
  security: [{ scheme: "bearer", type: "http" }],
3167
3491
  url: "/search/saved/{id}/run",
@@ -3171,6 +3495,25 @@ var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
3171
3495
  ...options.headers
3172
3496
  }
3173
3497
  });
3498
+ var deleteCatalogProductsById = (options) => (options.client ?? client).delete({
3499
+ security: [{ scheme: "bearer", type: "http" }],
3500
+ url: "/catalog/products/{id}",
3501
+ ...options
3502
+ });
3503
+ var getCatalogProductsById = (options) => (options.client ?? client).get({
3504
+ security: [{ scheme: "bearer", type: "http" }],
3505
+ url: "/catalog/products/{id}",
3506
+ ...options
3507
+ });
3508
+ var patchCatalogProductsById = (options) => (options.client ?? client).patch({
3509
+ security: [{ scheme: "bearer", type: "http" }],
3510
+ url: "/catalog/products/{id}",
3511
+ ...options,
3512
+ headers: {
3513
+ "Content-Type": "application/vnd.api+json",
3514
+ ...options.headers
3515
+ }
3516
+ });
3174
3517
  var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
3175
3518
  security: [{ scheme: "bearer", type: "http" }],
3176
3519
  url: "/webhook-configs/bulk-enable",
@@ -3189,6 +3532,34 @@ var postWebhookConfigsByIdReplay = (options) => (options.client ?? client).post(
3189
3532
  ...options.headers
3190
3533
  }
3191
3534
  });
3535
+ var deleteCatalogProductVariantsById = (options) => (options.client ?? client).delete({
3536
+ security: [{ scheme: "bearer", type: "http" }],
3537
+ url: "/catalog/product-variants/{id}",
3538
+ ...options
3539
+ });
3540
+ var getCatalogProductVariantsById = (options) => (options.client ?? client).get({
3541
+ security: [{ scheme: "bearer", type: "http" }],
3542
+ url: "/catalog/product-variants/{id}",
3543
+ ...options
3544
+ });
3545
+ var patchCatalogProductVariantsById = (options) => (options.client ?? client).patch({
3546
+ security: [{ scheme: "bearer", type: "http" }],
3547
+ url: "/catalog/product-variants/{id}",
3548
+ ...options,
3549
+ headers: {
3550
+ "Content-Type": "application/vnd.api+json",
3551
+ ...options.headers
3552
+ }
3553
+ });
3554
+ var patchBreachIncidentsByIdStatus = (options) => (options.client ?? client).patch({
3555
+ security: [{ scheme: "bearer", type: "http" }],
3556
+ url: "/breach-incidents/{id}/status",
3557
+ ...options,
3558
+ headers: {
3559
+ "Content-Type": "application/vnd.api+json",
3560
+ ...options.headers
3561
+ }
3562
+ });
3192
3563
  var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
3193
3564
  security: [{ scheme: "bearer", type: "http" }],
3194
3565
  url: "/webhook-deliveries/bulk-retry",
@@ -3198,6 +3569,11 @@ var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).pos
3198
3569
  ...options.headers
3199
3570
  }
3200
3571
  });
3572
+ var getLegalDocumentsByLocale = (options) => (options.client ?? client).get({
3573
+ security: [{ scheme: "bearer", type: "http" }],
3574
+ url: "/legal-documents/by-locale",
3575
+ ...options
3576
+ });
3201
3577
  var getWatcherClaimsById = (options) => (options.client ?? client).get({
3202
3578
  security: [{ scheme: "bearer", type: "http" }],
3203
3579
  url: "/watcher/claims/{id}",
@@ -3230,6 +3606,15 @@ var postAiEmbed = (options) => (options.client ?? client).post({
3230
3606
  ...options.headers
3231
3607
  }
3232
3608
  });
3609
+ var patchConsentRecordsByIdWithdraw = (options) => (options.client ?? client).patch({
3610
+ security: [{ scheme: "bearer", type: "http" }],
3611
+ url: "/consent-records/{id}/withdraw",
3612
+ ...options,
3613
+ headers: {
3614
+ "Content-Type": "application/vnd.api+json",
3615
+ ...options.headers
3616
+ }
3617
+ });
3233
3618
  var getSchedulingBookings = (options) => (options.client ?? client).get({
3234
3619
  security: [{ scheme: "bearer", type: "http" }],
3235
3620
  url: "/scheduling/bookings",
@@ -3272,6 +3657,11 @@ var postTenantsIsv = (options) => (options.client ?? client).post({
3272
3657
  ...options.headers
3273
3658
  }
3274
3659
  });
3660
+ var getScanResultsById = (options) => (options.client ?? client).get({
3661
+ security: [{ scheme: "bearer", type: "http" }],
3662
+ url: "/scan-results/{id}",
3663
+ ...options
3664
+ });
3275
3665
  var patchExtractionResultsByIdRegenerate = (options) => (options.client ?? client).patch({
3276
3666
  security: [{ scheme: "bearer", type: "http" }],
3277
3667
  url: "/extraction/results/{id}/regenerate",
@@ -3530,6 +3920,20 @@ var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ??
3530
3920
  ...options.headers
3531
3921
  }
3532
3922
  });
3923
+ var getConsentRecords = (options) => (options.client ?? client).get({
3924
+ security: [{ scheme: "bearer", type: "http" }],
3925
+ url: "/consent-records",
3926
+ ...options
3927
+ });
3928
+ var postConsentRecords = (options) => (options.client ?? client).post({
3929
+ security: [{ scheme: "bearer", type: "http" }],
3930
+ url: "/consent-records",
3931
+ ...options,
3932
+ headers: {
3933
+ "Content-Type": "application/vnd.api+json",
3934
+ ...options.headers
3935
+ }
3936
+ });
3533
3937
  var postUsersAuthResendConfirmation = (options) => (options.client ?? client).post({
3534
3938
  security: [{ scheme: "bearer", type: "http" }],
3535
3939
  url: "/users/auth/resend-confirmation",
@@ -3572,6 +3976,15 @@ var postWatcherEvents = (options) => (options.client ?? client).post({
3572
3976
  ...options.headers
3573
3977
  }
3574
3978
  });
3979
+ var postSupportTicketMessages = (options) => (options.client ?? client).post({
3980
+ security: [{ scheme: "bearer", type: "http" }],
3981
+ url: "/support/ticket-messages",
3982
+ ...options,
3983
+ headers: {
3984
+ "Content-Type": "application/vnd.api+json",
3985
+ ...options.headers
3986
+ }
3987
+ });
3575
3988
  var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
3576
3989
  security: [{ scheme: "bearer", type: "http" }],
3577
3990
  url: "/connectors/oauth/callback",
@@ -3581,6 +3994,15 @@ var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
3581
3994
  ...options.headers
3582
3995
  }
3583
3996
  });
3997
+ var postSupportTags = (options) => (options.client ?? client).post({
3998
+ security: [{ scheme: "bearer", type: "http" }],
3999
+ url: "/support/tags",
4000
+ ...options,
4001
+ headers: {
4002
+ "Content-Type": "application/vnd.api+json",
4003
+ ...options.headers
4004
+ }
4005
+ });
3584
4006
  var postAgentVersionsByIdSetSystemFields = (options) => (options.client ?? client).post({
3585
4007
  security: [{ scheme: "bearer", type: "http" }],
3586
4008
  url: "/agent-versions/{id}/set-system-fields",
@@ -3599,6 +4021,34 @@ var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
3599
4021
  ...options.headers
3600
4022
  }
3601
4023
  });
4024
+ var patchConfigsByKey = (options) => (options.client ?? client).patch({
4025
+ security: [{ scheme: "bearer", type: "http" }],
4026
+ url: "/configs/{key}",
4027
+ ...options,
4028
+ headers: {
4029
+ "Content-Type": "application/vnd.api+json",
4030
+ ...options.headers
4031
+ }
4032
+ });
4033
+ var deleteLegalDocumentsById = (options) => (options.client ?? client).delete({
4034
+ security: [{ scheme: "bearer", type: "http" }],
4035
+ url: "/legal-documents/{id}",
4036
+ ...options
4037
+ });
4038
+ var getLegalDocumentsById = (options) => (options.client ?? client).get({
4039
+ security: [{ scheme: "bearer", type: "http" }],
4040
+ url: "/legal-documents/{id}",
4041
+ ...options
4042
+ });
4043
+ var patchLegalDocumentsById = (options) => (options.client ?? client).patch({
4044
+ security: [{ scheme: "bearer", type: "http" }],
4045
+ url: "/legal-documents/{id}",
4046
+ ...options,
4047
+ headers: {
4048
+ "Content-Type": "application/vnd.api+json",
4049
+ ...options.headers
4050
+ }
4051
+ });
3602
4052
  var getExtractionResults = (options) => (options.client ?? client).get({
3603
4053
  security: [{ scheme: "bearer", type: "http" }],
3604
4054
  url: "/extraction/results",
@@ -3613,11 +4063,30 @@ var postAgentsByIdClone = (options) => (options.client ?? client).post({
3613
4063
  ...options.headers
3614
4064
  }
3615
4065
  });
4066
+ var getLegalDocuments = (options) => (options.client ?? client).get({
4067
+ security: [{ scheme: "bearer", type: "http" }],
4068
+ url: "/legal-documents",
4069
+ ...options
4070
+ });
4071
+ var postLegalDocuments = (options) => (options.client ?? client).post({
4072
+ security: [{ scheme: "bearer", type: "http" }],
4073
+ url: "/legal-documents",
4074
+ ...options,
4075
+ headers: {
4076
+ "Content-Type": "application/vnd.api+json",
4077
+ ...options.headers
4078
+ }
4079
+ });
3616
4080
  var getInvitationsMe = (options) => (options.client ?? client).get({
3617
4081
  security: [{ scheme: "bearer", type: "http" }],
3618
4082
  url: "/invitations/me",
3619
4083
  ...options
3620
4084
  });
4085
+ var getLegalDocumentsForApplication = (options) => (options.client ?? client).get({
4086
+ security: [{ scheme: "bearer", type: "http" }],
4087
+ url: "/legal-documents/for-application",
4088
+ ...options
4089
+ });
3621
4090
  var getApiKeys = (options) => (options.client ?? client).get({
3622
4091
  security: [{ scheme: "bearer", type: "http" }],
3623
4092
  url: "/api-keys",
@@ -3632,6 +4101,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
3632
4101
  ...options.headers
3633
4102
  }
3634
4103
  });
4104
+ var deleteSupportTagsById = (options) => (options.client ?? client).delete({
4105
+ security: [{ scheme: "bearer", type: "http" }],
4106
+ url: "/support/tags/{id}",
4107
+ ...options
4108
+ });
3635
4109
  var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
3636
4110
  security: [{ scheme: "bearer", type: "http" }],
3637
4111
  url: "/extraction/documents/bulk-reprocess",
@@ -3688,11 +4162,39 @@ var postCrmDeals = (options) => (options.client ?? client).post({
3688
4162
  ...options.headers
3689
4163
  }
3690
4164
  });
4165
+ var patchDataSubjectRequestsByIdStatus = (options) => (options.client ?? client).patch({
4166
+ security: [{ scheme: "bearer", type: "http" }],
4167
+ url: "/data-subject-requests/{id}/status",
4168
+ ...options,
4169
+ headers: {
4170
+ "Content-Type": "application/vnd.api+json",
4171
+ ...options.headers
4172
+ }
4173
+ });
4174
+ var getLlmAnalyticsUsage = (options) => (options.client ?? client).get({
4175
+ security: [{ scheme: "bearer", type: "http" }],
4176
+ url: "/llm_analytics/usage",
4177
+ ...options
4178
+ });
3691
4179
  var getCrmActivitiesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
3692
4180
  security: [{ scheme: "bearer", type: "http" }],
3693
4181
  url: "/crm/activities/workspace/{workspace_id}",
3694
4182
  ...options
3695
4183
  });
4184
+ var getAiGraphNodes = (options) => (options.client ?? client).get({
4185
+ security: [{ scheme: "bearer", type: "http" }],
4186
+ url: "/ai/graph/nodes",
4187
+ ...options
4188
+ });
4189
+ var postAiGraphNodes = (options) => (options.client ?? client).post({
4190
+ security: [{ scheme: "bearer", type: "http" }],
4191
+ url: "/ai/graph/nodes",
4192
+ ...options,
4193
+ headers: {
4194
+ "Content-Type": "application/vnd.api+json",
4195
+ ...options.headers
4196
+ }
4197
+ });
3696
4198
  var getAgents = (options) => (options.client ?? client).get({
3697
4199
  security: [{ scheme: "bearer", type: "http" }],
3698
4200
  url: "/agents",
@@ -3712,6 +4214,48 @@ var getApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options.c
3712
4214
  url: "/applications/{application_id}/email-templates/{slug}",
3713
4215
  ...options
3714
4216
  });
4217
+ var postSupportTicketRatings = (options) => (options.client ?? client).post({
4218
+ security: [{ scheme: "bearer", type: "http" }],
4219
+ url: "/support/ticket-ratings",
4220
+ ...options,
4221
+ headers: {
4222
+ "Content-Type": "application/vnd.api+json",
4223
+ ...options.headers
4224
+ }
4225
+ });
4226
+ var getBreachNotifications = (options) => (options.client ?? client).get({
4227
+ security: [{ scheme: "bearer", type: "http" }],
4228
+ url: "/breach-notifications",
4229
+ ...options
4230
+ });
4231
+ var getRetentionPolicies = (options) => (options.client ?? client).get({
4232
+ security: [{ scheme: "bearer", type: "http" }],
4233
+ url: "/retention-policies",
4234
+ ...options
4235
+ });
4236
+ var postRetentionPolicies = (options) => (options.client ?? client).post({
4237
+ security: [{ scheme: "bearer", type: "http" }],
4238
+ url: "/retention-policies",
4239
+ ...options,
4240
+ headers: {
4241
+ "Content-Type": "application/vnd.api+json",
4242
+ ...options.headers
4243
+ }
4244
+ });
4245
+ var getProcessingActivities = (options) => (options.client ?? client).get({
4246
+ security: [{ scheme: "bearer", type: "http" }],
4247
+ url: "/processing-activities",
4248
+ ...options
4249
+ });
4250
+ var postProcessingActivities = (options) => (options.client ?? client).post({
4251
+ security: [{ scheme: "bearer", type: "http" }],
4252
+ url: "/processing-activities",
4253
+ ...options,
4254
+ headers: {
4255
+ "Content-Type": "application/vnd.api+json",
4256
+ ...options.headers
4257
+ }
4258
+ });
3715
4259
  var getConnectors = (options) => (options.client ?? client).get({
3716
4260
  security: [{ scheme: "bearer", type: "http" }],
3717
4261
  url: "/connectors",
@@ -3802,11 +4346,35 @@ var postCrmPipelineStages = (options) => (options.client ?? client).post({
3802
4346
  ...options.headers
3803
4347
  }
3804
4348
  });
4349
+ var getCatalogProductVariantsProductByProductId = (options) => (options.client ?? client).get({
4350
+ security: [{ scheme: "bearer", type: "http" }],
4351
+ url: "/catalog/product-variants/product/{product_id}",
4352
+ ...options
4353
+ });
3805
4354
  var getUsers = (options) => (options.client ?? client).get({
3806
4355
  security: [{ scheme: "bearer", type: "http" }],
3807
4356
  url: "/users",
3808
4357
  ...options
3809
4358
  });
4359
+ var deleteSupportTicketsById = (options) => (options.client ?? client).delete({
4360
+ security: [{ scheme: "bearer", type: "http" }],
4361
+ url: "/support/tickets/{id}",
4362
+ ...options
4363
+ });
4364
+ var getSupportTicketsById = (options) => (options.client ?? client).get({
4365
+ security: [{ scheme: "bearer", type: "http" }],
4366
+ url: "/support/tickets/{id}",
4367
+ ...options
4368
+ });
4369
+ var patchSupportTicketsById = (options) => (options.client ?? client).patch({
4370
+ security: [{ scheme: "bearer", type: "http" }],
4371
+ url: "/support/tickets/{id}",
4372
+ ...options,
4373
+ headers: {
4374
+ "Content-Type": "application/vnd.api+json",
4375
+ ...options.headers
4376
+ }
4377
+ });
3810
4378
  var postCrmExports = (options) => (options.client ?? client).post({
3811
4379
  security: [{ scheme: "bearer", type: "http" }],
3812
4380
  url: "/crm/exports",
@@ -4187,16 +4755,93 @@ function createAiNamespace(rb) {
4187
4755
  );
4188
4756
  },
4189
4757
  /** Send a message to an AI conversation (non-streaming) */
4190
- send: async (_conversationId, body, options) => {
4758
+ send: async (conversationId, body, options) => {
4191
4759
  return rb.execute(
4192
4760
  postAiMessages,
4193
4761
  {
4194
4762
  body: {
4195
- data: { type: "message", attributes: body }
4763
+ data: {
4764
+ type: "message",
4765
+ attributes: { ...body, conversation_id: conversationId }
4766
+ }
4767
+ }
4768
+ },
4769
+ options
4770
+ );
4771
+ }
4772
+ },
4773
+ /**
4774
+ * Analytics — LLM token usage, costs, and workspace metrics
4775
+ */
4776
+ analytics: {
4777
+ /** List LLM analytics records */
4778
+ list: async (options) => {
4779
+ return rb.execute(getLlmAnalytics, {}, options);
4780
+ },
4781
+ /** Get LLM cost breakdown */
4782
+ costs: async (options) => {
4783
+ return rb.execute(
4784
+ getLlmAnalyticsCosts,
4785
+ {},
4786
+ options
4787
+ );
4788
+ },
4789
+ /** Get LLM usage summary */
4790
+ summary: async (options) => {
4791
+ return rb.execute(
4792
+ getLlmAnalyticsSummary,
4793
+ {},
4794
+ options
4795
+ );
4796
+ },
4797
+ /** Get raw LLM usage data */
4798
+ usage: async (options) => {
4799
+ return rb.execute(
4800
+ getLlmAnalyticsUsage,
4801
+ {},
4802
+ options
4803
+ );
4804
+ },
4805
+ /** Get workspace-scoped LLM metrics */
4806
+ workspace: async (options) => {
4807
+ return rb.execute(
4808
+ getLlmAnalyticsWorkspace,
4809
+ {},
4810
+ options
4811
+ );
4812
+ }
4813
+ },
4814
+ /**
4815
+ * Graph — knowledge graph node management
4816
+ */
4817
+ graph: {
4818
+ /** List knowledge graph nodes */
4819
+ listNodes: async (options) => {
4820
+ return rb.execute(
4821
+ getAiGraphNodes,
4822
+ {},
4823
+ options
4824
+ );
4825
+ },
4826
+ /** Create a knowledge graph node */
4827
+ createNode: async (attributes, options) => {
4828
+ return rb.execute(
4829
+ postAiGraphNodes,
4830
+ {
4831
+ body: {
4832
+ data: { type: "graph_node", attributes }
4196
4833
  }
4197
4834
  },
4198
4835
  options
4199
4836
  );
4837
+ },
4838
+ /** Delete a knowledge graph node */
4839
+ deleteNode: async (id, options) => {
4840
+ return rb.executeDelete(
4841
+ deleteAiGraphNodesById,
4842
+ { path: { id } },
4843
+ options
4844
+ );
4200
4845
  }
4201
4846
  }
4202
4847
  };
@@ -4261,163 +4906,819 @@ function createBillingNamespace(rb) {
4261
4906
  );
4262
4907
  }
4263
4908
  },
4264
- creditPackages: {
4909
+ creditPackages: {
4910
+ list: async (options) => {
4911
+ return rb.execute(
4912
+ getCreditPackages,
4913
+ buildPageQuery(options?.page, options?.pageSize),
4914
+ options
4915
+ );
4916
+ },
4917
+ listAll: async (options) => {
4918
+ return paginateToArray(
4919
+ rb.createPaginatedFetcher(
4920
+ getCreditPackages,
4921
+ (page, pageSize) => ({
4922
+ query: { page: { number: page, size: pageSize } }
4923
+ }),
4924
+ options
4925
+ )
4926
+ );
4927
+ },
4928
+ get: async (id, options) => {
4929
+ return rb.execute(
4930
+ getCreditPackagesById,
4931
+ { path: { id } },
4932
+ options
4933
+ );
4934
+ }
4935
+ },
4936
+ paymentMethods: {
4937
+ delete: async (id, options) => {
4938
+ return rb.executeDelete(
4939
+ deletePaymentMethodsById,
4940
+ { path: { id } },
4941
+ options
4942
+ );
4943
+ },
4944
+ list: async (options) => {
4945
+ return rb.execute(
4946
+ getPaymentMethods,
4947
+ buildPageQuery(options?.page, options?.pageSize),
4948
+ options
4949
+ );
4950
+ },
4951
+ listAll: async (options) => {
4952
+ return paginateToArray(
4953
+ rb.createPaginatedFetcher(
4954
+ getPaymentMethods,
4955
+ (page, pageSize) => ({
4956
+ query: { page: { number: page, size: pageSize } }
4957
+ }),
4958
+ options
4959
+ )
4960
+ );
4961
+ },
4962
+ create: async (attributes, options) => {
4963
+ return rb.execute(
4964
+ postPaymentMethods,
4965
+ { body: { data: { type: "payment_method", attributes } } },
4966
+ options
4967
+ );
4968
+ },
4969
+ update: async (id, attributes, options) => {
4970
+ return rb.execute(
4971
+ patchPaymentMethodsById,
4972
+ {
4973
+ path: { id },
4974
+ body: { data: { id, type: "payment_method", attributes } }
4975
+ },
4976
+ options
4977
+ );
4978
+ },
4979
+ get: async (id, options) => {
4980
+ return rb.execute(
4981
+ getPaymentMethodsById,
4982
+ { path: { id } },
4983
+ options
4984
+ );
4985
+ }
4986
+ }
4987
+ };
4988
+ }
4989
+
4990
+ // src/namespaces/catalog.ts
4991
+ function createCatalogNamespace(rb) {
4992
+ return {
4993
+ /**
4994
+ * Products — product catalog management
4995
+ */
4996
+ products: {
4997
+ /** List products for a workspace */
4998
+ list: async (workspaceId, options) => {
4999
+ return rb.execute(
5000
+ getCatalogProductsWorkspaceByWorkspaceId,
5001
+ {
5002
+ path: { workspace_id: workspaceId },
5003
+ ...buildPageQuery(options?.page, options?.pageSize)
5004
+ },
5005
+ options
5006
+ );
5007
+ },
5008
+ /** Get a product by ID */
5009
+ get: async (id, options) => {
5010
+ return rb.execute(
5011
+ getCatalogProductsById,
5012
+ { path: { id } },
5013
+ options
5014
+ );
5015
+ },
5016
+ /** Create a new product */
5017
+ create: async (attributes, options) => {
5018
+ return rb.execute(
5019
+ postCatalogProducts,
5020
+ {
5021
+ body: {
5022
+ data: { type: "catalog_product", attributes }
5023
+ }
5024
+ },
5025
+ options
5026
+ );
5027
+ },
5028
+ /** Update a product */
5029
+ update: async (id, attributes, options) => {
5030
+ return rb.execute(
5031
+ patchCatalogProductsById,
5032
+ {
5033
+ path: { id },
5034
+ body: {
5035
+ data: { type: "catalog_product", id, attributes }
5036
+ }
5037
+ },
5038
+ options
5039
+ );
5040
+ },
5041
+ /** Delete a product */
5042
+ delete: async (id, options) => {
5043
+ return rb.executeDelete(
5044
+ deleteCatalogProductsById,
5045
+ { path: { id } },
5046
+ options
5047
+ );
5048
+ }
5049
+ },
5050
+ /**
5051
+ * Variants — product variants (SKUs)
5052
+ */
5053
+ variants: {
5054
+ /** Get a variant by ID */
5055
+ get: async (id, options) => {
5056
+ return rb.execute(
5057
+ getCatalogProductVariantsById,
5058
+ { path: { id } },
5059
+ options
5060
+ );
5061
+ },
5062
+ /** List variants for a product */
5063
+ listByProduct: async (productId, options) => {
5064
+ return rb.execute(
5065
+ getCatalogProductVariantsProductByProductId,
5066
+ { path: { product_id: productId } },
5067
+ options
5068
+ );
5069
+ },
5070
+ /** Create a product variant */
5071
+ create: async (attributes, options) => {
5072
+ return rb.execute(
5073
+ postCatalogProductVariants,
5074
+ {
5075
+ body: {
5076
+ data: { type: "catalog_product_variant", attributes }
5077
+ }
5078
+ },
5079
+ options
5080
+ );
5081
+ },
5082
+ /** Update a product variant */
5083
+ update: async (id, attributes, options) => {
5084
+ return rb.execute(
5085
+ patchCatalogProductVariantsById,
5086
+ {
5087
+ path: { id },
5088
+ body: {
5089
+ data: { type: "catalog_product_variant", id, attributes }
5090
+ }
5091
+ },
5092
+ options
5093
+ );
5094
+ },
5095
+ /** Delete a product variant */
5096
+ delete: async (id, options) => {
5097
+ return rb.executeDelete(
5098
+ deleteCatalogProductVariantsById,
5099
+ { path: { id } },
5100
+ options
5101
+ );
5102
+ }
5103
+ },
5104
+ /**
5105
+ * Taxonomies — product classification trees
5106
+ */
5107
+ taxonomies: {
5108
+ /** List taxonomies for an application */
5109
+ listByApplication: async (applicationId, options) => {
5110
+ return rb.execute(
5111
+ getCatalogTaxonomiesApplicationByApplicationId,
5112
+ { path: { application_id: applicationId } },
5113
+ options
5114
+ );
5115
+ },
5116
+ /** Get a taxonomy by ID */
5117
+ get: async (id, options) => {
5118
+ return rb.execute(
5119
+ getCatalogTaxonomiesById,
5120
+ { path: { id } },
5121
+ options
5122
+ );
5123
+ },
5124
+ /** Create a taxonomy */
5125
+ create: async (attributes, options) => {
5126
+ return rb.execute(
5127
+ postCatalogTaxonomies,
5128
+ {
5129
+ body: {
5130
+ data: { type: "catalog_taxonomy", attributes }
5131
+ }
5132
+ },
5133
+ options
5134
+ );
5135
+ },
5136
+ /** Update a taxonomy */
5137
+ update: async (id, attributes, options) => {
5138
+ return rb.execute(
5139
+ patchCatalogTaxonomiesById,
5140
+ {
5141
+ path: { id },
5142
+ body: {
5143
+ data: { type: "catalog_taxonomy", id, attributes }
5144
+ }
5145
+ },
5146
+ options
5147
+ );
5148
+ },
5149
+ /** Delete a taxonomy */
5150
+ delete: async (id, options) => {
5151
+ return rb.executeDelete(
5152
+ deleteCatalogTaxonomiesById,
5153
+ { path: { id } },
5154
+ options
5155
+ );
5156
+ }
5157
+ },
5158
+ /**
5159
+ * Taxonomy nodes — nodes within a taxonomy tree
5160
+ */
5161
+ taxonomyNodes: {
5162
+ /** List nodes for a taxonomy */
5163
+ listByTaxonomy: async (taxonomyId, options) => {
5164
+ return rb.execute(
5165
+ getCatalogTaxonomyNodesTaxonomyByTaxonomyId,
5166
+ { path: { taxonomy_id: taxonomyId } },
5167
+ options
5168
+ );
5169
+ },
5170
+ /** Get a taxonomy node by ID */
5171
+ get: async (id, options) => {
5172
+ return rb.execute(
5173
+ getCatalogTaxonomyNodesById,
5174
+ { path: { id } },
5175
+ options
5176
+ );
5177
+ },
5178
+ /** Create a taxonomy node */
5179
+ create: async (attributes, options) => {
5180
+ return rb.execute(
5181
+ postCatalogTaxonomyNodes,
5182
+ {
5183
+ body: {
5184
+ data: { type: "catalog_taxonomy_node", attributes }
5185
+ }
5186
+ },
5187
+ options
5188
+ );
5189
+ },
5190
+ /** Update a taxonomy node */
5191
+ update: async (id, attributes, options) => {
5192
+ return rb.execute(
5193
+ patchCatalogTaxonomyNodesById,
5194
+ {
5195
+ path: { id },
5196
+ body: {
5197
+ data: { type: "catalog_taxonomy_node", id, attributes }
5198
+ }
5199
+ },
5200
+ options
5201
+ );
5202
+ },
5203
+ /** Delete a taxonomy node */
5204
+ delete: async (id, options) => {
5205
+ return rb.executeDelete(
5206
+ deleteCatalogTaxonomyNodesById,
5207
+ { path: { id } },
5208
+ options
5209
+ );
5210
+ }
5211
+ }
5212
+ };
5213
+ }
5214
+
5215
+ // src/namespaces/compliance.ts
5216
+ function createComplianceNamespace(rb) {
5217
+ return {
5218
+ /**
5219
+ * Audit logs — immutable event trail
5220
+ */
5221
+ auditLogs: {
5222
+ /** List audit log entries */
5223
+ list: async (options) => {
5224
+ return rb.execute(
5225
+ getAuditLogs,
5226
+ buildPageQuery(options?.page, options?.pageSize),
5227
+ options
5228
+ );
5229
+ }
5230
+ },
5231
+ /**
5232
+ * Audit chain entries — tamper-evident audit chain records
5233
+ */
5234
+ auditChain: {
5235
+ /** List audit chain entries */
5236
+ list: async (options) => {
5237
+ return rb.execute(
5238
+ getAuditChainEntries,
5239
+ buildPageQuery(options?.page, options?.pageSize),
5240
+ options
5241
+ );
5242
+ },
5243
+ /** Get an audit chain entry by ID */
5244
+ get: async (id, options) => {
5245
+ return rb.execute(
5246
+ getAuditChainEntriesById,
5247
+ { path: { id } },
5248
+ options
5249
+ );
5250
+ }
5251
+ },
5252
+ /**
5253
+ * Breach incidents — data breach tracking and notifications
5254
+ */
5255
+ breachIncidents: {
5256
+ /** List breach incidents */
5257
+ list: async (options) => {
5258
+ return rb.execute(
5259
+ getBreachIncidents,
5260
+ buildPageQuery(options?.page, options?.pageSize),
5261
+ options
5262
+ );
5263
+ },
5264
+ /** Get a breach incident by ID */
5265
+ get: async (id, options) => {
5266
+ return rb.execute(
5267
+ getBreachIncidentsById,
5268
+ { path: { id } },
5269
+ options
5270
+ );
5271
+ },
5272
+ /** Report a new breach incident */
5273
+ create: async (attributes, options) => {
5274
+ return rb.execute(
5275
+ postBreachIncidents,
5276
+ {
5277
+ body: {
5278
+ data: { type: "breach_incident", attributes }
5279
+ }
5280
+ },
5281
+ options
5282
+ );
5283
+ },
5284
+ /** Update breach incident status */
5285
+ updateStatus: async (id, status, options) => {
5286
+ return rb.execute(
5287
+ patchBreachIncidentsByIdStatus,
5288
+ {
5289
+ path: { id },
5290
+ body: {
5291
+ data: { type: "breach_incident", id, attributes: { status } }
5292
+ }
5293
+ },
5294
+ options
5295
+ );
5296
+ }
5297
+ },
5298
+ /**
5299
+ * Breach notifications — regulatory notifications for breach incidents
5300
+ */
5301
+ breachNotifications: {
5302
+ /** List breach notifications */
5303
+ list: async (options) => {
5304
+ return rb.execute(
5305
+ getBreachNotifications,
5306
+ buildPageQuery(options?.page, options?.pageSize),
5307
+ options
5308
+ );
5309
+ },
5310
+ /** Get a breach notification by ID */
5311
+ get: async (id, options) => {
5312
+ return rb.execute(
5313
+ getBreachNotificationsById,
5314
+ { path: { id } },
5315
+ options
5316
+ );
5317
+ }
5318
+ },
5319
+ /**
5320
+ * Consent records — user consent tracking (GDPR Article 7)
5321
+ */
5322
+ consentRecords: {
5323
+ /** List consent records */
5324
+ list: async (options) => {
5325
+ return rb.execute(
5326
+ getConsentRecords,
5327
+ buildPageQuery(options?.page, options?.pageSize),
5328
+ options
5329
+ );
5330
+ },
5331
+ /** Get a consent record by ID */
5332
+ get: async (id, options) => {
5333
+ return rb.execute(
5334
+ getConsentRecordsById,
5335
+ { path: { id } },
5336
+ options
5337
+ );
5338
+ },
5339
+ /** List active consent records */
5340
+ listActive: async (options) => {
5341
+ return rb.execute(
5342
+ getConsentRecordsActive,
5343
+ {},
5344
+ options
5345
+ );
5346
+ },
5347
+ /** Record new consent */
5348
+ create: async (attributes, options) => {
5349
+ return rb.execute(
5350
+ postConsentRecords,
5351
+ {
5352
+ body: {
5353
+ data: { type: "consent_record", attributes }
5354
+ }
5355
+ },
5356
+ options
5357
+ );
5358
+ },
5359
+ /** Withdraw consent */
5360
+ withdraw: async (id, options) => {
5361
+ return rb.execute(
5362
+ patchConsentRecordsByIdWithdraw,
5363
+ {
5364
+ path: { id },
5365
+ body: {
5366
+ data: { type: "consent_record", id, attributes: {} }
5367
+ }
5368
+ },
5369
+ options
5370
+ );
5371
+ }
5372
+ },
5373
+ /**
5374
+ * Impact assessments — Data Protection Impact Assessments (DPIA)
5375
+ */
5376
+ impactAssessments: {
5377
+ /** List impact assessments */
5378
+ list: async (options) => {
5379
+ return rb.execute(
5380
+ getImpactAssessments,
5381
+ buildPageQuery(options?.page, options?.pageSize),
5382
+ options
5383
+ );
5384
+ },
5385
+ /** Get an impact assessment by ID */
5386
+ get: async (id, options) => {
5387
+ return rb.execute(
5388
+ getImpactAssessmentsById,
5389
+ { path: { id } },
5390
+ options
5391
+ );
5392
+ },
5393
+ /** Create an impact assessment */
5394
+ create: async (attributes, options) => {
5395
+ return rb.execute(
5396
+ postImpactAssessments,
5397
+ {
5398
+ body: {
5399
+ data: {
5400
+ type: "data_protection_impact_assessment",
5401
+ attributes
5402
+ }
5403
+ }
5404
+ },
5405
+ options
5406
+ );
5407
+ },
5408
+ /** Update an impact assessment */
5409
+ update: async (id, attributes, options) => {
5410
+ return rb.execute(
5411
+ patchImpactAssessmentsById,
5412
+ {
5413
+ path: { id },
5414
+ body: {
5415
+ data: {
5416
+ type: "data_protection_impact_assessment",
5417
+ id,
5418
+ attributes
5419
+ }
5420
+ }
5421
+ },
5422
+ options
5423
+ );
5424
+ },
5425
+ /** Approve an impact assessment */
5426
+ approve: async (id, options) => {
5427
+ return rb.execute(
5428
+ patchImpactAssessmentsByIdApprove,
5429
+ {
5430
+ path: { id },
5431
+ body: {
5432
+ data: {
5433
+ type: "data_protection_impact_assessment",
5434
+ id,
5435
+ attributes: {}
5436
+ }
5437
+ }
5438
+ },
5439
+ options
5440
+ );
5441
+ }
5442
+ },
5443
+ /**
5444
+ * Processing activities — GDPR Article 30 records of processing
5445
+ */
5446
+ processingActivities: {
5447
+ /** List processing activities */
5448
+ list: async (options) => {
5449
+ return rb.execute(
5450
+ getProcessingActivities,
5451
+ buildPageQuery(options?.page, options?.pageSize),
5452
+ options
5453
+ );
5454
+ },
5455
+ /** Get a processing activity by ID */
5456
+ get: async (id, options) => {
5457
+ return rb.execute(
5458
+ getProcessingActivitiesById,
5459
+ { path: { id } },
5460
+ options
5461
+ );
5462
+ },
5463
+ /** Create a processing activity */
5464
+ create: async (attributes, options) => {
5465
+ return rb.execute(
5466
+ postProcessingActivities,
5467
+ {
5468
+ body: {
5469
+ data: { type: "processing_activity", attributes }
5470
+ }
5471
+ },
5472
+ options
5473
+ );
5474
+ },
5475
+ /** Delete a processing activity */
5476
+ delete: async (id, options) => {
5477
+ return rb.executeDelete(
5478
+ deleteProcessingActivitiesById,
5479
+ { path: { id } },
5480
+ options
5481
+ );
5482
+ }
5483
+ },
5484
+ /**
5485
+ * Retention policies — data lifecycle and deletion rules
5486
+ */
5487
+ retentionPolicies: {
5488
+ /** List retention policies */
5489
+ list: async (options) => {
5490
+ return rb.execute(
5491
+ getRetentionPolicies,
5492
+ buildPageQuery(options?.page, options?.pageSize),
5493
+ options
5494
+ );
5495
+ },
5496
+ /** Get a retention policy by ID */
5497
+ get: async (id, options) => {
5498
+ return rb.execute(
5499
+ getRetentionPoliciesById,
5500
+ { path: { id } },
5501
+ options
5502
+ );
5503
+ },
5504
+ /** Create a retention policy */
5505
+ create: async (attributes, options) => {
5506
+ return rb.execute(
5507
+ postRetentionPolicies,
5508
+ {
5509
+ body: {
5510
+ data: { type: "retention_policy", attributes }
5511
+ }
5512
+ },
5513
+ options
5514
+ );
5515
+ },
5516
+ /** Update a retention policy */
5517
+ update: async (id, attributes, options) => {
5518
+ return rb.execute(
5519
+ patchRetentionPoliciesById,
5520
+ {
5521
+ path: { id },
5522
+ body: {
5523
+ data: { type: "retention_policy", id, attributes }
5524
+ }
5525
+ },
5526
+ options
5527
+ );
5528
+ },
5529
+ /** Delete a retention policy */
5530
+ delete: async (id, options) => {
5531
+ return rb.executeDelete(
5532
+ deleteRetentionPoliciesById,
5533
+ { path: { id } },
5534
+ options
5535
+ );
5536
+ }
5537
+ },
5538
+ /**
5539
+ * Data subject requests — GDPR rights (access, erasure, portability)
5540
+ */
5541
+ dataSubjectRequests: {
5542
+ /** List data subject requests */
5543
+ list: async (options) => {
5544
+ return rb.execute(
5545
+ getDataSubjectRequests,
5546
+ buildPageQuery(options?.page, options?.pageSize),
5547
+ options
5548
+ );
5549
+ },
5550
+ /** Get a data subject request by ID */
5551
+ get: async (id, options) => {
5552
+ return rb.execute(
5553
+ getDataSubjectRequestsById,
5554
+ { path: { id } },
5555
+ options
5556
+ );
5557
+ },
5558
+ /** Submit a data subject request */
5559
+ create: async (attributes, options) => {
5560
+ return rb.execute(
5561
+ postDataSubjectRequests,
5562
+ {
5563
+ body: {
5564
+ data: { type: "data_subject_request", attributes }
5565
+ }
5566
+ },
5567
+ options
5568
+ );
5569
+ },
5570
+ /** Update data subject request status */
5571
+ updateStatus: async (id, status, options) => {
5572
+ return rb.execute(
5573
+ patchDataSubjectRequestsByIdStatus,
5574
+ {
5575
+ path: { id },
5576
+ body: {
5577
+ data: {
5578
+ type: "data_subject_request",
5579
+ id,
5580
+ attributes: { status }
5581
+ }
5582
+ }
5583
+ },
5584
+ options
5585
+ );
5586
+ }
5587
+ },
5588
+ /**
5589
+ * Legal documents — Terms of Service, Privacy Policy, etc.
5590
+ */
5591
+ legalDocuments: {
5592
+ /** List legal documents */
4265
5593
  list: async (options) => {
4266
5594
  return rb.execute(
4267
- getCreditPackages,
5595
+ getLegalDocuments,
4268
5596
  buildPageQuery(options?.page, options?.pageSize),
4269
5597
  options
4270
5598
  );
4271
5599
  },
4272
- listAll: async (options) => {
4273
- return paginateToArray(
4274
- rb.createPaginatedFetcher(
4275
- getCreditPackages,
4276
- (page, pageSize) => ({
4277
- query: { page: { number: page, size: pageSize } }
4278
- }),
4279
- options
4280
- )
4281
- );
4282
- },
5600
+ /** Get a legal document by ID */
4283
5601
  get: async (id, options) => {
4284
5602
  return rb.execute(
4285
- getCreditPackagesById,
5603
+ getLegalDocumentsById,
4286
5604
  { path: { id } },
4287
5605
  options
4288
5606
  );
4289
- }
4290
- },
4291
- paymentMethods: {
5607
+ },
5608
+ /** Create a legal document */
5609
+ create: async (attributes, options) => {
5610
+ return rb.execute(
5611
+ postLegalDocuments,
5612
+ { body: { data: { type: "legal_document", attributes } } },
5613
+ options
5614
+ );
5615
+ },
5616
+ /** Update a legal document */
5617
+ update: async (id, attributes, options) => {
5618
+ return rb.execute(
5619
+ patchLegalDocumentsById,
5620
+ {
5621
+ path: { id },
5622
+ body: { data: { type: "legal_document", id, attributes } }
5623
+ },
5624
+ options
5625
+ );
5626
+ },
5627
+ /** Delete a legal document */
4292
5628
  delete: async (id, options) => {
4293
5629
  return rb.executeDelete(
4294
- deletePaymentMethodsById,
5630
+ deleteLegalDocumentsById,
4295
5631
  { path: { id } },
4296
5632
  options
4297
5633
  );
4298
5634
  },
4299
- list: async (options) => {
5635
+ /** Get documents by locale */
5636
+ byLocale: async (locale, options) => {
4300
5637
  return rb.execute(
4301
- getPaymentMethods,
4302
- buildPageQuery(options?.page, options?.pageSize),
5638
+ getLegalDocumentsByLocale,
5639
+ { query: { locale } },
4303
5640
  options
4304
5641
  );
4305
5642
  },
4306
- listAll: async (options) => {
4307
- return paginateToArray(
4308
- rb.createPaginatedFetcher(
4309
- getPaymentMethods,
4310
- (page, pageSize) => ({
4311
- query: { page: { number: page, size: pageSize } }
4312
- }),
4313
- options
4314
- )
4315
- );
4316
- },
4317
- create: async (attributes, options) => {
5643
+ /** Get documents for the current application */
5644
+ forApplication: async (options) => {
4318
5645
  return rb.execute(
4319
- postPaymentMethods,
4320
- { body: { data: { type: "payment_method", attributes } } },
5646
+ getLegalDocumentsForApplication,
5647
+ {},
4321
5648
  options
4322
5649
  );
4323
5650
  },
4324
- update: async (id, attributes, options) => {
5651
+ /** Publish a legal document */
5652
+ publish: async (id, options) => {
4325
5653
  return rb.execute(
4326
- patchPaymentMethodsById,
5654
+ patchLegalDocumentsByIdPublish,
4327
5655
  {
4328
5656
  path: { id },
4329
- body: { data: { id, type: "payment_method", attributes } }
5657
+ body: { data: { type: "legal_document", id, attributes: {} } }
4330
5658
  },
4331
5659
  options
4332
5660
  );
4333
5661
  },
4334
- get: async (id, options) => {
5662
+ /** Unpublish a legal document */
5663
+ unpublish: async (id, options) => {
4335
5664
  return rb.execute(
4336
- getPaymentMethodsById,
4337
- { path: { id } },
5665
+ patchLegalDocumentsByIdUnpublish,
5666
+ {
5667
+ path: { id },
5668
+ body: { data: { type: "legal_document", id, attributes: {} } }
5669
+ },
4338
5670
  options
4339
5671
  );
4340
5672
  }
4341
- }
4342
- };
4343
- }
4344
-
4345
- // src/namespaces/catalog.ts
4346
- function createCatalogNamespace(_rb) {
4347
- return {
4348
- /**
4349
- * Products — product catalog management
4350
- */
4351
- products: {
4352
- /** List products with pagination */
4353
- list: async (_options) => {
4354
- throw new Error("Product list not yet implemented in SDK");
4355
- },
4356
- /** Get a product by ID */
4357
- get: async (_id, _options) => {
4358
- throw new Error("Product get not yet implemented in SDK");
4359
- },
4360
- /** Create a new product */
4361
- create: async (_attributes, _options) => {
4362
- throw new Error("Product create not yet implemented in SDK");
4363
- },
4364
- /** Update a product */
4365
- update: async (_id, _attributes, _options) => {
4366
- throw new Error("Product update not yet implemented in SDK");
4367
- }
4368
- },
4369
- /**
4370
- * Variants — product variants (SKUs)
4371
- */
4372
- variants: {
4373
- /** List variants for a product */
4374
- listByProduct: async (_productId, _options) => {
4375
- throw new Error("Variant list not yet implemented in SDK");
4376
- }
4377
5673
  },
4378
5674
  /**
4379
- * Taxonomyproduct categories and classification
5675
+ * Legal acceptances user acceptance records for legal documents
4380
5676
  */
4381
- taxonomies: {
4382
- /** List taxonomies */
4383
- list: async (_options) => {
4384
- throw new Error("Taxonomy list not yet implemented in SDK");
5677
+ legalAcceptances: {
5678
+ /** List legal acceptances */
5679
+ list: async (options) => {
5680
+ return rb.execute(
5681
+ getLegalAcceptances,
5682
+ buildPageQuery(options?.page, options?.pageSize),
5683
+ options
5684
+ );
4385
5685
  },
4386
- /** Get taxonomy nodes */
4387
- getNodes: async (_taxonomyId, _options) => {
4388
- throw new Error("Taxonomy nodes not yet implemented in SDK");
4389
- }
4390
- }
4391
- };
4392
- }
4393
-
4394
- // src/namespaces/channels.ts
4395
- function createChannelsNamespace(_rb) {
4396
- return {
4397
- /**
4398
- * Channel Config — configuration for messaging channels
4399
- */
4400
- configs: {
4401
- /** List channel configurations */
4402
- list: async (_options) => {
4403
- throw new Error("Channel configs list not yet implemented in SDK");
5686
+ /** Get a legal acceptance by ID */
5687
+ get: async (id, options) => {
5688
+ return rb.execute(
5689
+ getLegalAcceptancesById,
5690
+ { path: { id } },
5691
+ options
5692
+ );
4404
5693
  },
4405
- /** Get a channel config by ID */
4406
- get: async (_id, _options) => {
4407
- throw new Error("Channel config get not yet implemented in SDK");
5694
+ /** Get the latest acceptance record for the current user */
5695
+ latest: async (options) => {
5696
+ return rb.execute(
5697
+ getLegalAcceptancesLatest,
5698
+ {},
5699
+ options
5700
+ );
4408
5701
  }
4409
5702
  },
4410
5703
  /**
4411
- * Messagesinbound and outbound message handling
5704
+ * Scan results PII and security scan findings
4412
5705
  */
4413
- messages: {
4414
- /** Send a message through a channel */
4415
- send: async (_attributes, _options) => {
4416
- throw new Error("Message send not yet implemented in SDK");
5706
+ scanResults: {
5707
+ /** List scan results */
5708
+ list: async (options) => {
5709
+ return rb.execute(
5710
+ getScanResults,
5711
+ buildPageQuery(options?.page, options?.pageSize),
5712
+ options
5713
+ );
4417
5714
  },
4418
- /** List inbound messages */
4419
- listInbound: async (_options) => {
4420
- throw new Error("Inbound messages list not yet implemented in SDK");
5715
+ /** Get a scan result by ID */
5716
+ get: async (id, options) => {
5717
+ return rb.execute(
5718
+ getScanResultsById,
5719
+ { path: { id } },
5720
+ options
5721
+ );
4421
5722
  }
4422
5723
  }
4423
5724
  };
@@ -4613,10 +5914,21 @@ function createConnectorsNamespace(rb) {
4613
5914
  { path: { id } },
4614
5915
  options
4615
5916
  ),
4616
- /** Refresh an OAuth credential */
4617
- refresh: async (id, options) => rb.execute(
5917
+ /**
5918
+ * Refresh an OAuth credential.
5919
+ * @param workspaceId - The workspace that owns the credential.
5920
+ */
5921
+ refresh: async (id, workspaceId, options) => rb.execute(
4618
5922
  postConnectorsCredentialsByIdRefresh,
4619
- { path: { id }, body: { data: {} } },
5923
+ {
5924
+ path: { id },
5925
+ body: {
5926
+ data: {
5927
+ type: "credential",
5928
+ attributes: { workspace_id: workspaceId }
5929
+ }
5930
+ }
5931
+ },
4620
5932
  options
4621
5933
  )
4622
5934
  },
@@ -4646,8 +5958,10 @@ function createConnectorsNamespace(rb) {
4646
5958
  /**
4647
5959
  * Exchange OAuth authorization code for a credential.
4648
5960
  * Called from the redirect handler after the user authorizes in the provider.
5961
+ * Pass `redirectUri` if a custom redirect URI was used in `connect` — it must
5962
+ * match the URI sent during authorization.
4649
5963
  */
4650
- callback: async (connectorType, code, state, workspaceId, options) => rb.execute(
5964
+ callback: async (connectorType, code, state, workspaceId, redirectUri, options) => rb.execute(
4651
5965
  postConnectorsOauthCallback,
4652
5966
  {
4653
5967
  body: {
@@ -4657,7 +5971,8 @@ function createConnectorsNamespace(rb) {
4657
5971
  connector_type: connectorType,
4658
5972
  code,
4659
5973
  state,
4660
- workspace_id: workspaceId
5974
+ workspace_id: workspaceId,
5975
+ ...redirectUri !== void 0 && { redirect_uri: redirectUri }
4661
5976
  }
4662
5977
  }
4663
5978
  }
@@ -4772,8 +6087,12 @@ function createConnectorsNamespace(rb) {
4772
6087
  },
4773
6088
  options
4774
6089
  ),
4775
- /** Exchange OAuth authorization code for Fullscript credential */
4776
- callback: async (code, state, workspaceId, options) => rb.execute(
6090
+ /**
6091
+ * Exchange OAuth authorization code for Fullscript credential.
6092
+ * Pass `redirectUri` if a custom redirect URI was used in `connect` — it must
6093
+ * match the URI sent during authorization.
6094
+ */
6095
+ callback: async (code, state, workspaceId, redirectUri, options) => rb.execute(
4777
6096
  postConnectorsOauthCallback,
4778
6097
  {
4779
6098
  body: {
@@ -4783,7 +6102,8 @@ function createConnectorsNamespace(rb) {
4783
6102
  connector_type: "fullscript",
4784
6103
  code,
4785
6104
  state,
4786
- workspace_id: workspaceId
6105
+ workspace_id: workspaceId,
6106
+ ...redirectUri !== void 0 && { redirect_uri: redirectUri }
4787
6107
  }
4788
6108
  }
4789
6109
  }
@@ -5091,12 +6411,6 @@ function createCrmNamespace(rb) {
5091
6411
  options
5092
6412
  );
5093
6413
  },
5094
- /** Update an activity (not available - activities are immutable after creation) */
5095
- update: async (_id, _attributes, _options) => {
5096
- throw new Error(
5097
- "Activity update not available - activities are immutable"
5098
- );
5099
- },
5100
6414
  /** Delete an activity (soft delete) */
5101
6415
  delete: async (id, options) => {
5102
6416
  return rb.executeDelete(
@@ -5458,54 +6772,6 @@ function createCrmNamespace(rb) {
5458
6772
  };
5459
6773
  }
5460
6774
 
5461
- // src/namespaces/dataStore.ts
5462
- function createDataStoreNamespace(_rb) {
5463
- return {
5464
- /**
5465
- * Records — key-value storage with versioning
5466
- */
5467
- records: {
5468
- /** Get a value by namespace and key */
5469
- get: async (_namespace, _key, _options) => {
5470
- throw new Error("Record get not yet implemented in SDK");
5471
- },
5472
- /** Set a value (creates or updates) */
5473
- set: async (_namespace, _key, _value, _options) => {
5474
- throw new Error("Record set not yet implemented in SDK");
5475
- },
5476
- /** Delete a value */
5477
- delete: async (_namespace, _key, _options) => {
5478
- throw new Error("Record delete not yet implemented in SDK");
5479
- },
5480
- /** List all keys in a namespace */
5481
- listKeys: async (_namespace, _options) => {
5482
- throw new Error("List keys not yet implemented in SDK");
5483
- },
5484
- /** List all records in a namespace */
5485
- list: async (_namespace, _options) => {
5486
- throw new Error("List records not yet implemented in SDK");
5487
- }
5488
- },
5489
- /**
5490
- * Namespaces — namespace policies and access control
5491
- */
5492
- namespaces: {
5493
- /** Get namespace policy */
5494
- getPolicy: async (_namespace, _options) => {
5495
- throw new Error("Namespace policy get not yet implemented in SDK");
5496
- },
5497
- /** Create namespace policy */
5498
- createPolicy: async (_attributes, _options) => {
5499
- throw new Error("Namespace policy create not yet implemented in SDK");
5500
- },
5501
- /** Get namespace statistics */
5502
- getStats: async (_namespace, _options) => {
5503
- throw new Error("Namespace stats not yet implemented in SDK");
5504
- }
5505
- }
5506
- };
5507
- }
5508
-
5509
6775
  // src/namespaces/emailMarketing.ts
5510
6776
  function createEmailMarketingNamespace(rb) {
5511
6777
  return {
@@ -5729,40 +6995,131 @@ function createEmailMarketingNamespace(rb) {
5729
6995
  }
5730
6996
 
5731
6997
  // src/namespaces/support.ts
5732
- function createSupportNamespace(_rb) {
6998
+ function createSupportNamespace(rb) {
5733
6999
  return {
5734
7000
  /**
5735
7001
  * Tickets — customer support tickets
5736
7002
  */
5737
7003
  tickets: {
5738
- /** List tickets with pagination */
5739
- list: async (_options) => {
5740
- throw new Error("Tickets list not yet implemented in SDK");
7004
+ /** List tickets for a workspace */
7005
+ list: async (workspaceId, options) => {
7006
+ return rb.execute(
7007
+ getSupportTicketsWorkspaceByWorkspaceId,
7008
+ {
7009
+ path: { workspace_id: workspaceId },
7010
+ ...buildPageQuery(options?.page, options?.pageSize)
7011
+ },
7012
+ options
7013
+ );
5741
7014
  },
5742
7015
  /** Get a ticket by ID */
5743
- get: async (_id, _options) => {
5744
- throw new Error("Ticket get not yet implemented in SDK");
7016
+ get: async (id, options) => {
7017
+ return rb.execute(
7018
+ getSupportTicketsById,
7019
+ { path: { id } },
7020
+ options
7021
+ );
5745
7022
  },
5746
7023
  /** Create a new ticket */
5747
- create: async (_attributes, _options) => {
5748
- throw new Error("Ticket create not yet implemented in SDK");
7024
+ create: async (attributes, options) => {
7025
+ return rb.execute(
7026
+ postSupportTickets,
7027
+ {
7028
+ body: {
7029
+ data: { type: "support_ticket", attributes }
7030
+ }
7031
+ },
7032
+ options
7033
+ );
5749
7034
  },
5750
7035
  /** Update a ticket */
5751
- update: async (_id, _attributes, _options) => {
5752
- throw new Error("Ticket update not yet implemented in SDK");
7036
+ update: async (id, attributes, options) => {
7037
+ return rb.execute(
7038
+ patchSupportTicketsById,
7039
+ {
7040
+ path: { id },
7041
+ body: {
7042
+ data: { type: "support_ticket", id, attributes }
7043
+ }
7044
+ },
7045
+ options
7046
+ );
7047
+ },
7048
+ /** Delete a ticket */
7049
+ delete: async (id, options) => {
7050
+ return rb.executeDelete(
7051
+ deleteSupportTicketsById,
7052
+ { path: { id } },
7053
+ options
7054
+ );
5753
7055
  },
5754
7056
  /** Add a message to a ticket */
5755
- addMessage: async (_ticketId, _attributes, _options) => {
5756
- throw new Error("Ticket add message not yet implemented in SDK");
7057
+ addMessage: async (ticketId, attributes, options) => {
7058
+ return rb.execute(
7059
+ postSupportTicketMessages,
7060
+ {
7061
+ body: {
7062
+ data: {
7063
+ type: "support_ticket_message",
7064
+ attributes: { ...attributes, ticket_id: ticketId }
7065
+ }
7066
+ }
7067
+ },
7068
+ options
7069
+ );
7070
+ },
7071
+ /** List messages for a ticket */
7072
+ listMessages: async (ticketId, options) => {
7073
+ return rb.execute(
7074
+ getSupportTicketMessagesTicketByTicketId,
7075
+ { path: { ticket_id: ticketId } },
7076
+ options
7077
+ );
7078
+ },
7079
+ /** Rate a ticket (CSAT) */
7080
+ rate: async (attributes, options) => {
7081
+ return rb.execute(
7082
+ postSupportTicketRatings,
7083
+ {
7084
+ body: {
7085
+ data: { type: "support_ticket_rating", attributes }
7086
+ }
7087
+ },
7088
+ options
7089
+ );
5757
7090
  }
5758
7091
  },
5759
7092
  /**
5760
- * Queues — ticket routing containers
7093
+ * Tags — ticket labels for categorization
5761
7094
  */
5762
- queues: {
5763
- /** List queues */
5764
- list: async (_options) => {
5765
- throw new Error("Queues list not yet implemented in SDK");
7095
+ tags: {
7096
+ /** List tags for a workspace */
7097
+ list: async (workspaceId, options) => {
7098
+ return rb.execute(
7099
+ getSupportTagsWorkspaceByWorkspaceId,
7100
+ { path: { workspace_id: workspaceId } },
7101
+ options
7102
+ );
7103
+ },
7104
+ /** Create a tag */
7105
+ create: async (attributes, options) => {
7106
+ return rb.execute(
7107
+ postSupportTags,
7108
+ {
7109
+ body: {
7110
+ data: { type: "support_tag", attributes }
7111
+ }
7112
+ },
7113
+ options
7114
+ );
7115
+ },
7116
+ /** Delete a tag */
7117
+ delete: async (id, options) => {
7118
+ return rb.executeDelete(
7119
+ deleteSupportTagsById,
7120
+ { path: { id } },
7121
+ options
7122
+ );
5766
7123
  }
5767
7124
  }
5768
7125
  };
@@ -6963,6 +8320,35 @@ function createPlatformNamespace(rb) {
6963
8320
  options
6964
8321
  );
6965
8322
  }
8323
+ },
8324
+ configs: {
8325
+ /** List application configuration entries */
8326
+ list: async (options) => {
8327
+ return rb.execute(
8328
+ getConfigs,
8329
+ buildPageQuery(options?.page, options?.pageSize),
8330
+ options
8331
+ );
8332
+ },
8333
+ /** Create a configuration entry */
8334
+ create: async (attributes, options) => {
8335
+ return rb.execute(
8336
+ postConfigs,
8337
+ { body: { data: { type: "config", attributes } } },
8338
+ options
8339
+ );
8340
+ },
8341
+ /** Update a configuration entry by key */
8342
+ update: async (key, attributes, options) => {
8343
+ return rb.execute(
8344
+ patchConfigsByKey,
8345
+ {
8346
+ path: { key },
8347
+ body: { data: { type: "config", id: key, attributes } }
8348
+ },
8349
+ options
8350
+ );
8351
+ }
6966
8352
  }
6967
8353
  };
6968
8354
  }
@@ -8468,12 +9854,11 @@ var GptClient = class extends BaseClient {
8468
9854
  this.ai = createAiNamespace(rb);
8469
9855
  this.billing = createBillingNamespace(rb);
8470
9856
  this.catalog = createCatalogNamespace(rb);
8471
- this.channels = createChannelsNamespace(rb);
9857
+ this.compliance = createComplianceNamespace(rb);
8472
9858
  this.communication = createCommunicationNamespace(rb);
8473
9859
  this.connectors = createConnectorsNamespace(rb);
8474
9860
  this.crawler = createCrawlerNamespace(rb);
8475
9861
  this.crm = createCrmNamespace(rb);
8476
- this.dataStore = createDataStoreNamespace(rb);
8477
9862
  this.emailMarketing = createEmailMarketingNamespace(rb);
8478
9863
  this.support = createSupportNamespace(rb);
8479
9864
  this.extraction = createExtractionNamespace(rb);