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