@gpt-platform/admin 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -853,7 +853,7 @@ var createClient = (config = {}) => {
853
853
  };
854
854
 
855
855
  // src/version.ts
856
- var SDK_VERSION = "0.5.0";
856
+ var SDK_VERSION = "0.5.1";
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 getAdminAgentsByIdSchemaVersions = (options) => (options.client ?? client).get({
4152
+ var postAdminSysSemanticCacheClear = (options) => (options.client ?? client).post({
3796
4153
  security: [{ scheme: "bearer", type: "http" }],
3797
- url: "/admin/agents/{id}/schema-versions",
3798
- ...options
3799
- });
3800
- var postAdminAgentsByIdSchemaVersions = (options) => (options.client ?? client).post({
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 options - Optional request options. Use `idempotencyKey` to prevent duplicate executions.
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
- * console.log(`Execution ${exec.id} started, status: ${exec.status}`);
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, options) {
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
- { input },
5628
- options
6076
+ body,
6077
+ Object.keys(reqOptions).length > 0 ? reqOptions : void 0
5629
6078
  );
5630
6079
  },
5631
6080
  /**
@@ -10436,6 +10885,733 @@ function createCrmNamespace(rb) {
10436
10885
  };
10437
10886
  }
10438
10887
 
10888
+ // src/namespaces/support.ts
10889
+ function createSupportNamespace(rb) {
10890
+ return {
10891
+ // --- Tickets ---
10892
+ tickets: {
10893
+ /** Get a support ticket by ID */
10894
+ get: async (id, options) => {
10895
+ return rb.execute(getAdminSupportTicketsById, { path: { id } }, options);
10896
+ },
10897
+ /** List tickets for a workspace */
10898
+ listByWorkspace: async (workspaceId, options) => {
10899
+ return rb.execute(
10900
+ getAdminSupportTicketsWorkspaceByWorkspaceId,
10901
+ { path: { workspace_id: workspaceId } },
10902
+ options
10903
+ );
10904
+ },
10905
+ /** Create a new support ticket */
10906
+ create: async (attributes, options) => {
10907
+ return rb.execute(
10908
+ postAdminSupportTickets,
10909
+ { body: { data: { type: "support_ticket", attributes } } },
10910
+ options
10911
+ );
10912
+ },
10913
+ /** Update a support ticket */
10914
+ update: async (id, attributes, options) => {
10915
+ return rb.execute(
10916
+ patchAdminSupportTicketsById,
10917
+ { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
10918
+ options
10919
+ );
10920
+ },
10921
+ /** Assign a ticket to an agent or queue */
10922
+ assign: async (id, attributes, options) => {
10923
+ return rb.execute(
10924
+ patchAdminSupportTicketsByIdAssign,
10925
+ { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
10926
+ options
10927
+ );
10928
+ },
10929
+ /** Resolve a ticket */
10930
+ resolve: async (id, attributes, options) => {
10931
+ return rb.execute(
10932
+ patchAdminSupportTicketsByIdResolve,
10933
+ { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
10934
+ options
10935
+ );
10936
+ },
10937
+ /** Close a resolved ticket */
10938
+ close: async (id, attributes, options) => {
10939
+ return rb.execute(
10940
+ patchAdminSupportTicketsByIdClose,
10941
+ { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
10942
+ options
10943
+ );
10944
+ },
10945
+ /** Reopen a closed or resolved ticket */
10946
+ reopen: async (id, attributes, options) => {
10947
+ return rb.execute(
10948
+ patchAdminSupportTicketsByIdReopen,
10949
+ { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
10950
+ options
10951
+ );
10952
+ },
10953
+ /** Merge a ticket into another ticket */
10954
+ merge: async (id, attributes, options) => {
10955
+ return rb.execute(
10956
+ patchAdminSupportTicketsByIdMerge,
10957
+ { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
10958
+ options
10959
+ );
10960
+ },
10961
+ /** Delete a support ticket */
10962
+ delete: async (id, options) => {
10963
+ return rb.executeDelete(deleteAdminSupportTicketsById, { path: { id } }, options);
10964
+ }
10965
+ },
10966
+ // --- Messages ---
10967
+ messages: {
10968
+ /** List messages for a ticket */
10969
+ listByTicket: async (ticketId, options) => {
10970
+ return rb.execute(
10971
+ getAdminSupportTicketMessagesTicketByTicketId,
10972
+ { path: { ticket_id: ticketId } },
10973
+ options
10974
+ );
10975
+ },
10976
+ /** Create a message on a ticket */
10977
+ create: async (attributes, options) => {
10978
+ return rb.execute(
10979
+ postAdminSupportTicketMessages,
10980
+ { body: { data: { type: "support_ticket_message", attributes } } },
10981
+ options
10982
+ );
10983
+ }
10984
+ },
10985
+ // --- Attachments ---
10986
+ attachments: {
10987
+ /** List attachments for a ticket message */
10988
+ listByMessage: async (messageId, options) => {
10989
+ return rb.execute(
10990
+ getAdminSupportTicketAttachmentsMessageByTicketMessageId,
10991
+ { path: { ticket_message_id: messageId } },
10992
+ options
10993
+ );
10994
+ },
10995
+ /** Create an attachment on a ticket message */
10996
+ create: async (attributes, options) => {
10997
+ return rb.execute(
10998
+ postAdminSupportTicketAttachments,
10999
+ { body: { data: { type: "support_ticket_attachment", attributes } } },
11000
+ options
11001
+ );
11002
+ }
11003
+ },
11004
+ // --- Ratings ---
11005
+ ratings: {
11006
+ /** Create or update a satisfaction rating for a ticket */
11007
+ create: async (attributes, options) => {
11008
+ return rb.execute(
11009
+ postAdminSupportTicketRatings,
11010
+ { body: { data: { type: "support_ticket_rating", attributes } } },
11011
+ options
11012
+ );
11013
+ }
11014
+ },
11015
+ // --- Tags ---
11016
+ tags: {
11017
+ /** List tags for a workspace */
11018
+ listByWorkspace: async (workspaceId, options) => {
11019
+ return rb.execute(
11020
+ getAdminSupportTagsWorkspaceByWorkspaceId,
11021
+ { path: { workspace_id: workspaceId } },
11022
+ options
11023
+ );
11024
+ },
11025
+ /** Create a tag */
11026
+ create: async (attributes, options) => {
11027
+ return rb.execute(
11028
+ postAdminSupportTags,
11029
+ { body: { data: { type: "support_tag", attributes } } },
11030
+ options
11031
+ );
11032
+ },
11033
+ /** Delete a tag */
11034
+ delete: async (id, options) => {
11035
+ return rb.executeDelete(deleteAdminSupportTagsById, { path: { id } }, options);
11036
+ }
11037
+ },
11038
+ // --- Queues ---
11039
+ queues: {
11040
+ /** Get a queue by ID */
11041
+ get: async (id, options) => {
11042
+ return rb.execute(getAdminSupportQueuesById, { path: { id } }, options);
11043
+ },
11044
+ /** List queues for an application */
11045
+ listByApplication: async (applicationId, options) => {
11046
+ return rb.execute(
11047
+ getAdminSupportQueuesApplicationByApplicationId,
11048
+ { path: { application_id: applicationId } },
11049
+ options
11050
+ );
11051
+ },
11052
+ /** Create a queue */
11053
+ create: async (attributes, options) => {
11054
+ return rb.execute(
11055
+ postAdminSupportQueues,
11056
+ { body: { data: { type: "support_queue", attributes } } },
11057
+ options
11058
+ );
11059
+ },
11060
+ /** Update a queue */
11061
+ update: async (id, attributes, options) => {
11062
+ return rb.execute(
11063
+ patchAdminSupportQueuesById,
11064
+ { path: { id }, body: { data: { type: "support_queue", id, attributes } } },
11065
+ options
11066
+ );
11067
+ },
11068
+ /** Delete a queue */
11069
+ delete: async (id, options) => {
11070
+ return rb.executeDelete(deleteAdminSupportQueuesById, { path: { id } }, options);
11071
+ }
11072
+ },
11073
+ // --- Queue Members ---
11074
+ queueMembers: {
11075
+ /** List members of a queue */
11076
+ listByQueue: async (queueId, options) => {
11077
+ return rb.execute(
11078
+ getAdminSupportQueueMembersQueueByQueueId,
11079
+ { path: { queue_id: queueId } },
11080
+ options
11081
+ );
11082
+ },
11083
+ /** List all queue members for an application */
11084
+ listByApplication: async (applicationId, options) => {
11085
+ return rb.execute(
11086
+ getAdminSupportQueueMembersApplicationByApplicationId,
11087
+ { path: { application_id: applicationId } },
11088
+ options
11089
+ );
11090
+ },
11091
+ /** Add a member to a queue */
11092
+ create: async (attributes, options) => {
11093
+ return rb.execute(
11094
+ postAdminSupportQueueMembers,
11095
+ { body: { data: { type: "support_queue_member", attributes } } },
11096
+ options
11097
+ );
11098
+ },
11099
+ /** Update a queue member */
11100
+ update: async (id, attributes, options) => {
11101
+ return rb.execute(
11102
+ patchAdminSupportQueueMembersById,
11103
+ { path: { id }, body: { data: { type: "support_queue_member", id, attributes } } },
11104
+ options
11105
+ );
11106
+ },
11107
+ /** Remove a member from a queue */
11108
+ delete: async (id, options) => {
11109
+ return rb.executeDelete(deleteAdminSupportQueueMembersById, { path: { id } }, options);
11110
+ }
11111
+ },
11112
+ // --- Routing Rules ---
11113
+ routingRules: {
11114
+ /** Get a routing rule by ID */
11115
+ get: async (id, options) => {
11116
+ return rb.execute(getAdminSupportRoutingRulesById, { path: { id } }, options);
11117
+ },
11118
+ /** List routing rules for an application */
11119
+ listByApplication: async (applicationId, options) => {
11120
+ return rb.execute(
11121
+ getAdminSupportRoutingRulesApplicationByApplicationId,
11122
+ { path: { application_id: applicationId } },
11123
+ options
11124
+ );
11125
+ },
11126
+ /** Create a routing rule */
11127
+ create: async (attributes, options) => {
11128
+ return rb.execute(
11129
+ postAdminSupportRoutingRules,
11130
+ { body: { data: { type: "support_routing_rule", attributes } } },
11131
+ options
11132
+ );
11133
+ },
11134
+ /** Update a routing rule */
11135
+ update: async (id, attributes, options) => {
11136
+ return rb.execute(
11137
+ patchAdminSupportRoutingRulesById,
11138
+ { path: { id }, body: { data: { type: "support_routing_rule", id, attributes } } },
11139
+ options
11140
+ );
11141
+ },
11142
+ /** Delete a routing rule */
11143
+ delete: async (id, options) => {
11144
+ return rb.executeDelete(deleteAdminSupportRoutingRulesById, { path: { id } }, options);
11145
+ }
11146
+ },
11147
+ // --- SLA Policies ---
11148
+ slaPolicies: {
11149
+ /** Get an SLA policy by ID */
11150
+ get: async (id, options) => {
11151
+ return rb.execute(getAdminSupportSlaPoliciesById, { path: { id } }, options);
11152
+ },
11153
+ /** List SLA policies for an application */
11154
+ listByApplication: async (applicationId, options) => {
11155
+ return rb.execute(
11156
+ getAdminSupportSlaPoliciesApplicationByApplicationId,
11157
+ { path: { application_id: applicationId } },
11158
+ options
11159
+ );
11160
+ },
11161
+ /** Create an SLA policy */
11162
+ create: async (attributes, options) => {
11163
+ return rb.execute(
11164
+ postAdminSupportSlaPolicies,
11165
+ { body: { data: { type: "support_sla_policy", attributes } } },
11166
+ options
11167
+ );
11168
+ },
11169
+ /** Update an SLA policy */
11170
+ update: async (id, attributes, options) => {
11171
+ return rb.execute(
11172
+ patchAdminSupportSlaPoliciesById,
11173
+ { path: { id }, body: { data: { type: "support_sla_policy", id, attributes } } },
11174
+ options
11175
+ );
11176
+ },
11177
+ /** Delete an SLA policy */
11178
+ delete: async (id, options) => {
11179
+ return rb.executeDelete(deleteAdminSupportSlaPoliciesById, { path: { id } }, options);
11180
+ }
11181
+ },
11182
+ // --- AI Config ---
11183
+ aiConfig: {
11184
+ /** Get AI config for a workspace */
11185
+ getForWorkspace: async (workspaceId, options) => {
11186
+ return rb.execute(
11187
+ getAdminSupportAiConfigsWorkspaceByWorkspaceId,
11188
+ { path: { workspace_id: workspaceId } },
11189
+ options
11190
+ );
11191
+ },
11192
+ /** Create or update AI config */
11193
+ upsert: async (attributes, options) => {
11194
+ return rb.execute(
11195
+ postAdminSupportAiConfigs,
11196
+ { body: { data: { type: "support_ai_config", attributes } } },
11197
+ options
11198
+ );
11199
+ }
11200
+ },
11201
+ // --- Channel Capture Config ---
11202
+ channelCaptureConfig: {
11203
+ /** Get channel capture config for a workspace */
11204
+ getForWorkspace: async (workspaceId, options) => {
11205
+ return rb.execute(
11206
+ getAdminSupportChannelCaptureConfigsWorkspaceByWorkspaceId,
11207
+ { path: { workspace_id: workspaceId } },
11208
+ options
11209
+ );
11210
+ },
11211
+ /** Create or update channel capture config */
11212
+ upsert: async (attributes, options) => {
11213
+ return rb.execute(
11214
+ postAdminSupportChannelCaptureConfigs,
11215
+ { body: { data: { type: "support_channel_capture_config", attributes } } },
11216
+ options
11217
+ );
11218
+ }
11219
+ },
11220
+ // --- Sync Config ---
11221
+ syncConfig: {
11222
+ /** List sync configs for a workspace */
11223
+ listByWorkspace: async (workspaceId, options) => {
11224
+ return rb.execute(
11225
+ getAdminSupportSyncConfigsWorkspaceByWorkspaceId,
11226
+ { path: { workspace_id: workspaceId } },
11227
+ options
11228
+ );
11229
+ },
11230
+ /** Create a sync config */
11231
+ create: async (attributes, options) => {
11232
+ return rb.execute(
11233
+ postAdminSupportSyncConfigs,
11234
+ { body: { data: { type: "support_sync_config", attributes } } },
11235
+ options
11236
+ );
11237
+ },
11238
+ /** Update a sync config */
11239
+ update: async (id, attributes, options) => {
11240
+ return rb.execute(
11241
+ patchAdminSupportSyncConfigsById,
11242
+ { path: { id }, body: { data: { type: "support_sync_config", id, attributes } } },
11243
+ options
11244
+ );
11245
+ },
11246
+ /** Delete a sync config */
11247
+ delete: async (id, options) => {
11248
+ return rb.executeDelete(deleteAdminSupportSyncConfigsById, { path: { id } }, options);
11249
+ }
11250
+ },
11251
+ // --- Canned Responses ---
11252
+ cannedResponses: {
11253
+ /** List canned responses for a workspace */
11254
+ listByWorkspace: async (workspaceId, options) => {
11255
+ return rb.execute(
11256
+ getAdminSupportCannedResponsesWorkspaceByWorkspaceId,
11257
+ { path: { workspace_id: workspaceId } },
11258
+ options
11259
+ );
11260
+ },
11261
+ /** Create a canned response */
11262
+ create: async (attributes, options) => {
11263
+ return rb.execute(
11264
+ postAdminSupportCannedResponses,
11265
+ { body: { data: { type: "support_canned_response", attributes } } },
11266
+ options
11267
+ );
11268
+ },
11269
+ /** Update a canned response */
11270
+ update: async (id, attributes, options) => {
11271
+ return rb.execute(
11272
+ patchAdminSupportCannedResponsesById,
11273
+ { path: { id }, body: { data: { type: "support_canned_response", id, attributes } } },
11274
+ options
11275
+ );
11276
+ },
11277
+ /** Delete a canned response */
11278
+ delete: async (id, options) => {
11279
+ return rb.executeDelete(deleteAdminSupportCannedResponsesById, { path: { id } }, options);
11280
+ }
11281
+ }
11282
+ };
11283
+ }
11284
+
11285
+ // src/namespaces/models.ts
11286
+ function createModelsNamespace(rb) {
11287
+ return {
11288
+ /**
11289
+ * List available models with tier classification.
11290
+ *
11291
+ * @param options - Optional filters for tier and category.
11292
+ * @param reqOptions - Optional request options.
11293
+ * @returns Array of available models.
11294
+ *
11295
+ * @example
11296
+ * ```typescript
11297
+ * const admin = new GptAdmin({ apiKey: 'sk_srv_...' });
11298
+ *
11299
+ * // All models
11300
+ * const models = await admin.models.list();
11301
+ *
11302
+ * // Filter by tier
11303
+ * const standard = await admin.models.list({ tier: "standard" });
11304
+ * ```
11305
+ */
11306
+ async list(options, reqOptions) {
11307
+ const params = new URLSearchParams();
11308
+ if (options?.tier) params.set("tier", options.tier);
11309
+ if (options?.category) params.set("category", options.category);
11310
+ const query = params.toString();
11311
+ const path = query ? `/isv/models?${query}` : "/isv/models";
11312
+ return rb.rawGet(path, reqOptions);
11313
+ },
11314
+ /**
11315
+ * Get a single model by ID.
11316
+ *
11317
+ * @param modelId - The model ID (e.g., "anthropic/claude-sonnet-4").
11318
+ * Do NOT URL-encode — model IDs contain literal slashes.
11319
+ * @param reqOptions - Optional request options.
11320
+ * @returns Model details with tier classification.
11321
+ *
11322
+ * @example
11323
+ * ```typescript
11324
+ * const model = await admin.models.get("anthropic/claude-sonnet-4");
11325
+ * console.log(model.tier); // "high_performance"
11326
+ * ```
11327
+ */
11328
+ async get(modelId, reqOptions) {
11329
+ return rb.rawGet(`/isv/models/${modelId}`, reqOptions);
11330
+ }
11331
+ };
11332
+ }
11333
+
11334
+ // src/namespaces/ai.ts
11335
+ function createAiNamespace(rb) {
11336
+ return {
11337
+ /**
11338
+ * Sub-namespace for managing LLM provider configurations.
11339
+ *
11340
+ * Provider configs control which LLM provider and model an application
11341
+ * uses for inference. Each application can have its own config.
11342
+ */
11343
+ providerConfig: {
11344
+ /**
11345
+ * Lists all provider configurations.
11346
+ *
11347
+ * @param options - Optional request options.
11348
+ * @returns A promise that resolves to an array of provider config objects.
11349
+ *
11350
+ * @example
11351
+ * const configs = await admin.ai.providerConfig.list();
11352
+ * console.log(`Provider configs: ${configs.length}`);
11353
+ */
11354
+ list: async (options) => {
11355
+ return rb.execute(getAdminSysAiConfig, {}, options);
11356
+ },
11357
+ /**
11358
+ * Gets a provider configuration by ID.
11359
+ *
11360
+ * @param id - The UUID of the provider config.
11361
+ * @param options - Optional request options.
11362
+ * @returns A promise that resolves to the provider config object.
11363
+ *
11364
+ * @example
11365
+ * const config = await admin.ai.providerConfig.get('cfg_01HXYZ...');
11366
+ * console.log(`Provider: ${config.cloud_provider}`);
11367
+ */
11368
+ get: async (id, options) => {
11369
+ return rb.execute(
11370
+ getAdminSysAiConfigById,
11371
+ { path: { id } },
11372
+ options
11373
+ );
11374
+ },
11375
+ /**
11376
+ * Creates or upserts a provider configuration.
11377
+ *
11378
+ * @param attributes - The provider config attributes.
11379
+ * @param options - Optional request options.
11380
+ * @returns A promise that resolves to the created provider config.
11381
+ *
11382
+ * @example
11383
+ * const config = await admin.ai.providerConfig.create({
11384
+ * cloud_provider: 'openai',
11385
+ * cloud_model: 'gpt-4o',
11386
+ * });
11387
+ */
11388
+ create: async (attributes, options) => {
11389
+ return rb.execute(
11390
+ postAdminSysAiConfig,
11391
+ {
11392
+ body: {
11393
+ data: {
11394
+ type: "ai-config",
11395
+ attributes
11396
+ }
11397
+ }
11398
+ },
11399
+ options
11400
+ );
11401
+ },
11402
+ /**
11403
+ * Updates a provider configuration by ID.
11404
+ *
11405
+ * @param id - The UUID of the provider config to update.
11406
+ * @param attributes - The attributes to update.
11407
+ * @param options - Optional request options.
11408
+ * @returns A promise that resolves to the updated provider config.
11409
+ *
11410
+ * @example
11411
+ * const updated = await admin.ai.providerConfig.update('cfg_01HXYZ...', {
11412
+ * cloud_model: 'gpt-4o-mini',
11413
+ * });
11414
+ */
11415
+ update: async (id, attributes, options) => {
11416
+ return rb.execute(
11417
+ patchAdminSysAiConfigById,
11418
+ {
11419
+ path: { id },
11420
+ body: {
11421
+ data: {
11422
+ type: "ai-config",
11423
+ id,
11424
+ attributes
11425
+ }
11426
+ }
11427
+ },
11428
+ options
11429
+ );
11430
+ }
11431
+ },
11432
+ /**
11433
+ * Sub-namespace for querying LLM analytics and usage metrics.
11434
+ *
11435
+ * Provides admin-level access to token usage, costs, and platform-wide
11436
+ * metrics across all tenants and workspaces.
11437
+ */
11438
+ analytics: {
11439
+ /**
11440
+ * Lists raw LLM analytics records.
11441
+ *
11442
+ * @param options - Optional request options.
11443
+ * @returns A promise that resolves to an array of analytics records.
11444
+ *
11445
+ * @example
11446
+ * const records = await admin.ai.analytics.list();
11447
+ * console.log(`Total records: ${records.length}`);
11448
+ */
11449
+ list: async (options) => {
11450
+ return rb.execute(getAdminLlmAnalytics, {}, options);
11451
+ },
11452
+ /**
11453
+ * Gets a single LLM analytics record by ID.
11454
+ *
11455
+ * @param id - The UUID of the analytics record.
11456
+ * @param options - Optional request options.
11457
+ * @returns A promise that resolves to the analytics record.
11458
+ */
11459
+ get: async (id, options) => {
11460
+ return rb.execute(
11461
+ getAdminLlmAnalyticsById,
11462
+ { path: { id } },
11463
+ options
11464
+ );
11465
+ },
11466
+ /**
11467
+ * Records a new LLM analytics entry.
11468
+ *
11469
+ * @param attributes - The analytics entry attributes.
11470
+ * @param options - Optional request options.
11471
+ * @returns A promise that resolves to the created record.
11472
+ */
11473
+ record: async (attributes, options) => {
11474
+ return rb.execute(
11475
+ postAdminLlmAnalytics,
11476
+ {
11477
+ body: {
11478
+ data: {
11479
+ type: "llm-analytics",
11480
+ attributes
11481
+ }
11482
+ }
11483
+ },
11484
+ options
11485
+ );
11486
+ },
11487
+ /**
11488
+ * Returns a token cost breakdown grouped by model and time period.
11489
+ *
11490
+ * @param options - Optional request options.
11491
+ * @returns A promise that resolves to a cost breakdown object.
11492
+ *
11493
+ * @example
11494
+ * const costs = await admin.ai.analytics.costs();
11495
+ * console.log(`Total spend: $${costs.total_usd}`);
11496
+ */
11497
+ costs: async (options) => {
11498
+ return rb.execute(
11499
+ getAdminLlmAnalyticsCosts,
11500
+ {},
11501
+ options
11502
+ );
11503
+ },
11504
+ /**
11505
+ * Returns a high-level summary of LLM usage.
11506
+ *
11507
+ * @param options - Optional request options.
11508
+ * @returns A promise that resolves to a summary metrics object.
11509
+ *
11510
+ * @example
11511
+ * const summary = await admin.ai.analytics.summary();
11512
+ * console.log(`Total requests: ${summary.total_requests}`);
11513
+ */
11514
+ summary: async (options) => {
11515
+ return rb.execute(
11516
+ getAdminLlmAnalyticsSummary,
11517
+ {},
11518
+ options
11519
+ );
11520
+ },
11521
+ /**
11522
+ * Returns time-series LLM usage data points.
11523
+ *
11524
+ * @param options - Optional request options.
11525
+ * @returns A promise that resolves to usage time-series data.
11526
+ *
11527
+ * @example
11528
+ * const usage = await admin.ai.analytics.usage();
11529
+ * for (const point of usage.data_points) {
11530
+ * console.log(`${point.timestamp}: ${point.tokens} tokens`);
11531
+ * }
11532
+ */
11533
+ usage: async (options) => {
11534
+ return rb.execute(
11535
+ getAdminLlmAnalyticsUsage,
11536
+ {},
11537
+ options
11538
+ );
11539
+ },
11540
+ /**
11541
+ * Returns workspace-scoped LLM metrics.
11542
+ *
11543
+ * @param options - Optional request options.
11544
+ * @returns A promise that resolves to workspace metrics.
11545
+ */
11546
+ workspace: async (options) => {
11547
+ return rb.execute(
11548
+ getAdminLlmAnalyticsWorkspace,
11549
+ {},
11550
+ options
11551
+ );
11552
+ },
11553
+ /**
11554
+ * Returns platform-wide LLM summary across all applications and tenants.
11555
+ *
11556
+ * @param options - Optional request options.
11557
+ * @returns A promise that resolves to platform summary metrics.
11558
+ *
11559
+ * @example
11560
+ * const platform = await admin.ai.analytics.platformSummary();
11561
+ * console.log(`Platform total: $${platform.total_usd}`);
11562
+ */
11563
+ platformSummary: async (options) => {
11564
+ return rb.execute(
11565
+ getAdminLlmAnalyticsPlatform,
11566
+ {},
11567
+ options
11568
+ );
11569
+ }
11570
+ },
11571
+ /**
11572
+ * Sub-namespace for semantic cache management.
11573
+ *
11574
+ * The semantic cache stores LLM prompt/response pairs indexed by vector
11575
+ * similarity. Admins can inspect cache entries and clear the cache.
11576
+ */
11577
+ cache: {
11578
+ /**
11579
+ * Gets a semantic cache entry by ID.
11580
+ *
11581
+ * @param id - The UUID of the cache entry.
11582
+ * @param options - Optional request options.
11583
+ * @returns A promise that resolves to the cache entry.
11584
+ */
11585
+ get: async (id, options) => {
11586
+ return rb.execute(
11587
+ getAdminSysSemanticCacheById,
11588
+ { path: { id } },
11589
+ options
11590
+ );
11591
+ },
11592
+ /**
11593
+ * Clears the semantic cache.
11594
+ *
11595
+ * Removes all cached prompt/response pairs. This is irreversible.
11596
+ *
11597
+ * @param options - Optional request options.
11598
+ * @returns A promise that resolves when the cache is cleared.
11599
+ *
11600
+ * @example
11601
+ * await admin.ai.cache.clear();
11602
+ * console.log('Semantic cache cleared');
11603
+ */
11604
+ clear: async (options) => {
11605
+ return rb.execute(
11606
+ postAdminSysSemanticCacheClear,
11607
+ {},
11608
+ options
11609
+ );
11610
+ }
11611
+ }
11612
+ };
11613
+ }
11614
+
10439
11615
  // src/gpt-admin.ts
10440
11616
  var GptAdmin = class extends BaseClient {
10441
11617
  constructor(config) {
@@ -10467,6 +11643,9 @@ var GptAdmin = class extends BaseClient {
10467
11643
  this.crawler = createCrawlerNamespace(rb);
10468
11644
  this.scheduling = createSchedulingNamespace(rb);
10469
11645
  this.crm = createCrmNamespace(rb);
11646
+ this.support = createSupportNamespace(rb);
11647
+ this.models = createModelsNamespace(rb);
11648
+ this.ai = createAiNamespace(rb);
10470
11649
  }
10471
11650
  };
10472
11651