@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.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.1";
1288
+ var SDK_VERSION = "0.3.3";
1289
1289
  var DEFAULT_API_VERSION = "2026-02-25";
1290
1290
 
1291
1291
  // src/base-client.ts
@@ -1653,6 +1653,11 @@ var getAgentVersionsById = (options) => (options.client ?? client).get({
1653
1653
  url: "/agent-versions/{id}",
1654
1654
  ...options
1655
1655
  });
1656
+ var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
1657
+ security: [{ scheme: "bearer", type: "http" }],
1658
+ url: "/llm_analytics/costs",
1659
+ ...options
1660
+ });
1656
1661
  var postCatalogTaxonomyNodes = (options) => (options.client ?? client).post({
1657
1662
  security: [{ scheme: "bearer", type: "http" }],
1658
1663
  url: "/catalog/taxonomy-nodes",
@@ -1691,6 +1696,11 @@ var getCrmCustomEntitiesWorkspaceByWorkspaceId = (options) => (options.client ??
1691
1696
  url: "/crm/custom-entities/workspace/{workspace_id}",
1692
1697
  ...options
1693
1698
  });
1699
+ var getBreachIncidentsById = (options) => (options.client ?? client).get({
1700
+ security: [{ scheme: "bearer", type: "http" }],
1701
+ url: "/breach-incidents/{id}",
1702
+ ...options
1703
+ });
1694
1704
  var getEmailMarketingSequencesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1695
1705
  security: [{ scheme: "bearer", type: "http" }],
1696
1706
  url: "/email-marketing/sequences/workspace/{workspace_id}",
@@ -1701,6 +1711,20 @@ var getCatalogTaxonomyNodesTaxonomyByTaxonomyId = (options) => (options.client ?
1701
1711
  url: "/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}",
1702
1712
  ...options
1703
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
+ });
1704
1728
  var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
1705
1729
  security: [{ scheme: "bearer", type: "http" }],
1706
1730
  url: "/api-keys/{id}/rotate",
@@ -1776,6 +1800,11 @@ var getCrmExportsById = (options) => (options.client ?? client).get({
1776
1800
  url: "/crm/exports/{id}",
1777
1801
  ...options
1778
1802
  });
1803
+ var getLlmAnalyticsWorkspace = (options) => (options.client ?? client).get({
1804
+ security: [{ scheme: "bearer", type: "http" }],
1805
+ url: "/llm_analytics/workspace",
1806
+ ...options
1807
+ });
1779
1808
  var deleteCrmDealsById = (options) => (options.client ?? client).delete({
1780
1809
  security: [{ scheme: "bearer", type: "http" }],
1781
1810
  url: "/crm/deals/{id}",
@@ -1931,6 +1960,25 @@ var patchCatalogTaxonomyNodesById = (options) => (options.client ?? client).patc
1931
1960
  ...options.headers
1932
1961
  }
1933
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
+ });
1934
1982
  var getCatalogTaxonomiesApplicationByApplicationId = (options) => (options.client ?? client).get({
1935
1983
  security: [{ scheme: "bearer", type: "http" }],
1936
1984
  url: "/catalog/taxonomies/application/{application_id}",
@@ -2018,6 +2066,20 @@ var postEmailMarketingCampaigns = (options) => (options.client ?? client).post({
2018
2066
  ...options.headers
2019
2067
  }
2020
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
+ });
2021
2083
  var deleteCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
2022
2084
  security: [{ scheme: "bearer", type: "http" }],
2023
2085
  url: "/crm/custom-entities/{id}",
@@ -2087,6 +2149,15 @@ var postCrmCompanies = (options) => (options.client ?? client).post({
2087
2149
  ...options.headers
2088
2150
  }
2089
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
+ });
2090
2161
  var getVoiceSessionsMine = (options) => (options.client ?? client).get({
2091
2162
  security: [{ scheme: "bearer", type: "http" }],
2092
2163
  url: "/voice/sessions/mine",
@@ -2280,6 +2351,11 @@ var getSearchSuggest = (options) => (options.client ?? client).get({
2280
2351
  url: "/search/suggest",
2281
2352
  ...options
2282
2353
  });
2354
+ var getAuditChainEntries = (options) => (options.client ?? client).get({
2355
+ security: [{ scheme: "bearer", type: "http" }],
2356
+ url: "/audit-chain-entries",
2357
+ ...options
2358
+ });
2283
2359
  var deleteCatalogTaxonomiesById = (options) => (options.client ?? client).delete({
2284
2360
  security: [{ scheme: "bearer", type: "http" }],
2285
2361
  url: "/catalog/taxonomies/{id}",
@@ -2299,6 +2375,11 @@ var patchCatalogTaxonomiesById = (options) => (options.client ?? client).patch({
2299
2375
  ...options.headers
2300
2376
  }
2301
2377
  });
2378
+ var getLegalAcceptancesById = (options) => (options.client ?? client).get({
2379
+ security: [{ scheme: "bearer", type: "http" }],
2380
+ url: "/legal-acceptances/{id}",
2381
+ ...options
2382
+ });
2302
2383
  var deleteCrmRelationshipTypesById = (options) => (options.client ?? client).delete({
2303
2384
  security: [{ scheme: "bearer", type: "http" }],
2304
2385
  url: "/crm/relationship-types/{id}",
@@ -2556,6 +2637,11 @@ var patchVoiceSessionsByIdStop = (options) => (options.client ?? client).patch({
2556
2637
  ...options.headers
2557
2638
  }
2558
2639
  });
2640
+ var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
2641
+ security: [{ scheme: "bearer", type: "http" }],
2642
+ url: "/llm_analytics/summary",
2643
+ ...options
2644
+ });
2559
2645
  var getSchedulingParticipants = (options) => (options.client ?? client).get({
2560
2646
  security: [{ scheme: "bearer", type: "http" }],
2561
2647
  url: "/scheduling/participants",
@@ -2599,6 +2685,11 @@ var getCrawlerJobsById = (options) => (options.client ?? client).get({
2599
2685
  url: "/crawler/jobs/{id}",
2600
2686
  ...options
2601
2687
  });
2688
+ var getConsentRecordsById = (options) => (options.client ?? client).get({
2689
+ security: [{ scheme: "bearer", type: "http" }],
2690
+ url: "/consent-records/{id}",
2691
+ ...options
2692
+ });
2602
2693
  var getCrmExportsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2603
2694
  security: [{ scheme: "bearer", type: "http" }],
2604
2695
  url: "/crm/exports/workspace/{workspace_id}",
@@ -2609,6 +2700,20 @@ var getTrainingSessionsAgentsByAgentIdSessions = (options) => (options.client ??
2609
2700
  url: "/training-sessions/agents/{agent_id}/sessions",
2610
2701
  ...options
2611
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
+ });
2612
2717
  var getSearch = (options) => (options.client ?? client).get({
2613
2718
  security: [{ scheme: "bearer", type: "http" }],
2614
2719
  url: "/search",
@@ -2708,6 +2813,11 @@ var patchCrmPipelineStagesById = (options) => (options.client ?? client).patch({
2708
2813
  ...options.headers
2709
2814
  }
2710
2815
  });
2816
+ var getLegalAcceptances = (options) => (options.client ?? client).get({
2817
+ security: [{ scheme: "bearer", type: "http" }],
2818
+ url: "/legal-acceptances",
2819
+ ...options
2820
+ });
2711
2821
  var getCrmPipelinesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2712
2822
  security: [{ scheme: "bearer", type: "http" }],
2713
2823
  url: "/crm/pipelines/workspace/{workspace_id}",
@@ -2750,6 +2860,15 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
2750
2860
  ...options.headers
2751
2861
  }
2752
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
+ });
2753
2872
  var getSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2754
2873
  security: [{ scheme: "bearer", type: "http" }],
2755
2874
  url: "/support/tickets/workspace/{workspace_id}",
@@ -2788,6 +2907,11 @@ var postWatcherClaims = (options) => (options.client ?? client).post({
2788
2907
  ...options.headers
2789
2908
  }
2790
2909
  });
2910
+ var getLlmAnalytics = (options) => (options.client ?? client).get({
2911
+ security: [{ scheme: "bearer", type: "http" }],
2912
+ url: "/llm_analytics",
2913
+ ...options
2914
+ });
2791
2915
  var getCrawlerJobs = (options) => (options.client ?? client).get({
2792
2916
  security: [{ scheme: "bearer", type: "http" }],
2793
2917
  url: "/crawler/jobs",
@@ -2839,6 +2963,16 @@ var patchVoiceSessionsByIdFinalize = (options) => (options.client ?? client).pat
2839
2963
  ...options.headers
2840
2964
  }
2841
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
+ });
2842
2976
  var postThreadsByIdExport = (options) => (options.client ?? client).post({
2843
2977
  security: [{ scheme: "bearer", type: "http" }],
2844
2978
  url: "/threads/{id}/export",
@@ -2848,6 +2982,34 @@ var postThreadsByIdExport = (options) => (options.client ?? client).post({
2848
2982
  ...options.headers
2849
2983
  }
2850
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
+ });
2851
3013
  var postAgentsByIdTeach = (options) => (options.client ?? client).post({
2852
3014
  security: [{ scheme: "bearer", type: "http" }],
2853
3015
  url: "/agents/{id}/teach",
@@ -2884,6 +3046,11 @@ var postExtractionSchemaDiscoveries = (options) => (options.client ?? client).po
2884
3046
  ...options.headers
2885
3047
  }
2886
3048
  });
3049
+ var getDataSubjectRequestsById = (options) => (options.client ?? client).get({
3050
+ security: [{ scheme: "bearer", type: "http" }],
3051
+ url: "/data-subject-requests/{id}",
3052
+ ...options
3053
+ });
2887
3054
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
2888
3055
  security: [{ scheme: "bearer", type: "http" }],
2889
3056
  url: "/users/register-isv",
@@ -2996,6 +3163,11 @@ var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get
2996
3163
  url: "/extraction/documents/{id}/view",
2997
3164
  ...options
2998
3165
  });
3166
+ var getAuditLogs = (options) => (options.client ?? client).get({
3167
+ security: [{ scheme: "bearer", type: "http" }],
3168
+ url: "/audit-logs",
3169
+ ...options
3170
+ });
2999
3171
  var getBuckets = (options) => (options.client ?? client).get({
3000
3172
  security: [{ scheme: "bearer", type: "http" }],
3001
3173
  url: "/buckets",
@@ -3117,6 +3289,11 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
3117
3289
  ...options.headers
3118
3290
  }
3119
3291
  });
3292
+ var getBreachNotificationsById = (options) => (options.client ?? client).get({
3293
+ security: [{ scheme: "bearer", type: "http" }],
3294
+ url: "/breach-notifications/{id}",
3295
+ ...options
3296
+ });
3120
3297
  var postTenantsByIdSchedulePurge = (options) => (options.client ?? client).post({
3121
3298
  security: [{ scheme: "bearer", type: "http" }],
3122
3299
  url: "/tenants/{id}/schedule-purge",
@@ -3178,6 +3355,11 @@ var patchAgentsById = (options) => (options.client ?? client).patch({
3178
3355
  ...options.headers
3179
3356
  }
3180
3357
  });
3358
+ var getAuditChainEntriesById = (options) => (options.client ?? client).get({
3359
+ security: [{ scheme: "bearer", type: "http" }],
3360
+ url: "/audit-chain-entries/{id}",
3361
+ ...options
3362
+ });
3181
3363
  var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
3182
3364
  security: [{ scheme: "bearer", type: "http" }],
3183
3365
  url: "/threads/{id}/unarchive",
@@ -3210,6 +3392,30 @@ var postAiSearch = (options) => (options.client ?? client).post({
3210
3392
  ...options.headers
3211
3393
  }
3212
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
+ });
3213
3419
  var getWorkspacesShared = (options) => (options.client ?? client).get({
3214
3420
  security: [{ scheme: "bearer", type: "http" }],
3215
3421
  url: "/workspaces/shared",
@@ -3275,6 +3481,11 @@ var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
3275
3481
  ...options.headers
3276
3482
  }
3277
3483
  });
3484
+ var getConsentRecordsActive = (options) => (options.client ?? client).get({
3485
+ security: [{ scheme: "bearer", type: "http" }],
3486
+ url: "/consent-records/active",
3487
+ ...options
3488
+ });
3278
3489
  var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
3279
3490
  security: [{ scheme: "bearer", type: "http" }],
3280
3491
  url: "/search/saved/{id}/run",
@@ -3340,6 +3551,15 @@ var patchCatalogProductVariantsById = (options) => (options.client ?? client).pa
3340
3551
  ...options.headers
3341
3552
  }
3342
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
+ });
3343
3563
  var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
3344
3564
  security: [{ scheme: "bearer", type: "http" }],
3345
3565
  url: "/webhook-deliveries/bulk-retry",
@@ -3349,6 +3569,11 @@ var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).pos
3349
3569
  ...options.headers
3350
3570
  }
3351
3571
  });
3572
+ var getLegalDocumentsByLocale = (options) => (options.client ?? client).get({
3573
+ security: [{ scheme: "bearer", type: "http" }],
3574
+ url: "/legal-documents/by-locale",
3575
+ ...options
3576
+ });
3352
3577
  var getWatcherClaimsById = (options) => (options.client ?? client).get({
3353
3578
  security: [{ scheme: "bearer", type: "http" }],
3354
3579
  url: "/watcher/claims/{id}",
@@ -3381,6 +3606,15 @@ var postAiEmbed = (options) => (options.client ?? client).post({
3381
3606
  ...options.headers
3382
3607
  }
3383
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
+ });
3384
3618
  var getSchedulingBookings = (options) => (options.client ?? client).get({
3385
3619
  security: [{ scheme: "bearer", type: "http" }],
3386
3620
  url: "/scheduling/bookings",
@@ -3423,6 +3657,11 @@ var postTenantsIsv = (options) => (options.client ?? client).post({
3423
3657
  ...options.headers
3424
3658
  }
3425
3659
  });
3660
+ var getScanResultsById = (options) => (options.client ?? client).get({
3661
+ security: [{ scheme: "bearer", type: "http" }],
3662
+ url: "/scan-results/{id}",
3663
+ ...options
3664
+ });
3426
3665
  var patchExtractionResultsByIdRegenerate = (options) => (options.client ?? client).patch({
3427
3666
  security: [{ scheme: "bearer", type: "http" }],
3428
3667
  url: "/extraction/results/{id}/regenerate",
@@ -3681,6 +3920,20 @@ var patchExtractionResultsByIdSaveCorrections = (options) => (options.client ??
3681
3920
  ...options.headers
3682
3921
  }
3683
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
+ });
3684
3937
  var postUsersAuthResendConfirmation = (options) => (options.client ?? client).post({
3685
3938
  security: [{ scheme: "bearer", type: "http" }],
3686
3939
  url: "/users/auth/resend-confirmation",
@@ -3768,6 +4021,34 @@ var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
3768
4021
  ...options.headers
3769
4022
  }
3770
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
+ });
3771
4052
  var getExtractionResults = (options) => (options.client ?? client).get({
3772
4053
  security: [{ scheme: "bearer", type: "http" }],
3773
4054
  url: "/extraction/results",
@@ -3782,11 +4063,30 @@ var postAgentsByIdClone = (options) => (options.client ?? client).post({
3782
4063
  ...options.headers
3783
4064
  }
3784
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
+ });
3785
4080
  var getInvitationsMe = (options) => (options.client ?? client).get({
3786
4081
  security: [{ scheme: "bearer", type: "http" }],
3787
4082
  url: "/invitations/me",
3788
4083
  ...options
3789
4084
  });
4085
+ var getLegalDocumentsForApplication = (options) => (options.client ?? client).get({
4086
+ security: [{ scheme: "bearer", type: "http" }],
4087
+ url: "/legal-documents/for-application",
4088
+ ...options
4089
+ });
3790
4090
  var getApiKeys = (options) => (options.client ?? client).get({
3791
4091
  security: [{ scheme: "bearer", type: "http" }],
3792
4092
  url: "/api-keys",
@@ -3862,11 +4162,39 @@ var postCrmDeals = (options) => (options.client ?? client).post({
3862
4162
  ...options.headers
3863
4163
  }
3864
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
+ });
3865
4179
  var getCrmActivitiesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
3866
4180
  security: [{ scheme: "bearer", type: "http" }],
3867
4181
  url: "/crm/activities/workspace/{workspace_id}",
3868
4182
  ...options
3869
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
+ });
3870
4198
  var getAgents = (options) => (options.client ?? client).get({
3871
4199
  security: [{ scheme: "bearer", type: "http" }],
3872
4200
  url: "/agents",
@@ -3895,6 +4223,39 @@ var postSupportTicketRatings = (options) => (options.client ?? client).post({
3895
4223
  ...options.headers
3896
4224
  }
3897
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
+ });
3898
4259
  var getConnectors = (options) => (options.client ?? client).get({
3899
4260
  security: [{ scheme: "bearer", type: "http" }],
3900
4261
  url: "/connectors",
@@ -4408,15 +4769,89 @@ function createAiNamespace(rb) {
4408
4769
  options
4409
4770
  );
4410
4771
  }
4411
- }
4412
- };
4413
- }
4414
-
4415
- // src/namespaces/billing.ts
4416
- function createBillingNamespace(rb) {
4417
- return {
4418
- wallet: {
4419
- /** Get the current workspace wallet balance and details */
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 }
4833
+ }
4834
+ },
4835
+ options
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
+ );
4845
+ }
4846
+ }
4847
+ };
4848
+ }
4849
+
4850
+ // src/namespaces/billing.ts
4851
+ function createBillingNamespace(rb) {
4852
+ return {
4853
+ wallet: {
4854
+ /** Get the current workspace wallet balance and details */
4420
4855
  get: async (options) => {
4421
4856
  return rb.execute(getWallet, {}, options);
4422
4857
  }
@@ -4777,6 +5212,518 @@ function createCatalogNamespace(rb) {
4777
5212
  };
4778
5213
  }
4779
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 */
5593
+ list: async (options) => {
5594
+ return rb.execute(
5595
+ getLegalDocuments,
5596
+ buildPageQuery(options?.page, options?.pageSize),
5597
+ options
5598
+ );
5599
+ },
5600
+ /** Get a legal document by ID */
5601
+ get: async (id, options) => {
5602
+ return rb.execute(
5603
+ getLegalDocumentsById,
5604
+ { path: { id } },
5605
+ options
5606
+ );
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 */
5628
+ delete: async (id, options) => {
5629
+ return rb.executeDelete(
5630
+ deleteLegalDocumentsById,
5631
+ { path: { id } },
5632
+ options
5633
+ );
5634
+ },
5635
+ /** Get documents by locale */
5636
+ byLocale: async (locale, options) => {
5637
+ return rb.execute(
5638
+ getLegalDocumentsByLocale,
5639
+ { query: { locale } },
5640
+ options
5641
+ );
5642
+ },
5643
+ /** Get documents for the current application */
5644
+ forApplication: async (options) => {
5645
+ return rb.execute(
5646
+ getLegalDocumentsForApplication,
5647
+ {},
5648
+ options
5649
+ );
5650
+ },
5651
+ /** Publish a legal document */
5652
+ publish: async (id, options) => {
5653
+ return rb.execute(
5654
+ patchLegalDocumentsByIdPublish,
5655
+ {
5656
+ path: { id },
5657
+ body: { data: { type: "legal_document", id, attributes: {} } }
5658
+ },
5659
+ options
5660
+ );
5661
+ },
5662
+ /** Unpublish a legal document */
5663
+ unpublish: async (id, options) => {
5664
+ return rb.execute(
5665
+ patchLegalDocumentsByIdUnpublish,
5666
+ {
5667
+ path: { id },
5668
+ body: { data: { type: "legal_document", id, attributes: {} } }
5669
+ },
5670
+ options
5671
+ );
5672
+ }
5673
+ },
5674
+ /**
5675
+ * Legal acceptances — user acceptance records for legal documents
5676
+ */
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
+ );
5685
+ },
5686
+ /** Get a legal acceptance by ID */
5687
+ get: async (id, options) => {
5688
+ return rb.execute(
5689
+ getLegalAcceptancesById,
5690
+ { path: { id } },
5691
+ options
5692
+ );
5693
+ },
5694
+ /** Get the latest acceptance record for the current user */
5695
+ latest: async (options) => {
5696
+ return rb.execute(
5697
+ getLegalAcceptancesLatest,
5698
+ {},
5699
+ options
5700
+ );
5701
+ }
5702
+ },
5703
+ /**
5704
+ * Scan results — PII and security scan findings
5705
+ */
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
+ );
5714
+ },
5715
+ /** Get a scan result by ID */
5716
+ get: async (id, options) => {
5717
+ return rb.execute(
5718
+ getScanResultsById,
5719
+ { path: { id } },
5720
+ options
5721
+ );
5722
+ }
5723
+ }
5724
+ };
5725
+ }
5726
+
4780
5727
  // src/namespaces/communication.ts
4781
5728
  function createCommunicationNamespace(rb) {
4782
5729
  return {
@@ -4967,10 +5914,21 @@ function createConnectorsNamespace(rb) {
4967
5914
  { path: { id } },
4968
5915
  options
4969
5916
  ),
4970
- /** Refresh an OAuth credential */
4971
- 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(
4972
5922
  postConnectorsCredentialsByIdRefresh,
4973
- { path: { id }, body: { data: {} } },
5923
+ {
5924
+ path: { id },
5925
+ body: {
5926
+ data: {
5927
+ type: "credential",
5928
+ attributes: { workspace_id: workspaceId }
5929
+ }
5930
+ }
5931
+ },
4974
5932
  options
4975
5933
  )
4976
5934
  },
@@ -5000,8 +5958,10 @@ function createConnectorsNamespace(rb) {
5000
5958
  /**
5001
5959
  * Exchange OAuth authorization code for a credential.
5002
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.
5003
5963
  */
5004
- callback: async (connectorType, code, state, workspaceId, options) => rb.execute(
5964
+ callback: async (connectorType, code, state, workspaceId, redirectUri, options) => rb.execute(
5005
5965
  postConnectorsOauthCallback,
5006
5966
  {
5007
5967
  body: {
@@ -5011,7 +5971,8 @@ function createConnectorsNamespace(rb) {
5011
5971
  connector_type: connectorType,
5012
5972
  code,
5013
5973
  state,
5014
- workspace_id: workspaceId
5974
+ workspace_id: workspaceId,
5975
+ ...redirectUri !== void 0 && { redirect_uri: redirectUri }
5015
5976
  }
5016
5977
  }
5017
5978
  }
@@ -5126,8 +6087,12 @@ function createConnectorsNamespace(rb) {
5126
6087
  },
5127
6088
  options
5128
6089
  ),
5129
- /** Exchange OAuth authorization code for Fullscript credential */
5130
- 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(
5131
6096
  postConnectorsOauthCallback,
5132
6097
  {
5133
6098
  body: {
@@ -5137,7 +6102,8 @@ function createConnectorsNamespace(rb) {
5137
6102
  connector_type: "fullscript",
5138
6103
  code,
5139
6104
  state,
5140
- workspace_id: workspaceId
6105
+ workspace_id: workspaceId,
6106
+ ...redirectUri !== void 0 && { redirect_uri: redirectUri }
5141
6107
  }
5142
6108
  }
5143
6109
  }
@@ -7354,6 +8320,35 @@ function createPlatformNamespace(rb) {
7354
8320
  options
7355
8321
  );
7356
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
+ }
7357
8352
  }
7358
8353
  };
7359
8354
  }
@@ -8859,6 +9854,7 @@ var GptClient = class extends BaseClient {
8859
9854
  this.ai = createAiNamespace(rb);
8860
9855
  this.billing = createBillingNamespace(rb);
8861
9856
  this.catalog = createCatalogNamespace(rb);
9857
+ this.compliance = createComplianceNamespace(rb);
8862
9858
  this.communication = createCommunicationNamespace(rb);
8863
9859
  this.connectors = createConnectorsNamespace(rb);
8864
9860
  this.crawler = createCrawlerNamespace(rb);