@gpt-platform/admin 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +10113 -2808
- package/dist/index.d.ts +10113 -2808
- package/dist/index.js +1524 -58
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1524 -58
- package/dist/index.mjs.map +1 -1
- package/llms.txt +111 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -853,7 +853,7 @@ var createClient = (config = {}) => {
|
|
|
853
853
|
};
|
|
854
854
|
|
|
855
855
|
// src/version.ts
|
|
856
|
-
var SDK_VERSION = "0.5.
|
|
856
|
+
var SDK_VERSION = "0.5.2";
|
|
857
857
|
var DEFAULT_API_VERSION = "2026-02-27";
|
|
858
858
|
|
|
859
859
|
// src/base-client.ts
|
|
@@ -1451,6 +1451,34 @@ var patchAdminSchedulingParticipantsById = (options) => (options.client ?? clien
|
|
|
1451
1451
|
...options.headers
|
|
1452
1452
|
}
|
|
1453
1453
|
});
|
|
1454
|
+
var patchAdminSupportTicketsByIdClose = (options) => (options.client ?? client).patch({
|
|
1455
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1456
|
+
url: "/admin/support/tickets/{id}/close",
|
|
1457
|
+
...options,
|
|
1458
|
+
headers: {
|
|
1459
|
+
"Content-Type": "application/vnd.api+json",
|
|
1460
|
+
...options.headers
|
|
1461
|
+
}
|
|
1462
|
+
});
|
|
1463
|
+
var deleteAdminSupportTicketsById = (options) => (options.client ?? client).delete({
|
|
1464
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1465
|
+
url: "/admin/support/tickets/{id}",
|
|
1466
|
+
...options
|
|
1467
|
+
});
|
|
1468
|
+
var getAdminSupportTicketsById = (options) => (options.client ?? client).get({
|
|
1469
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1470
|
+
url: "/admin/support/tickets/{id}",
|
|
1471
|
+
...options
|
|
1472
|
+
});
|
|
1473
|
+
var patchAdminSupportTicketsById = (options) => (options.client ?? client).patch({
|
|
1474
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1475
|
+
url: "/admin/support/tickets/{id}",
|
|
1476
|
+
...options,
|
|
1477
|
+
headers: {
|
|
1478
|
+
"Content-Type": "application/vnd.api+json",
|
|
1479
|
+
...options.headers
|
|
1480
|
+
}
|
|
1481
|
+
});
|
|
1454
1482
|
var deleteAdminFeatureDefinitionsById = (options) => (options.client ?? client).delete({
|
|
1455
1483
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1456
1484
|
url: "/admin/feature-definitions/{id}",
|
|
@@ -1584,6 +1612,15 @@ var getAdminExtractionResultsDocumentByDocumentIdHistory = (options) => (options
|
|
|
1584
1612
|
url: "/admin/extraction/results/document/{document_id}/history",
|
|
1585
1613
|
...options
|
|
1586
1614
|
});
|
|
1615
|
+
var postAdminSupportChannelCaptureConfigs = (options) => (options.client ?? client).post({
|
|
1616
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1617
|
+
url: "/admin/support/channel-capture-configs",
|
|
1618
|
+
...options,
|
|
1619
|
+
headers: {
|
|
1620
|
+
"Content-Type": "application/vnd.api+json",
|
|
1621
|
+
...options.headers
|
|
1622
|
+
}
|
|
1623
|
+
});
|
|
1587
1624
|
var patchAdminStorageFilesByIdSoftDelete = (options) => (options.client ?? client).patch({
|
|
1588
1625
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1589
1626
|
url: "/admin/storage-files/{id}/soft-delete",
|
|
@@ -1616,6 +1653,11 @@ var postAdminSchedulingEvents = (options) => (options.client ?? client).post({
|
|
|
1616
1653
|
...options.headers
|
|
1617
1654
|
}
|
|
1618
1655
|
});
|
|
1656
|
+
var getAdminLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
1657
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1658
|
+
url: "/admin/llm-analytics/summary",
|
|
1659
|
+
...options
|
|
1660
|
+
});
|
|
1619
1661
|
var getAdminExtractionDocumentsWorkspaceByWorkspaceIdTrained = (options) => (options.client ?? client).get({
|
|
1620
1662
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1621
1663
|
url: "/admin/extraction/documents/workspace/{workspace_id}/trained",
|
|
@@ -1747,6 +1789,15 @@ var patchAdminApiKeysByIdSetBudget = (options) => (options.client ?? client).pat
|
|
|
1747
1789
|
...options.headers
|
|
1748
1790
|
}
|
|
1749
1791
|
});
|
|
1792
|
+
var postAdminSupportQueues = (options) => (options.client ?? client).post({
|
|
1793
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1794
|
+
url: "/admin/support/queues",
|
|
1795
|
+
...options,
|
|
1796
|
+
headers: {
|
|
1797
|
+
"Content-Type": "application/vnd.api+json",
|
|
1798
|
+
...options.headers
|
|
1799
|
+
}
|
|
1800
|
+
});
|
|
1750
1801
|
var deleteAdminCrawlerSchedulesById = (options) => (options.client ?? client).delete({
|
|
1751
1802
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1752
1803
|
url: "/admin/crawler/schedules/{id}",
|
|
@@ -1800,6 +1851,20 @@ var getAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = (options) =>
|
|
|
1800
1851
|
url: "/admin/extraction/documents/workspace/{workspace_id}/review-queue",
|
|
1801
1852
|
...options
|
|
1802
1853
|
});
|
|
1854
|
+
var getAdminSupportTagsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1855
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1856
|
+
url: "/admin/support/tags/workspace/{workspace_id}",
|
|
1857
|
+
...options
|
|
1858
|
+
});
|
|
1859
|
+
var postAdminSupportTicketAttachments = (options) => (options.client ?? client).post({
|
|
1860
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1861
|
+
url: "/admin/support/ticket-attachments",
|
|
1862
|
+
...options,
|
|
1863
|
+
headers: {
|
|
1864
|
+
"Content-Type": "application/vnd.api+json",
|
|
1865
|
+
...options.headers
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1803
1868
|
var postAdminAgentsCloneForWorkspace = (options) => (options.client ?? client).post({
|
|
1804
1869
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1805
1870
|
url: "/admin/agents/clone-for-workspace",
|
|
@@ -1889,6 +1954,11 @@ var patchAdminStorageRecommendationsByIdDismiss = (options) => (options.client ?
|
|
|
1889
1954
|
...options.headers
|
|
1890
1955
|
}
|
|
1891
1956
|
});
|
|
1957
|
+
var getAdminSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1958
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1959
|
+
url: "/admin/support/tickets/workspace/{workspace_id}",
|
|
1960
|
+
...options
|
|
1961
|
+
});
|
|
1892
1962
|
var postAdminAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
1893
1963
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1894
1964
|
url: "/admin/agents/{id}/export",
|
|
@@ -1940,6 +2010,20 @@ var patchAdminCrawlerSchedulesByIdTrigger = (options) => (options.client ?? clie
|
|
|
1940
2010
|
...options.headers
|
|
1941
2011
|
}
|
|
1942
2012
|
});
|
|
2013
|
+
var getAdminLlmAnalytics = (options) => (options.client ?? client).get({
|
|
2014
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2015
|
+
url: "/admin/llm-analytics",
|
|
2016
|
+
...options
|
|
2017
|
+
});
|
|
2018
|
+
var postAdminLlmAnalytics = (options) => (options.client ?? client).post({
|
|
2019
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2020
|
+
url: "/admin/llm-analytics",
|
|
2021
|
+
...options,
|
|
2022
|
+
headers: {
|
|
2023
|
+
"Content-Type": "application/vnd.api+json",
|
|
2024
|
+
...options.headers
|
|
2025
|
+
}
|
|
2026
|
+
});
|
|
1943
2027
|
var getAdminSchedulingEventsByParticipant = (options) => (options.client ?? client).get({
|
|
1944
2028
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1945
2029
|
url: "/admin/scheduling/events/by_participant",
|
|
@@ -1993,6 +2077,11 @@ var getAdminEmailMarketingCampaignsById = (options) => (options.client ?? client
|
|
|
1993
2077
|
url: "/admin/email-marketing/campaigns/{id}",
|
|
1994
2078
|
...options
|
|
1995
2079
|
});
|
|
2080
|
+
var getAdminSupportSlaPoliciesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
2081
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2082
|
+
url: "/admin/support/sla-policies/application/{application_id}",
|
|
2083
|
+
...options
|
|
2084
|
+
});
|
|
1996
2085
|
var getAdminWebhookDeliveriesById = (options) => (options.client ?? client).get({
|
|
1997
2086
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1998
2087
|
url: "/admin/webhook-deliveries/{id}",
|
|
@@ -2134,6 +2223,11 @@ var postAdminSchedulingParticipants = (options) => (options.client ?? client).po
|
|
|
2134
2223
|
...options.headers
|
|
2135
2224
|
}
|
|
2136
2225
|
});
|
|
2226
|
+
var deleteAdminSupportTagsById = (options) => (options.client ?? client).delete({
|
|
2227
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2228
|
+
url: "/admin/support/tags/{id}",
|
|
2229
|
+
...options
|
|
2230
|
+
});
|
|
2137
2231
|
var deleteAdminTrainingExamplesById = (options) => (options.client ?? client).delete({
|
|
2138
2232
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2139
2233
|
url: "/admin/training-examples/{id}",
|
|
@@ -2228,6 +2322,15 @@ var patchAdminCrmContactsById = (options) => (options.client ?? client).patch({
|
|
|
2228
2322
|
...options.headers
|
|
2229
2323
|
}
|
|
2230
2324
|
});
|
|
2325
|
+
var postAdminSupportTags = (options) => (options.client ?? client).post({
|
|
2326
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2327
|
+
url: "/admin/support/tags",
|
|
2328
|
+
...options,
|
|
2329
|
+
headers: {
|
|
2330
|
+
"Content-Type": "application/vnd.api+json",
|
|
2331
|
+
...options.headers
|
|
2332
|
+
}
|
|
2333
|
+
});
|
|
2231
2334
|
var deleteAdminCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
|
|
2232
2335
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2233
2336
|
url: "/admin/crm/custom-entities/{id}",
|
|
@@ -2256,6 +2359,11 @@ var postAdminTrainingExamplesBulkDelete = (options) => (options.client ?? client
|
|
|
2256
2359
|
...options.headers
|
|
2257
2360
|
}
|
|
2258
2361
|
});
|
|
2362
|
+
var getAdminLlmAnalyticsPlatform = (options) => (options.client ?? client).get({
|
|
2363
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2364
|
+
url: "/admin/llm-analytics/platform",
|
|
2365
|
+
...options
|
|
2366
|
+
});
|
|
2259
2367
|
var deleteAdminExtractionWorkflowsById = (options) => (options.client ?? client).delete({
|
|
2260
2368
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2261
2369
|
url: "/admin/extraction-workflows/{id}",
|
|
@@ -2299,6 +2407,15 @@ var getAdminVoiceTranscriptionResultsSessionBySessionId = (options) => (options.
|
|
|
2299
2407
|
url: "/admin/voice/transcription-results/session/{session_id}",
|
|
2300
2408
|
...options
|
|
2301
2409
|
});
|
|
2410
|
+
var patchAdminSupportTicketsByIdReopen = (options) => (options.client ?? client).patch({
|
|
2411
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2412
|
+
url: "/admin/support/tickets/{id}/reopen",
|
|
2413
|
+
...options,
|
|
2414
|
+
headers: {
|
|
2415
|
+
"Content-Type": "application/vnd.api+json",
|
|
2416
|
+
...options.headers
|
|
2417
|
+
}
|
|
2418
|
+
});
|
|
2302
2419
|
var getAdminIsvCrmChannelCaptureConfigById = (options) => (options.client ?? client).get({
|
|
2303
2420
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2304
2421
|
url: "/admin/isv/crm/channel-capture-config/{id}",
|
|
@@ -2374,6 +2491,11 @@ var getAdminCrmCustomEntitiesByEntityIdVersionsById = (options) => (options.clie
|
|
|
2374
2491
|
url: "/admin/crm/custom-entities/{entity_id}/versions/{id}",
|
|
2375
2492
|
...options
|
|
2376
2493
|
});
|
|
2494
|
+
var getAdminSupportQueueMembersApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
2495
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2496
|
+
url: "/admin/support/queue-members/application/{application_id}",
|
|
2497
|
+
...options
|
|
2498
|
+
});
|
|
2377
2499
|
var getAdminConnectorsOauthAppConfigs = (options) => (options.client ?? client).get({
|
|
2378
2500
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2379
2501
|
url: "/admin/connectors/oauth-app-configs",
|
|
@@ -2491,6 +2613,20 @@ var patchAdminWebhookConfigsById = (options) => (options.client ?? client).patch
|
|
|
2491
2613
|
...options.headers
|
|
2492
2614
|
}
|
|
2493
2615
|
});
|
|
2616
|
+
var deleteAdminSupportSyncConfigsById = (options) => (options.client ?? client).delete({
|
|
2617
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2618
|
+
url: "/admin/support/sync-configs/{id}",
|
|
2619
|
+
...options
|
|
2620
|
+
});
|
|
2621
|
+
var patchAdminSupportSyncConfigsById = (options) => (options.client ?? client).patch({
|
|
2622
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2623
|
+
url: "/admin/support/sync-configs/{id}",
|
|
2624
|
+
...options,
|
|
2625
|
+
headers: {
|
|
2626
|
+
"Content-Type": "application/vnd.api+json",
|
|
2627
|
+
...options.headers
|
|
2628
|
+
}
|
|
2629
|
+
});
|
|
2494
2630
|
var getAdminSchedulingReminders = (options) => (options.client ?? client).get({
|
|
2495
2631
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2496
2632
|
url: "/admin/scheduling/reminders",
|
|
@@ -2798,6 +2934,29 @@ var getAdminExtractionShadowComparisonsAnalysis = (options) => (options.client ?
|
|
|
2798
2934
|
url: "/admin/extraction/shadow-comparisons/analysis",
|
|
2799
2935
|
...options
|
|
2800
2936
|
});
|
|
2937
|
+
var patchAdminSupportTicketsByIdAssign = (options) => (options.client ?? client).patch({
|
|
2938
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2939
|
+
url: "/admin/support/tickets/{id}/assign",
|
|
2940
|
+
...options,
|
|
2941
|
+
headers: {
|
|
2942
|
+
"Content-Type": "application/vnd.api+json",
|
|
2943
|
+
...options.headers
|
|
2944
|
+
}
|
|
2945
|
+
});
|
|
2946
|
+
var getAdminSysAiConfigById = (options) => (options.client ?? client).get({
|
|
2947
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2948
|
+
url: "/admin/sys/ai-config/{id}",
|
|
2949
|
+
...options
|
|
2950
|
+
});
|
|
2951
|
+
var patchAdminSysAiConfigById = (options) => (options.client ?? client).patch({
|
|
2952
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2953
|
+
url: "/admin/sys/ai-config/{id}",
|
|
2954
|
+
...options,
|
|
2955
|
+
headers: {
|
|
2956
|
+
"Content-Type": "application/vnd.api+json",
|
|
2957
|
+
...options.headers
|
|
2958
|
+
}
|
|
2959
|
+
});
|
|
2801
2960
|
var patchAdminWalletPlan = (options) => (options.client ?? client).patch({
|
|
2802
2961
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2803
2962
|
url: "/admin/wallet/plan",
|
|
@@ -2851,11 +3010,49 @@ var getAdminWalletUsage = (options) => (options.client ?? client).get({
|
|
|
2851
3010
|
url: "/admin/wallet/usage",
|
|
2852
3011
|
...options
|
|
2853
3012
|
});
|
|
3013
|
+
var deleteAdminSupportSlaPoliciesById = (options) => (options.client ?? client).delete({
|
|
3014
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3015
|
+
url: "/admin/support/sla-policies/{id}",
|
|
3016
|
+
...options
|
|
3017
|
+
});
|
|
3018
|
+
var getAdminSupportSlaPoliciesById = (options) => (options.client ?? client).get({
|
|
3019
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3020
|
+
url: "/admin/support/sla-policies/{id}",
|
|
3021
|
+
...options
|
|
3022
|
+
});
|
|
3023
|
+
var patchAdminSupportSlaPoliciesById = (options) => (options.client ?? client).patch({
|
|
3024
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3025
|
+
url: "/admin/support/sla-policies/{id}",
|
|
3026
|
+
...options,
|
|
3027
|
+
headers: {
|
|
3028
|
+
"Content-Type": "application/vnd.api+json",
|
|
3029
|
+
...options.headers
|
|
3030
|
+
}
|
|
3031
|
+
});
|
|
2854
3032
|
var getAdminSocialMetricsById = (options) => (options.client ?? client).get({
|
|
2855
3033
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2856
3034
|
url: "/admin/social/metrics/{id}",
|
|
2857
3035
|
...options
|
|
2858
3036
|
});
|
|
3037
|
+
var deleteAdminSupportRoutingRulesById = (options) => (options.client ?? client).delete({
|
|
3038
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3039
|
+
url: "/admin/support/routing-rules/{id}",
|
|
3040
|
+
...options
|
|
3041
|
+
});
|
|
3042
|
+
var getAdminSupportRoutingRulesById = (options) => (options.client ?? client).get({
|
|
3043
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3044
|
+
url: "/admin/support/routing-rules/{id}",
|
|
3045
|
+
...options
|
|
3046
|
+
});
|
|
3047
|
+
var patchAdminSupportRoutingRulesById = (options) => (options.client ?? client).patch({
|
|
3048
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3049
|
+
url: "/admin/support/routing-rules/{id}",
|
|
3050
|
+
...options,
|
|
3051
|
+
headers: {
|
|
3052
|
+
"Content-Type": "application/vnd.api+json",
|
|
3053
|
+
...options.headers
|
|
3054
|
+
}
|
|
3055
|
+
});
|
|
2859
3056
|
var getAdminStorageFilesByChecksum = (options) => (options.client ?? client).get({
|
|
2860
3057
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2861
3058
|
url: "/admin/storage-files/by-checksum",
|
|
@@ -2890,6 +3087,11 @@ var getAdminVoiceSessionsWorkspaceByWorkspaceId = (options) => (options.client ?
|
|
|
2890
3087
|
url: "/admin/voice/sessions/workspace/{workspace_id}",
|
|
2891
3088
|
...options
|
|
2892
3089
|
});
|
|
3090
|
+
var getAdminSysSemanticCacheById = (options) => (options.client ?? client).get({
|
|
3091
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3092
|
+
url: "/admin/sys/semantic-cache/{id}",
|
|
3093
|
+
...options
|
|
3094
|
+
});
|
|
2893
3095
|
var patchAdminCrmDealsByIdMoveStage = (options) => (options.client ?? client).patch({
|
|
2894
3096
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2895
3097
|
url: "/admin/crm/deals/{id}/move-stage",
|
|
@@ -2899,6 +3101,11 @@ var patchAdminCrmDealsByIdMoveStage = (options) => (options.client ?? client).pa
|
|
|
2899
3101
|
...options.headers
|
|
2900
3102
|
}
|
|
2901
3103
|
});
|
|
3104
|
+
var getAdminSupportQueuesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
3105
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3106
|
+
url: "/admin/support/queues/application/{application_id}",
|
|
3107
|
+
...options
|
|
3108
|
+
});
|
|
2902
3109
|
var getAdminSocialMetricsPostBySocialPostIdLatest = (options) => (options.client ?? client).get({
|
|
2903
3110
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2904
3111
|
url: "/admin/social/metrics/post/{social_post_id}/latest",
|
|
@@ -2965,11 +3172,39 @@ var getAdminUsersByEmail = (options) => (options.client ?? client).get({
|
|
|
2965
3172
|
url: "/admin/users/by-email",
|
|
2966
3173
|
...options
|
|
2967
3174
|
});
|
|
3175
|
+
var deleteAdminSupportQueuesById = (options) => (options.client ?? client).delete({
|
|
3176
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3177
|
+
url: "/admin/support/queues/{id}",
|
|
3178
|
+
...options
|
|
3179
|
+
});
|
|
3180
|
+
var getAdminSupportQueuesById = (options) => (options.client ?? client).get({
|
|
3181
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3182
|
+
url: "/admin/support/queues/{id}",
|
|
3183
|
+
...options
|
|
3184
|
+
});
|
|
3185
|
+
var patchAdminSupportQueuesById = (options) => (options.client ?? client).patch({
|
|
3186
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3187
|
+
url: "/admin/support/queues/{id}",
|
|
3188
|
+
...options,
|
|
3189
|
+
headers: {
|
|
3190
|
+
"Content-Type": "application/vnd.api+json",
|
|
3191
|
+
...options.headers
|
|
3192
|
+
}
|
|
3193
|
+
});
|
|
2968
3194
|
var getAdminFeatureDefinitionsByApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
2969
3195
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2970
3196
|
url: "/admin/feature-definitions/by-application/{application_id}",
|
|
2971
3197
|
...options
|
|
2972
3198
|
});
|
|
3199
|
+
var postAdminSupportTickets = (options) => (options.client ?? client).post({
|
|
3200
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3201
|
+
url: "/admin/support/tickets",
|
|
3202
|
+
...options,
|
|
3203
|
+
headers: {
|
|
3204
|
+
"Content-Type": "application/vnd.api+json",
|
|
3205
|
+
...options.headers
|
|
3206
|
+
}
|
|
3207
|
+
});
|
|
2973
3208
|
var getAdminCrawlerResultsById = (options) => (options.client ?? client).get({
|
|
2974
3209
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2975
3210
|
url: "/admin/crawler/results/{id}",
|
|
@@ -3079,6 +3314,11 @@ var getAdminSchedulingEventsByDateRange = (options) => (options.client ?? client
|
|
|
3079
3314
|
url: "/admin/scheduling/events/by_date_range",
|
|
3080
3315
|
...options
|
|
3081
3316
|
});
|
|
3317
|
+
var getAdminLlmAnalyticsWorkspace = (options) => (options.client ?? client).get({
|
|
3318
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3319
|
+
url: "/admin/llm-analytics/workspace",
|
|
3320
|
+
...options
|
|
3321
|
+
});
|
|
3082
3322
|
var getAdminAgentVersionRevisions = (options) => (options.client ?? client).get({
|
|
3083
3323
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3084
3324
|
url: "/admin/agent-version-revisions",
|
|
@@ -3120,6 +3360,11 @@ var patchAdminExtractionDocumentsByIdExclude = (options) => (options.client ?? c
|
|
|
3120
3360
|
...options.headers
|
|
3121
3361
|
}
|
|
3122
3362
|
});
|
|
3363
|
+
var getAdminSupportTicketAttachmentsMessageByTicketMessageId = (options) => (options.client ?? client).get({
|
|
3364
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3365
|
+
url: "/admin/support/ticket-attachments/message/{ticket_message_id}",
|
|
3366
|
+
...options
|
|
3367
|
+
});
|
|
3123
3368
|
var getAdminIsvCrmSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3124
3369
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3125
3370
|
url: "/admin/isv/crm/sync-configs/workspace/{workspace_id}",
|
|
@@ -3163,11 +3408,25 @@ var getAdminTrainingSessionsById = (options) => (options.client ?? client).get({
|
|
|
3163
3408
|
url: "/admin/training-sessions/{id}",
|
|
3164
3409
|
...options
|
|
3165
3410
|
});
|
|
3411
|
+
var postAdminSupportSyncConfigs = (options) => (options.client ?? client).post({
|
|
3412
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3413
|
+
url: "/admin/support/sync-configs",
|
|
3414
|
+
...options,
|
|
3415
|
+
headers: {
|
|
3416
|
+
"Content-Type": "application/vnd.api+json",
|
|
3417
|
+
...options.headers
|
|
3418
|
+
}
|
|
3419
|
+
});
|
|
3166
3420
|
var getAdminCrmExportsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3167
3421
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3168
3422
|
url: "/admin/crm/exports/workspace/{workspace_id}",
|
|
3169
3423
|
...options
|
|
3170
3424
|
});
|
|
3425
|
+
var getAdminSupportTicketMessagesTicketByTicketId = (options) => (options.client ?? client).get({
|
|
3426
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3427
|
+
url: "/admin/support/ticket-messages/ticket/{ticket_id}",
|
|
3428
|
+
...options
|
|
3429
|
+
});
|
|
3171
3430
|
var patchAdminExtractionDocumentsByIdDismiss = (options) => (options.client ?? client).patch({
|
|
3172
3431
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3173
3432
|
url: "/admin/extraction/documents/{id}/dismiss",
|
|
@@ -3182,6 +3441,15 @@ var getAdminWorkspacesByWorkspaceIdExtractionExportsById = (options) => (options
|
|
|
3182
3441
|
url: "/admin/workspaces/{workspace_id}/extraction/exports/{id}",
|
|
3183
3442
|
...options
|
|
3184
3443
|
});
|
|
3444
|
+
var postAdminSupportCannedResponses = (options) => (options.client ?? client).post({
|
|
3445
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3446
|
+
url: "/admin/support/canned-responses",
|
|
3447
|
+
...options,
|
|
3448
|
+
headers: {
|
|
3449
|
+
"Content-Type": "application/vnd.api+json",
|
|
3450
|
+
...options.headers
|
|
3451
|
+
}
|
|
3452
|
+
});
|
|
3185
3453
|
var deleteAdminSocialAccountsById = (options) => (options.client ?? client).delete({
|
|
3186
3454
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3187
3455
|
url: "/admin/social/accounts/{id}",
|
|
@@ -3210,6 +3478,15 @@ var patchAdminUsersByIdAdmin = (options) => (options.client ?? client).patch({
|
|
|
3210
3478
|
...options.headers
|
|
3211
3479
|
}
|
|
3212
3480
|
});
|
|
3481
|
+
var postAdminSupportTicketRatings = (options) => (options.client ?? client).post({
|
|
3482
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3483
|
+
url: "/admin/support/ticket-ratings",
|
|
3484
|
+
...options,
|
|
3485
|
+
headers: {
|
|
3486
|
+
"Content-Type": "application/vnd.api+json",
|
|
3487
|
+
...options.headers
|
|
3488
|
+
}
|
|
3489
|
+
});
|
|
3213
3490
|
var postAdminCrmActivities = (options) => (options.client ?? client).post({
|
|
3214
3491
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3215
3492
|
url: "/admin/crm/activities",
|
|
@@ -3412,6 +3689,11 @@ var postAdminCrmPipelines = (options) => (options.client ?? client).post({
|
|
|
3412
3689
|
...options.headers
|
|
3413
3690
|
}
|
|
3414
3691
|
});
|
|
3692
|
+
var getAdminLlmAnalyticsUsage = (options) => (options.client ?? client).get({
|
|
3693
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3694
|
+
url: "/admin/llm-analytics/usage",
|
|
3695
|
+
...options
|
|
3696
|
+
});
|
|
3415
3697
|
var deleteAdminCrawlerSiteConfigsById = (options) => (options.client ?? client).delete({
|
|
3416
3698
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3417
3699
|
url: "/admin/crawler/site-configs/{id}",
|
|
@@ -3506,6 +3788,11 @@ var postAdminExtractionDocumentsFindOrBeginUpload = (options) => (options.client
|
|
|
3506
3788
|
...options.headers
|
|
3507
3789
|
}
|
|
3508
3790
|
});
|
|
3791
|
+
var getAdminLlmAnalyticsById = (options) => (options.client ?? client).get({
|
|
3792
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3793
|
+
url: "/admin/llm-analytics/{id}",
|
|
3794
|
+
...options
|
|
3795
|
+
});
|
|
3509
3796
|
var getAdminSocialPostsCampaignBySocialCampaignId = (options) => (options.client ?? client).get({
|
|
3510
3797
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3511
3798
|
url: "/admin/social/posts/campaign/{social_campaign_id}",
|
|
@@ -3539,6 +3826,15 @@ var postAdminSchedulingEventTypes = (options) => (options.client ?? client).post
|
|
|
3539
3826
|
...options.headers
|
|
3540
3827
|
}
|
|
3541
3828
|
});
|
|
3829
|
+
var postAdminSupportRoutingRules = (options) => (options.client ?? client).post({
|
|
3830
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3831
|
+
url: "/admin/support/routing-rules",
|
|
3832
|
+
...options,
|
|
3833
|
+
headers: {
|
|
3834
|
+
"Content-Type": "application/vnd.api+json",
|
|
3835
|
+
...options.headers
|
|
3836
|
+
}
|
|
3837
|
+
});
|
|
3542
3838
|
var getAdminIsvCrmFieldDefinitionsEntityTypeByEntityType = (options) => (options.client ?? client).get({
|
|
3543
3839
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3544
3840
|
url: "/admin/isv/crm/field-definitions/entity-type/{entity_type}",
|
|
@@ -3684,6 +3980,15 @@ var patchAdminIsvCrmSyncConfigsById = (options) => (options.client ?? client).pa
|
|
|
3684
3980
|
...options.headers
|
|
3685
3981
|
}
|
|
3686
3982
|
});
|
|
3983
|
+
var postAdminSupportAiConfigs = (options) => (options.client ?? client).post({
|
|
3984
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3985
|
+
url: "/admin/support/ai-configs",
|
|
3986
|
+
...options,
|
|
3987
|
+
headers: {
|
|
3988
|
+
"Content-Type": "application/vnd.api+json",
|
|
3989
|
+
...options.headers
|
|
3990
|
+
}
|
|
3991
|
+
});
|
|
3687
3992
|
var getAdminExtractionChunkEntityLinks = (options) => (options.client ?? client).get({
|
|
3688
3993
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3689
3994
|
url: "/admin/extraction/chunk-entity-links",
|
|
@@ -3740,11 +4045,39 @@ var patchAdminApiKeysByIdRevoke = (options) => (options.client ?? client).patch(
|
|
|
3740
4045
|
...options.headers
|
|
3741
4046
|
}
|
|
3742
4047
|
});
|
|
4048
|
+
var getAdminSysAiConfig = (options) => (options.client ?? client).get({
|
|
4049
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4050
|
+
url: "/admin/sys/ai-config",
|
|
4051
|
+
...options
|
|
4052
|
+
});
|
|
4053
|
+
var postAdminSysAiConfig = (options) => (options.client ?? client).post({
|
|
4054
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4055
|
+
url: "/admin/sys/ai-config",
|
|
4056
|
+
...options,
|
|
4057
|
+
headers: {
|
|
4058
|
+
"Content-Type": "application/vnd.api+json",
|
|
4059
|
+
...options.headers
|
|
4060
|
+
}
|
|
4061
|
+
});
|
|
4062
|
+
var postAdminSupportTicketMessages = (options) => (options.client ?? client).post({
|
|
4063
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4064
|
+
url: "/admin/support/ticket-messages",
|
|
4065
|
+
...options,
|
|
4066
|
+
headers: {
|
|
4067
|
+
"Content-Type": "application/vnd.api+json",
|
|
4068
|
+
...options.headers
|
|
4069
|
+
}
|
|
4070
|
+
});
|
|
3743
4071
|
var getAdminBuckets = (options) => (options.client ?? client).get({
|
|
3744
4072
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3745
4073
|
url: "/admin/buckets",
|
|
3746
4074
|
...options
|
|
3747
4075
|
});
|
|
4076
|
+
var getAdminSupportRoutingRulesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
4077
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4078
|
+
url: "/admin/support/routing-rules/application/{application_id}",
|
|
4079
|
+
...options
|
|
4080
|
+
});
|
|
3748
4081
|
var deleteAdminCrawlerJobsById = (options) => (options.client ?? client).delete({
|
|
3749
4082
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3750
4083
|
url: "/admin/crawler/jobs/{id}",
|
|
@@ -3755,6 +4088,20 @@ var getAdminCrawlerJobsById = (options) => (options.client ?? client).get({
|
|
|
3755
4088
|
url: "/admin/crawler/jobs/{id}",
|
|
3756
4089
|
...options
|
|
3757
4090
|
});
|
|
4091
|
+
var deleteAdminSupportQueueMembersById = (options) => (options.client ?? client).delete({
|
|
4092
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4093
|
+
url: "/admin/support/queue-members/{id}",
|
|
4094
|
+
...options
|
|
4095
|
+
});
|
|
4096
|
+
var patchAdminSupportQueueMembersById = (options) => (options.client ?? client).patch({
|
|
4097
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4098
|
+
url: "/admin/support/queue-members/{id}",
|
|
4099
|
+
...options,
|
|
4100
|
+
headers: {
|
|
4101
|
+
"Content-Type": "application/vnd.api+json",
|
|
4102
|
+
...options.headers
|
|
4103
|
+
}
|
|
4104
|
+
});
|
|
3758
4105
|
var patchAdminSchedulingEventsByIdComplete = (options) => (options.client ?? client).patch({
|
|
3759
4106
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3760
4107
|
url: "/admin/scheduling/events/{id}/complete",
|
|
@@ -3783,6 +4130,16 @@ var patchAdminConnectorsById = (options) => (options.client ?? client).patch({
|
|
|
3783
4130
|
...options.headers
|
|
3784
4131
|
}
|
|
3785
4132
|
});
|
|
4133
|
+
var getAdminSupportChannelCaptureConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
4134
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4135
|
+
url: "/admin/support/channel-capture-configs/workspace/{workspace_id}",
|
|
4136
|
+
...options
|
|
4137
|
+
});
|
|
4138
|
+
var getAdminSupportAiConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
4139
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4140
|
+
url: "/admin/support/ai-configs/workspace/{workspace_id}",
|
|
4141
|
+
...options
|
|
4142
|
+
});
|
|
3786
4143
|
var patchAdminExtractionDocumentsByIdDismissTraining = (options) => (options.client ?? client).patch({
|
|
3787
4144
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3788
4145
|
url: "/admin/extraction/documents/{id}/dismiss-training",
|
|
@@ -3792,12 +4149,21 @@ var patchAdminExtractionDocumentsByIdDismissTraining = (options) => (options.cli
|
|
|
3792
4149
|
...options.headers
|
|
3793
4150
|
}
|
|
3794
4151
|
});
|
|
3795
|
-
var
|
|
4152
|
+
var postAdminSysSemanticCacheClear = (options) => (options.client ?? client).post({
|
|
3796
4153
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3797
|
-
url: "/admin/
|
|
3798
|
-
...options
|
|
3799
|
-
|
|
3800
|
-
|
|
4154
|
+
url: "/admin/sys/semantic-cache/clear",
|
|
4155
|
+
...options,
|
|
4156
|
+
headers: {
|
|
4157
|
+
"Content-Type": "application/vnd.api+json",
|
|
4158
|
+
...options.headers
|
|
4159
|
+
}
|
|
4160
|
+
});
|
|
4161
|
+
var getAdminAgentsByIdSchemaVersions = (options) => (options.client ?? client).get({
|
|
4162
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4163
|
+
url: "/admin/agents/{id}/schema-versions",
|
|
4164
|
+
...options
|
|
4165
|
+
});
|
|
4166
|
+
var postAdminAgentsByIdSchemaVersions = (options) => (options.client ?? client).post({
|
|
3801
4167
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3802
4168
|
url: "/admin/agents/{id}/schema-versions",
|
|
3803
4169
|
...options,
|
|
@@ -3882,6 +4248,15 @@ var getAdminBucketsById = (options) => (options.client ?? client).get({
|
|
|
3882
4248
|
url: "/admin/buckets/{id}",
|
|
3883
4249
|
...options
|
|
3884
4250
|
});
|
|
4251
|
+
var patchAdminSupportTicketsByIdMerge = (options) => (options.client ?? client).patch({
|
|
4252
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4253
|
+
url: "/admin/support/tickets/{id}/merge",
|
|
4254
|
+
...options,
|
|
4255
|
+
headers: {
|
|
4256
|
+
"Content-Type": "application/vnd.api+json",
|
|
4257
|
+
...options.headers
|
|
4258
|
+
}
|
|
4259
|
+
});
|
|
3885
4260
|
var getAdminUsageEventsByUser = (options) => (options.client ?? client).get({
|
|
3886
4261
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3887
4262
|
url: "/admin/usage-events/by-user",
|
|
@@ -3896,6 +4271,11 @@ var postAdminIsvCrmEntityTypes = (options) => (options.client ?? client).post({
|
|
|
3896
4271
|
...options.headers
|
|
3897
4272
|
}
|
|
3898
4273
|
});
|
|
4274
|
+
var getAdminSupportQueueMembersQueueByQueueId = (options) => (options.client ?? client).get({
|
|
4275
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4276
|
+
url: "/admin/support/queue-members/queue/{queue_id}",
|
|
4277
|
+
...options
|
|
4278
|
+
});
|
|
3899
4279
|
var getAdminSocialMetricsAccountBySocialAccountId = (options) => (options.client ?? client).get({
|
|
3900
4280
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3901
4281
|
url: "/admin/social/metrics/account/{social_account_id}",
|
|
@@ -4089,6 +4469,20 @@ var patchAdminCrmCompaniesById = (options) => (options.client ?? client).patch({
|
|
|
4089
4469
|
...options.headers
|
|
4090
4470
|
}
|
|
4091
4471
|
});
|
|
4472
|
+
var deleteAdminSupportCannedResponsesById = (options) => (options.client ?? client).delete({
|
|
4473
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4474
|
+
url: "/admin/support/canned-responses/{id}",
|
|
4475
|
+
...options
|
|
4476
|
+
});
|
|
4477
|
+
var patchAdminSupportCannedResponsesById = (options) => (options.client ?? client).patch({
|
|
4478
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4479
|
+
url: "/admin/support/canned-responses/{id}",
|
|
4480
|
+
...options,
|
|
4481
|
+
headers: {
|
|
4482
|
+
"Content-Type": "application/vnd.api+json",
|
|
4483
|
+
...options.headers
|
|
4484
|
+
}
|
|
4485
|
+
});
|
|
4092
4486
|
var postAdminAgentVersionComparisons = (options) => (options.client ?? client).post({
|
|
4093
4487
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4094
4488
|
url: "/admin/agent-version-comparisons",
|
|
@@ -4154,6 +4548,11 @@ var patchAdminEmailMarketingSenderProfilesByIdValidateDns = (options) => (option
|
|
|
4154
4548
|
...options.headers
|
|
4155
4549
|
}
|
|
4156
4550
|
});
|
|
4551
|
+
var getAdminSupportCannedResponsesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
4552
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4553
|
+
url: "/admin/support/canned-responses/workspace/{workspace_id}",
|
|
4554
|
+
...options
|
|
4555
|
+
});
|
|
4157
4556
|
var patchAdminSocialAccountsByIdDeactivate = (options) => (options.client ?? client).patch({
|
|
4158
4557
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4159
4558
|
url: "/admin/social/accounts/{id}/deactivate",
|
|
@@ -4238,6 +4637,15 @@ var getAdminAgentsUsage = (options) => (options.client ?? client).get({
|
|
|
4238
4637
|
url: "/admin/agents/usage",
|
|
4239
4638
|
...options
|
|
4240
4639
|
});
|
|
4640
|
+
var postAdminSupportSlaPolicies = (options) => (options.client ?? client).post({
|
|
4641
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4642
|
+
url: "/admin/support/sla-policies",
|
|
4643
|
+
...options,
|
|
4644
|
+
headers: {
|
|
4645
|
+
"Content-Type": "application/vnd.api+json",
|
|
4646
|
+
...options.headers
|
|
4647
|
+
}
|
|
4648
|
+
});
|
|
4241
4649
|
var postAdminAgentsByIdValidate = (options) => (options.client ?? client).post({
|
|
4242
4650
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4243
4651
|
url: "/admin/agents/{id}/validate",
|
|
@@ -4275,6 +4683,15 @@ var postAdminEmailMarketingCampaignsByIdSend = (options) => (options.client ?? c
|
|
|
4275
4683
|
...options.headers
|
|
4276
4684
|
}
|
|
4277
4685
|
});
|
|
4686
|
+
var postAdminSupportQueueMembers = (options) => (options.client ?? client).post({
|
|
4687
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4688
|
+
url: "/admin/support/queue-members",
|
|
4689
|
+
...options,
|
|
4690
|
+
headers: {
|
|
4691
|
+
"Content-Type": "application/vnd.api+json",
|
|
4692
|
+
...options.headers
|
|
4693
|
+
}
|
|
4694
|
+
});
|
|
4278
4695
|
var postAdminEmailMarketingSenderProfiles = (options) => (options.client ?? client).post({
|
|
4279
4696
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4280
4697
|
url: "/admin/email-marketing/sender-profiles",
|
|
@@ -4289,6 +4706,20 @@ var getAdminExtractionBatchesByIdUploadUrls = (options) => (options.client ?? cl
|
|
|
4289
4706
|
url: "/admin/extraction/batches/{id}/upload-urls",
|
|
4290
4707
|
...options
|
|
4291
4708
|
});
|
|
4709
|
+
var getAdminLlmAnalyticsCosts = (options) => (options.client ?? client).get({
|
|
4710
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4711
|
+
url: "/admin/llm-analytics/costs",
|
|
4712
|
+
...options
|
|
4713
|
+
});
|
|
4714
|
+
var patchAdminSupportTicketsByIdResolve = (options) => (options.client ?? client).patch({
|
|
4715
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4716
|
+
url: "/admin/support/tickets/{id}/resolve",
|
|
4717
|
+
...options,
|
|
4718
|
+
headers: {
|
|
4719
|
+
"Content-Type": "application/vnd.api+json",
|
|
4720
|
+
...options.headers
|
|
4721
|
+
}
|
|
4722
|
+
});
|
|
4292
4723
|
var patchAdminStorageFilesByIdTag = (options) => (options.client ?? client).patch({
|
|
4293
4724
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4294
4725
|
url: "/admin/storage-files/{id}/tag",
|
|
@@ -4307,6 +4738,11 @@ var patchAdminExtractionDocumentsByIdFinishUpload = (options) => (options.client
|
|
|
4307
4738
|
...options.headers
|
|
4308
4739
|
}
|
|
4309
4740
|
});
|
|
4741
|
+
var getAdminSupportSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
4742
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4743
|
+
url: "/admin/support/sync-configs/workspace/{workspace_id}",
|
|
4744
|
+
...options
|
|
4745
|
+
});
|
|
4310
4746
|
var getAdminSocialPostsAccountBySocialAccountId = (options) => (options.client ?? client).get({
|
|
4311
4747
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4312
4748
|
url: "/admin/social/posts/account/{social_account_id}",
|
|
@@ -5612,20 +6048,33 @@ function createExecutionsNamespace(rb) {
|
|
|
5612
6048
|
*
|
|
5613
6049
|
* @param agentId - The UUID of the agent to execute.
|
|
5614
6050
|
* @param input - Input data for the agent (task description, documents, etc.).
|
|
5615
|
-
* @param
|
|
6051
|
+
* @param opts - Additional execution options.
|
|
6052
|
+
* @param opts.model_id - Override model for this execution only (e.g., "anthropic/claude-sonnet-4").
|
|
6053
|
+
* Highest priority in the model resolution chain.
|
|
6054
|
+
* @param reqOptions - Optional request options. Use `idempotencyKey` to prevent duplicate executions.
|
|
5616
6055
|
* @returns The created execution record with status `pending`.
|
|
5617
6056
|
*
|
|
5618
6057
|
* @example
|
|
5619
6058
|
* const exec = await admin.executions.start('agt_01...', {
|
|
5620
6059
|
* task: 'Process invoice batch',
|
|
5621
6060
|
* });
|
|
5622
|
-
*
|
|
6061
|
+
*
|
|
6062
|
+
* @example
|
|
6063
|
+
* // With model override
|
|
6064
|
+
* const exec = await admin.executions.start(
|
|
6065
|
+
* 'agt_01...',
|
|
6066
|
+
* { task: 'Complex analysis' },
|
|
6067
|
+
* { model_id: 'anthropic/claude-sonnet-4' },
|
|
6068
|
+
* );
|
|
5623
6069
|
*/
|
|
5624
|
-
async start(agentId, input,
|
|
6070
|
+
async start(agentId, input, opts) {
|
|
6071
|
+
const { model_id, ...reqOptions } = opts ?? {};
|
|
6072
|
+
const body = { input };
|
|
6073
|
+
if (model_id) body.model_id = model_id;
|
|
5625
6074
|
return rb.rawPost(
|
|
5626
6075
|
`/isv/agents/${agentId}/execute`,
|
|
5627
|
-
|
|
5628
|
-
|
|
6076
|
+
body,
|
|
6077
|
+
Object.keys(reqOptions).length > 0 ? reqOptions : void 0
|
|
5629
6078
|
);
|
|
5630
6079
|
},
|
|
5631
6080
|
/**
|
|
@@ -8349,20 +8798,12 @@ function createConnectorsNamespace(rb) {
|
|
|
8349
8798
|
options
|
|
8350
8799
|
),
|
|
8351
8800
|
/** Delete a connector instance. */
|
|
8352
|
-
delete: async (id, options) => rb.executeDelete(
|
|
8353
|
-
deleteAdminConnectorsById,
|
|
8354
|
-
{ path: { id } },
|
|
8355
|
-
options
|
|
8356
|
-
)
|
|
8801
|
+
delete: async (id, options) => rb.executeDelete(deleteAdminConnectorsById, { path: { id } }, options)
|
|
8357
8802
|
},
|
|
8358
8803
|
/** Credentials — OAuth tokens and API keys. */
|
|
8359
8804
|
credentials: {
|
|
8360
8805
|
/** List all credentials. */
|
|
8361
|
-
list: async (options) => rb.execute(
|
|
8362
|
-
getAdminConnectorsCredentials,
|
|
8363
|
-
{},
|
|
8364
|
-
options
|
|
8365
|
-
),
|
|
8806
|
+
list: async (options) => rb.execute(getAdminConnectorsCredentials, {}, options),
|
|
8366
8807
|
/** Get a credential by ID. */
|
|
8367
8808
|
get: async (id, options) => rb.execute(
|
|
8368
8809
|
getAdminConnectorsCredentialsById,
|
|
@@ -9939,7 +10380,10 @@ function createCrmNamespace(rb) {
|
|
|
9939
10380
|
update: async (id, attributes, options) => {
|
|
9940
10381
|
return rb.execute(
|
|
9941
10382
|
patchAdminCrmContactsById,
|
|
9942
|
-
{
|
|
10383
|
+
{
|
|
10384
|
+
path: { id },
|
|
10385
|
+
body: { data: { type: "crm_contact", id, attributes } }
|
|
10386
|
+
},
|
|
9943
10387
|
options
|
|
9944
10388
|
);
|
|
9945
10389
|
},
|
|
@@ -9947,7 +10391,10 @@ function createCrmNamespace(rb) {
|
|
|
9947
10391
|
archive: async (id, options) => {
|
|
9948
10392
|
return rb.execute(
|
|
9949
10393
|
patchAdminCrmContactsByIdArchive,
|
|
9950
|
-
{
|
|
10394
|
+
{
|
|
10395
|
+
path: { id },
|
|
10396
|
+
body: { data: { type: "crm_contact", id, attributes: {} } }
|
|
10397
|
+
},
|
|
9951
10398
|
options
|
|
9952
10399
|
);
|
|
9953
10400
|
},
|
|
@@ -9955,7 +10402,10 @@ function createCrmNamespace(rb) {
|
|
|
9955
10402
|
unarchive: async (id, options) => {
|
|
9956
10403
|
return rb.execute(
|
|
9957
10404
|
postAdminCrmContactsByIdUnarchive,
|
|
9958
|
-
{
|
|
10405
|
+
{
|
|
10406
|
+
path: { id },
|
|
10407
|
+
body: { data: { type: "crm_contact", id, attributes: {} } }
|
|
10408
|
+
},
|
|
9959
10409
|
options
|
|
9960
10410
|
);
|
|
9961
10411
|
},
|
|
@@ -9989,13 +10439,20 @@ function createCrmNamespace(rb) {
|
|
|
9989
10439
|
update: async (id, attributes, options) => {
|
|
9990
10440
|
return rb.execute(
|
|
9991
10441
|
patchAdminCrmCompaniesById,
|
|
9992
|
-
{
|
|
10442
|
+
{
|
|
10443
|
+
path: { id },
|
|
10444
|
+
body: { data: { type: "crm_company", id, attributes } }
|
|
10445
|
+
},
|
|
9993
10446
|
options
|
|
9994
10447
|
);
|
|
9995
10448
|
},
|
|
9996
10449
|
/** Delete a company. */
|
|
9997
10450
|
delete: async (id, options) => {
|
|
9998
|
-
return rb.execute(
|
|
10451
|
+
return rb.execute(
|
|
10452
|
+
deleteAdminCrmCompaniesById,
|
|
10453
|
+
{ path: { id } },
|
|
10454
|
+
options
|
|
10455
|
+
);
|
|
9999
10456
|
}
|
|
10000
10457
|
},
|
|
10001
10458
|
// ========== Deals ==========
|
|
@@ -10024,7 +10481,10 @@ function createCrmNamespace(rb) {
|
|
|
10024
10481
|
update: async (id, attributes, options) => {
|
|
10025
10482
|
return rb.execute(
|
|
10026
10483
|
patchAdminCrmDealsById,
|
|
10027
|
-
{
|
|
10484
|
+
{
|
|
10485
|
+
path: { id },
|
|
10486
|
+
body: { data: { type: "crm_deal", id, attributes } }
|
|
10487
|
+
},
|
|
10028
10488
|
options
|
|
10029
10489
|
);
|
|
10030
10490
|
},
|
|
@@ -10032,7 +10492,10 @@ function createCrmNamespace(rb) {
|
|
|
10032
10492
|
moveStage: async (id, attributes, options) => {
|
|
10033
10493
|
return rb.execute(
|
|
10034
10494
|
patchAdminCrmDealsByIdMoveStage,
|
|
10035
|
-
{
|
|
10495
|
+
{
|
|
10496
|
+
path: { id },
|
|
10497
|
+
body: { data: { type: "crm_deal", id, attributes } }
|
|
10498
|
+
},
|
|
10036
10499
|
options
|
|
10037
10500
|
);
|
|
10038
10501
|
},
|
|
@@ -10067,13 +10530,20 @@ function createCrmNamespace(rb) {
|
|
|
10067
10530
|
update: async (id, attributes, options) => {
|
|
10068
10531
|
return rb.execute(
|
|
10069
10532
|
patchAdminCrmActivitiesById,
|
|
10070
|
-
{
|
|
10533
|
+
{
|
|
10534
|
+
path: { id },
|
|
10535
|
+
body: { data: { type: "crm_activity", id, attributes } }
|
|
10536
|
+
},
|
|
10071
10537
|
options
|
|
10072
10538
|
);
|
|
10073
10539
|
},
|
|
10074
10540
|
/** Delete an activity. */
|
|
10075
10541
|
delete: async (id, options) => {
|
|
10076
|
-
return rb.execute(
|
|
10542
|
+
return rb.execute(
|
|
10543
|
+
deleteAdminCrmActivitiesById,
|
|
10544
|
+
{ path: { id } },
|
|
10545
|
+
options
|
|
10546
|
+
);
|
|
10077
10547
|
}
|
|
10078
10548
|
},
|
|
10079
10549
|
// ========== Pipelines ==========
|
|
@@ -10102,20 +10572,31 @@ function createCrmNamespace(rb) {
|
|
|
10102
10572
|
update: async (id, attributes, options) => {
|
|
10103
10573
|
return rb.execute(
|
|
10104
10574
|
patchAdminCrmPipelinesById,
|
|
10105
|
-
{
|
|
10575
|
+
{
|
|
10576
|
+
path: { id },
|
|
10577
|
+
body: { data: { type: "crm_pipeline", id, attributes } }
|
|
10578
|
+
},
|
|
10106
10579
|
options
|
|
10107
10580
|
);
|
|
10108
10581
|
},
|
|
10109
10582
|
/** Delete a pipeline. */
|
|
10110
10583
|
delete: async (id, options) => {
|
|
10111
|
-
return rb.execute(
|
|
10584
|
+
return rb.execute(
|
|
10585
|
+
deleteAdminCrmPipelinesById,
|
|
10586
|
+
{ path: { id } },
|
|
10587
|
+
options
|
|
10588
|
+
);
|
|
10112
10589
|
}
|
|
10113
10590
|
},
|
|
10114
10591
|
// ========== Pipeline Stages ==========
|
|
10115
10592
|
pipelineStages: {
|
|
10116
10593
|
/** Get a pipeline stage by ID. */
|
|
10117
10594
|
get: async (id, options) => {
|
|
10118
|
-
return rb.execute(
|
|
10595
|
+
return rb.execute(
|
|
10596
|
+
getAdminCrmPipelineStagesById,
|
|
10597
|
+
{ path: { id } },
|
|
10598
|
+
options
|
|
10599
|
+
);
|
|
10119
10600
|
},
|
|
10120
10601
|
/** List stages for a specific pipeline. */
|
|
10121
10602
|
listByPipeline: async (pipelineId, options) => {
|
|
@@ -10137,20 +10618,31 @@ function createCrmNamespace(rb) {
|
|
|
10137
10618
|
update: async (id, attributes, options) => {
|
|
10138
10619
|
return rb.execute(
|
|
10139
10620
|
patchAdminCrmPipelineStagesById,
|
|
10140
|
-
{
|
|
10621
|
+
{
|
|
10622
|
+
path: { id },
|
|
10623
|
+
body: { data: { type: "crm_pipeline_stage", id, attributes } }
|
|
10624
|
+
},
|
|
10141
10625
|
options
|
|
10142
10626
|
);
|
|
10143
10627
|
},
|
|
10144
10628
|
/** Delete a pipeline stage. */
|
|
10145
10629
|
delete: async (id, options) => {
|
|
10146
|
-
return rb.execute(
|
|
10630
|
+
return rb.execute(
|
|
10631
|
+
deleteAdminCrmPipelineStagesById,
|
|
10632
|
+
{ path: { id } },
|
|
10633
|
+
options
|
|
10634
|
+
);
|
|
10147
10635
|
}
|
|
10148
10636
|
},
|
|
10149
10637
|
// ========== Relationships ==========
|
|
10150
10638
|
relationships: {
|
|
10151
10639
|
/** Get a relationship by ID. */
|
|
10152
10640
|
get: async (id, options) => {
|
|
10153
|
-
return rb.execute(
|
|
10641
|
+
return rb.execute(
|
|
10642
|
+
getAdminCrmRelationshipsById,
|
|
10643
|
+
{ path: { id } },
|
|
10644
|
+
options
|
|
10645
|
+
);
|
|
10154
10646
|
},
|
|
10155
10647
|
/** List relationships by workspace. */
|
|
10156
10648
|
listByWorkspace: async (workspaceId, options) => {
|
|
@@ -10170,14 +10662,22 @@ function createCrmNamespace(rb) {
|
|
|
10170
10662
|
},
|
|
10171
10663
|
/** Delete a relationship. */
|
|
10172
10664
|
delete: async (id, options) => {
|
|
10173
|
-
return rb.execute(
|
|
10665
|
+
return rb.execute(
|
|
10666
|
+
deleteAdminCrmRelationshipsById,
|
|
10667
|
+
{ path: { id } },
|
|
10668
|
+
options
|
|
10669
|
+
);
|
|
10174
10670
|
}
|
|
10175
10671
|
},
|
|
10176
10672
|
// ========== Relationship Types ==========
|
|
10177
10673
|
relationshipTypes: {
|
|
10178
10674
|
/** Get a relationship type by ID. */
|
|
10179
10675
|
get: async (id, options) => {
|
|
10180
|
-
return rb.execute(
|
|
10676
|
+
return rb.execute(
|
|
10677
|
+
getAdminCrmRelationshipTypesById,
|
|
10678
|
+
{ path: { id } },
|
|
10679
|
+
options
|
|
10680
|
+
);
|
|
10181
10681
|
},
|
|
10182
10682
|
/** List all relationship types. */
|
|
10183
10683
|
list: async (options) => {
|
|
@@ -10195,20 +10695,31 @@ function createCrmNamespace(rb) {
|
|
|
10195
10695
|
update: async (id, attributes, options) => {
|
|
10196
10696
|
return rb.execute(
|
|
10197
10697
|
patchAdminCrmRelationshipTypesById,
|
|
10198
|
-
{
|
|
10698
|
+
{
|
|
10699
|
+
path: { id },
|
|
10700
|
+
body: { data: { type: "crm_relationship_type", id, attributes } }
|
|
10701
|
+
},
|
|
10199
10702
|
options
|
|
10200
10703
|
);
|
|
10201
10704
|
},
|
|
10202
10705
|
/** Delete a relationship type. */
|
|
10203
10706
|
delete: async (id, options) => {
|
|
10204
|
-
return rb.execute(
|
|
10707
|
+
return rb.execute(
|
|
10708
|
+
deleteAdminCrmRelationshipTypesById,
|
|
10709
|
+
{ path: { id } },
|
|
10710
|
+
options
|
|
10711
|
+
);
|
|
10205
10712
|
}
|
|
10206
10713
|
},
|
|
10207
10714
|
// ========== Custom Entities ==========
|
|
10208
10715
|
customEntities: {
|
|
10209
10716
|
/** Get a custom entity by ID. */
|
|
10210
10717
|
get: async (id, options) => {
|
|
10211
|
-
return rb.execute(
|
|
10718
|
+
return rb.execute(
|
|
10719
|
+
getAdminCrmCustomEntitiesById,
|
|
10720
|
+
{ path: { id } },
|
|
10721
|
+
options
|
|
10722
|
+
);
|
|
10212
10723
|
},
|
|
10213
10724
|
/** List custom entities by workspace. */
|
|
10214
10725
|
listByWorkspace: async (workspaceId, options) => {
|
|
@@ -10230,13 +10741,20 @@ function createCrmNamespace(rb) {
|
|
|
10230
10741
|
update: async (id, attributes, options) => {
|
|
10231
10742
|
return rb.execute(
|
|
10232
10743
|
patchAdminCrmCustomEntitiesById,
|
|
10233
|
-
{
|
|
10744
|
+
{
|
|
10745
|
+
path: { id },
|
|
10746
|
+
body: { data: { type: "crm_custom_entity", id, attributes } }
|
|
10747
|
+
},
|
|
10234
10748
|
options
|
|
10235
10749
|
);
|
|
10236
10750
|
},
|
|
10237
10751
|
/** Delete a custom entity. */
|
|
10238
10752
|
delete: async (id, options) => {
|
|
10239
|
-
return rb.execute(
|
|
10753
|
+
return rb.execute(
|
|
10754
|
+
deleteAdminCrmCustomEntitiesById,
|
|
10755
|
+
{ path: { id } },
|
|
10756
|
+
options
|
|
10757
|
+
);
|
|
10240
10758
|
},
|
|
10241
10759
|
/** List versions for a custom entity. */
|
|
10242
10760
|
listVersions: async (entityId, options) => {
|
|
@@ -10263,7 +10781,11 @@ function createCrmNamespace(rb) {
|
|
|
10263
10781
|
},
|
|
10264
10782
|
/** Get a deal product by ID. */
|
|
10265
10783
|
get: async (id, options) => {
|
|
10266
|
-
return rb.execute(
|
|
10784
|
+
return rb.execute(
|
|
10785
|
+
getAdminCrmDealProductsById,
|
|
10786
|
+
{ path: { id } },
|
|
10787
|
+
options
|
|
10788
|
+
);
|
|
10267
10789
|
},
|
|
10268
10790
|
/** Create a deal product. */
|
|
10269
10791
|
create: async (attributes, options) => {
|
|
@@ -10275,7 +10797,11 @@ function createCrmNamespace(rb) {
|
|
|
10275
10797
|
},
|
|
10276
10798
|
/** Delete a deal product. */
|
|
10277
10799
|
delete: async (id, options) => {
|
|
10278
|
-
return rb.execute(
|
|
10800
|
+
return rb.execute(
|
|
10801
|
+
deleteAdminCrmDealProductsById,
|
|
10802
|
+
{ path: { id } },
|
|
10803
|
+
options
|
|
10804
|
+
);
|
|
10279
10805
|
}
|
|
10280
10806
|
},
|
|
10281
10807
|
// ========== Exports ==========
|
|
@@ -10304,7 +10830,10 @@ function createCrmNamespace(rb) {
|
|
|
10304
10830
|
refreshUrl: async (id, options) => {
|
|
10305
10831
|
return rb.execute(
|
|
10306
10832
|
patchAdminCrmExportsByIdRefreshUrl,
|
|
10307
|
-
{
|
|
10833
|
+
{
|
|
10834
|
+
path: { id },
|
|
10835
|
+
body: { data: { type: "crm_data_export_job", id, attributes: {} } }
|
|
10836
|
+
},
|
|
10308
10837
|
options
|
|
10309
10838
|
);
|
|
10310
10839
|
}
|
|
@@ -10313,7 +10842,11 @@ function createCrmNamespace(rb) {
|
|
|
10313
10842
|
entityTypes: {
|
|
10314
10843
|
/** Get an entity type by ID. */
|
|
10315
10844
|
get: async (id, options) => {
|
|
10316
|
-
return rb.execute(
|
|
10845
|
+
return rb.execute(
|
|
10846
|
+
getAdminIsvCrmEntityTypesById,
|
|
10847
|
+
{ path: { id } },
|
|
10848
|
+
options
|
|
10849
|
+
);
|
|
10317
10850
|
},
|
|
10318
10851
|
/** List entity types by application. */
|
|
10319
10852
|
listByApplication: async (applicationId, options) => {
|
|
@@ -10335,20 +10868,31 @@ function createCrmNamespace(rb) {
|
|
|
10335
10868
|
update: async (id, attributes, options) => {
|
|
10336
10869
|
return rb.execute(
|
|
10337
10870
|
patchAdminIsvCrmEntityTypesById,
|
|
10338
|
-
{
|
|
10871
|
+
{
|
|
10872
|
+
path: { id },
|
|
10873
|
+
body: { data: { type: "crm_custom_entity_type", id, attributes } }
|
|
10874
|
+
},
|
|
10339
10875
|
options
|
|
10340
10876
|
);
|
|
10341
10877
|
},
|
|
10342
10878
|
/** Delete an entity type. */
|
|
10343
10879
|
delete: async (id, options) => {
|
|
10344
|
-
return rb.execute(
|
|
10880
|
+
return rb.execute(
|
|
10881
|
+
deleteAdminIsvCrmEntityTypesById,
|
|
10882
|
+
{ path: { id } },
|
|
10883
|
+
options
|
|
10884
|
+
);
|
|
10345
10885
|
}
|
|
10346
10886
|
},
|
|
10347
10887
|
// ========== ISV: Field Definitions ==========
|
|
10348
10888
|
fieldDefinitions: {
|
|
10349
10889
|
/** Get a field definition by ID. */
|
|
10350
10890
|
get: async (id, options) => {
|
|
10351
|
-
return rb.execute(
|
|
10891
|
+
return rb.execute(
|
|
10892
|
+
getAdminIsvCrmFieldDefinitionsById,
|
|
10893
|
+
{ path: { id } },
|
|
10894
|
+
options
|
|
10895
|
+
);
|
|
10352
10896
|
},
|
|
10353
10897
|
/** List field definitions by entity type. */
|
|
10354
10898
|
listByEntityType: async (entityType, options) => {
|
|
@@ -10362,7 +10906,9 @@ function createCrmNamespace(rb) {
|
|
|
10362
10906
|
create: async (attributes, options) => {
|
|
10363
10907
|
return rb.execute(
|
|
10364
10908
|
postAdminIsvCrmFieldDefinitions,
|
|
10365
|
-
{
|
|
10909
|
+
{
|
|
10910
|
+
body: { data: { type: "crm_custom_field_definition", attributes } }
|
|
10911
|
+
},
|
|
10366
10912
|
options
|
|
10367
10913
|
);
|
|
10368
10914
|
},
|
|
@@ -10370,26 +10916,41 @@ function createCrmNamespace(rb) {
|
|
|
10370
10916
|
update: async (id, attributes, options) => {
|
|
10371
10917
|
return rb.execute(
|
|
10372
10918
|
patchAdminIsvCrmFieldDefinitionsById,
|
|
10373
|
-
{
|
|
10919
|
+
{
|
|
10920
|
+
path: { id },
|
|
10921
|
+
body: {
|
|
10922
|
+
data: { type: "crm_custom_field_definition", id, attributes }
|
|
10923
|
+
}
|
|
10924
|
+
},
|
|
10374
10925
|
options
|
|
10375
10926
|
);
|
|
10376
10927
|
},
|
|
10377
10928
|
/** Delete a field definition. */
|
|
10378
10929
|
delete: async (id, options) => {
|
|
10379
|
-
return rb.execute(
|
|
10930
|
+
return rb.execute(
|
|
10931
|
+
deleteAdminIsvCrmFieldDefinitionsById,
|
|
10932
|
+
{ path: { id } },
|
|
10933
|
+
options
|
|
10934
|
+
);
|
|
10380
10935
|
}
|
|
10381
10936
|
},
|
|
10382
10937
|
// ========== ISV: Channel Capture Config ==========
|
|
10383
10938
|
channelCaptureConfig: {
|
|
10384
10939
|
/** Get channel capture config by ID. */
|
|
10385
10940
|
get: async (id, options) => {
|
|
10386
|
-
return rb.execute(
|
|
10941
|
+
return rb.execute(
|
|
10942
|
+
getAdminIsvCrmChannelCaptureConfigById,
|
|
10943
|
+
{ path: { id } },
|
|
10944
|
+
options
|
|
10945
|
+
);
|
|
10387
10946
|
},
|
|
10388
10947
|
/** Create or upsert channel capture config. */
|
|
10389
10948
|
create: async (attributes, options) => {
|
|
10390
10949
|
return rb.execute(
|
|
10391
10950
|
postAdminIsvCrmChannelCaptureConfig,
|
|
10392
|
-
{
|
|
10951
|
+
{
|
|
10952
|
+
body: { data: { type: "crm_channel_capture_config", attributes } }
|
|
10953
|
+
},
|
|
10393
10954
|
options
|
|
10394
10955
|
);
|
|
10395
10956
|
},
|
|
@@ -10397,7 +10958,12 @@ function createCrmNamespace(rb) {
|
|
|
10397
10958
|
update: async (id, attributes, options) => {
|
|
10398
10959
|
return rb.execute(
|
|
10399
10960
|
patchAdminIsvCrmChannelCaptureConfigById,
|
|
10400
|
-
{
|
|
10961
|
+
{
|
|
10962
|
+
path: { id },
|
|
10963
|
+
body: {
|
|
10964
|
+
data: { type: "crm_channel_capture_config", id, attributes }
|
|
10965
|
+
}
|
|
10966
|
+
},
|
|
10401
10967
|
options
|
|
10402
10968
|
);
|
|
10403
10969
|
}
|
|
@@ -10424,18 +10990,912 @@ function createCrmNamespace(rb) {
|
|
|
10424
10990
|
update: async (id, attributes, options) => {
|
|
10425
10991
|
return rb.execute(
|
|
10426
10992
|
patchAdminIsvCrmSyncConfigsById,
|
|
10427
|
-
{
|
|
10993
|
+
{
|
|
10994
|
+
path: { id },
|
|
10995
|
+
body: { data: { type: "crm_sync_config", id, attributes } }
|
|
10996
|
+
},
|
|
10428
10997
|
options
|
|
10429
10998
|
);
|
|
10430
10999
|
},
|
|
10431
11000
|
/** Delete a sync config. */
|
|
10432
11001
|
delete: async (id, options) => {
|
|
10433
|
-
return rb.execute(
|
|
11002
|
+
return rb.execute(
|
|
11003
|
+
deleteAdminIsvCrmSyncConfigsById,
|
|
11004
|
+
{ path: { id } },
|
|
11005
|
+
options
|
|
11006
|
+
);
|
|
10434
11007
|
}
|
|
10435
11008
|
}
|
|
10436
11009
|
};
|
|
10437
11010
|
}
|
|
10438
11011
|
|
|
11012
|
+
// src/namespaces/support.ts
|
|
11013
|
+
function createSupportNamespace(rb) {
|
|
11014
|
+
return {
|
|
11015
|
+
// --- Tickets ---
|
|
11016
|
+
tickets: {
|
|
11017
|
+
/** Get a support ticket by ID */
|
|
11018
|
+
get: async (id, options) => {
|
|
11019
|
+
return rb.execute(
|
|
11020
|
+
getAdminSupportTicketsById,
|
|
11021
|
+
{ path: { id } },
|
|
11022
|
+
options
|
|
11023
|
+
);
|
|
11024
|
+
},
|
|
11025
|
+
/** List tickets for a workspace */
|
|
11026
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
11027
|
+
return rb.execute(
|
|
11028
|
+
getAdminSupportTicketsWorkspaceByWorkspaceId,
|
|
11029
|
+
{ path: { workspace_id: workspaceId } },
|
|
11030
|
+
options
|
|
11031
|
+
);
|
|
11032
|
+
},
|
|
11033
|
+
/** Create a new support ticket */
|
|
11034
|
+
create: async (attributes, options) => {
|
|
11035
|
+
return rb.execute(
|
|
11036
|
+
postAdminSupportTickets,
|
|
11037
|
+
{ body: { data: { type: "support_ticket", attributes } } },
|
|
11038
|
+
options
|
|
11039
|
+
);
|
|
11040
|
+
},
|
|
11041
|
+
/** Update a support ticket */
|
|
11042
|
+
update: async (id, attributes, options) => {
|
|
11043
|
+
return rb.execute(
|
|
11044
|
+
patchAdminSupportTicketsById,
|
|
11045
|
+
{
|
|
11046
|
+
path: { id },
|
|
11047
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11048
|
+
},
|
|
11049
|
+
options
|
|
11050
|
+
);
|
|
11051
|
+
},
|
|
11052
|
+
/** Assign a ticket to an agent or queue */
|
|
11053
|
+
assign: async (id, attributes, options) => {
|
|
11054
|
+
return rb.execute(
|
|
11055
|
+
patchAdminSupportTicketsByIdAssign,
|
|
11056
|
+
{
|
|
11057
|
+
path: { id },
|
|
11058
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11059
|
+
},
|
|
11060
|
+
options
|
|
11061
|
+
);
|
|
11062
|
+
},
|
|
11063
|
+
/** Resolve a ticket */
|
|
11064
|
+
resolve: async (id, attributes, options) => {
|
|
11065
|
+
return rb.execute(
|
|
11066
|
+
patchAdminSupportTicketsByIdResolve,
|
|
11067
|
+
{
|
|
11068
|
+
path: { id },
|
|
11069
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11070
|
+
},
|
|
11071
|
+
options
|
|
11072
|
+
);
|
|
11073
|
+
},
|
|
11074
|
+
/** Close a resolved ticket */
|
|
11075
|
+
close: async (id, attributes, options) => {
|
|
11076
|
+
return rb.execute(
|
|
11077
|
+
patchAdminSupportTicketsByIdClose,
|
|
11078
|
+
{
|
|
11079
|
+
path: { id },
|
|
11080
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11081
|
+
},
|
|
11082
|
+
options
|
|
11083
|
+
);
|
|
11084
|
+
},
|
|
11085
|
+
/** Reopen a closed or resolved ticket */
|
|
11086
|
+
reopen: async (id, attributes, options) => {
|
|
11087
|
+
return rb.execute(
|
|
11088
|
+
patchAdminSupportTicketsByIdReopen,
|
|
11089
|
+
{
|
|
11090
|
+
path: { id },
|
|
11091
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11092
|
+
},
|
|
11093
|
+
options
|
|
11094
|
+
);
|
|
11095
|
+
},
|
|
11096
|
+
/** Merge a ticket into another ticket */
|
|
11097
|
+
merge: async (id, attributes, options) => {
|
|
11098
|
+
return rb.execute(
|
|
11099
|
+
patchAdminSupportTicketsByIdMerge,
|
|
11100
|
+
{
|
|
11101
|
+
path: { id },
|
|
11102
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11103
|
+
},
|
|
11104
|
+
options
|
|
11105
|
+
);
|
|
11106
|
+
},
|
|
11107
|
+
/** Delete a support ticket */
|
|
11108
|
+
delete: async (id, options) => {
|
|
11109
|
+
return rb.executeDelete(
|
|
11110
|
+
deleteAdminSupportTicketsById,
|
|
11111
|
+
{ path: { id } },
|
|
11112
|
+
options
|
|
11113
|
+
);
|
|
11114
|
+
}
|
|
11115
|
+
},
|
|
11116
|
+
// --- Messages ---
|
|
11117
|
+
messages: {
|
|
11118
|
+
/** List messages for a ticket */
|
|
11119
|
+
listByTicket: async (ticketId, options) => {
|
|
11120
|
+
return rb.execute(
|
|
11121
|
+
getAdminSupportTicketMessagesTicketByTicketId,
|
|
11122
|
+
{ path: { ticket_id: ticketId } },
|
|
11123
|
+
options
|
|
11124
|
+
);
|
|
11125
|
+
},
|
|
11126
|
+
/** Create a message on a ticket */
|
|
11127
|
+
create: async (attributes, options) => {
|
|
11128
|
+
return rb.execute(
|
|
11129
|
+
postAdminSupportTicketMessages,
|
|
11130
|
+
{ body: { data: { type: "support_ticket_message", attributes } } },
|
|
11131
|
+
options
|
|
11132
|
+
);
|
|
11133
|
+
}
|
|
11134
|
+
},
|
|
11135
|
+
// --- Attachments ---
|
|
11136
|
+
attachments: {
|
|
11137
|
+
/** List attachments for a ticket message */
|
|
11138
|
+
listByMessage: async (messageId, options) => {
|
|
11139
|
+
return rb.execute(
|
|
11140
|
+
getAdminSupportTicketAttachmentsMessageByTicketMessageId,
|
|
11141
|
+
{ path: { ticket_message_id: messageId } },
|
|
11142
|
+
options
|
|
11143
|
+
);
|
|
11144
|
+
},
|
|
11145
|
+
/** Create an attachment on a ticket message */
|
|
11146
|
+
create: async (attributes, options) => {
|
|
11147
|
+
return rb.execute(
|
|
11148
|
+
postAdminSupportTicketAttachments,
|
|
11149
|
+
{ body: { data: { type: "support_ticket_attachment", attributes } } },
|
|
11150
|
+
options
|
|
11151
|
+
);
|
|
11152
|
+
}
|
|
11153
|
+
},
|
|
11154
|
+
// --- Ratings ---
|
|
11155
|
+
ratings: {
|
|
11156
|
+
/** Create or update a satisfaction rating for a ticket */
|
|
11157
|
+
create: async (attributes, options) => {
|
|
11158
|
+
return rb.execute(
|
|
11159
|
+
postAdminSupportTicketRatings,
|
|
11160
|
+
{ body: { data: { type: "support_ticket_rating", attributes } } },
|
|
11161
|
+
options
|
|
11162
|
+
);
|
|
11163
|
+
}
|
|
11164
|
+
},
|
|
11165
|
+
// --- Tags ---
|
|
11166
|
+
tags: {
|
|
11167
|
+
/** List tags for a workspace */
|
|
11168
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
11169
|
+
return rb.execute(
|
|
11170
|
+
getAdminSupportTagsWorkspaceByWorkspaceId,
|
|
11171
|
+
{ path: { workspace_id: workspaceId } },
|
|
11172
|
+
options
|
|
11173
|
+
);
|
|
11174
|
+
},
|
|
11175
|
+
/** Create a tag */
|
|
11176
|
+
create: async (attributes, options) => {
|
|
11177
|
+
return rb.execute(
|
|
11178
|
+
postAdminSupportTags,
|
|
11179
|
+
{ body: { data: { type: "support_tag", attributes } } },
|
|
11180
|
+
options
|
|
11181
|
+
);
|
|
11182
|
+
},
|
|
11183
|
+
/** Delete a tag */
|
|
11184
|
+
delete: async (id, options) => {
|
|
11185
|
+
return rb.executeDelete(
|
|
11186
|
+
deleteAdminSupportTagsById,
|
|
11187
|
+
{ path: { id } },
|
|
11188
|
+
options
|
|
11189
|
+
);
|
|
11190
|
+
}
|
|
11191
|
+
},
|
|
11192
|
+
// --- Queues ---
|
|
11193
|
+
queues: {
|
|
11194
|
+
/** Get a queue by ID */
|
|
11195
|
+
get: async (id, options) => {
|
|
11196
|
+
return rb.execute(getAdminSupportQueuesById, { path: { id } }, options);
|
|
11197
|
+
},
|
|
11198
|
+
/** List queues for an application */
|
|
11199
|
+
listByApplication: async (applicationId, options) => {
|
|
11200
|
+
return rb.execute(
|
|
11201
|
+
getAdminSupportQueuesApplicationByApplicationId,
|
|
11202
|
+
{ path: { application_id: applicationId } },
|
|
11203
|
+
options
|
|
11204
|
+
);
|
|
11205
|
+
},
|
|
11206
|
+
/** Create a queue */
|
|
11207
|
+
create: async (attributes, options) => {
|
|
11208
|
+
return rb.execute(
|
|
11209
|
+
postAdminSupportQueues,
|
|
11210
|
+
{ body: { data: { type: "support_queue", attributes } } },
|
|
11211
|
+
options
|
|
11212
|
+
);
|
|
11213
|
+
},
|
|
11214
|
+
/** Update a queue */
|
|
11215
|
+
update: async (id, attributes, options) => {
|
|
11216
|
+
return rb.execute(
|
|
11217
|
+
patchAdminSupportQueuesById,
|
|
11218
|
+
{
|
|
11219
|
+
path: { id },
|
|
11220
|
+
body: { data: { type: "support_queue", id, attributes } }
|
|
11221
|
+
},
|
|
11222
|
+
options
|
|
11223
|
+
);
|
|
11224
|
+
},
|
|
11225
|
+
/** Delete a queue */
|
|
11226
|
+
delete: async (id, options) => {
|
|
11227
|
+
return rb.executeDelete(
|
|
11228
|
+
deleteAdminSupportQueuesById,
|
|
11229
|
+
{ path: { id } },
|
|
11230
|
+
options
|
|
11231
|
+
);
|
|
11232
|
+
}
|
|
11233
|
+
},
|
|
11234
|
+
// --- Queue Members ---
|
|
11235
|
+
queueMembers: {
|
|
11236
|
+
/** List members of a queue */
|
|
11237
|
+
listByQueue: async (queueId, options) => {
|
|
11238
|
+
return rb.execute(
|
|
11239
|
+
getAdminSupportQueueMembersQueueByQueueId,
|
|
11240
|
+
{ path: { queue_id: queueId } },
|
|
11241
|
+
options
|
|
11242
|
+
);
|
|
11243
|
+
},
|
|
11244
|
+
/** List all queue members for an application */
|
|
11245
|
+
listByApplication: async (applicationId, options) => {
|
|
11246
|
+
return rb.execute(
|
|
11247
|
+
getAdminSupportQueueMembersApplicationByApplicationId,
|
|
11248
|
+
{ path: { application_id: applicationId } },
|
|
11249
|
+
options
|
|
11250
|
+
);
|
|
11251
|
+
},
|
|
11252
|
+
/** Add a member to a queue */
|
|
11253
|
+
create: async (attributes, options) => {
|
|
11254
|
+
return rb.execute(
|
|
11255
|
+
postAdminSupportQueueMembers,
|
|
11256
|
+
{ body: { data: { type: "support_queue_member", attributes } } },
|
|
11257
|
+
options
|
|
11258
|
+
);
|
|
11259
|
+
},
|
|
11260
|
+
/** Update a queue member */
|
|
11261
|
+
update: async (id, attributes, options) => {
|
|
11262
|
+
return rb.execute(
|
|
11263
|
+
patchAdminSupportQueueMembersById,
|
|
11264
|
+
{
|
|
11265
|
+
path: { id },
|
|
11266
|
+
body: { data: { type: "support_queue_member", id, attributes } }
|
|
11267
|
+
},
|
|
11268
|
+
options
|
|
11269
|
+
);
|
|
11270
|
+
},
|
|
11271
|
+
/** Remove a member from a queue */
|
|
11272
|
+
delete: async (id, options) => {
|
|
11273
|
+
return rb.executeDelete(
|
|
11274
|
+
deleteAdminSupportQueueMembersById,
|
|
11275
|
+
{ path: { id } },
|
|
11276
|
+
options
|
|
11277
|
+
);
|
|
11278
|
+
}
|
|
11279
|
+
},
|
|
11280
|
+
// --- Routing Rules ---
|
|
11281
|
+
routingRules: {
|
|
11282
|
+
/** Get a routing rule by ID */
|
|
11283
|
+
get: async (id, options) => {
|
|
11284
|
+
return rb.execute(
|
|
11285
|
+
getAdminSupportRoutingRulesById,
|
|
11286
|
+
{ path: { id } },
|
|
11287
|
+
options
|
|
11288
|
+
);
|
|
11289
|
+
},
|
|
11290
|
+
/** List routing rules for an application */
|
|
11291
|
+
listByApplication: async (applicationId, options) => {
|
|
11292
|
+
return rb.execute(
|
|
11293
|
+
getAdminSupportRoutingRulesApplicationByApplicationId,
|
|
11294
|
+
{ path: { application_id: applicationId } },
|
|
11295
|
+
options
|
|
11296
|
+
);
|
|
11297
|
+
},
|
|
11298
|
+
/** Create a routing rule */
|
|
11299
|
+
create: async (attributes, options) => {
|
|
11300
|
+
return rb.execute(
|
|
11301
|
+
postAdminSupportRoutingRules,
|
|
11302
|
+
{ body: { data: { type: "support_routing_rule", attributes } } },
|
|
11303
|
+
options
|
|
11304
|
+
);
|
|
11305
|
+
},
|
|
11306
|
+
/** Update a routing rule */
|
|
11307
|
+
update: async (id, attributes, options) => {
|
|
11308
|
+
return rb.execute(
|
|
11309
|
+
patchAdminSupportRoutingRulesById,
|
|
11310
|
+
{
|
|
11311
|
+
path: { id },
|
|
11312
|
+
body: { data: { type: "support_routing_rule", id, attributes } }
|
|
11313
|
+
},
|
|
11314
|
+
options
|
|
11315
|
+
);
|
|
11316
|
+
},
|
|
11317
|
+
/** Delete a routing rule */
|
|
11318
|
+
delete: async (id, options) => {
|
|
11319
|
+
return rb.executeDelete(
|
|
11320
|
+
deleteAdminSupportRoutingRulesById,
|
|
11321
|
+
{ path: { id } },
|
|
11322
|
+
options
|
|
11323
|
+
);
|
|
11324
|
+
}
|
|
11325
|
+
},
|
|
11326
|
+
// --- SLA Policies ---
|
|
11327
|
+
slaPolicies: {
|
|
11328
|
+
/** Get an SLA policy by ID */
|
|
11329
|
+
get: async (id, options) => {
|
|
11330
|
+
return rb.execute(
|
|
11331
|
+
getAdminSupportSlaPoliciesById,
|
|
11332
|
+
{ path: { id } },
|
|
11333
|
+
options
|
|
11334
|
+
);
|
|
11335
|
+
},
|
|
11336
|
+
/** List SLA policies for an application */
|
|
11337
|
+
listByApplication: async (applicationId, options) => {
|
|
11338
|
+
return rb.execute(
|
|
11339
|
+
getAdminSupportSlaPoliciesApplicationByApplicationId,
|
|
11340
|
+
{ path: { application_id: applicationId } },
|
|
11341
|
+
options
|
|
11342
|
+
);
|
|
11343
|
+
},
|
|
11344
|
+
/** Create an SLA policy */
|
|
11345
|
+
create: async (attributes, options) => {
|
|
11346
|
+
return rb.execute(
|
|
11347
|
+
postAdminSupportSlaPolicies,
|
|
11348
|
+
{ body: { data: { type: "support_sla_policy", attributes } } },
|
|
11349
|
+
options
|
|
11350
|
+
);
|
|
11351
|
+
},
|
|
11352
|
+
/** Update an SLA policy */
|
|
11353
|
+
update: async (id, attributes, options) => {
|
|
11354
|
+
return rb.execute(
|
|
11355
|
+
patchAdminSupportSlaPoliciesById,
|
|
11356
|
+
{
|
|
11357
|
+
path: { id },
|
|
11358
|
+
body: { data: { type: "support_sla_policy", id, attributes } }
|
|
11359
|
+
},
|
|
11360
|
+
options
|
|
11361
|
+
);
|
|
11362
|
+
},
|
|
11363
|
+
/** Delete an SLA policy */
|
|
11364
|
+
delete: async (id, options) => {
|
|
11365
|
+
return rb.executeDelete(
|
|
11366
|
+
deleteAdminSupportSlaPoliciesById,
|
|
11367
|
+
{ path: { id } },
|
|
11368
|
+
options
|
|
11369
|
+
);
|
|
11370
|
+
}
|
|
11371
|
+
},
|
|
11372
|
+
// --- AI Config ---
|
|
11373
|
+
aiConfig: {
|
|
11374
|
+
/** Get AI config for a workspace */
|
|
11375
|
+
getForWorkspace: async (workspaceId, options) => {
|
|
11376
|
+
return rb.execute(
|
|
11377
|
+
getAdminSupportAiConfigsWorkspaceByWorkspaceId,
|
|
11378
|
+
{ path: { workspace_id: workspaceId } },
|
|
11379
|
+
options
|
|
11380
|
+
);
|
|
11381
|
+
},
|
|
11382
|
+
/** Create or update AI config */
|
|
11383
|
+
upsert: async (attributes, options) => {
|
|
11384
|
+
return rb.execute(
|
|
11385
|
+
postAdminSupportAiConfigs,
|
|
11386
|
+
{ body: { data: { type: "support_ai_config", attributes } } },
|
|
11387
|
+
options
|
|
11388
|
+
);
|
|
11389
|
+
}
|
|
11390
|
+
},
|
|
11391
|
+
// --- Channel Capture Config ---
|
|
11392
|
+
channelCaptureConfig: {
|
|
11393
|
+
/** Get channel capture config for a workspace */
|
|
11394
|
+
getForWorkspace: async (workspaceId, options) => {
|
|
11395
|
+
return rb.execute(
|
|
11396
|
+
getAdminSupportChannelCaptureConfigsWorkspaceByWorkspaceId,
|
|
11397
|
+
{ path: { workspace_id: workspaceId } },
|
|
11398
|
+
options
|
|
11399
|
+
);
|
|
11400
|
+
},
|
|
11401
|
+
/** Create or update channel capture config */
|
|
11402
|
+
upsert: async (attributes, options) => {
|
|
11403
|
+
return rb.execute(
|
|
11404
|
+
postAdminSupportChannelCaptureConfigs,
|
|
11405
|
+
{
|
|
11406
|
+
body: {
|
|
11407
|
+
data: { type: "support_channel_capture_config", attributes }
|
|
11408
|
+
}
|
|
11409
|
+
},
|
|
11410
|
+
options
|
|
11411
|
+
);
|
|
11412
|
+
}
|
|
11413
|
+
},
|
|
11414
|
+
// --- Sync Config ---
|
|
11415
|
+
syncConfig: {
|
|
11416
|
+
/** List sync configs for a workspace */
|
|
11417
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
11418
|
+
return rb.execute(
|
|
11419
|
+
getAdminSupportSyncConfigsWorkspaceByWorkspaceId,
|
|
11420
|
+
{ path: { workspace_id: workspaceId } },
|
|
11421
|
+
options
|
|
11422
|
+
);
|
|
11423
|
+
},
|
|
11424
|
+
/** Create a sync config */
|
|
11425
|
+
create: async (attributes, options) => {
|
|
11426
|
+
return rb.execute(
|
|
11427
|
+
postAdminSupportSyncConfigs,
|
|
11428
|
+
{ body: { data: { type: "support_sync_config", attributes } } },
|
|
11429
|
+
options
|
|
11430
|
+
);
|
|
11431
|
+
},
|
|
11432
|
+
/** Update a sync config */
|
|
11433
|
+
update: async (id, attributes, options) => {
|
|
11434
|
+
return rb.execute(
|
|
11435
|
+
patchAdminSupportSyncConfigsById,
|
|
11436
|
+
{
|
|
11437
|
+
path: { id },
|
|
11438
|
+
body: { data: { type: "support_sync_config", id, attributes } }
|
|
11439
|
+
},
|
|
11440
|
+
options
|
|
11441
|
+
);
|
|
11442
|
+
},
|
|
11443
|
+
/** Delete a sync config */
|
|
11444
|
+
delete: async (id, options) => {
|
|
11445
|
+
return rb.executeDelete(
|
|
11446
|
+
deleteAdminSupportSyncConfigsById,
|
|
11447
|
+
{ path: { id } },
|
|
11448
|
+
options
|
|
11449
|
+
);
|
|
11450
|
+
}
|
|
11451
|
+
},
|
|
11452
|
+
// --- Canned Responses ---
|
|
11453
|
+
cannedResponses: {
|
|
11454
|
+
/** List canned responses for a workspace */
|
|
11455
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
11456
|
+
return rb.execute(
|
|
11457
|
+
getAdminSupportCannedResponsesWorkspaceByWorkspaceId,
|
|
11458
|
+
{ path: { workspace_id: workspaceId } },
|
|
11459
|
+
options
|
|
11460
|
+
);
|
|
11461
|
+
},
|
|
11462
|
+
/** Create a canned response */
|
|
11463
|
+
create: async (attributes, options) => {
|
|
11464
|
+
return rb.execute(
|
|
11465
|
+
postAdminSupportCannedResponses,
|
|
11466
|
+
{ body: { data: { type: "support_canned_response", attributes } } },
|
|
11467
|
+
options
|
|
11468
|
+
);
|
|
11469
|
+
},
|
|
11470
|
+
/** Update a canned response */
|
|
11471
|
+
update: async (id, attributes, options) => {
|
|
11472
|
+
return rb.execute(
|
|
11473
|
+
patchAdminSupportCannedResponsesById,
|
|
11474
|
+
{
|
|
11475
|
+
path: { id },
|
|
11476
|
+
body: { data: { type: "support_canned_response", id, attributes } }
|
|
11477
|
+
},
|
|
11478
|
+
options
|
|
11479
|
+
);
|
|
11480
|
+
},
|
|
11481
|
+
/** Delete a canned response */
|
|
11482
|
+
delete: async (id, options) => {
|
|
11483
|
+
return rb.executeDelete(
|
|
11484
|
+
deleteAdminSupportCannedResponsesById,
|
|
11485
|
+
{ path: { id } },
|
|
11486
|
+
options
|
|
11487
|
+
);
|
|
11488
|
+
}
|
|
11489
|
+
}
|
|
11490
|
+
};
|
|
11491
|
+
}
|
|
11492
|
+
|
|
11493
|
+
// src/namespaces/models.ts
|
|
11494
|
+
function createModelsNamespace(rb) {
|
|
11495
|
+
return {
|
|
11496
|
+
/**
|
|
11497
|
+
* List available models with tier classification.
|
|
11498
|
+
*
|
|
11499
|
+
* @param options - Optional filters for tier and category.
|
|
11500
|
+
* @param reqOptions - Optional request options.
|
|
11501
|
+
* @returns Array of available models.
|
|
11502
|
+
*
|
|
11503
|
+
* @example
|
|
11504
|
+
* ```typescript
|
|
11505
|
+
* const admin = new GptAdmin({ apiKey: 'sk_srv_...' });
|
|
11506
|
+
*
|
|
11507
|
+
* // All models
|
|
11508
|
+
* const models = await admin.models.list();
|
|
11509
|
+
*
|
|
11510
|
+
* // Filter by tier
|
|
11511
|
+
* const standard = await admin.models.list({ tier: "standard" });
|
|
11512
|
+
* ```
|
|
11513
|
+
*/
|
|
11514
|
+
async list(options, reqOptions) {
|
|
11515
|
+
const params = new URLSearchParams();
|
|
11516
|
+
if (options?.tier) params.set("tier", options.tier);
|
|
11517
|
+
if (options?.category) params.set("category", options.category);
|
|
11518
|
+
const query = params.toString();
|
|
11519
|
+
const path = query ? `/isv/models?${query}` : "/isv/models";
|
|
11520
|
+
return rb.rawGet(path, reqOptions);
|
|
11521
|
+
},
|
|
11522
|
+
/**
|
|
11523
|
+
* Get a single model by ID.
|
|
11524
|
+
*
|
|
11525
|
+
* @param modelId - The model ID (e.g., "anthropic/claude-sonnet-4").
|
|
11526
|
+
* Do NOT URL-encode — model IDs contain literal slashes.
|
|
11527
|
+
* @param reqOptions - Optional request options.
|
|
11528
|
+
* @returns Model details with tier classification.
|
|
11529
|
+
*
|
|
11530
|
+
* @example
|
|
11531
|
+
* ```typescript
|
|
11532
|
+
* const model = await admin.models.get("anthropic/claude-sonnet-4");
|
|
11533
|
+
* console.log(model.tier); // "high_performance"
|
|
11534
|
+
* ```
|
|
11535
|
+
*/
|
|
11536
|
+
async get(modelId, reqOptions) {
|
|
11537
|
+
return rb.rawGet(`/isv/models/${modelId}`, reqOptions);
|
|
11538
|
+
}
|
|
11539
|
+
};
|
|
11540
|
+
}
|
|
11541
|
+
|
|
11542
|
+
// src/namespaces/ai.ts
|
|
11543
|
+
function createAiNamespace(rb) {
|
|
11544
|
+
return {
|
|
11545
|
+
/**
|
|
11546
|
+
* Sub-namespace for managing LLM provider configurations.
|
|
11547
|
+
*
|
|
11548
|
+
* Provider configs control which LLM provider and model an application
|
|
11549
|
+
* uses for inference. Each application can have its own config.
|
|
11550
|
+
*/
|
|
11551
|
+
providerConfig: {
|
|
11552
|
+
/**
|
|
11553
|
+
* Lists all provider configurations.
|
|
11554
|
+
*
|
|
11555
|
+
* @param options - Optional request options.
|
|
11556
|
+
* @returns A promise that resolves to an array of provider config objects.
|
|
11557
|
+
*
|
|
11558
|
+
* @example
|
|
11559
|
+
* const configs = await admin.ai.providerConfig.list();
|
|
11560
|
+
* console.log(`Provider configs: ${configs.length}`);
|
|
11561
|
+
*/
|
|
11562
|
+
list: async (options) => {
|
|
11563
|
+
return rb.execute(getAdminSysAiConfig, {}, options);
|
|
11564
|
+
},
|
|
11565
|
+
/**
|
|
11566
|
+
* Gets a provider configuration by ID.
|
|
11567
|
+
*
|
|
11568
|
+
* @param id - The UUID of the provider config.
|
|
11569
|
+
* @param options - Optional request options.
|
|
11570
|
+
* @returns A promise that resolves to the provider config object.
|
|
11571
|
+
*
|
|
11572
|
+
* @example
|
|
11573
|
+
* const config = await admin.ai.providerConfig.get('cfg_01HXYZ...');
|
|
11574
|
+
* console.log(`Provider: ${config.cloud_provider}`);
|
|
11575
|
+
*/
|
|
11576
|
+
get: async (id, options) => {
|
|
11577
|
+
return rb.execute(
|
|
11578
|
+
getAdminSysAiConfigById,
|
|
11579
|
+
{ path: { id } },
|
|
11580
|
+
options
|
|
11581
|
+
);
|
|
11582
|
+
},
|
|
11583
|
+
/**
|
|
11584
|
+
* Creates or upserts a provider configuration.
|
|
11585
|
+
*
|
|
11586
|
+
* @param attributes - The provider config attributes.
|
|
11587
|
+
* @param options - Optional request options.
|
|
11588
|
+
* @returns A promise that resolves to the created provider config.
|
|
11589
|
+
*
|
|
11590
|
+
* @example
|
|
11591
|
+
* const config = await admin.ai.providerConfig.create({
|
|
11592
|
+
* cloud_provider: 'openai',
|
|
11593
|
+
* cloud_model: 'gpt-4o',
|
|
11594
|
+
* });
|
|
11595
|
+
*/
|
|
11596
|
+
create: async (attributes, options) => {
|
|
11597
|
+
return rb.execute(
|
|
11598
|
+
postAdminSysAiConfig,
|
|
11599
|
+
{
|
|
11600
|
+
body: {
|
|
11601
|
+
data: {
|
|
11602
|
+
type: "ai-config",
|
|
11603
|
+
attributes
|
|
11604
|
+
}
|
|
11605
|
+
}
|
|
11606
|
+
},
|
|
11607
|
+
options
|
|
11608
|
+
);
|
|
11609
|
+
},
|
|
11610
|
+
/**
|
|
11611
|
+
* Updates a provider configuration by ID.
|
|
11612
|
+
*
|
|
11613
|
+
* @param id - The UUID of the provider config to update.
|
|
11614
|
+
* @param attributes - The attributes to update.
|
|
11615
|
+
* @param options - Optional request options.
|
|
11616
|
+
* @returns A promise that resolves to the updated provider config.
|
|
11617
|
+
*
|
|
11618
|
+
* @example
|
|
11619
|
+
* const updated = await admin.ai.providerConfig.update('cfg_01HXYZ...', {
|
|
11620
|
+
* cloud_model: 'gpt-4o-mini',
|
|
11621
|
+
* });
|
|
11622
|
+
*/
|
|
11623
|
+
update: async (id, attributes, options) => {
|
|
11624
|
+
return rb.execute(
|
|
11625
|
+
patchAdminSysAiConfigById,
|
|
11626
|
+
{
|
|
11627
|
+
path: { id },
|
|
11628
|
+
body: {
|
|
11629
|
+
data: {
|
|
11630
|
+
type: "ai-config",
|
|
11631
|
+
id,
|
|
11632
|
+
attributes
|
|
11633
|
+
}
|
|
11634
|
+
}
|
|
11635
|
+
},
|
|
11636
|
+
options
|
|
11637
|
+
);
|
|
11638
|
+
}
|
|
11639
|
+
},
|
|
11640
|
+
/**
|
|
11641
|
+
* Sub-namespace for querying LLM analytics and usage metrics.
|
|
11642
|
+
*
|
|
11643
|
+
* Provides admin-level access to token usage, costs, and platform-wide
|
|
11644
|
+
* metrics across all tenants and workspaces.
|
|
11645
|
+
*/
|
|
11646
|
+
analytics: {
|
|
11647
|
+
/**
|
|
11648
|
+
* Lists raw LLM analytics records.
|
|
11649
|
+
*
|
|
11650
|
+
* @param options - Optional request options.
|
|
11651
|
+
* @returns A promise that resolves to an array of analytics records.
|
|
11652
|
+
*
|
|
11653
|
+
* @example
|
|
11654
|
+
* const records = await admin.ai.analytics.list();
|
|
11655
|
+
* console.log(`Total records: ${records.length}`);
|
|
11656
|
+
*/
|
|
11657
|
+
list: async (options) => {
|
|
11658
|
+
return rb.execute(getAdminLlmAnalytics, {}, options);
|
|
11659
|
+
},
|
|
11660
|
+
/**
|
|
11661
|
+
* Gets a single LLM analytics record by ID.
|
|
11662
|
+
*
|
|
11663
|
+
* @param id - The UUID of the analytics record.
|
|
11664
|
+
* @param options - Optional request options.
|
|
11665
|
+
* @returns A promise that resolves to the analytics record.
|
|
11666
|
+
*/
|
|
11667
|
+
get: async (id, options) => {
|
|
11668
|
+
return rb.execute(
|
|
11669
|
+
getAdminLlmAnalyticsById,
|
|
11670
|
+
{ path: { id } },
|
|
11671
|
+
options
|
|
11672
|
+
);
|
|
11673
|
+
},
|
|
11674
|
+
/**
|
|
11675
|
+
* Records a new LLM analytics entry.
|
|
11676
|
+
*
|
|
11677
|
+
* @param attributes - The analytics entry attributes.
|
|
11678
|
+
* @param options - Optional request options.
|
|
11679
|
+
* @returns A promise that resolves to the created record.
|
|
11680
|
+
*/
|
|
11681
|
+
record: async (attributes, options) => {
|
|
11682
|
+
return rb.execute(
|
|
11683
|
+
postAdminLlmAnalytics,
|
|
11684
|
+
{
|
|
11685
|
+
body: {
|
|
11686
|
+
data: {
|
|
11687
|
+
type: "llm-analytics",
|
|
11688
|
+
attributes
|
|
11689
|
+
}
|
|
11690
|
+
}
|
|
11691
|
+
},
|
|
11692
|
+
options
|
|
11693
|
+
);
|
|
11694
|
+
},
|
|
11695
|
+
/**
|
|
11696
|
+
* Returns a token cost breakdown grouped by model and time period.
|
|
11697
|
+
*
|
|
11698
|
+
* @param options - Optional request options.
|
|
11699
|
+
* @returns A promise that resolves to a cost breakdown object.
|
|
11700
|
+
*
|
|
11701
|
+
* @example
|
|
11702
|
+
* const costs = await admin.ai.analytics.costs();
|
|
11703
|
+
* console.log(`Total spend: $${costs.total_usd}`);
|
|
11704
|
+
*/
|
|
11705
|
+
costs: async (options) => {
|
|
11706
|
+
return rb.execute(
|
|
11707
|
+
getAdminLlmAnalyticsCosts,
|
|
11708
|
+
{},
|
|
11709
|
+
options
|
|
11710
|
+
);
|
|
11711
|
+
},
|
|
11712
|
+
/**
|
|
11713
|
+
* Returns a high-level summary of LLM usage.
|
|
11714
|
+
*
|
|
11715
|
+
* @param options - Optional request options.
|
|
11716
|
+
* @returns A promise that resolves to a summary metrics object.
|
|
11717
|
+
*
|
|
11718
|
+
* @example
|
|
11719
|
+
* const summary = await admin.ai.analytics.summary();
|
|
11720
|
+
* console.log(`Total requests: ${summary.total_requests}`);
|
|
11721
|
+
*/
|
|
11722
|
+
summary: async (options) => {
|
|
11723
|
+
return rb.execute(
|
|
11724
|
+
getAdminLlmAnalyticsSummary,
|
|
11725
|
+
{},
|
|
11726
|
+
options
|
|
11727
|
+
);
|
|
11728
|
+
},
|
|
11729
|
+
/**
|
|
11730
|
+
* Returns time-series LLM usage data points.
|
|
11731
|
+
*
|
|
11732
|
+
* @param options - Optional request options.
|
|
11733
|
+
* @returns A promise that resolves to usage time-series data.
|
|
11734
|
+
*
|
|
11735
|
+
* @example
|
|
11736
|
+
* const usage = await admin.ai.analytics.usage();
|
|
11737
|
+
* for (const point of usage.data_points) {
|
|
11738
|
+
* console.log(`${point.timestamp}: ${point.tokens} tokens`);
|
|
11739
|
+
* }
|
|
11740
|
+
*/
|
|
11741
|
+
usage: async (options) => {
|
|
11742
|
+
return rb.execute(
|
|
11743
|
+
getAdminLlmAnalyticsUsage,
|
|
11744
|
+
{},
|
|
11745
|
+
options
|
|
11746
|
+
);
|
|
11747
|
+
},
|
|
11748
|
+
/**
|
|
11749
|
+
* Returns workspace-scoped LLM metrics.
|
|
11750
|
+
*
|
|
11751
|
+
* @param options - Optional request options.
|
|
11752
|
+
* @returns A promise that resolves to workspace metrics.
|
|
11753
|
+
*/
|
|
11754
|
+
workspace: async (options) => {
|
|
11755
|
+
return rb.execute(
|
|
11756
|
+
getAdminLlmAnalyticsWorkspace,
|
|
11757
|
+
{},
|
|
11758
|
+
options
|
|
11759
|
+
);
|
|
11760
|
+
},
|
|
11761
|
+
/**
|
|
11762
|
+
* Returns platform-wide LLM summary across all applications and tenants.
|
|
11763
|
+
*
|
|
11764
|
+
* @param options - Optional request options.
|
|
11765
|
+
* @returns A promise that resolves to platform summary metrics.
|
|
11766
|
+
*
|
|
11767
|
+
* @example
|
|
11768
|
+
* const platform = await admin.ai.analytics.platformSummary();
|
|
11769
|
+
* console.log(`Platform total: $${platform.total_usd}`);
|
|
11770
|
+
*/
|
|
11771
|
+
platformSummary: async (options) => {
|
|
11772
|
+
return rb.execute(
|
|
11773
|
+
getAdminLlmAnalyticsPlatform,
|
|
11774
|
+
{},
|
|
11775
|
+
options
|
|
11776
|
+
);
|
|
11777
|
+
}
|
|
11778
|
+
},
|
|
11779
|
+
/**
|
|
11780
|
+
* Sub-namespace for semantic cache management.
|
|
11781
|
+
*
|
|
11782
|
+
* The semantic cache stores LLM prompt/response pairs indexed by vector
|
|
11783
|
+
* similarity. Admins can inspect cache entries and clear the cache.
|
|
11784
|
+
*/
|
|
11785
|
+
cache: {
|
|
11786
|
+
/**
|
|
11787
|
+
* Gets a semantic cache entry by ID.
|
|
11788
|
+
*
|
|
11789
|
+
* @param id - The UUID of the cache entry.
|
|
11790
|
+
* @param options - Optional request options.
|
|
11791
|
+
* @returns A promise that resolves to the cache entry.
|
|
11792
|
+
*/
|
|
11793
|
+
get: async (id, options) => {
|
|
11794
|
+
return rb.execute(
|
|
11795
|
+
getAdminSysSemanticCacheById,
|
|
11796
|
+
{ path: { id } },
|
|
11797
|
+
options
|
|
11798
|
+
);
|
|
11799
|
+
},
|
|
11800
|
+
/**
|
|
11801
|
+
* Clears the semantic cache.
|
|
11802
|
+
*
|
|
11803
|
+
* Removes all cached prompt/response pairs. This is irreversible.
|
|
11804
|
+
*
|
|
11805
|
+
* @param options - Optional request options.
|
|
11806
|
+
* @returns A promise that resolves when the cache is cleared.
|
|
11807
|
+
*
|
|
11808
|
+
* @example
|
|
11809
|
+
* await admin.ai.cache.clear();
|
|
11810
|
+
* console.log('Semantic cache cleared');
|
|
11811
|
+
*/
|
|
11812
|
+
clear: async (options) => {
|
|
11813
|
+
return rb.execute(postAdminSysSemanticCacheClear, {}, options);
|
|
11814
|
+
}
|
|
11815
|
+
}
|
|
11816
|
+
};
|
|
11817
|
+
}
|
|
11818
|
+
|
|
11819
|
+
// src/namespaces/crm-clusters.ts
|
|
11820
|
+
function createCrmClustersNamespace(rb) {
|
|
11821
|
+
return {
|
|
11822
|
+
/**
|
|
11823
|
+
* Discovers relationship clusters in the workspace CRM using community detection.
|
|
11824
|
+
* Each cluster is automatically labeled by AI.
|
|
11825
|
+
*
|
|
11826
|
+
* @param workspaceId - The workspace ID to discover clusters for
|
|
11827
|
+
* @returns Array of discovered clusters with AI-generated labels
|
|
11828
|
+
* @example
|
|
11829
|
+
* ```typescript
|
|
11830
|
+
* const { data } = await admin.crmClusters.discover('workspace-uuid');
|
|
11831
|
+
* ```
|
|
11832
|
+
*/
|
|
11833
|
+
async discover(workspaceId) {
|
|
11834
|
+
return rb.rawGet(
|
|
11835
|
+
`/isv/crm/clusters?workspace_id=${encodeURIComponent(workspaceId)}`
|
|
11836
|
+
);
|
|
11837
|
+
}
|
|
11838
|
+
};
|
|
11839
|
+
}
|
|
11840
|
+
|
|
11841
|
+
// src/namespaces/compliance.ts
|
|
11842
|
+
function createComplianceNamespace(rb) {
|
|
11843
|
+
return {
|
|
11844
|
+
/**
|
|
11845
|
+
* Scans text for PII and PHI violations (HIPAA Safe Harbor).
|
|
11846
|
+
*
|
|
11847
|
+
* @param text - The text to scan for compliance violations
|
|
11848
|
+
* @returns Scan result with clean flag, detections, and scrubbed preview
|
|
11849
|
+
* @example
|
|
11850
|
+
* ```typescript
|
|
11851
|
+
* const result = await admin.compliance.scan('Patient DOB: 03/15/1985');
|
|
11852
|
+
* ```
|
|
11853
|
+
*/
|
|
11854
|
+
async scan(text) {
|
|
11855
|
+
return rb.rawPost("/isv/compliance/scan", { text });
|
|
11856
|
+
}
|
|
11857
|
+
};
|
|
11858
|
+
}
|
|
11859
|
+
|
|
11860
|
+
// src/namespaces/tenants.ts
|
|
11861
|
+
function createTenantsNamespace(rb) {
|
|
11862
|
+
return {
|
|
11863
|
+
/**
|
|
11864
|
+
* Suspends a tenant, preventing billing charges and access.
|
|
11865
|
+
*
|
|
11866
|
+
* @param id - Tenant UUID
|
|
11867
|
+
* @param reason - Human-readable reason for suspension (required)
|
|
11868
|
+
* @returns Updated tenant id and status
|
|
11869
|
+
*/
|
|
11870
|
+
async suspend(id, reason) {
|
|
11871
|
+
return rb.rawPost(`/isv/tenants/${id}/suspend`, {
|
|
11872
|
+
reason
|
|
11873
|
+
});
|
|
11874
|
+
},
|
|
11875
|
+
/**
|
|
11876
|
+
* Restores a suspended tenant to active status.
|
|
11877
|
+
*
|
|
11878
|
+
* @param id - Tenant UUID
|
|
11879
|
+
* @returns Updated tenant id and status
|
|
11880
|
+
*/
|
|
11881
|
+
async unsuspend(id) {
|
|
11882
|
+
return rb.rawPost(
|
|
11883
|
+
`/isv/tenants/${id}/unsuspend`,
|
|
11884
|
+
{}
|
|
11885
|
+
);
|
|
11886
|
+
},
|
|
11887
|
+
/**
|
|
11888
|
+
* Permanently cancels a tenant.
|
|
11889
|
+
*
|
|
11890
|
+
* @param id - Tenant UUID
|
|
11891
|
+
* @returns Updated tenant id and status
|
|
11892
|
+
*/
|
|
11893
|
+
async cancel(id) {
|
|
11894
|
+
return rb.rawPost(`/isv/tenants/${id}/cancel`, {});
|
|
11895
|
+
}
|
|
11896
|
+
};
|
|
11897
|
+
}
|
|
11898
|
+
|
|
10439
11899
|
// src/gpt-admin.ts
|
|
10440
11900
|
var GptAdmin = class extends BaseClient {
|
|
10441
11901
|
constructor(config) {
|
|
@@ -10467,6 +11927,12 @@ var GptAdmin = class extends BaseClient {
|
|
|
10467
11927
|
this.crawler = createCrawlerNamespace(rb);
|
|
10468
11928
|
this.scheduling = createSchedulingNamespace(rb);
|
|
10469
11929
|
this.crm = createCrmNamespace(rb);
|
|
11930
|
+
this.support = createSupportNamespace(rb);
|
|
11931
|
+
this.models = createModelsNamespace(rb);
|
|
11932
|
+
this.ai = createAiNamespace(rb);
|
|
11933
|
+
this.crmClusters = createCrmClustersNamespace(rb);
|
|
11934
|
+
this.compliance = createComplianceNamespace(rb);
|
|
11935
|
+
this.tenants = createTenantsNamespace(rb);
|
|
10470
11936
|
}
|
|
10471
11937
|
};
|
|
10472
11938
|
|