@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.mjs
CHANGED
|
@@ -814,7 +814,7 @@ var createClient = (config = {}) => {
|
|
|
814
814
|
};
|
|
815
815
|
|
|
816
816
|
// src/version.ts
|
|
817
|
-
var SDK_VERSION = "0.5.
|
|
817
|
+
var SDK_VERSION = "0.5.2";
|
|
818
818
|
var DEFAULT_API_VERSION = "2026-02-27";
|
|
819
819
|
|
|
820
820
|
// src/base-client.ts
|
|
@@ -1412,6 +1412,34 @@ var patchAdminSchedulingParticipantsById = (options) => (options.client ?? clien
|
|
|
1412
1412
|
...options.headers
|
|
1413
1413
|
}
|
|
1414
1414
|
});
|
|
1415
|
+
var patchAdminSupportTicketsByIdClose = (options) => (options.client ?? client).patch({
|
|
1416
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1417
|
+
url: "/admin/support/tickets/{id}/close",
|
|
1418
|
+
...options,
|
|
1419
|
+
headers: {
|
|
1420
|
+
"Content-Type": "application/vnd.api+json",
|
|
1421
|
+
...options.headers
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1424
|
+
var deleteAdminSupportTicketsById = (options) => (options.client ?? client).delete({
|
|
1425
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1426
|
+
url: "/admin/support/tickets/{id}",
|
|
1427
|
+
...options
|
|
1428
|
+
});
|
|
1429
|
+
var getAdminSupportTicketsById = (options) => (options.client ?? client).get({
|
|
1430
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1431
|
+
url: "/admin/support/tickets/{id}",
|
|
1432
|
+
...options
|
|
1433
|
+
});
|
|
1434
|
+
var patchAdminSupportTicketsById = (options) => (options.client ?? client).patch({
|
|
1435
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1436
|
+
url: "/admin/support/tickets/{id}",
|
|
1437
|
+
...options,
|
|
1438
|
+
headers: {
|
|
1439
|
+
"Content-Type": "application/vnd.api+json",
|
|
1440
|
+
...options.headers
|
|
1441
|
+
}
|
|
1442
|
+
});
|
|
1415
1443
|
var deleteAdminFeatureDefinitionsById = (options) => (options.client ?? client).delete({
|
|
1416
1444
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1417
1445
|
url: "/admin/feature-definitions/{id}",
|
|
@@ -1545,6 +1573,15 @@ var getAdminExtractionResultsDocumentByDocumentIdHistory = (options) => (options
|
|
|
1545
1573
|
url: "/admin/extraction/results/document/{document_id}/history",
|
|
1546
1574
|
...options
|
|
1547
1575
|
});
|
|
1576
|
+
var postAdminSupportChannelCaptureConfigs = (options) => (options.client ?? client).post({
|
|
1577
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1578
|
+
url: "/admin/support/channel-capture-configs",
|
|
1579
|
+
...options,
|
|
1580
|
+
headers: {
|
|
1581
|
+
"Content-Type": "application/vnd.api+json",
|
|
1582
|
+
...options.headers
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1548
1585
|
var patchAdminStorageFilesByIdSoftDelete = (options) => (options.client ?? client).patch({
|
|
1549
1586
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1550
1587
|
url: "/admin/storage-files/{id}/soft-delete",
|
|
@@ -1577,6 +1614,11 @@ var postAdminSchedulingEvents = (options) => (options.client ?? client).post({
|
|
|
1577
1614
|
...options.headers
|
|
1578
1615
|
}
|
|
1579
1616
|
});
|
|
1617
|
+
var getAdminLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
1618
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1619
|
+
url: "/admin/llm-analytics/summary",
|
|
1620
|
+
...options
|
|
1621
|
+
});
|
|
1580
1622
|
var getAdminExtractionDocumentsWorkspaceByWorkspaceIdTrained = (options) => (options.client ?? client).get({
|
|
1581
1623
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1582
1624
|
url: "/admin/extraction/documents/workspace/{workspace_id}/trained",
|
|
@@ -1708,6 +1750,15 @@ var patchAdminApiKeysByIdSetBudget = (options) => (options.client ?? client).pat
|
|
|
1708
1750
|
...options.headers
|
|
1709
1751
|
}
|
|
1710
1752
|
});
|
|
1753
|
+
var postAdminSupportQueues = (options) => (options.client ?? client).post({
|
|
1754
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1755
|
+
url: "/admin/support/queues",
|
|
1756
|
+
...options,
|
|
1757
|
+
headers: {
|
|
1758
|
+
"Content-Type": "application/vnd.api+json",
|
|
1759
|
+
...options.headers
|
|
1760
|
+
}
|
|
1761
|
+
});
|
|
1711
1762
|
var deleteAdminCrawlerSchedulesById = (options) => (options.client ?? client).delete({
|
|
1712
1763
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1713
1764
|
url: "/admin/crawler/schedules/{id}",
|
|
@@ -1761,6 +1812,20 @@ var getAdminExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = (options) =>
|
|
|
1761
1812
|
url: "/admin/extraction/documents/workspace/{workspace_id}/review-queue",
|
|
1762
1813
|
...options
|
|
1763
1814
|
});
|
|
1815
|
+
var getAdminSupportTagsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1816
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1817
|
+
url: "/admin/support/tags/workspace/{workspace_id}",
|
|
1818
|
+
...options
|
|
1819
|
+
});
|
|
1820
|
+
var postAdminSupportTicketAttachments = (options) => (options.client ?? client).post({
|
|
1821
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1822
|
+
url: "/admin/support/ticket-attachments",
|
|
1823
|
+
...options,
|
|
1824
|
+
headers: {
|
|
1825
|
+
"Content-Type": "application/vnd.api+json",
|
|
1826
|
+
...options.headers
|
|
1827
|
+
}
|
|
1828
|
+
});
|
|
1764
1829
|
var postAdminAgentsCloneForWorkspace = (options) => (options.client ?? client).post({
|
|
1765
1830
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1766
1831
|
url: "/admin/agents/clone-for-workspace",
|
|
@@ -1850,6 +1915,11 @@ var patchAdminStorageRecommendationsByIdDismiss = (options) => (options.client ?
|
|
|
1850
1915
|
...options.headers
|
|
1851
1916
|
}
|
|
1852
1917
|
});
|
|
1918
|
+
var getAdminSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1919
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1920
|
+
url: "/admin/support/tickets/workspace/{workspace_id}",
|
|
1921
|
+
...options
|
|
1922
|
+
});
|
|
1853
1923
|
var postAdminAgentsByIdExport = (options) => (options.client ?? client).post({
|
|
1854
1924
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1855
1925
|
url: "/admin/agents/{id}/export",
|
|
@@ -1901,6 +1971,20 @@ var patchAdminCrawlerSchedulesByIdTrigger = (options) => (options.client ?? clie
|
|
|
1901
1971
|
...options.headers
|
|
1902
1972
|
}
|
|
1903
1973
|
});
|
|
1974
|
+
var getAdminLlmAnalytics = (options) => (options.client ?? client).get({
|
|
1975
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1976
|
+
url: "/admin/llm-analytics",
|
|
1977
|
+
...options
|
|
1978
|
+
});
|
|
1979
|
+
var postAdminLlmAnalytics = (options) => (options.client ?? client).post({
|
|
1980
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1981
|
+
url: "/admin/llm-analytics",
|
|
1982
|
+
...options,
|
|
1983
|
+
headers: {
|
|
1984
|
+
"Content-Type": "application/vnd.api+json",
|
|
1985
|
+
...options.headers
|
|
1986
|
+
}
|
|
1987
|
+
});
|
|
1904
1988
|
var getAdminSchedulingEventsByParticipant = (options) => (options.client ?? client).get({
|
|
1905
1989
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1906
1990
|
url: "/admin/scheduling/events/by_participant",
|
|
@@ -1954,6 +2038,11 @@ var getAdminEmailMarketingCampaignsById = (options) => (options.client ?? client
|
|
|
1954
2038
|
url: "/admin/email-marketing/campaigns/{id}",
|
|
1955
2039
|
...options
|
|
1956
2040
|
});
|
|
2041
|
+
var getAdminSupportSlaPoliciesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
2042
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2043
|
+
url: "/admin/support/sla-policies/application/{application_id}",
|
|
2044
|
+
...options
|
|
2045
|
+
});
|
|
1957
2046
|
var getAdminWebhookDeliveriesById = (options) => (options.client ?? client).get({
|
|
1958
2047
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1959
2048
|
url: "/admin/webhook-deliveries/{id}",
|
|
@@ -2095,6 +2184,11 @@ var postAdminSchedulingParticipants = (options) => (options.client ?? client).po
|
|
|
2095
2184
|
...options.headers
|
|
2096
2185
|
}
|
|
2097
2186
|
});
|
|
2187
|
+
var deleteAdminSupportTagsById = (options) => (options.client ?? client).delete({
|
|
2188
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2189
|
+
url: "/admin/support/tags/{id}",
|
|
2190
|
+
...options
|
|
2191
|
+
});
|
|
2098
2192
|
var deleteAdminTrainingExamplesById = (options) => (options.client ?? client).delete({
|
|
2099
2193
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2100
2194
|
url: "/admin/training-examples/{id}",
|
|
@@ -2189,6 +2283,15 @@ var patchAdminCrmContactsById = (options) => (options.client ?? client).patch({
|
|
|
2189
2283
|
...options.headers
|
|
2190
2284
|
}
|
|
2191
2285
|
});
|
|
2286
|
+
var postAdminSupportTags = (options) => (options.client ?? client).post({
|
|
2287
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2288
|
+
url: "/admin/support/tags",
|
|
2289
|
+
...options,
|
|
2290
|
+
headers: {
|
|
2291
|
+
"Content-Type": "application/vnd.api+json",
|
|
2292
|
+
...options.headers
|
|
2293
|
+
}
|
|
2294
|
+
});
|
|
2192
2295
|
var deleteAdminCrmCustomEntitiesById = (options) => (options.client ?? client).delete({
|
|
2193
2296
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2194
2297
|
url: "/admin/crm/custom-entities/{id}",
|
|
@@ -2217,6 +2320,11 @@ var postAdminTrainingExamplesBulkDelete = (options) => (options.client ?? client
|
|
|
2217
2320
|
...options.headers
|
|
2218
2321
|
}
|
|
2219
2322
|
});
|
|
2323
|
+
var getAdminLlmAnalyticsPlatform = (options) => (options.client ?? client).get({
|
|
2324
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2325
|
+
url: "/admin/llm-analytics/platform",
|
|
2326
|
+
...options
|
|
2327
|
+
});
|
|
2220
2328
|
var deleteAdminExtractionWorkflowsById = (options) => (options.client ?? client).delete({
|
|
2221
2329
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2222
2330
|
url: "/admin/extraction-workflows/{id}",
|
|
@@ -2260,6 +2368,15 @@ var getAdminVoiceTranscriptionResultsSessionBySessionId = (options) => (options.
|
|
|
2260
2368
|
url: "/admin/voice/transcription-results/session/{session_id}",
|
|
2261
2369
|
...options
|
|
2262
2370
|
});
|
|
2371
|
+
var patchAdminSupportTicketsByIdReopen = (options) => (options.client ?? client).patch({
|
|
2372
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2373
|
+
url: "/admin/support/tickets/{id}/reopen",
|
|
2374
|
+
...options,
|
|
2375
|
+
headers: {
|
|
2376
|
+
"Content-Type": "application/vnd.api+json",
|
|
2377
|
+
...options.headers
|
|
2378
|
+
}
|
|
2379
|
+
});
|
|
2263
2380
|
var getAdminIsvCrmChannelCaptureConfigById = (options) => (options.client ?? client).get({
|
|
2264
2381
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2265
2382
|
url: "/admin/isv/crm/channel-capture-config/{id}",
|
|
@@ -2335,6 +2452,11 @@ var getAdminCrmCustomEntitiesByEntityIdVersionsById = (options) => (options.clie
|
|
|
2335
2452
|
url: "/admin/crm/custom-entities/{entity_id}/versions/{id}",
|
|
2336
2453
|
...options
|
|
2337
2454
|
});
|
|
2455
|
+
var getAdminSupportQueueMembersApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
2456
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2457
|
+
url: "/admin/support/queue-members/application/{application_id}",
|
|
2458
|
+
...options
|
|
2459
|
+
});
|
|
2338
2460
|
var getAdminConnectorsOauthAppConfigs = (options) => (options.client ?? client).get({
|
|
2339
2461
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2340
2462
|
url: "/admin/connectors/oauth-app-configs",
|
|
@@ -2452,6 +2574,20 @@ var patchAdminWebhookConfigsById = (options) => (options.client ?? client).patch
|
|
|
2452
2574
|
...options.headers
|
|
2453
2575
|
}
|
|
2454
2576
|
});
|
|
2577
|
+
var deleteAdminSupportSyncConfigsById = (options) => (options.client ?? client).delete({
|
|
2578
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2579
|
+
url: "/admin/support/sync-configs/{id}",
|
|
2580
|
+
...options
|
|
2581
|
+
});
|
|
2582
|
+
var patchAdminSupportSyncConfigsById = (options) => (options.client ?? client).patch({
|
|
2583
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2584
|
+
url: "/admin/support/sync-configs/{id}",
|
|
2585
|
+
...options,
|
|
2586
|
+
headers: {
|
|
2587
|
+
"Content-Type": "application/vnd.api+json",
|
|
2588
|
+
...options.headers
|
|
2589
|
+
}
|
|
2590
|
+
});
|
|
2455
2591
|
var getAdminSchedulingReminders = (options) => (options.client ?? client).get({
|
|
2456
2592
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2457
2593
|
url: "/admin/scheduling/reminders",
|
|
@@ -2759,6 +2895,29 @@ var getAdminExtractionShadowComparisonsAnalysis = (options) => (options.client ?
|
|
|
2759
2895
|
url: "/admin/extraction/shadow-comparisons/analysis",
|
|
2760
2896
|
...options
|
|
2761
2897
|
});
|
|
2898
|
+
var patchAdminSupportTicketsByIdAssign = (options) => (options.client ?? client).patch({
|
|
2899
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2900
|
+
url: "/admin/support/tickets/{id}/assign",
|
|
2901
|
+
...options,
|
|
2902
|
+
headers: {
|
|
2903
|
+
"Content-Type": "application/vnd.api+json",
|
|
2904
|
+
...options.headers
|
|
2905
|
+
}
|
|
2906
|
+
});
|
|
2907
|
+
var getAdminSysAiConfigById = (options) => (options.client ?? client).get({
|
|
2908
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2909
|
+
url: "/admin/sys/ai-config/{id}",
|
|
2910
|
+
...options
|
|
2911
|
+
});
|
|
2912
|
+
var patchAdminSysAiConfigById = (options) => (options.client ?? client).patch({
|
|
2913
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2914
|
+
url: "/admin/sys/ai-config/{id}",
|
|
2915
|
+
...options,
|
|
2916
|
+
headers: {
|
|
2917
|
+
"Content-Type": "application/vnd.api+json",
|
|
2918
|
+
...options.headers
|
|
2919
|
+
}
|
|
2920
|
+
});
|
|
2762
2921
|
var patchAdminWalletPlan = (options) => (options.client ?? client).patch({
|
|
2763
2922
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2764
2923
|
url: "/admin/wallet/plan",
|
|
@@ -2812,11 +2971,49 @@ var getAdminWalletUsage = (options) => (options.client ?? client).get({
|
|
|
2812
2971
|
url: "/admin/wallet/usage",
|
|
2813
2972
|
...options
|
|
2814
2973
|
});
|
|
2974
|
+
var deleteAdminSupportSlaPoliciesById = (options) => (options.client ?? client).delete({
|
|
2975
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2976
|
+
url: "/admin/support/sla-policies/{id}",
|
|
2977
|
+
...options
|
|
2978
|
+
});
|
|
2979
|
+
var getAdminSupportSlaPoliciesById = (options) => (options.client ?? client).get({
|
|
2980
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2981
|
+
url: "/admin/support/sla-policies/{id}",
|
|
2982
|
+
...options
|
|
2983
|
+
});
|
|
2984
|
+
var patchAdminSupportSlaPoliciesById = (options) => (options.client ?? client).patch({
|
|
2985
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2986
|
+
url: "/admin/support/sla-policies/{id}",
|
|
2987
|
+
...options,
|
|
2988
|
+
headers: {
|
|
2989
|
+
"Content-Type": "application/vnd.api+json",
|
|
2990
|
+
...options.headers
|
|
2991
|
+
}
|
|
2992
|
+
});
|
|
2815
2993
|
var getAdminSocialMetricsById = (options) => (options.client ?? client).get({
|
|
2816
2994
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2817
2995
|
url: "/admin/social/metrics/{id}",
|
|
2818
2996
|
...options
|
|
2819
2997
|
});
|
|
2998
|
+
var deleteAdminSupportRoutingRulesById = (options) => (options.client ?? client).delete({
|
|
2999
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3000
|
+
url: "/admin/support/routing-rules/{id}",
|
|
3001
|
+
...options
|
|
3002
|
+
});
|
|
3003
|
+
var getAdminSupportRoutingRulesById = (options) => (options.client ?? client).get({
|
|
3004
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3005
|
+
url: "/admin/support/routing-rules/{id}",
|
|
3006
|
+
...options
|
|
3007
|
+
});
|
|
3008
|
+
var patchAdminSupportRoutingRulesById = (options) => (options.client ?? client).patch({
|
|
3009
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3010
|
+
url: "/admin/support/routing-rules/{id}",
|
|
3011
|
+
...options,
|
|
3012
|
+
headers: {
|
|
3013
|
+
"Content-Type": "application/vnd.api+json",
|
|
3014
|
+
...options.headers
|
|
3015
|
+
}
|
|
3016
|
+
});
|
|
2820
3017
|
var getAdminStorageFilesByChecksum = (options) => (options.client ?? client).get({
|
|
2821
3018
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2822
3019
|
url: "/admin/storage-files/by-checksum",
|
|
@@ -2851,6 +3048,11 @@ var getAdminVoiceSessionsWorkspaceByWorkspaceId = (options) => (options.client ?
|
|
|
2851
3048
|
url: "/admin/voice/sessions/workspace/{workspace_id}",
|
|
2852
3049
|
...options
|
|
2853
3050
|
});
|
|
3051
|
+
var getAdminSysSemanticCacheById = (options) => (options.client ?? client).get({
|
|
3052
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3053
|
+
url: "/admin/sys/semantic-cache/{id}",
|
|
3054
|
+
...options
|
|
3055
|
+
});
|
|
2854
3056
|
var patchAdminCrmDealsByIdMoveStage = (options) => (options.client ?? client).patch({
|
|
2855
3057
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2856
3058
|
url: "/admin/crm/deals/{id}/move-stage",
|
|
@@ -2860,6 +3062,11 @@ var patchAdminCrmDealsByIdMoveStage = (options) => (options.client ?? client).pa
|
|
|
2860
3062
|
...options.headers
|
|
2861
3063
|
}
|
|
2862
3064
|
});
|
|
3065
|
+
var getAdminSupportQueuesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
3066
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3067
|
+
url: "/admin/support/queues/application/{application_id}",
|
|
3068
|
+
...options
|
|
3069
|
+
});
|
|
2863
3070
|
var getAdminSocialMetricsPostBySocialPostIdLatest = (options) => (options.client ?? client).get({
|
|
2864
3071
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2865
3072
|
url: "/admin/social/metrics/post/{social_post_id}/latest",
|
|
@@ -2926,11 +3133,39 @@ var getAdminUsersByEmail = (options) => (options.client ?? client).get({
|
|
|
2926
3133
|
url: "/admin/users/by-email",
|
|
2927
3134
|
...options
|
|
2928
3135
|
});
|
|
3136
|
+
var deleteAdminSupportQueuesById = (options) => (options.client ?? client).delete({
|
|
3137
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3138
|
+
url: "/admin/support/queues/{id}",
|
|
3139
|
+
...options
|
|
3140
|
+
});
|
|
3141
|
+
var getAdminSupportQueuesById = (options) => (options.client ?? client).get({
|
|
3142
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3143
|
+
url: "/admin/support/queues/{id}",
|
|
3144
|
+
...options
|
|
3145
|
+
});
|
|
3146
|
+
var patchAdminSupportQueuesById = (options) => (options.client ?? client).patch({
|
|
3147
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3148
|
+
url: "/admin/support/queues/{id}",
|
|
3149
|
+
...options,
|
|
3150
|
+
headers: {
|
|
3151
|
+
"Content-Type": "application/vnd.api+json",
|
|
3152
|
+
...options.headers
|
|
3153
|
+
}
|
|
3154
|
+
});
|
|
2929
3155
|
var getAdminFeatureDefinitionsByApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
2930
3156
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2931
3157
|
url: "/admin/feature-definitions/by-application/{application_id}",
|
|
2932
3158
|
...options
|
|
2933
3159
|
});
|
|
3160
|
+
var postAdminSupportTickets = (options) => (options.client ?? client).post({
|
|
3161
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3162
|
+
url: "/admin/support/tickets",
|
|
3163
|
+
...options,
|
|
3164
|
+
headers: {
|
|
3165
|
+
"Content-Type": "application/vnd.api+json",
|
|
3166
|
+
...options.headers
|
|
3167
|
+
}
|
|
3168
|
+
});
|
|
2934
3169
|
var getAdminCrawlerResultsById = (options) => (options.client ?? client).get({
|
|
2935
3170
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2936
3171
|
url: "/admin/crawler/results/{id}",
|
|
@@ -3040,6 +3275,11 @@ var getAdminSchedulingEventsByDateRange = (options) => (options.client ?? client
|
|
|
3040
3275
|
url: "/admin/scheduling/events/by_date_range",
|
|
3041
3276
|
...options
|
|
3042
3277
|
});
|
|
3278
|
+
var getAdminLlmAnalyticsWorkspace = (options) => (options.client ?? client).get({
|
|
3279
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3280
|
+
url: "/admin/llm-analytics/workspace",
|
|
3281
|
+
...options
|
|
3282
|
+
});
|
|
3043
3283
|
var getAdminAgentVersionRevisions = (options) => (options.client ?? client).get({
|
|
3044
3284
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3045
3285
|
url: "/admin/agent-version-revisions",
|
|
@@ -3081,6 +3321,11 @@ var patchAdminExtractionDocumentsByIdExclude = (options) => (options.client ?? c
|
|
|
3081
3321
|
...options.headers
|
|
3082
3322
|
}
|
|
3083
3323
|
});
|
|
3324
|
+
var getAdminSupportTicketAttachmentsMessageByTicketMessageId = (options) => (options.client ?? client).get({
|
|
3325
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3326
|
+
url: "/admin/support/ticket-attachments/message/{ticket_message_id}",
|
|
3327
|
+
...options
|
|
3328
|
+
});
|
|
3084
3329
|
var getAdminIsvCrmSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3085
3330
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3086
3331
|
url: "/admin/isv/crm/sync-configs/workspace/{workspace_id}",
|
|
@@ -3124,11 +3369,25 @@ var getAdminTrainingSessionsById = (options) => (options.client ?? client).get({
|
|
|
3124
3369
|
url: "/admin/training-sessions/{id}",
|
|
3125
3370
|
...options
|
|
3126
3371
|
});
|
|
3372
|
+
var postAdminSupportSyncConfigs = (options) => (options.client ?? client).post({
|
|
3373
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3374
|
+
url: "/admin/support/sync-configs",
|
|
3375
|
+
...options,
|
|
3376
|
+
headers: {
|
|
3377
|
+
"Content-Type": "application/vnd.api+json",
|
|
3378
|
+
...options.headers
|
|
3379
|
+
}
|
|
3380
|
+
});
|
|
3127
3381
|
var getAdminCrmExportsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
3128
3382
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3129
3383
|
url: "/admin/crm/exports/workspace/{workspace_id}",
|
|
3130
3384
|
...options
|
|
3131
3385
|
});
|
|
3386
|
+
var getAdminSupportTicketMessagesTicketByTicketId = (options) => (options.client ?? client).get({
|
|
3387
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3388
|
+
url: "/admin/support/ticket-messages/ticket/{ticket_id}",
|
|
3389
|
+
...options
|
|
3390
|
+
});
|
|
3132
3391
|
var patchAdminExtractionDocumentsByIdDismiss = (options) => (options.client ?? client).patch({
|
|
3133
3392
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3134
3393
|
url: "/admin/extraction/documents/{id}/dismiss",
|
|
@@ -3143,6 +3402,15 @@ var getAdminWorkspacesByWorkspaceIdExtractionExportsById = (options) => (options
|
|
|
3143
3402
|
url: "/admin/workspaces/{workspace_id}/extraction/exports/{id}",
|
|
3144
3403
|
...options
|
|
3145
3404
|
});
|
|
3405
|
+
var postAdminSupportCannedResponses = (options) => (options.client ?? client).post({
|
|
3406
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3407
|
+
url: "/admin/support/canned-responses",
|
|
3408
|
+
...options,
|
|
3409
|
+
headers: {
|
|
3410
|
+
"Content-Type": "application/vnd.api+json",
|
|
3411
|
+
...options.headers
|
|
3412
|
+
}
|
|
3413
|
+
});
|
|
3146
3414
|
var deleteAdminSocialAccountsById = (options) => (options.client ?? client).delete({
|
|
3147
3415
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3148
3416
|
url: "/admin/social/accounts/{id}",
|
|
@@ -3171,6 +3439,15 @@ var patchAdminUsersByIdAdmin = (options) => (options.client ?? client).patch({
|
|
|
3171
3439
|
...options.headers
|
|
3172
3440
|
}
|
|
3173
3441
|
});
|
|
3442
|
+
var postAdminSupportTicketRatings = (options) => (options.client ?? client).post({
|
|
3443
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3444
|
+
url: "/admin/support/ticket-ratings",
|
|
3445
|
+
...options,
|
|
3446
|
+
headers: {
|
|
3447
|
+
"Content-Type": "application/vnd.api+json",
|
|
3448
|
+
...options.headers
|
|
3449
|
+
}
|
|
3450
|
+
});
|
|
3174
3451
|
var postAdminCrmActivities = (options) => (options.client ?? client).post({
|
|
3175
3452
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3176
3453
|
url: "/admin/crm/activities",
|
|
@@ -3373,6 +3650,11 @@ var postAdminCrmPipelines = (options) => (options.client ?? client).post({
|
|
|
3373
3650
|
...options.headers
|
|
3374
3651
|
}
|
|
3375
3652
|
});
|
|
3653
|
+
var getAdminLlmAnalyticsUsage = (options) => (options.client ?? client).get({
|
|
3654
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3655
|
+
url: "/admin/llm-analytics/usage",
|
|
3656
|
+
...options
|
|
3657
|
+
});
|
|
3376
3658
|
var deleteAdminCrawlerSiteConfigsById = (options) => (options.client ?? client).delete({
|
|
3377
3659
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3378
3660
|
url: "/admin/crawler/site-configs/{id}",
|
|
@@ -3467,6 +3749,11 @@ var postAdminExtractionDocumentsFindOrBeginUpload = (options) => (options.client
|
|
|
3467
3749
|
...options.headers
|
|
3468
3750
|
}
|
|
3469
3751
|
});
|
|
3752
|
+
var getAdminLlmAnalyticsById = (options) => (options.client ?? client).get({
|
|
3753
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3754
|
+
url: "/admin/llm-analytics/{id}",
|
|
3755
|
+
...options
|
|
3756
|
+
});
|
|
3470
3757
|
var getAdminSocialPostsCampaignBySocialCampaignId = (options) => (options.client ?? client).get({
|
|
3471
3758
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3472
3759
|
url: "/admin/social/posts/campaign/{social_campaign_id}",
|
|
@@ -3500,6 +3787,15 @@ var postAdminSchedulingEventTypes = (options) => (options.client ?? client).post
|
|
|
3500
3787
|
...options.headers
|
|
3501
3788
|
}
|
|
3502
3789
|
});
|
|
3790
|
+
var postAdminSupportRoutingRules = (options) => (options.client ?? client).post({
|
|
3791
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3792
|
+
url: "/admin/support/routing-rules",
|
|
3793
|
+
...options,
|
|
3794
|
+
headers: {
|
|
3795
|
+
"Content-Type": "application/vnd.api+json",
|
|
3796
|
+
...options.headers
|
|
3797
|
+
}
|
|
3798
|
+
});
|
|
3503
3799
|
var getAdminIsvCrmFieldDefinitionsEntityTypeByEntityType = (options) => (options.client ?? client).get({
|
|
3504
3800
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3505
3801
|
url: "/admin/isv/crm/field-definitions/entity-type/{entity_type}",
|
|
@@ -3645,6 +3941,15 @@ var patchAdminIsvCrmSyncConfigsById = (options) => (options.client ?? client).pa
|
|
|
3645
3941
|
...options.headers
|
|
3646
3942
|
}
|
|
3647
3943
|
});
|
|
3944
|
+
var postAdminSupportAiConfigs = (options) => (options.client ?? client).post({
|
|
3945
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3946
|
+
url: "/admin/support/ai-configs",
|
|
3947
|
+
...options,
|
|
3948
|
+
headers: {
|
|
3949
|
+
"Content-Type": "application/vnd.api+json",
|
|
3950
|
+
...options.headers
|
|
3951
|
+
}
|
|
3952
|
+
});
|
|
3648
3953
|
var getAdminExtractionChunkEntityLinks = (options) => (options.client ?? client).get({
|
|
3649
3954
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3650
3955
|
url: "/admin/extraction/chunk-entity-links",
|
|
@@ -3701,11 +4006,39 @@ var patchAdminApiKeysByIdRevoke = (options) => (options.client ?? client).patch(
|
|
|
3701
4006
|
...options.headers
|
|
3702
4007
|
}
|
|
3703
4008
|
});
|
|
4009
|
+
var getAdminSysAiConfig = (options) => (options.client ?? client).get({
|
|
4010
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4011
|
+
url: "/admin/sys/ai-config",
|
|
4012
|
+
...options
|
|
4013
|
+
});
|
|
4014
|
+
var postAdminSysAiConfig = (options) => (options.client ?? client).post({
|
|
4015
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4016
|
+
url: "/admin/sys/ai-config",
|
|
4017
|
+
...options,
|
|
4018
|
+
headers: {
|
|
4019
|
+
"Content-Type": "application/vnd.api+json",
|
|
4020
|
+
...options.headers
|
|
4021
|
+
}
|
|
4022
|
+
});
|
|
4023
|
+
var postAdminSupportTicketMessages = (options) => (options.client ?? client).post({
|
|
4024
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4025
|
+
url: "/admin/support/ticket-messages",
|
|
4026
|
+
...options,
|
|
4027
|
+
headers: {
|
|
4028
|
+
"Content-Type": "application/vnd.api+json",
|
|
4029
|
+
...options.headers
|
|
4030
|
+
}
|
|
4031
|
+
});
|
|
3704
4032
|
var getAdminBuckets = (options) => (options.client ?? client).get({
|
|
3705
4033
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3706
4034
|
url: "/admin/buckets",
|
|
3707
4035
|
...options
|
|
3708
4036
|
});
|
|
4037
|
+
var getAdminSupportRoutingRulesApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
4038
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4039
|
+
url: "/admin/support/routing-rules/application/{application_id}",
|
|
4040
|
+
...options
|
|
4041
|
+
});
|
|
3709
4042
|
var deleteAdminCrawlerJobsById = (options) => (options.client ?? client).delete({
|
|
3710
4043
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3711
4044
|
url: "/admin/crawler/jobs/{id}",
|
|
@@ -3716,6 +4049,20 @@ var getAdminCrawlerJobsById = (options) => (options.client ?? client).get({
|
|
|
3716
4049
|
url: "/admin/crawler/jobs/{id}",
|
|
3717
4050
|
...options
|
|
3718
4051
|
});
|
|
4052
|
+
var deleteAdminSupportQueueMembersById = (options) => (options.client ?? client).delete({
|
|
4053
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4054
|
+
url: "/admin/support/queue-members/{id}",
|
|
4055
|
+
...options
|
|
4056
|
+
});
|
|
4057
|
+
var patchAdminSupportQueueMembersById = (options) => (options.client ?? client).patch({
|
|
4058
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4059
|
+
url: "/admin/support/queue-members/{id}",
|
|
4060
|
+
...options,
|
|
4061
|
+
headers: {
|
|
4062
|
+
"Content-Type": "application/vnd.api+json",
|
|
4063
|
+
...options.headers
|
|
4064
|
+
}
|
|
4065
|
+
});
|
|
3719
4066
|
var patchAdminSchedulingEventsByIdComplete = (options) => (options.client ?? client).patch({
|
|
3720
4067
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3721
4068
|
url: "/admin/scheduling/events/{id}/complete",
|
|
@@ -3744,6 +4091,16 @@ var patchAdminConnectorsById = (options) => (options.client ?? client).patch({
|
|
|
3744
4091
|
...options.headers
|
|
3745
4092
|
}
|
|
3746
4093
|
});
|
|
4094
|
+
var getAdminSupportChannelCaptureConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
4095
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4096
|
+
url: "/admin/support/channel-capture-configs/workspace/{workspace_id}",
|
|
4097
|
+
...options
|
|
4098
|
+
});
|
|
4099
|
+
var getAdminSupportAiConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
4100
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4101
|
+
url: "/admin/support/ai-configs/workspace/{workspace_id}",
|
|
4102
|
+
...options
|
|
4103
|
+
});
|
|
3747
4104
|
var patchAdminExtractionDocumentsByIdDismissTraining = (options) => (options.client ?? client).patch({
|
|
3748
4105
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3749
4106
|
url: "/admin/extraction/documents/{id}/dismiss-training",
|
|
@@ -3753,12 +4110,21 @@ var patchAdminExtractionDocumentsByIdDismissTraining = (options) => (options.cli
|
|
|
3753
4110
|
...options.headers
|
|
3754
4111
|
}
|
|
3755
4112
|
});
|
|
3756
|
-
var
|
|
4113
|
+
var postAdminSysSemanticCacheClear = (options) => (options.client ?? client).post({
|
|
3757
4114
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3758
|
-
url: "/admin/
|
|
3759
|
-
...options
|
|
3760
|
-
|
|
3761
|
-
|
|
4115
|
+
url: "/admin/sys/semantic-cache/clear",
|
|
4116
|
+
...options,
|
|
4117
|
+
headers: {
|
|
4118
|
+
"Content-Type": "application/vnd.api+json",
|
|
4119
|
+
...options.headers
|
|
4120
|
+
}
|
|
4121
|
+
});
|
|
4122
|
+
var getAdminAgentsByIdSchemaVersions = (options) => (options.client ?? client).get({
|
|
4123
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4124
|
+
url: "/admin/agents/{id}/schema-versions",
|
|
4125
|
+
...options
|
|
4126
|
+
});
|
|
4127
|
+
var postAdminAgentsByIdSchemaVersions = (options) => (options.client ?? client).post({
|
|
3762
4128
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3763
4129
|
url: "/admin/agents/{id}/schema-versions",
|
|
3764
4130
|
...options,
|
|
@@ -3843,6 +4209,15 @@ var getAdminBucketsById = (options) => (options.client ?? client).get({
|
|
|
3843
4209
|
url: "/admin/buckets/{id}",
|
|
3844
4210
|
...options
|
|
3845
4211
|
});
|
|
4212
|
+
var patchAdminSupportTicketsByIdMerge = (options) => (options.client ?? client).patch({
|
|
4213
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4214
|
+
url: "/admin/support/tickets/{id}/merge",
|
|
4215
|
+
...options,
|
|
4216
|
+
headers: {
|
|
4217
|
+
"Content-Type": "application/vnd.api+json",
|
|
4218
|
+
...options.headers
|
|
4219
|
+
}
|
|
4220
|
+
});
|
|
3846
4221
|
var getAdminUsageEventsByUser = (options) => (options.client ?? client).get({
|
|
3847
4222
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3848
4223
|
url: "/admin/usage-events/by-user",
|
|
@@ -3857,6 +4232,11 @@ var postAdminIsvCrmEntityTypes = (options) => (options.client ?? client).post({
|
|
|
3857
4232
|
...options.headers
|
|
3858
4233
|
}
|
|
3859
4234
|
});
|
|
4235
|
+
var getAdminSupportQueueMembersQueueByQueueId = (options) => (options.client ?? client).get({
|
|
4236
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4237
|
+
url: "/admin/support/queue-members/queue/{queue_id}",
|
|
4238
|
+
...options
|
|
4239
|
+
});
|
|
3860
4240
|
var getAdminSocialMetricsAccountBySocialAccountId = (options) => (options.client ?? client).get({
|
|
3861
4241
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3862
4242
|
url: "/admin/social/metrics/account/{social_account_id}",
|
|
@@ -4050,6 +4430,20 @@ var patchAdminCrmCompaniesById = (options) => (options.client ?? client).patch({
|
|
|
4050
4430
|
...options.headers
|
|
4051
4431
|
}
|
|
4052
4432
|
});
|
|
4433
|
+
var deleteAdminSupportCannedResponsesById = (options) => (options.client ?? client).delete({
|
|
4434
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4435
|
+
url: "/admin/support/canned-responses/{id}",
|
|
4436
|
+
...options
|
|
4437
|
+
});
|
|
4438
|
+
var patchAdminSupportCannedResponsesById = (options) => (options.client ?? client).patch({
|
|
4439
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4440
|
+
url: "/admin/support/canned-responses/{id}",
|
|
4441
|
+
...options,
|
|
4442
|
+
headers: {
|
|
4443
|
+
"Content-Type": "application/vnd.api+json",
|
|
4444
|
+
...options.headers
|
|
4445
|
+
}
|
|
4446
|
+
});
|
|
4053
4447
|
var postAdminAgentVersionComparisons = (options) => (options.client ?? client).post({
|
|
4054
4448
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4055
4449
|
url: "/admin/agent-version-comparisons",
|
|
@@ -4115,6 +4509,11 @@ var patchAdminEmailMarketingSenderProfilesByIdValidateDns = (options) => (option
|
|
|
4115
4509
|
...options.headers
|
|
4116
4510
|
}
|
|
4117
4511
|
});
|
|
4512
|
+
var getAdminSupportCannedResponsesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
4513
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4514
|
+
url: "/admin/support/canned-responses/workspace/{workspace_id}",
|
|
4515
|
+
...options
|
|
4516
|
+
});
|
|
4118
4517
|
var patchAdminSocialAccountsByIdDeactivate = (options) => (options.client ?? client).patch({
|
|
4119
4518
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4120
4519
|
url: "/admin/social/accounts/{id}/deactivate",
|
|
@@ -4199,6 +4598,15 @@ var getAdminAgentsUsage = (options) => (options.client ?? client).get({
|
|
|
4199
4598
|
url: "/admin/agents/usage",
|
|
4200
4599
|
...options
|
|
4201
4600
|
});
|
|
4601
|
+
var postAdminSupportSlaPolicies = (options) => (options.client ?? client).post({
|
|
4602
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4603
|
+
url: "/admin/support/sla-policies",
|
|
4604
|
+
...options,
|
|
4605
|
+
headers: {
|
|
4606
|
+
"Content-Type": "application/vnd.api+json",
|
|
4607
|
+
...options.headers
|
|
4608
|
+
}
|
|
4609
|
+
});
|
|
4202
4610
|
var postAdminAgentsByIdValidate = (options) => (options.client ?? client).post({
|
|
4203
4611
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4204
4612
|
url: "/admin/agents/{id}/validate",
|
|
@@ -4236,6 +4644,15 @@ var postAdminEmailMarketingCampaignsByIdSend = (options) => (options.client ?? c
|
|
|
4236
4644
|
...options.headers
|
|
4237
4645
|
}
|
|
4238
4646
|
});
|
|
4647
|
+
var postAdminSupportQueueMembers = (options) => (options.client ?? client).post({
|
|
4648
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4649
|
+
url: "/admin/support/queue-members",
|
|
4650
|
+
...options,
|
|
4651
|
+
headers: {
|
|
4652
|
+
"Content-Type": "application/vnd.api+json",
|
|
4653
|
+
...options.headers
|
|
4654
|
+
}
|
|
4655
|
+
});
|
|
4239
4656
|
var postAdminEmailMarketingSenderProfiles = (options) => (options.client ?? client).post({
|
|
4240
4657
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4241
4658
|
url: "/admin/email-marketing/sender-profiles",
|
|
@@ -4250,6 +4667,20 @@ var getAdminExtractionBatchesByIdUploadUrls = (options) => (options.client ?? cl
|
|
|
4250
4667
|
url: "/admin/extraction/batches/{id}/upload-urls",
|
|
4251
4668
|
...options
|
|
4252
4669
|
});
|
|
4670
|
+
var getAdminLlmAnalyticsCosts = (options) => (options.client ?? client).get({
|
|
4671
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4672
|
+
url: "/admin/llm-analytics/costs",
|
|
4673
|
+
...options
|
|
4674
|
+
});
|
|
4675
|
+
var patchAdminSupportTicketsByIdResolve = (options) => (options.client ?? client).patch({
|
|
4676
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4677
|
+
url: "/admin/support/tickets/{id}/resolve",
|
|
4678
|
+
...options,
|
|
4679
|
+
headers: {
|
|
4680
|
+
"Content-Type": "application/vnd.api+json",
|
|
4681
|
+
...options.headers
|
|
4682
|
+
}
|
|
4683
|
+
});
|
|
4253
4684
|
var patchAdminStorageFilesByIdTag = (options) => (options.client ?? client).patch({
|
|
4254
4685
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4255
4686
|
url: "/admin/storage-files/{id}/tag",
|
|
@@ -4268,6 +4699,11 @@ var patchAdminExtractionDocumentsByIdFinishUpload = (options) => (options.client
|
|
|
4268
4699
|
...options.headers
|
|
4269
4700
|
}
|
|
4270
4701
|
});
|
|
4702
|
+
var getAdminSupportSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
4703
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
4704
|
+
url: "/admin/support/sync-configs/workspace/{workspace_id}",
|
|
4705
|
+
...options
|
|
4706
|
+
});
|
|
4271
4707
|
var getAdminSocialPostsAccountBySocialAccountId = (options) => (options.client ?? client).get({
|
|
4272
4708
|
security: [{ scheme: "bearer", type: "http" }],
|
|
4273
4709
|
url: "/admin/social/posts/account/{social_account_id}",
|
|
@@ -5573,20 +6009,33 @@ function createExecutionsNamespace(rb) {
|
|
|
5573
6009
|
*
|
|
5574
6010
|
* @param agentId - The UUID of the agent to execute.
|
|
5575
6011
|
* @param input - Input data for the agent (task description, documents, etc.).
|
|
5576
|
-
* @param
|
|
6012
|
+
* @param opts - Additional execution options.
|
|
6013
|
+
* @param opts.model_id - Override model for this execution only (e.g., "anthropic/claude-sonnet-4").
|
|
6014
|
+
* Highest priority in the model resolution chain.
|
|
6015
|
+
* @param reqOptions - Optional request options. Use `idempotencyKey` to prevent duplicate executions.
|
|
5577
6016
|
* @returns The created execution record with status `pending`.
|
|
5578
6017
|
*
|
|
5579
6018
|
* @example
|
|
5580
6019
|
* const exec = await admin.executions.start('agt_01...', {
|
|
5581
6020
|
* task: 'Process invoice batch',
|
|
5582
6021
|
* });
|
|
5583
|
-
*
|
|
6022
|
+
*
|
|
6023
|
+
* @example
|
|
6024
|
+
* // With model override
|
|
6025
|
+
* const exec = await admin.executions.start(
|
|
6026
|
+
* 'agt_01...',
|
|
6027
|
+
* { task: 'Complex analysis' },
|
|
6028
|
+
* { model_id: 'anthropic/claude-sonnet-4' },
|
|
6029
|
+
* );
|
|
5584
6030
|
*/
|
|
5585
|
-
async start(agentId, input,
|
|
6031
|
+
async start(agentId, input, opts) {
|
|
6032
|
+
const { model_id, ...reqOptions } = opts ?? {};
|
|
6033
|
+
const body = { input };
|
|
6034
|
+
if (model_id) body.model_id = model_id;
|
|
5586
6035
|
return rb.rawPost(
|
|
5587
6036
|
`/isv/agents/${agentId}/execute`,
|
|
5588
|
-
|
|
5589
|
-
|
|
6037
|
+
body,
|
|
6038
|
+
Object.keys(reqOptions).length > 0 ? reqOptions : void 0
|
|
5590
6039
|
);
|
|
5591
6040
|
},
|
|
5592
6041
|
/**
|
|
@@ -8310,20 +8759,12 @@ function createConnectorsNamespace(rb) {
|
|
|
8310
8759
|
options
|
|
8311
8760
|
),
|
|
8312
8761
|
/** Delete a connector instance. */
|
|
8313
|
-
delete: async (id, options) => rb.executeDelete(
|
|
8314
|
-
deleteAdminConnectorsById,
|
|
8315
|
-
{ path: { id } },
|
|
8316
|
-
options
|
|
8317
|
-
)
|
|
8762
|
+
delete: async (id, options) => rb.executeDelete(deleteAdminConnectorsById, { path: { id } }, options)
|
|
8318
8763
|
},
|
|
8319
8764
|
/** Credentials — OAuth tokens and API keys. */
|
|
8320
8765
|
credentials: {
|
|
8321
8766
|
/** List all credentials. */
|
|
8322
|
-
list: async (options) => rb.execute(
|
|
8323
|
-
getAdminConnectorsCredentials,
|
|
8324
|
-
{},
|
|
8325
|
-
options
|
|
8326
|
-
),
|
|
8767
|
+
list: async (options) => rb.execute(getAdminConnectorsCredentials, {}, options),
|
|
8327
8768
|
/** Get a credential by ID. */
|
|
8328
8769
|
get: async (id, options) => rb.execute(
|
|
8329
8770
|
getAdminConnectorsCredentialsById,
|
|
@@ -9900,7 +10341,10 @@ function createCrmNamespace(rb) {
|
|
|
9900
10341
|
update: async (id, attributes, options) => {
|
|
9901
10342
|
return rb.execute(
|
|
9902
10343
|
patchAdminCrmContactsById,
|
|
9903
|
-
{
|
|
10344
|
+
{
|
|
10345
|
+
path: { id },
|
|
10346
|
+
body: { data: { type: "crm_contact", id, attributes } }
|
|
10347
|
+
},
|
|
9904
10348
|
options
|
|
9905
10349
|
);
|
|
9906
10350
|
},
|
|
@@ -9908,7 +10352,10 @@ function createCrmNamespace(rb) {
|
|
|
9908
10352
|
archive: async (id, options) => {
|
|
9909
10353
|
return rb.execute(
|
|
9910
10354
|
patchAdminCrmContactsByIdArchive,
|
|
9911
|
-
{
|
|
10355
|
+
{
|
|
10356
|
+
path: { id },
|
|
10357
|
+
body: { data: { type: "crm_contact", id, attributes: {} } }
|
|
10358
|
+
},
|
|
9912
10359
|
options
|
|
9913
10360
|
);
|
|
9914
10361
|
},
|
|
@@ -9916,7 +10363,10 @@ function createCrmNamespace(rb) {
|
|
|
9916
10363
|
unarchive: async (id, options) => {
|
|
9917
10364
|
return rb.execute(
|
|
9918
10365
|
postAdminCrmContactsByIdUnarchive,
|
|
9919
|
-
{
|
|
10366
|
+
{
|
|
10367
|
+
path: { id },
|
|
10368
|
+
body: { data: { type: "crm_contact", id, attributes: {} } }
|
|
10369
|
+
},
|
|
9920
10370
|
options
|
|
9921
10371
|
);
|
|
9922
10372
|
},
|
|
@@ -9950,13 +10400,20 @@ function createCrmNamespace(rb) {
|
|
|
9950
10400
|
update: async (id, attributes, options) => {
|
|
9951
10401
|
return rb.execute(
|
|
9952
10402
|
patchAdminCrmCompaniesById,
|
|
9953
|
-
{
|
|
10403
|
+
{
|
|
10404
|
+
path: { id },
|
|
10405
|
+
body: { data: { type: "crm_company", id, attributes } }
|
|
10406
|
+
},
|
|
9954
10407
|
options
|
|
9955
10408
|
);
|
|
9956
10409
|
},
|
|
9957
10410
|
/** Delete a company. */
|
|
9958
10411
|
delete: async (id, options) => {
|
|
9959
|
-
return rb.execute(
|
|
10412
|
+
return rb.execute(
|
|
10413
|
+
deleteAdminCrmCompaniesById,
|
|
10414
|
+
{ path: { id } },
|
|
10415
|
+
options
|
|
10416
|
+
);
|
|
9960
10417
|
}
|
|
9961
10418
|
},
|
|
9962
10419
|
// ========== Deals ==========
|
|
@@ -9985,7 +10442,10 @@ function createCrmNamespace(rb) {
|
|
|
9985
10442
|
update: async (id, attributes, options) => {
|
|
9986
10443
|
return rb.execute(
|
|
9987
10444
|
patchAdminCrmDealsById,
|
|
9988
|
-
{
|
|
10445
|
+
{
|
|
10446
|
+
path: { id },
|
|
10447
|
+
body: { data: { type: "crm_deal", id, attributes } }
|
|
10448
|
+
},
|
|
9989
10449
|
options
|
|
9990
10450
|
);
|
|
9991
10451
|
},
|
|
@@ -9993,7 +10453,10 @@ function createCrmNamespace(rb) {
|
|
|
9993
10453
|
moveStage: async (id, attributes, options) => {
|
|
9994
10454
|
return rb.execute(
|
|
9995
10455
|
patchAdminCrmDealsByIdMoveStage,
|
|
9996
|
-
{
|
|
10456
|
+
{
|
|
10457
|
+
path: { id },
|
|
10458
|
+
body: { data: { type: "crm_deal", id, attributes } }
|
|
10459
|
+
},
|
|
9997
10460
|
options
|
|
9998
10461
|
);
|
|
9999
10462
|
},
|
|
@@ -10028,13 +10491,20 @@ function createCrmNamespace(rb) {
|
|
|
10028
10491
|
update: async (id, attributes, options) => {
|
|
10029
10492
|
return rb.execute(
|
|
10030
10493
|
patchAdminCrmActivitiesById,
|
|
10031
|
-
{
|
|
10494
|
+
{
|
|
10495
|
+
path: { id },
|
|
10496
|
+
body: { data: { type: "crm_activity", id, attributes } }
|
|
10497
|
+
},
|
|
10032
10498
|
options
|
|
10033
10499
|
);
|
|
10034
10500
|
},
|
|
10035
10501
|
/** Delete an activity. */
|
|
10036
10502
|
delete: async (id, options) => {
|
|
10037
|
-
return rb.execute(
|
|
10503
|
+
return rb.execute(
|
|
10504
|
+
deleteAdminCrmActivitiesById,
|
|
10505
|
+
{ path: { id } },
|
|
10506
|
+
options
|
|
10507
|
+
);
|
|
10038
10508
|
}
|
|
10039
10509
|
},
|
|
10040
10510
|
// ========== Pipelines ==========
|
|
@@ -10063,20 +10533,31 @@ function createCrmNamespace(rb) {
|
|
|
10063
10533
|
update: async (id, attributes, options) => {
|
|
10064
10534
|
return rb.execute(
|
|
10065
10535
|
patchAdminCrmPipelinesById,
|
|
10066
|
-
{
|
|
10536
|
+
{
|
|
10537
|
+
path: { id },
|
|
10538
|
+
body: { data: { type: "crm_pipeline", id, attributes } }
|
|
10539
|
+
},
|
|
10067
10540
|
options
|
|
10068
10541
|
);
|
|
10069
10542
|
},
|
|
10070
10543
|
/** Delete a pipeline. */
|
|
10071
10544
|
delete: async (id, options) => {
|
|
10072
|
-
return rb.execute(
|
|
10545
|
+
return rb.execute(
|
|
10546
|
+
deleteAdminCrmPipelinesById,
|
|
10547
|
+
{ path: { id } },
|
|
10548
|
+
options
|
|
10549
|
+
);
|
|
10073
10550
|
}
|
|
10074
10551
|
},
|
|
10075
10552
|
// ========== Pipeline Stages ==========
|
|
10076
10553
|
pipelineStages: {
|
|
10077
10554
|
/** Get a pipeline stage by ID. */
|
|
10078
10555
|
get: async (id, options) => {
|
|
10079
|
-
return rb.execute(
|
|
10556
|
+
return rb.execute(
|
|
10557
|
+
getAdminCrmPipelineStagesById,
|
|
10558
|
+
{ path: { id } },
|
|
10559
|
+
options
|
|
10560
|
+
);
|
|
10080
10561
|
},
|
|
10081
10562
|
/** List stages for a specific pipeline. */
|
|
10082
10563
|
listByPipeline: async (pipelineId, options) => {
|
|
@@ -10098,20 +10579,31 @@ function createCrmNamespace(rb) {
|
|
|
10098
10579
|
update: async (id, attributes, options) => {
|
|
10099
10580
|
return rb.execute(
|
|
10100
10581
|
patchAdminCrmPipelineStagesById,
|
|
10101
|
-
{
|
|
10582
|
+
{
|
|
10583
|
+
path: { id },
|
|
10584
|
+
body: { data: { type: "crm_pipeline_stage", id, attributes } }
|
|
10585
|
+
},
|
|
10102
10586
|
options
|
|
10103
10587
|
);
|
|
10104
10588
|
},
|
|
10105
10589
|
/** Delete a pipeline stage. */
|
|
10106
10590
|
delete: async (id, options) => {
|
|
10107
|
-
return rb.execute(
|
|
10591
|
+
return rb.execute(
|
|
10592
|
+
deleteAdminCrmPipelineStagesById,
|
|
10593
|
+
{ path: { id } },
|
|
10594
|
+
options
|
|
10595
|
+
);
|
|
10108
10596
|
}
|
|
10109
10597
|
},
|
|
10110
10598
|
// ========== Relationships ==========
|
|
10111
10599
|
relationships: {
|
|
10112
10600
|
/** Get a relationship by ID. */
|
|
10113
10601
|
get: async (id, options) => {
|
|
10114
|
-
return rb.execute(
|
|
10602
|
+
return rb.execute(
|
|
10603
|
+
getAdminCrmRelationshipsById,
|
|
10604
|
+
{ path: { id } },
|
|
10605
|
+
options
|
|
10606
|
+
);
|
|
10115
10607
|
},
|
|
10116
10608
|
/** List relationships by workspace. */
|
|
10117
10609
|
listByWorkspace: async (workspaceId, options) => {
|
|
@@ -10131,14 +10623,22 @@ function createCrmNamespace(rb) {
|
|
|
10131
10623
|
},
|
|
10132
10624
|
/** Delete a relationship. */
|
|
10133
10625
|
delete: async (id, options) => {
|
|
10134
|
-
return rb.execute(
|
|
10626
|
+
return rb.execute(
|
|
10627
|
+
deleteAdminCrmRelationshipsById,
|
|
10628
|
+
{ path: { id } },
|
|
10629
|
+
options
|
|
10630
|
+
);
|
|
10135
10631
|
}
|
|
10136
10632
|
},
|
|
10137
10633
|
// ========== Relationship Types ==========
|
|
10138
10634
|
relationshipTypes: {
|
|
10139
10635
|
/** Get a relationship type by ID. */
|
|
10140
10636
|
get: async (id, options) => {
|
|
10141
|
-
return rb.execute(
|
|
10637
|
+
return rb.execute(
|
|
10638
|
+
getAdminCrmRelationshipTypesById,
|
|
10639
|
+
{ path: { id } },
|
|
10640
|
+
options
|
|
10641
|
+
);
|
|
10142
10642
|
},
|
|
10143
10643
|
/** List all relationship types. */
|
|
10144
10644
|
list: async (options) => {
|
|
@@ -10156,20 +10656,31 @@ function createCrmNamespace(rb) {
|
|
|
10156
10656
|
update: async (id, attributes, options) => {
|
|
10157
10657
|
return rb.execute(
|
|
10158
10658
|
patchAdminCrmRelationshipTypesById,
|
|
10159
|
-
{
|
|
10659
|
+
{
|
|
10660
|
+
path: { id },
|
|
10661
|
+
body: { data: { type: "crm_relationship_type", id, attributes } }
|
|
10662
|
+
},
|
|
10160
10663
|
options
|
|
10161
10664
|
);
|
|
10162
10665
|
},
|
|
10163
10666
|
/** Delete a relationship type. */
|
|
10164
10667
|
delete: async (id, options) => {
|
|
10165
|
-
return rb.execute(
|
|
10668
|
+
return rb.execute(
|
|
10669
|
+
deleteAdminCrmRelationshipTypesById,
|
|
10670
|
+
{ path: { id } },
|
|
10671
|
+
options
|
|
10672
|
+
);
|
|
10166
10673
|
}
|
|
10167
10674
|
},
|
|
10168
10675
|
// ========== Custom Entities ==========
|
|
10169
10676
|
customEntities: {
|
|
10170
10677
|
/** Get a custom entity by ID. */
|
|
10171
10678
|
get: async (id, options) => {
|
|
10172
|
-
return rb.execute(
|
|
10679
|
+
return rb.execute(
|
|
10680
|
+
getAdminCrmCustomEntitiesById,
|
|
10681
|
+
{ path: { id } },
|
|
10682
|
+
options
|
|
10683
|
+
);
|
|
10173
10684
|
},
|
|
10174
10685
|
/** List custom entities by workspace. */
|
|
10175
10686
|
listByWorkspace: async (workspaceId, options) => {
|
|
@@ -10191,13 +10702,20 @@ function createCrmNamespace(rb) {
|
|
|
10191
10702
|
update: async (id, attributes, options) => {
|
|
10192
10703
|
return rb.execute(
|
|
10193
10704
|
patchAdminCrmCustomEntitiesById,
|
|
10194
|
-
{
|
|
10705
|
+
{
|
|
10706
|
+
path: { id },
|
|
10707
|
+
body: { data: { type: "crm_custom_entity", id, attributes } }
|
|
10708
|
+
},
|
|
10195
10709
|
options
|
|
10196
10710
|
);
|
|
10197
10711
|
},
|
|
10198
10712
|
/** Delete a custom entity. */
|
|
10199
10713
|
delete: async (id, options) => {
|
|
10200
|
-
return rb.execute(
|
|
10714
|
+
return rb.execute(
|
|
10715
|
+
deleteAdminCrmCustomEntitiesById,
|
|
10716
|
+
{ path: { id } },
|
|
10717
|
+
options
|
|
10718
|
+
);
|
|
10201
10719
|
},
|
|
10202
10720
|
/** List versions for a custom entity. */
|
|
10203
10721
|
listVersions: async (entityId, options) => {
|
|
@@ -10224,7 +10742,11 @@ function createCrmNamespace(rb) {
|
|
|
10224
10742
|
},
|
|
10225
10743
|
/** Get a deal product by ID. */
|
|
10226
10744
|
get: async (id, options) => {
|
|
10227
|
-
return rb.execute(
|
|
10745
|
+
return rb.execute(
|
|
10746
|
+
getAdminCrmDealProductsById,
|
|
10747
|
+
{ path: { id } },
|
|
10748
|
+
options
|
|
10749
|
+
);
|
|
10228
10750
|
},
|
|
10229
10751
|
/** Create a deal product. */
|
|
10230
10752
|
create: async (attributes, options) => {
|
|
@@ -10236,7 +10758,11 @@ function createCrmNamespace(rb) {
|
|
|
10236
10758
|
},
|
|
10237
10759
|
/** Delete a deal product. */
|
|
10238
10760
|
delete: async (id, options) => {
|
|
10239
|
-
return rb.execute(
|
|
10761
|
+
return rb.execute(
|
|
10762
|
+
deleteAdminCrmDealProductsById,
|
|
10763
|
+
{ path: { id } },
|
|
10764
|
+
options
|
|
10765
|
+
);
|
|
10240
10766
|
}
|
|
10241
10767
|
},
|
|
10242
10768
|
// ========== Exports ==========
|
|
@@ -10265,7 +10791,10 @@ function createCrmNamespace(rb) {
|
|
|
10265
10791
|
refreshUrl: async (id, options) => {
|
|
10266
10792
|
return rb.execute(
|
|
10267
10793
|
patchAdminCrmExportsByIdRefreshUrl,
|
|
10268
|
-
{
|
|
10794
|
+
{
|
|
10795
|
+
path: { id },
|
|
10796
|
+
body: { data: { type: "crm_data_export_job", id, attributes: {} } }
|
|
10797
|
+
},
|
|
10269
10798
|
options
|
|
10270
10799
|
);
|
|
10271
10800
|
}
|
|
@@ -10274,7 +10803,11 @@ function createCrmNamespace(rb) {
|
|
|
10274
10803
|
entityTypes: {
|
|
10275
10804
|
/** Get an entity type by ID. */
|
|
10276
10805
|
get: async (id, options) => {
|
|
10277
|
-
return rb.execute(
|
|
10806
|
+
return rb.execute(
|
|
10807
|
+
getAdminIsvCrmEntityTypesById,
|
|
10808
|
+
{ path: { id } },
|
|
10809
|
+
options
|
|
10810
|
+
);
|
|
10278
10811
|
},
|
|
10279
10812
|
/** List entity types by application. */
|
|
10280
10813
|
listByApplication: async (applicationId, options) => {
|
|
@@ -10296,20 +10829,31 @@ function createCrmNamespace(rb) {
|
|
|
10296
10829
|
update: async (id, attributes, options) => {
|
|
10297
10830
|
return rb.execute(
|
|
10298
10831
|
patchAdminIsvCrmEntityTypesById,
|
|
10299
|
-
{
|
|
10832
|
+
{
|
|
10833
|
+
path: { id },
|
|
10834
|
+
body: { data: { type: "crm_custom_entity_type", id, attributes } }
|
|
10835
|
+
},
|
|
10300
10836
|
options
|
|
10301
10837
|
);
|
|
10302
10838
|
},
|
|
10303
10839
|
/** Delete an entity type. */
|
|
10304
10840
|
delete: async (id, options) => {
|
|
10305
|
-
return rb.execute(
|
|
10841
|
+
return rb.execute(
|
|
10842
|
+
deleteAdminIsvCrmEntityTypesById,
|
|
10843
|
+
{ path: { id } },
|
|
10844
|
+
options
|
|
10845
|
+
);
|
|
10306
10846
|
}
|
|
10307
10847
|
},
|
|
10308
10848
|
// ========== ISV: Field Definitions ==========
|
|
10309
10849
|
fieldDefinitions: {
|
|
10310
10850
|
/** Get a field definition by ID. */
|
|
10311
10851
|
get: async (id, options) => {
|
|
10312
|
-
return rb.execute(
|
|
10852
|
+
return rb.execute(
|
|
10853
|
+
getAdminIsvCrmFieldDefinitionsById,
|
|
10854
|
+
{ path: { id } },
|
|
10855
|
+
options
|
|
10856
|
+
);
|
|
10313
10857
|
},
|
|
10314
10858
|
/** List field definitions by entity type. */
|
|
10315
10859
|
listByEntityType: async (entityType, options) => {
|
|
@@ -10323,7 +10867,9 @@ function createCrmNamespace(rb) {
|
|
|
10323
10867
|
create: async (attributes, options) => {
|
|
10324
10868
|
return rb.execute(
|
|
10325
10869
|
postAdminIsvCrmFieldDefinitions,
|
|
10326
|
-
{
|
|
10870
|
+
{
|
|
10871
|
+
body: { data: { type: "crm_custom_field_definition", attributes } }
|
|
10872
|
+
},
|
|
10327
10873
|
options
|
|
10328
10874
|
);
|
|
10329
10875
|
},
|
|
@@ -10331,26 +10877,41 @@ function createCrmNamespace(rb) {
|
|
|
10331
10877
|
update: async (id, attributes, options) => {
|
|
10332
10878
|
return rb.execute(
|
|
10333
10879
|
patchAdminIsvCrmFieldDefinitionsById,
|
|
10334
|
-
{
|
|
10880
|
+
{
|
|
10881
|
+
path: { id },
|
|
10882
|
+
body: {
|
|
10883
|
+
data: { type: "crm_custom_field_definition", id, attributes }
|
|
10884
|
+
}
|
|
10885
|
+
},
|
|
10335
10886
|
options
|
|
10336
10887
|
);
|
|
10337
10888
|
},
|
|
10338
10889
|
/** Delete a field definition. */
|
|
10339
10890
|
delete: async (id, options) => {
|
|
10340
|
-
return rb.execute(
|
|
10891
|
+
return rb.execute(
|
|
10892
|
+
deleteAdminIsvCrmFieldDefinitionsById,
|
|
10893
|
+
{ path: { id } },
|
|
10894
|
+
options
|
|
10895
|
+
);
|
|
10341
10896
|
}
|
|
10342
10897
|
},
|
|
10343
10898
|
// ========== ISV: Channel Capture Config ==========
|
|
10344
10899
|
channelCaptureConfig: {
|
|
10345
10900
|
/** Get channel capture config by ID. */
|
|
10346
10901
|
get: async (id, options) => {
|
|
10347
|
-
return rb.execute(
|
|
10902
|
+
return rb.execute(
|
|
10903
|
+
getAdminIsvCrmChannelCaptureConfigById,
|
|
10904
|
+
{ path: { id } },
|
|
10905
|
+
options
|
|
10906
|
+
);
|
|
10348
10907
|
},
|
|
10349
10908
|
/** Create or upsert channel capture config. */
|
|
10350
10909
|
create: async (attributes, options) => {
|
|
10351
10910
|
return rb.execute(
|
|
10352
10911
|
postAdminIsvCrmChannelCaptureConfig,
|
|
10353
|
-
{
|
|
10912
|
+
{
|
|
10913
|
+
body: { data: { type: "crm_channel_capture_config", attributes } }
|
|
10914
|
+
},
|
|
10354
10915
|
options
|
|
10355
10916
|
);
|
|
10356
10917
|
},
|
|
@@ -10358,7 +10919,12 @@ function createCrmNamespace(rb) {
|
|
|
10358
10919
|
update: async (id, attributes, options) => {
|
|
10359
10920
|
return rb.execute(
|
|
10360
10921
|
patchAdminIsvCrmChannelCaptureConfigById,
|
|
10361
|
-
{
|
|
10922
|
+
{
|
|
10923
|
+
path: { id },
|
|
10924
|
+
body: {
|
|
10925
|
+
data: { type: "crm_channel_capture_config", id, attributes }
|
|
10926
|
+
}
|
|
10927
|
+
},
|
|
10362
10928
|
options
|
|
10363
10929
|
);
|
|
10364
10930
|
}
|
|
@@ -10385,18 +10951,912 @@ function createCrmNamespace(rb) {
|
|
|
10385
10951
|
update: async (id, attributes, options) => {
|
|
10386
10952
|
return rb.execute(
|
|
10387
10953
|
patchAdminIsvCrmSyncConfigsById,
|
|
10388
|
-
{
|
|
10954
|
+
{
|
|
10955
|
+
path: { id },
|
|
10956
|
+
body: { data: { type: "crm_sync_config", id, attributes } }
|
|
10957
|
+
},
|
|
10389
10958
|
options
|
|
10390
10959
|
);
|
|
10391
10960
|
},
|
|
10392
10961
|
/** Delete a sync config. */
|
|
10393
10962
|
delete: async (id, options) => {
|
|
10394
|
-
return rb.execute(
|
|
10963
|
+
return rb.execute(
|
|
10964
|
+
deleteAdminIsvCrmSyncConfigsById,
|
|
10965
|
+
{ path: { id } },
|
|
10966
|
+
options
|
|
10967
|
+
);
|
|
10395
10968
|
}
|
|
10396
10969
|
}
|
|
10397
10970
|
};
|
|
10398
10971
|
}
|
|
10399
10972
|
|
|
10973
|
+
// src/namespaces/support.ts
|
|
10974
|
+
function createSupportNamespace(rb) {
|
|
10975
|
+
return {
|
|
10976
|
+
// --- Tickets ---
|
|
10977
|
+
tickets: {
|
|
10978
|
+
/** Get a support ticket by ID */
|
|
10979
|
+
get: async (id, options) => {
|
|
10980
|
+
return rb.execute(
|
|
10981
|
+
getAdminSupportTicketsById,
|
|
10982
|
+
{ path: { id } },
|
|
10983
|
+
options
|
|
10984
|
+
);
|
|
10985
|
+
},
|
|
10986
|
+
/** List tickets for a workspace */
|
|
10987
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
10988
|
+
return rb.execute(
|
|
10989
|
+
getAdminSupportTicketsWorkspaceByWorkspaceId,
|
|
10990
|
+
{ path: { workspace_id: workspaceId } },
|
|
10991
|
+
options
|
|
10992
|
+
);
|
|
10993
|
+
},
|
|
10994
|
+
/** Create a new support ticket */
|
|
10995
|
+
create: async (attributes, options) => {
|
|
10996
|
+
return rb.execute(
|
|
10997
|
+
postAdminSupportTickets,
|
|
10998
|
+
{ body: { data: { type: "support_ticket", attributes } } },
|
|
10999
|
+
options
|
|
11000
|
+
);
|
|
11001
|
+
},
|
|
11002
|
+
/** Update a support ticket */
|
|
11003
|
+
update: async (id, attributes, options) => {
|
|
11004
|
+
return rb.execute(
|
|
11005
|
+
patchAdminSupportTicketsById,
|
|
11006
|
+
{
|
|
11007
|
+
path: { id },
|
|
11008
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11009
|
+
},
|
|
11010
|
+
options
|
|
11011
|
+
);
|
|
11012
|
+
},
|
|
11013
|
+
/** Assign a ticket to an agent or queue */
|
|
11014
|
+
assign: async (id, attributes, options) => {
|
|
11015
|
+
return rb.execute(
|
|
11016
|
+
patchAdminSupportTicketsByIdAssign,
|
|
11017
|
+
{
|
|
11018
|
+
path: { id },
|
|
11019
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11020
|
+
},
|
|
11021
|
+
options
|
|
11022
|
+
);
|
|
11023
|
+
},
|
|
11024
|
+
/** Resolve a ticket */
|
|
11025
|
+
resolve: async (id, attributes, options) => {
|
|
11026
|
+
return rb.execute(
|
|
11027
|
+
patchAdminSupportTicketsByIdResolve,
|
|
11028
|
+
{
|
|
11029
|
+
path: { id },
|
|
11030
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11031
|
+
},
|
|
11032
|
+
options
|
|
11033
|
+
);
|
|
11034
|
+
},
|
|
11035
|
+
/** Close a resolved ticket */
|
|
11036
|
+
close: async (id, attributes, options) => {
|
|
11037
|
+
return rb.execute(
|
|
11038
|
+
patchAdminSupportTicketsByIdClose,
|
|
11039
|
+
{
|
|
11040
|
+
path: { id },
|
|
11041
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11042
|
+
},
|
|
11043
|
+
options
|
|
11044
|
+
);
|
|
11045
|
+
},
|
|
11046
|
+
/** Reopen a closed or resolved ticket */
|
|
11047
|
+
reopen: async (id, attributes, options) => {
|
|
11048
|
+
return rb.execute(
|
|
11049
|
+
patchAdminSupportTicketsByIdReopen,
|
|
11050
|
+
{
|
|
11051
|
+
path: { id },
|
|
11052
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11053
|
+
},
|
|
11054
|
+
options
|
|
11055
|
+
);
|
|
11056
|
+
},
|
|
11057
|
+
/** Merge a ticket into another ticket */
|
|
11058
|
+
merge: async (id, attributes, options) => {
|
|
11059
|
+
return rb.execute(
|
|
11060
|
+
patchAdminSupportTicketsByIdMerge,
|
|
11061
|
+
{
|
|
11062
|
+
path: { id },
|
|
11063
|
+
body: { data: { type: "support_ticket", id, attributes } }
|
|
11064
|
+
},
|
|
11065
|
+
options
|
|
11066
|
+
);
|
|
11067
|
+
},
|
|
11068
|
+
/** Delete a support ticket */
|
|
11069
|
+
delete: async (id, options) => {
|
|
11070
|
+
return rb.executeDelete(
|
|
11071
|
+
deleteAdminSupportTicketsById,
|
|
11072
|
+
{ path: { id } },
|
|
11073
|
+
options
|
|
11074
|
+
);
|
|
11075
|
+
}
|
|
11076
|
+
},
|
|
11077
|
+
// --- Messages ---
|
|
11078
|
+
messages: {
|
|
11079
|
+
/** List messages for a ticket */
|
|
11080
|
+
listByTicket: async (ticketId, options) => {
|
|
11081
|
+
return rb.execute(
|
|
11082
|
+
getAdminSupportTicketMessagesTicketByTicketId,
|
|
11083
|
+
{ path: { ticket_id: ticketId } },
|
|
11084
|
+
options
|
|
11085
|
+
);
|
|
11086
|
+
},
|
|
11087
|
+
/** Create a message on a ticket */
|
|
11088
|
+
create: async (attributes, options) => {
|
|
11089
|
+
return rb.execute(
|
|
11090
|
+
postAdminSupportTicketMessages,
|
|
11091
|
+
{ body: { data: { type: "support_ticket_message", attributes } } },
|
|
11092
|
+
options
|
|
11093
|
+
);
|
|
11094
|
+
}
|
|
11095
|
+
},
|
|
11096
|
+
// --- Attachments ---
|
|
11097
|
+
attachments: {
|
|
11098
|
+
/** List attachments for a ticket message */
|
|
11099
|
+
listByMessage: async (messageId, options) => {
|
|
11100
|
+
return rb.execute(
|
|
11101
|
+
getAdminSupportTicketAttachmentsMessageByTicketMessageId,
|
|
11102
|
+
{ path: { ticket_message_id: messageId } },
|
|
11103
|
+
options
|
|
11104
|
+
);
|
|
11105
|
+
},
|
|
11106
|
+
/** Create an attachment on a ticket message */
|
|
11107
|
+
create: async (attributes, options) => {
|
|
11108
|
+
return rb.execute(
|
|
11109
|
+
postAdminSupportTicketAttachments,
|
|
11110
|
+
{ body: { data: { type: "support_ticket_attachment", attributes } } },
|
|
11111
|
+
options
|
|
11112
|
+
);
|
|
11113
|
+
}
|
|
11114
|
+
},
|
|
11115
|
+
// --- Ratings ---
|
|
11116
|
+
ratings: {
|
|
11117
|
+
/** Create or update a satisfaction rating for a ticket */
|
|
11118
|
+
create: async (attributes, options) => {
|
|
11119
|
+
return rb.execute(
|
|
11120
|
+
postAdminSupportTicketRatings,
|
|
11121
|
+
{ body: { data: { type: "support_ticket_rating", attributes } } },
|
|
11122
|
+
options
|
|
11123
|
+
);
|
|
11124
|
+
}
|
|
11125
|
+
},
|
|
11126
|
+
// --- Tags ---
|
|
11127
|
+
tags: {
|
|
11128
|
+
/** List tags for a workspace */
|
|
11129
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
11130
|
+
return rb.execute(
|
|
11131
|
+
getAdminSupportTagsWorkspaceByWorkspaceId,
|
|
11132
|
+
{ path: { workspace_id: workspaceId } },
|
|
11133
|
+
options
|
|
11134
|
+
);
|
|
11135
|
+
},
|
|
11136
|
+
/** Create a tag */
|
|
11137
|
+
create: async (attributes, options) => {
|
|
11138
|
+
return rb.execute(
|
|
11139
|
+
postAdminSupportTags,
|
|
11140
|
+
{ body: { data: { type: "support_tag", attributes } } },
|
|
11141
|
+
options
|
|
11142
|
+
);
|
|
11143
|
+
},
|
|
11144
|
+
/** Delete a tag */
|
|
11145
|
+
delete: async (id, options) => {
|
|
11146
|
+
return rb.executeDelete(
|
|
11147
|
+
deleteAdminSupportTagsById,
|
|
11148
|
+
{ path: { id } },
|
|
11149
|
+
options
|
|
11150
|
+
);
|
|
11151
|
+
}
|
|
11152
|
+
},
|
|
11153
|
+
// --- Queues ---
|
|
11154
|
+
queues: {
|
|
11155
|
+
/** Get a queue by ID */
|
|
11156
|
+
get: async (id, options) => {
|
|
11157
|
+
return rb.execute(getAdminSupportQueuesById, { path: { id } }, options);
|
|
11158
|
+
},
|
|
11159
|
+
/** List queues for an application */
|
|
11160
|
+
listByApplication: async (applicationId, options) => {
|
|
11161
|
+
return rb.execute(
|
|
11162
|
+
getAdminSupportQueuesApplicationByApplicationId,
|
|
11163
|
+
{ path: { application_id: applicationId } },
|
|
11164
|
+
options
|
|
11165
|
+
);
|
|
11166
|
+
},
|
|
11167
|
+
/** Create a queue */
|
|
11168
|
+
create: async (attributes, options) => {
|
|
11169
|
+
return rb.execute(
|
|
11170
|
+
postAdminSupportQueues,
|
|
11171
|
+
{ body: { data: { type: "support_queue", attributes } } },
|
|
11172
|
+
options
|
|
11173
|
+
);
|
|
11174
|
+
},
|
|
11175
|
+
/** Update a queue */
|
|
11176
|
+
update: async (id, attributes, options) => {
|
|
11177
|
+
return rb.execute(
|
|
11178
|
+
patchAdminSupportQueuesById,
|
|
11179
|
+
{
|
|
11180
|
+
path: { id },
|
|
11181
|
+
body: { data: { type: "support_queue", id, attributes } }
|
|
11182
|
+
},
|
|
11183
|
+
options
|
|
11184
|
+
);
|
|
11185
|
+
},
|
|
11186
|
+
/** Delete a queue */
|
|
11187
|
+
delete: async (id, options) => {
|
|
11188
|
+
return rb.executeDelete(
|
|
11189
|
+
deleteAdminSupportQueuesById,
|
|
11190
|
+
{ path: { id } },
|
|
11191
|
+
options
|
|
11192
|
+
);
|
|
11193
|
+
}
|
|
11194
|
+
},
|
|
11195
|
+
// --- Queue Members ---
|
|
11196
|
+
queueMembers: {
|
|
11197
|
+
/** List members of a queue */
|
|
11198
|
+
listByQueue: async (queueId, options) => {
|
|
11199
|
+
return rb.execute(
|
|
11200
|
+
getAdminSupportQueueMembersQueueByQueueId,
|
|
11201
|
+
{ path: { queue_id: queueId } },
|
|
11202
|
+
options
|
|
11203
|
+
);
|
|
11204
|
+
},
|
|
11205
|
+
/** List all queue members for an application */
|
|
11206
|
+
listByApplication: async (applicationId, options) => {
|
|
11207
|
+
return rb.execute(
|
|
11208
|
+
getAdminSupportQueueMembersApplicationByApplicationId,
|
|
11209
|
+
{ path: { application_id: applicationId } },
|
|
11210
|
+
options
|
|
11211
|
+
);
|
|
11212
|
+
},
|
|
11213
|
+
/** Add a member to a queue */
|
|
11214
|
+
create: async (attributes, options) => {
|
|
11215
|
+
return rb.execute(
|
|
11216
|
+
postAdminSupportQueueMembers,
|
|
11217
|
+
{ body: { data: { type: "support_queue_member", attributes } } },
|
|
11218
|
+
options
|
|
11219
|
+
);
|
|
11220
|
+
},
|
|
11221
|
+
/** Update a queue member */
|
|
11222
|
+
update: async (id, attributes, options) => {
|
|
11223
|
+
return rb.execute(
|
|
11224
|
+
patchAdminSupportQueueMembersById,
|
|
11225
|
+
{
|
|
11226
|
+
path: { id },
|
|
11227
|
+
body: { data: { type: "support_queue_member", id, attributes } }
|
|
11228
|
+
},
|
|
11229
|
+
options
|
|
11230
|
+
);
|
|
11231
|
+
},
|
|
11232
|
+
/** Remove a member from a queue */
|
|
11233
|
+
delete: async (id, options) => {
|
|
11234
|
+
return rb.executeDelete(
|
|
11235
|
+
deleteAdminSupportQueueMembersById,
|
|
11236
|
+
{ path: { id } },
|
|
11237
|
+
options
|
|
11238
|
+
);
|
|
11239
|
+
}
|
|
11240
|
+
},
|
|
11241
|
+
// --- Routing Rules ---
|
|
11242
|
+
routingRules: {
|
|
11243
|
+
/** Get a routing rule by ID */
|
|
11244
|
+
get: async (id, options) => {
|
|
11245
|
+
return rb.execute(
|
|
11246
|
+
getAdminSupportRoutingRulesById,
|
|
11247
|
+
{ path: { id } },
|
|
11248
|
+
options
|
|
11249
|
+
);
|
|
11250
|
+
},
|
|
11251
|
+
/** List routing rules for an application */
|
|
11252
|
+
listByApplication: async (applicationId, options) => {
|
|
11253
|
+
return rb.execute(
|
|
11254
|
+
getAdminSupportRoutingRulesApplicationByApplicationId,
|
|
11255
|
+
{ path: { application_id: applicationId } },
|
|
11256
|
+
options
|
|
11257
|
+
);
|
|
11258
|
+
},
|
|
11259
|
+
/** Create a routing rule */
|
|
11260
|
+
create: async (attributes, options) => {
|
|
11261
|
+
return rb.execute(
|
|
11262
|
+
postAdminSupportRoutingRules,
|
|
11263
|
+
{ body: { data: { type: "support_routing_rule", attributes } } },
|
|
11264
|
+
options
|
|
11265
|
+
);
|
|
11266
|
+
},
|
|
11267
|
+
/** Update a routing rule */
|
|
11268
|
+
update: async (id, attributes, options) => {
|
|
11269
|
+
return rb.execute(
|
|
11270
|
+
patchAdminSupportRoutingRulesById,
|
|
11271
|
+
{
|
|
11272
|
+
path: { id },
|
|
11273
|
+
body: { data: { type: "support_routing_rule", id, attributes } }
|
|
11274
|
+
},
|
|
11275
|
+
options
|
|
11276
|
+
);
|
|
11277
|
+
},
|
|
11278
|
+
/** Delete a routing rule */
|
|
11279
|
+
delete: async (id, options) => {
|
|
11280
|
+
return rb.executeDelete(
|
|
11281
|
+
deleteAdminSupportRoutingRulesById,
|
|
11282
|
+
{ path: { id } },
|
|
11283
|
+
options
|
|
11284
|
+
);
|
|
11285
|
+
}
|
|
11286
|
+
},
|
|
11287
|
+
// --- SLA Policies ---
|
|
11288
|
+
slaPolicies: {
|
|
11289
|
+
/** Get an SLA policy by ID */
|
|
11290
|
+
get: async (id, options) => {
|
|
11291
|
+
return rb.execute(
|
|
11292
|
+
getAdminSupportSlaPoliciesById,
|
|
11293
|
+
{ path: { id } },
|
|
11294
|
+
options
|
|
11295
|
+
);
|
|
11296
|
+
},
|
|
11297
|
+
/** List SLA policies for an application */
|
|
11298
|
+
listByApplication: async (applicationId, options) => {
|
|
11299
|
+
return rb.execute(
|
|
11300
|
+
getAdminSupportSlaPoliciesApplicationByApplicationId,
|
|
11301
|
+
{ path: { application_id: applicationId } },
|
|
11302
|
+
options
|
|
11303
|
+
);
|
|
11304
|
+
},
|
|
11305
|
+
/** Create an SLA policy */
|
|
11306
|
+
create: async (attributes, options) => {
|
|
11307
|
+
return rb.execute(
|
|
11308
|
+
postAdminSupportSlaPolicies,
|
|
11309
|
+
{ body: { data: { type: "support_sla_policy", attributes } } },
|
|
11310
|
+
options
|
|
11311
|
+
);
|
|
11312
|
+
},
|
|
11313
|
+
/** Update an SLA policy */
|
|
11314
|
+
update: async (id, attributes, options) => {
|
|
11315
|
+
return rb.execute(
|
|
11316
|
+
patchAdminSupportSlaPoliciesById,
|
|
11317
|
+
{
|
|
11318
|
+
path: { id },
|
|
11319
|
+
body: { data: { type: "support_sla_policy", id, attributes } }
|
|
11320
|
+
},
|
|
11321
|
+
options
|
|
11322
|
+
);
|
|
11323
|
+
},
|
|
11324
|
+
/** Delete an SLA policy */
|
|
11325
|
+
delete: async (id, options) => {
|
|
11326
|
+
return rb.executeDelete(
|
|
11327
|
+
deleteAdminSupportSlaPoliciesById,
|
|
11328
|
+
{ path: { id } },
|
|
11329
|
+
options
|
|
11330
|
+
);
|
|
11331
|
+
}
|
|
11332
|
+
},
|
|
11333
|
+
// --- AI Config ---
|
|
11334
|
+
aiConfig: {
|
|
11335
|
+
/** Get AI config for a workspace */
|
|
11336
|
+
getForWorkspace: async (workspaceId, options) => {
|
|
11337
|
+
return rb.execute(
|
|
11338
|
+
getAdminSupportAiConfigsWorkspaceByWorkspaceId,
|
|
11339
|
+
{ path: { workspace_id: workspaceId } },
|
|
11340
|
+
options
|
|
11341
|
+
);
|
|
11342
|
+
},
|
|
11343
|
+
/** Create or update AI config */
|
|
11344
|
+
upsert: async (attributes, options) => {
|
|
11345
|
+
return rb.execute(
|
|
11346
|
+
postAdminSupportAiConfigs,
|
|
11347
|
+
{ body: { data: { type: "support_ai_config", attributes } } },
|
|
11348
|
+
options
|
|
11349
|
+
);
|
|
11350
|
+
}
|
|
11351
|
+
},
|
|
11352
|
+
// --- Channel Capture Config ---
|
|
11353
|
+
channelCaptureConfig: {
|
|
11354
|
+
/** Get channel capture config for a workspace */
|
|
11355
|
+
getForWorkspace: async (workspaceId, options) => {
|
|
11356
|
+
return rb.execute(
|
|
11357
|
+
getAdminSupportChannelCaptureConfigsWorkspaceByWorkspaceId,
|
|
11358
|
+
{ path: { workspace_id: workspaceId } },
|
|
11359
|
+
options
|
|
11360
|
+
);
|
|
11361
|
+
},
|
|
11362
|
+
/** Create or update channel capture config */
|
|
11363
|
+
upsert: async (attributes, options) => {
|
|
11364
|
+
return rb.execute(
|
|
11365
|
+
postAdminSupportChannelCaptureConfigs,
|
|
11366
|
+
{
|
|
11367
|
+
body: {
|
|
11368
|
+
data: { type: "support_channel_capture_config", attributes }
|
|
11369
|
+
}
|
|
11370
|
+
},
|
|
11371
|
+
options
|
|
11372
|
+
);
|
|
11373
|
+
}
|
|
11374
|
+
},
|
|
11375
|
+
// --- Sync Config ---
|
|
11376
|
+
syncConfig: {
|
|
11377
|
+
/** List sync configs for a workspace */
|
|
11378
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
11379
|
+
return rb.execute(
|
|
11380
|
+
getAdminSupportSyncConfigsWorkspaceByWorkspaceId,
|
|
11381
|
+
{ path: { workspace_id: workspaceId } },
|
|
11382
|
+
options
|
|
11383
|
+
);
|
|
11384
|
+
},
|
|
11385
|
+
/** Create a sync config */
|
|
11386
|
+
create: async (attributes, options) => {
|
|
11387
|
+
return rb.execute(
|
|
11388
|
+
postAdminSupportSyncConfigs,
|
|
11389
|
+
{ body: { data: { type: "support_sync_config", attributes } } },
|
|
11390
|
+
options
|
|
11391
|
+
);
|
|
11392
|
+
},
|
|
11393
|
+
/** Update a sync config */
|
|
11394
|
+
update: async (id, attributes, options) => {
|
|
11395
|
+
return rb.execute(
|
|
11396
|
+
patchAdminSupportSyncConfigsById,
|
|
11397
|
+
{
|
|
11398
|
+
path: { id },
|
|
11399
|
+
body: { data: { type: "support_sync_config", id, attributes } }
|
|
11400
|
+
},
|
|
11401
|
+
options
|
|
11402
|
+
);
|
|
11403
|
+
},
|
|
11404
|
+
/** Delete a sync config */
|
|
11405
|
+
delete: async (id, options) => {
|
|
11406
|
+
return rb.executeDelete(
|
|
11407
|
+
deleteAdminSupportSyncConfigsById,
|
|
11408
|
+
{ path: { id } },
|
|
11409
|
+
options
|
|
11410
|
+
);
|
|
11411
|
+
}
|
|
11412
|
+
},
|
|
11413
|
+
// --- Canned Responses ---
|
|
11414
|
+
cannedResponses: {
|
|
11415
|
+
/** List canned responses for a workspace */
|
|
11416
|
+
listByWorkspace: async (workspaceId, options) => {
|
|
11417
|
+
return rb.execute(
|
|
11418
|
+
getAdminSupportCannedResponsesWorkspaceByWorkspaceId,
|
|
11419
|
+
{ path: { workspace_id: workspaceId } },
|
|
11420
|
+
options
|
|
11421
|
+
);
|
|
11422
|
+
},
|
|
11423
|
+
/** Create a canned response */
|
|
11424
|
+
create: async (attributes, options) => {
|
|
11425
|
+
return rb.execute(
|
|
11426
|
+
postAdminSupportCannedResponses,
|
|
11427
|
+
{ body: { data: { type: "support_canned_response", attributes } } },
|
|
11428
|
+
options
|
|
11429
|
+
);
|
|
11430
|
+
},
|
|
11431
|
+
/** Update a canned response */
|
|
11432
|
+
update: async (id, attributes, options) => {
|
|
11433
|
+
return rb.execute(
|
|
11434
|
+
patchAdminSupportCannedResponsesById,
|
|
11435
|
+
{
|
|
11436
|
+
path: { id },
|
|
11437
|
+
body: { data: { type: "support_canned_response", id, attributes } }
|
|
11438
|
+
},
|
|
11439
|
+
options
|
|
11440
|
+
);
|
|
11441
|
+
},
|
|
11442
|
+
/** Delete a canned response */
|
|
11443
|
+
delete: async (id, options) => {
|
|
11444
|
+
return rb.executeDelete(
|
|
11445
|
+
deleteAdminSupportCannedResponsesById,
|
|
11446
|
+
{ path: { id } },
|
|
11447
|
+
options
|
|
11448
|
+
);
|
|
11449
|
+
}
|
|
11450
|
+
}
|
|
11451
|
+
};
|
|
11452
|
+
}
|
|
11453
|
+
|
|
11454
|
+
// src/namespaces/models.ts
|
|
11455
|
+
function createModelsNamespace(rb) {
|
|
11456
|
+
return {
|
|
11457
|
+
/**
|
|
11458
|
+
* List available models with tier classification.
|
|
11459
|
+
*
|
|
11460
|
+
* @param options - Optional filters for tier and category.
|
|
11461
|
+
* @param reqOptions - Optional request options.
|
|
11462
|
+
* @returns Array of available models.
|
|
11463
|
+
*
|
|
11464
|
+
* @example
|
|
11465
|
+
* ```typescript
|
|
11466
|
+
* const admin = new GptAdmin({ apiKey: 'sk_srv_...' });
|
|
11467
|
+
*
|
|
11468
|
+
* // All models
|
|
11469
|
+
* const models = await admin.models.list();
|
|
11470
|
+
*
|
|
11471
|
+
* // Filter by tier
|
|
11472
|
+
* const standard = await admin.models.list({ tier: "standard" });
|
|
11473
|
+
* ```
|
|
11474
|
+
*/
|
|
11475
|
+
async list(options, reqOptions) {
|
|
11476
|
+
const params = new URLSearchParams();
|
|
11477
|
+
if (options?.tier) params.set("tier", options.tier);
|
|
11478
|
+
if (options?.category) params.set("category", options.category);
|
|
11479
|
+
const query = params.toString();
|
|
11480
|
+
const path = query ? `/isv/models?${query}` : "/isv/models";
|
|
11481
|
+
return rb.rawGet(path, reqOptions);
|
|
11482
|
+
},
|
|
11483
|
+
/**
|
|
11484
|
+
* Get a single model by ID.
|
|
11485
|
+
*
|
|
11486
|
+
* @param modelId - The model ID (e.g., "anthropic/claude-sonnet-4").
|
|
11487
|
+
* Do NOT URL-encode — model IDs contain literal slashes.
|
|
11488
|
+
* @param reqOptions - Optional request options.
|
|
11489
|
+
* @returns Model details with tier classification.
|
|
11490
|
+
*
|
|
11491
|
+
* @example
|
|
11492
|
+
* ```typescript
|
|
11493
|
+
* const model = await admin.models.get("anthropic/claude-sonnet-4");
|
|
11494
|
+
* console.log(model.tier); // "high_performance"
|
|
11495
|
+
* ```
|
|
11496
|
+
*/
|
|
11497
|
+
async get(modelId, reqOptions) {
|
|
11498
|
+
return rb.rawGet(`/isv/models/${modelId}`, reqOptions);
|
|
11499
|
+
}
|
|
11500
|
+
};
|
|
11501
|
+
}
|
|
11502
|
+
|
|
11503
|
+
// src/namespaces/ai.ts
|
|
11504
|
+
function createAiNamespace(rb) {
|
|
11505
|
+
return {
|
|
11506
|
+
/**
|
|
11507
|
+
* Sub-namespace for managing LLM provider configurations.
|
|
11508
|
+
*
|
|
11509
|
+
* Provider configs control which LLM provider and model an application
|
|
11510
|
+
* uses for inference. Each application can have its own config.
|
|
11511
|
+
*/
|
|
11512
|
+
providerConfig: {
|
|
11513
|
+
/**
|
|
11514
|
+
* Lists all provider configurations.
|
|
11515
|
+
*
|
|
11516
|
+
* @param options - Optional request options.
|
|
11517
|
+
* @returns A promise that resolves to an array of provider config objects.
|
|
11518
|
+
*
|
|
11519
|
+
* @example
|
|
11520
|
+
* const configs = await admin.ai.providerConfig.list();
|
|
11521
|
+
* console.log(`Provider configs: ${configs.length}`);
|
|
11522
|
+
*/
|
|
11523
|
+
list: async (options) => {
|
|
11524
|
+
return rb.execute(getAdminSysAiConfig, {}, options);
|
|
11525
|
+
},
|
|
11526
|
+
/**
|
|
11527
|
+
* Gets a provider configuration by ID.
|
|
11528
|
+
*
|
|
11529
|
+
* @param id - The UUID of the provider config.
|
|
11530
|
+
* @param options - Optional request options.
|
|
11531
|
+
* @returns A promise that resolves to the provider config object.
|
|
11532
|
+
*
|
|
11533
|
+
* @example
|
|
11534
|
+
* const config = await admin.ai.providerConfig.get('cfg_01HXYZ...');
|
|
11535
|
+
* console.log(`Provider: ${config.cloud_provider}`);
|
|
11536
|
+
*/
|
|
11537
|
+
get: async (id, options) => {
|
|
11538
|
+
return rb.execute(
|
|
11539
|
+
getAdminSysAiConfigById,
|
|
11540
|
+
{ path: { id } },
|
|
11541
|
+
options
|
|
11542
|
+
);
|
|
11543
|
+
},
|
|
11544
|
+
/**
|
|
11545
|
+
* Creates or upserts a provider configuration.
|
|
11546
|
+
*
|
|
11547
|
+
* @param attributes - The provider config attributes.
|
|
11548
|
+
* @param options - Optional request options.
|
|
11549
|
+
* @returns A promise that resolves to the created provider config.
|
|
11550
|
+
*
|
|
11551
|
+
* @example
|
|
11552
|
+
* const config = await admin.ai.providerConfig.create({
|
|
11553
|
+
* cloud_provider: 'openai',
|
|
11554
|
+
* cloud_model: 'gpt-4o',
|
|
11555
|
+
* });
|
|
11556
|
+
*/
|
|
11557
|
+
create: async (attributes, options) => {
|
|
11558
|
+
return rb.execute(
|
|
11559
|
+
postAdminSysAiConfig,
|
|
11560
|
+
{
|
|
11561
|
+
body: {
|
|
11562
|
+
data: {
|
|
11563
|
+
type: "ai-config",
|
|
11564
|
+
attributes
|
|
11565
|
+
}
|
|
11566
|
+
}
|
|
11567
|
+
},
|
|
11568
|
+
options
|
|
11569
|
+
);
|
|
11570
|
+
},
|
|
11571
|
+
/**
|
|
11572
|
+
* Updates a provider configuration by ID.
|
|
11573
|
+
*
|
|
11574
|
+
* @param id - The UUID of the provider config to update.
|
|
11575
|
+
* @param attributes - The attributes to update.
|
|
11576
|
+
* @param options - Optional request options.
|
|
11577
|
+
* @returns A promise that resolves to the updated provider config.
|
|
11578
|
+
*
|
|
11579
|
+
* @example
|
|
11580
|
+
* const updated = await admin.ai.providerConfig.update('cfg_01HXYZ...', {
|
|
11581
|
+
* cloud_model: 'gpt-4o-mini',
|
|
11582
|
+
* });
|
|
11583
|
+
*/
|
|
11584
|
+
update: async (id, attributes, options) => {
|
|
11585
|
+
return rb.execute(
|
|
11586
|
+
patchAdminSysAiConfigById,
|
|
11587
|
+
{
|
|
11588
|
+
path: { id },
|
|
11589
|
+
body: {
|
|
11590
|
+
data: {
|
|
11591
|
+
type: "ai-config",
|
|
11592
|
+
id,
|
|
11593
|
+
attributes
|
|
11594
|
+
}
|
|
11595
|
+
}
|
|
11596
|
+
},
|
|
11597
|
+
options
|
|
11598
|
+
);
|
|
11599
|
+
}
|
|
11600
|
+
},
|
|
11601
|
+
/**
|
|
11602
|
+
* Sub-namespace for querying LLM analytics and usage metrics.
|
|
11603
|
+
*
|
|
11604
|
+
* Provides admin-level access to token usage, costs, and platform-wide
|
|
11605
|
+
* metrics across all tenants and workspaces.
|
|
11606
|
+
*/
|
|
11607
|
+
analytics: {
|
|
11608
|
+
/**
|
|
11609
|
+
* Lists raw LLM analytics records.
|
|
11610
|
+
*
|
|
11611
|
+
* @param options - Optional request options.
|
|
11612
|
+
* @returns A promise that resolves to an array of analytics records.
|
|
11613
|
+
*
|
|
11614
|
+
* @example
|
|
11615
|
+
* const records = await admin.ai.analytics.list();
|
|
11616
|
+
* console.log(`Total records: ${records.length}`);
|
|
11617
|
+
*/
|
|
11618
|
+
list: async (options) => {
|
|
11619
|
+
return rb.execute(getAdminLlmAnalytics, {}, options);
|
|
11620
|
+
},
|
|
11621
|
+
/**
|
|
11622
|
+
* Gets a single LLM analytics record by ID.
|
|
11623
|
+
*
|
|
11624
|
+
* @param id - The UUID of the analytics record.
|
|
11625
|
+
* @param options - Optional request options.
|
|
11626
|
+
* @returns A promise that resolves to the analytics record.
|
|
11627
|
+
*/
|
|
11628
|
+
get: async (id, options) => {
|
|
11629
|
+
return rb.execute(
|
|
11630
|
+
getAdminLlmAnalyticsById,
|
|
11631
|
+
{ path: { id } },
|
|
11632
|
+
options
|
|
11633
|
+
);
|
|
11634
|
+
},
|
|
11635
|
+
/**
|
|
11636
|
+
* Records a new LLM analytics entry.
|
|
11637
|
+
*
|
|
11638
|
+
* @param attributes - The analytics entry attributes.
|
|
11639
|
+
* @param options - Optional request options.
|
|
11640
|
+
* @returns A promise that resolves to the created record.
|
|
11641
|
+
*/
|
|
11642
|
+
record: async (attributes, options) => {
|
|
11643
|
+
return rb.execute(
|
|
11644
|
+
postAdminLlmAnalytics,
|
|
11645
|
+
{
|
|
11646
|
+
body: {
|
|
11647
|
+
data: {
|
|
11648
|
+
type: "llm-analytics",
|
|
11649
|
+
attributes
|
|
11650
|
+
}
|
|
11651
|
+
}
|
|
11652
|
+
},
|
|
11653
|
+
options
|
|
11654
|
+
);
|
|
11655
|
+
},
|
|
11656
|
+
/**
|
|
11657
|
+
* Returns a token cost breakdown grouped by model and time period.
|
|
11658
|
+
*
|
|
11659
|
+
* @param options - Optional request options.
|
|
11660
|
+
* @returns A promise that resolves to a cost breakdown object.
|
|
11661
|
+
*
|
|
11662
|
+
* @example
|
|
11663
|
+
* const costs = await admin.ai.analytics.costs();
|
|
11664
|
+
* console.log(`Total spend: $${costs.total_usd}`);
|
|
11665
|
+
*/
|
|
11666
|
+
costs: async (options) => {
|
|
11667
|
+
return rb.execute(
|
|
11668
|
+
getAdminLlmAnalyticsCosts,
|
|
11669
|
+
{},
|
|
11670
|
+
options
|
|
11671
|
+
);
|
|
11672
|
+
},
|
|
11673
|
+
/**
|
|
11674
|
+
* Returns a high-level summary of LLM usage.
|
|
11675
|
+
*
|
|
11676
|
+
* @param options - Optional request options.
|
|
11677
|
+
* @returns A promise that resolves to a summary metrics object.
|
|
11678
|
+
*
|
|
11679
|
+
* @example
|
|
11680
|
+
* const summary = await admin.ai.analytics.summary();
|
|
11681
|
+
* console.log(`Total requests: ${summary.total_requests}`);
|
|
11682
|
+
*/
|
|
11683
|
+
summary: async (options) => {
|
|
11684
|
+
return rb.execute(
|
|
11685
|
+
getAdminLlmAnalyticsSummary,
|
|
11686
|
+
{},
|
|
11687
|
+
options
|
|
11688
|
+
);
|
|
11689
|
+
},
|
|
11690
|
+
/**
|
|
11691
|
+
* Returns time-series LLM usage data points.
|
|
11692
|
+
*
|
|
11693
|
+
* @param options - Optional request options.
|
|
11694
|
+
* @returns A promise that resolves to usage time-series data.
|
|
11695
|
+
*
|
|
11696
|
+
* @example
|
|
11697
|
+
* const usage = await admin.ai.analytics.usage();
|
|
11698
|
+
* for (const point of usage.data_points) {
|
|
11699
|
+
* console.log(`${point.timestamp}: ${point.tokens} tokens`);
|
|
11700
|
+
* }
|
|
11701
|
+
*/
|
|
11702
|
+
usage: async (options) => {
|
|
11703
|
+
return rb.execute(
|
|
11704
|
+
getAdminLlmAnalyticsUsage,
|
|
11705
|
+
{},
|
|
11706
|
+
options
|
|
11707
|
+
);
|
|
11708
|
+
},
|
|
11709
|
+
/**
|
|
11710
|
+
* Returns workspace-scoped LLM metrics.
|
|
11711
|
+
*
|
|
11712
|
+
* @param options - Optional request options.
|
|
11713
|
+
* @returns A promise that resolves to workspace metrics.
|
|
11714
|
+
*/
|
|
11715
|
+
workspace: async (options) => {
|
|
11716
|
+
return rb.execute(
|
|
11717
|
+
getAdminLlmAnalyticsWorkspace,
|
|
11718
|
+
{},
|
|
11719
|
+
options
|
|
11720
|
+
);
|
|
11721
|
+
},
|
|
11722
|
+
/**
|
|
11723
|
+
* Returns platform-wide LLM summary across all applications and tenants.
|
|
11724
|
+
*
|
|
11725
|
+
* @param options - Optional request options.
|
|
11726
|
+
* @returns A promise that resolves to platform summary metrics.
|
|
11727
|
+
*
|
|
11728
|
+
* @example
|
|
11729
|
+
* const platform = await admin.ai.analytics.platformSummary();
|
|
11730
|
+
* console.log(`Platform total: $${platform.total_usd}`);
|
|
11731
|
+
*/
|
|
11732
|
+
platformSummary: async (options) => {
|
|
11733
|
+
return rb.execute(
|
|
11734
|
+
getAdminLlmAnalyticsPlatform,
|
|
11735
|
+
{},
|
|
11736
|
+
options
|
|
11737
|
+
);
|
|
11738
|
+
}
|
|
11739
|
+
},
|
|
11740
|
+
/**
|
|
11741
|
+
* Sub-namespace for semantic cache management.
|
|
11742
|
+
*
|
|
11743
|
+
* The semantic cache stores LLM prompt/response pairs indexed by vector
|
|
11744
|
+
* similarity. Admins can inspect cache entries and clear the cache.
|
|
11745
|
+
*/
|
|
11746
|
+
cache: {
|
|
11747
|
+
/**
|
|
11748
|
+
* Gets a semantic cache entry by ID.
|
|
11749
|
+
*
|
|
11750
|
+
* @param id - The UUID of the cache entry.
|
|
11751
|
+
* @param options - Optional request options.
|
|
11752
|
+
* @returns A promise that resolves to the cache entry.
|
|
11753
|
+
*/
|
|
11754
|
+
get: async (id, options) => {
|
|
11755
|
+
return rb.execute(
|
|
11756
|
+
getAdminSysSemanticCacheById,
|
|
11757
|
+
{ path: { id } },
|
|
11758
|
+
options
|
|
11759
|
+
);
|
|
11760
|
+
},
|
|
11761
|
+
/**
|
|
11762
|
+
* Clears the semantic cache.
|
|
11763
|
+
*
|
|
11764
|
+
* Removes all cached prompt/response pairs. This is irreversible.
|
|
11765
|
+
*
|
|
11766
|
+
* @param options - Optional request options.
|
|
11767
|
+
* @returns A promise that resolves when the cache is cleared.
|
|
11768
|
+
*
|
|
11769
|
+
* @example
|
|
11770
|
+
* await admin.ai.cache.clear();
|
|
11771
|
+
* console.log('Semantic cache cleared');
|
|
11772
|
+
*/
|
|
11773
|
+
clear: async (options) => {
|
|
11774
|
+
return rb.execute(postAdminSysSemanticCacheClear, {}, options);
|
|
11775
|
+
}
|
|
11776
|
+
}
|
|
11777
|
+
};
|
|
11778
|
+
}
|
|
11779
|
+
|
|
11780
|
+
// src/namespaces/crm-clusters.ts
|
|
11781
|
+
function createCrmClustersNamespace(rb) {
|
|
11782
|
+
return {
|
|
11783
|
+
/**
|
|
11784
|
+
* Discovers relationship clusters in the workspace CRM using community detection.
|
|
11785
|
+
* Each cluster is automatically labeled by AI.
|
|
11786
|
+
*
|
|
11787
|
+
* @param workspaceId - The workspace ID to discover clusters for
|
|
11788
|
+
* @returns Array of discovered clusters with AI-generated labels
|
|
11789
|
+
* @example
|
|
11790
|
+
* ```typescript
|
|
11791
|
+
* const { data } = await admin.crmClusters.discover('workspace-uuid');
|
|
11792
|
+
* ```
|
|
11793
|
+
*/
|
|
11794
|
+
async discover(workspaceId) {
|
|
11795
|
+
return rb.rawGet(
|
|
11796
|
+
`/isv/crm/clusters?workspace_id=${encodeURIComponent(workspaceId)}`
|
|
11797
|
+
);
|
|
11798
|
+
}
|
|
11799
|
+
};
|
|
11800
|
+
}
|
|
11801
|
+
|
|
11802
|
+
// src/namespaces/compliance.ts
|
|
11803
|
+
function createComplianceNamespace(rb) {
|
|
11804
|
+
return {
|
|
11805
|
+
/**
|
|
11806
|
+
* Scans text for PII and PHI violations (HIPAA Safe Harbor).
|
|
11807
|
+
*
|
|
11808
|
+
* @param text - The text to scan for compliance violations
|
|
11809
|
+
* @returns Scan result with clean flag, detections, and scrubbed preview
|
|
11810
|
+
* @example
|
|
11811
|
+
* ```typescript
|
|
11812
|
+
* const result = await admin.compliance.scan('Patient DOB: 03/15/1985');
|
|
11813
|
+
* ```
|
|
11814
|
+
*/
|
|
11815
|
+
async scan(text) {
|
|
11816
|
+
return rb.rawPost("/isv/compliance/scan", { text });
|
|
11817
|
+
}
|
|
11818
|
+
};
|
|
11819
|
+
}
|
|
11820
|
+
|
|
11821
|
+
// src/namespaces/tenants.ts
|
|
11822
|
+
function createTenantsNamespace(rb) {
|
|
11823
|
+
return {
|
|
11824
|
+
/**
|
|
11825
|
+
* Suspends a tenant, preventing billing charges and access.
|
|
11826
|
+
*
|
|
11827
|
+
* @param id - Tenant UUID
|
|
11828
|
+
* @param reason - Human-readable reason for suspension (required)
|
|
11829
|
+
* @returns Updated tenant id and status
|
|
11830
|
+
*/
|
|
11831
|
+
async suspend(id, reason) {
|
|
11832
|
+
return rb.rawPost(`/isv/tenants/${id}/suspend`, {
|
|
11833
|
+
reason
|
|
11834
|
+
});
|
|
11835
|
+
},
|
|
11836
|
+
/**
|
|
11837
|
+
* Restores a suspended tenant to active status.
|
|
11838
|
+
*
|
|
11839
|
+
* @param id - Tenant UUID
|
|
11840
|
+
* @returns Updated tenant id and status
|
|
11841
|
+
*/
|
|
11842
|
+
async unsuspend(id) {
|
|
11843
|
+
return rb.rawPost(
|
|
11844
|
+
`/isv/tenants/${id}/unsuspend`,
|
|
11845
|
+
{}
|
|
11846
|
+
);
|
|
11847
|
+
},
|
|
11848
|
+
/**
|
|
11849
|
+
* Permanently cancels a tenant.
|
|
11850
|
+
*
|
|
11851
|
+
* @param id - Tenant UUID
|
|
11852
|
+
* @returns Updated tenant id and status
|
|
11853
|
+
*/
|
|
11854
|
+
async cancel(id) {
|
|
11855
|
+
return rb.rawPost(`/isv/tenants/${id}/cancel`, {});
|
|
11856
|
+
}
|
|
11857
|
+
};
|
|
11858
|
+
}
|
|
11859
|
+
|
|
10400
11860
|
// src/gpt-admin.ts
|
|
10401
11861
|
var GptAdmin = class extends BaseClient {
|
|
10402
11862
|
constructor(config) {
|
|
@@ -10428,6 +11888,12 @@ var GptAdmin = class extends BaseClient {
|
|
|
10428
11888
|
this.crawler = createCrawlerNamespace(rb);
|
|
10429
11889
|
this.scheduling = createSchedulingNamespace(rb);
|
|
10430
11890
|
this.crm = createCrmNamespace(rb);
|
|
11891
|
+
this.support = createSupportNamespace(rb);
|
|
11892
|
+
this.models = createModelsNamespace(rb);
|
|
11893
|
+
this.ai = createAiNamespace(rb);
|
|
11894
|
+
this.crmClusters = createCrmClustersNamespace(rb);
|
|
11895
|
+
this.compliance = createComplianceNamespace(rb);
|
|
11896
|
+
this.tenants = createTenantsNamespace(rb);
|
|
10431
11897
|
}
|
|
10432
11898
|
};
|
|
10433
11899
|
|