@gpt-platform/admin 0.5.1 → 0.6.0

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,8 +814,8 @@ var createClient = (config = {}) => {
814
814
  };
815
815
 
816
816
  // src/version.ts
817
- var SDK_VERSION = "0.5.1";
818
- var DEFAULT_API_VERSION = "2026-02-27";
817
+ var SDK_VERSION = "0.6.0";
818
+ var DEFAULT_API_VERSION = "2026-03-09";
819
819
 
820
820
  // src/base-client.ts
821
821
  function isSecureUrl(url) {
@@ -1906,6 +1906,15 @@ var patchAdminExtractionDocumentsByIdReprocess = (options) => (options.client ??
1906
1906
  ...options.headers
1907
1907
  }
1908
1908
  });
1909
+ var postAdminCrmSyncConfigs = (options) => (options.client ?? client).post({
1910
+ security: [{ scheme: "bearer", type: "http" }],
1911
+ url: "/admin/crm/sync-configs",
1912
+ ...options,
1913
+ headers: {
1914
+ "Content-Type": "application/vnd.api+json",
1915
+ ...options.headers
1916
+ }
1917
+ });
1909
1918
  var patchAdminStorageRecommendationsByIdDismiss = (options) => (options.client ?? client).patch({
1910
1919
  security: [{ scheme: "bearer", type: "http" }],
1911
1920
  url: "/admin/storage-recommendations/{id}/dismiss",
@@ -2105,15 +2114,6 @@ var patchAdminStorageFilesByIdRestore = (options) => (options.client ?? client).
2105
2114
  ...options.headers
2106
2115
  }
2107
2116
  });
2108
- var postAdminAgentsPredict = (options) => (options.client ?? client).post({
2109
- security: [{ scheme: "bearer", type: "http" }],
2110
- url: "/admin/agents/predict",
2111
- ...options,
2112
- headers: {
2113
- "Content-Type": "application/vnd.api+json",
2114
- ...options.headers
2115
- }
2116
- });
2117
2117
  var patchAdminCrawlerSchedulesByIdDisable = (options) => (options.client ?? client).patch({
2118
2118
  security: [{ scheme: "bearer", type: "http" }],
2119
2119
  url: "/admin/crawler/schedules/{id}/disable",
@@ -2264,6 +2264,20 @@ var postAdminCrawlerJobs = (options) => (options.client ?? client).post({
2264
2264
  ...options.headers
2265
2265
  }
2266
2266
  });
2267
+ var getAdminPipelines = (options) => (options.client ?? client).get({
2268
+ security: [{ scheme: "bearer", type: "http" }],
2269
+ url: "/admin/pipelines",
2270
+ ...options
2271
+ });
2272
+ var postAdminPipelines = (options) => (options.client ?? client).post({
2273
+ security: [{ scheme: "bearer", type: "http" }],
2274
+ url: "/admin/pipelines",
2275
+ ...options,
2276
+ headers: {
2277
+ "Content-Type": "application/vnd.api+json",
2278
+ ...options.headers
2279
+ }
2280
+ });
2267
2281
  var deleteAdminCrmContactsById = (options) => (options.client ?? client).delete({
2268
2282
  security: [{ scheme: "bearer", type: "http" }],
2269
2283
  url: "/admin/crm/contacts/{id}",
@@ -2419,25 +2433,6 @@ var patchAdminSocialAccountsByIdEnablePosting = (options) => (options.client ??
2419
2433
  ...options.headers
2420
2434
  }
2421
2435
  });
2422
- var deleteAdminIsvCrmFieldDefinitionsById = (options) => (options.client ?? client).delete({
2423
- security: [{ scheme: "bearer", type: "http" }],
2424
- url: "/admin/isv/crm/field-definitions/{id}",
2425
- ...options
2426
- });
2427
- var getAdminIsvCrmFieldDefinitionsById = (options) => (options.client ?? client).get({
2428
- security: [{ scheme: "bearer", type: "http" }],
2429
- url: "/admin/isv/crm/field-definitions/{id}",
2430
- ...options
2431
- });
2432
- var patchAdminIsvCrmFieldDefinitionsById = (options) => (options.client ?? client).patch({
2433
- security: [{ scheme: "bearer", type: "http" }],
2434
- url: "/admin/isv/crm/field-definitions/{id}",
2435
- ...options,
2436
- headers: {
2437
- "Content-Type": "application/vnd.api+json",
2438
- ...options.headers
2439
- }
2440
- });
2441
2436
  var postAdminEmailMarketingCampaigns = (options) => (options.client ?? client).post({
2442
2437
  security: [{ scheme: "bearer", type: "http" }],
2443
2438
  url: "/admin/email-marketing/campaigns",
@@ -2734,6 +2729,11 @@ var getAdminCrmDealsWorkspaceByWorkspaceId = (options) => (options.client ?? cli
2734
2729
  url: "/admin/crm/deals/workspace/{workspace_id}",
2735
2730
  ...options
2736
2731
  });
2732
+ var getAdminCrmFieldDefinitionsEntityTypeByEntityType = (options) => (options.client ?? client).get({
2733
+ security: [{ scheme: "bearer", type: "http" }],
2734
+ url: "/admin/crm/field-definitions/entity-type/{entity_type}",
2735
+ ...options
2736
+ });
2737
2737
  var getAdminSchedulingEventTypesById = (options) => (options.client ?? client).get({
2738
2738
  security: [{ scheme: "bearer", type: "http" }],
2739
2739
  url: "/admin/scheduling/event-types/{id}",
@@ -2852,15 +2852,6 @@ var getAdminExtractionDocumentsWorkspaceByWorkspaceIdByStatusByStatus = (options
2852
2852
  url: "/admin/extraction/documents/workspace/{workspace_id}/by-status/{status}",
2853
2853
  ...options
2854
2854
  });
2855
- var postAdminIsvCrmSyncConfigs = (options) => (options.client ?? client).post({
2856
- security: [{ scheme: "bearer", type: "http" }],
2857
- url: "/admin/isv/crm/sync-configs",
2858
- ...options,
2859
- headers: {
2860
- "Content-Type": "application/vnd.api+json",
2861
- ...options.headers
2862
- }
2863
- });
2864
2855
  var getAdminIsvCrmEntityTypesApplicationByApplicationId = (options) => (options.client ?? client).get({
2865
2856
  security: [{ scheme: "bearer", type: "http" }],
2866
2857
  url: "/admin/isv/crm/entity-types/application/{application_id}",
@@ -3072,6 +3063,11 @@ var getAdminSocialMetricsPostBySocialPostIdLatest = (options) => (options.client
3072
3063
  url: "/admin/social/metrics/post/{social_post_id}/latest",
3073
3064
  ...options
3074
3065
  });
3066
+ var getAdminCrmSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
3067
+ security: [{ scheme: "bearer", type: "http" }],
3068
+ url: "/admin/crm/sync-configs/workspace/{workspace_id}",
3069
+ ...options
3070
+ });
3075
3071
  var postAdminEmailOutboundEmails = (options) => (options.client ?? client).post({
3076
3072
  security: [{ scheme: "bearer", type: "http" }],
3077
3073
  url: "/admin/email/outbound-emails",
@@ -3326,11 +3322,6 @@ var getAdminSupportTicketAttachmentsMessageByTicketMessageId = (options) => (opt
3326
3322
  url: "/admin/support/ticket-attachments/message/{ticket_message_id}",
3327
3323
  ...options
3328
3324
  });
3329
- var getAdminIsvCrmSyncConfigsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
3330
- security: [{ scheme: "bearer", type: "http" }],
3331
- url: "/admin/isv/crm/sync-configs/workspace/{workspace_id}",
3332
- ...options
3333
- });
3334
3325
  var getAdminWebhookConfigs = (options) => (options.client ?? client).get({
3335
3326
  security: [{ scheme: "bearer", type: "http" }],
3336
3327
  url: "/admin/webhook-configs",
@@ -3618,15 +3609,6 @@ var patchAdminExtractionDocumentsByIdRestore = (options) => (options.client ?? c
3618
3609
  ...options.headers
3619
3610
  }
3620
3611
  });
3621
- var postAdminIsvCrmFieldDefinitions = (options) => (options.client ?? client).post({
3622
- security: [{ scheme: "bearer", type: "http" }],
3623
- url: "/admin/isv/crm/field-definitions",
3624
- ...options,
3625
- headers: {
3626
- "Content-Type": "application/vnd.api+json",
3627
- ...options.headers
3628
- }
3629
- });
3630
3612
  var postAdminExtractionDocumentsUpload = (options) => (options.client ?? client).post({
3631
3613
  security: [{ scheme: "bearer", type: "http" }],
3632
3614
  url: "/admin/extraction/documents/upload",
@@ -3768,6 +3750,15 @@ var postAdminAgentVersionsByIdRemoveSystemField = (options) => (options.client ?
3768
3750
  ...options.headers
3769
3751
  }
3770
3752
  });
3753
+ var postAdminCrmFieldDefinitions = (options) => (options.client ?? client).post({
3754
+ security: [{ scheme: "bearer", type: "http" }],
3755
+ url: "/admin/crm/field-definitions",
3756
+ ...options,
3757
+ headers: {
3758
+ "Content-Type": "application/vnd.api+json",
3759
+ ...options.headers
3760
+ }
3761
+ });
3771
3762
  var getAdminApiKeysStats = (options) => (options.client ?? client).get({
3772
3763
  security: [{ scheme: "bearer", type: "http" }],
3773
3764
  url: "/admin/api-keys/stats",
@@ -3796,11 +3787,6 @@ var postAdminSupportRoutingRules = (options) => (options.client ?? client).post(
3796
3787
  ...options.headers
3797
3788
  }
3798
3789
  });
3799
- var getAdminIsvCrmFieldDefinitionsEntityTypeByEntityType = (options) => (options.client ?? client).get({
3800
- security: [{ scheme: "bearer", type: "http" }],
3801
- url: "/admin/isv/crm/field-definitions/entity-type/{entity_type}",
3802
- ...options
3803
- });
3804
3790
  var getAdminSocialPostsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
3805
3791
  security: [{ scheme: "bearer", type: "http" }],
3806
3792
  url: "/admin/social/posts/workspace/{workspace_id}",
@@ -3927,20 +3913,6 @@ var patchAdminCrmPipelineStagesById = (options) => (options.client ?? client).pa
3927
3913
  ...options.headers
3928
3914
  }
3929
3915
  });
3930
- var deleteAdminIsvCrmSyncConfigsById = (options) => (options.client ?? client).delete({
3931
- security: [{ scheme: "bearer", type: "http" }],
3932
- url: "/admin/isv/crm/sync-configs/{id}",
3933
- ...options
3934
- });
3935
- var patchAdminIsvCrmSyncConfigsById = (options) => (options.client ?? client).patch({
3936
- security: [{ scheme: "bearer", type: "http" }],
3937
- url: "/admin/isv/crm/sync-configs/{id}",
3938
- ...options,
3939
- headers: {
3940
- "Content-Type": "application/vnd.api+json",
3941
- ...options.headers
3942
- }
3943
- });
3944
3916
  var postAdminSupportAiConfigs = (options) => (options.client ?? client).post({
3945
3917
  security: [{ scheme: "bearer", type: "http" }],
3946
3918
  url: "/admin/support/ai-configs",
@@ -4242,6 +4214,25 @@ var getAdminSocialMetricsAccountBySocialAccountId = (options) => (options.client
4242
4214
  url: "/admin/social/metrics/account/{social_account_id}",
4243
4215
  ...options
4244
4216
  });
4217
+ var deleteAdminCrmFieldDefinitionsById = (options) => (options.client ?? client).delete({
4218
+ security: [{ scheme: "bearer", type: "http" }],
4219
+ url: "/admin/crm/field-definitions/{id}",
4220
+ ...options
4221
+ });
4222
+ var getAdminCrmFieldDefinitionsById = (options) => (options.client ?? client).get({
4223
+ security: [{ scheme: "bearer", type: "http" }],
4224
+ url: "/admin/crm/field-definitions/{id}",
4225
+ ...options
4226
+ });
4227
+ var patchAdminCrmFieldDefinitionsById = (options) => (options.client ?? client).patch({
4228
+ security: [{ scheme: "bearer", type: "http" }],
4229
+ url: "/admin/crm/field-definitions/{id}",
4230
+ ...options,
4231
+ headers: {
4232
+ "Content-Type": "application/vnd.api+json",
4233
+ ...options.headers
4234
+ }
4235
+ });
4245
4236
  var getAdminCrmCompaniesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
4246
4237
  security: [{ scheme: "bearer", type: "http" }],
4247
4238
  url: "/admin/crm/companies/workspace/{workspace_id}",
@@ -4616,6 +4607,25 @@ var postAdminAgentsByIdValidate = (options) => (options.client ?? client).post({
4616
4607
  ...options.headers
4617
4608
  }
4618
4609
  });
4610
+ var deleteAdminPipelinesById = (options) => (options.client ?? client).delete({
4611
+ security: [{ scheme: "bearer", type: "http" }],
4612
+ url: "/admin/pipelines/{id}",
4613
+ ...options
4614
+ });
4615
+ var getAdminPipelinesById = (options) => (options.client ?? client).get({
4616
+ security: [{ scheme: "bearer", type: "http" }],
4617
+ url: "/admin/pipelines/{id}",
4618
+ ...options
4619
+ });
4620
+ var patchAdminPipelinesById = (options) => (options.client ?? client).patch({
4621
+ security: [{ scheme: "bearer", type: "http" }],
4622
+ url: "/admin/pipelines/{id}",
4623
+ ...options,
4624
+ headers: {
4625
+ "Content-Type": "application/vnd.api+json",
4626
+ ...options.headers
4627
+ }
4628
+ });
4619
4629
  var deleteAdminSocialPostsById = (options) => (options.client ?? client).delete({
4620
4630
  security: [{ scheme: "bearer", type: "http" }],
4621
4631
  url: "/admin/social/posts/{id}",
@@ -4667,6 +4677,20 @@ var getAdminExtractionBatchesByIdUploadUrls = (options) => (options.client ?? cl
4667
4677
  url: "/admin/extraction/batches/{id}/upload-urls",
4668
4678
  ...options
4669
4679
  });
4680
+ var deleteAdminCrmSyncConfigsById = (options) => (options.client ?? client).delete({
4681
+ security: [{ scheme: "bearer", type: "http" }],
4682
+ url: "/admin/crm/sync-configs/{id}",
4683
+ ...options
4684
+ });
4685
+ var patchAdminCrmSyncConfigsById = (options) => (options.client ?? client).patch({
4686
+ security: [{ scheme: "bearer", type: "http" }],
4687
+ url: "/admin/crm/sync-configs/{id}",
4688
+ ...options,
4689
+ headers: {
4690
+ "Content-Type": "application/vnd.api+json",
4691
+ ...options.headers
4692
+ }
4693
+ });
4670
4694
  var getAdminLlmAnalyticsCosts = (options) => (options.client ?? client).get({
4671
4695
  security: [{ scheme: "bearer", type: "http" }],
4672
4696
  url: "/admin/llm-analytics/costs",
@@ -4837,31 +4861,6 @@ function createAgentsNamespace(rb) {
4837
4861
  options
4838
4862
  );
4839
4863
  },
4840
- /**
4841
- * Runs prediction/inference on an agent.
4842
- *
4843
- * @param agentId - The UUID of the agent.
4844
- * @param input - Input data for prediction.
4845
- * @param options - Optional request options.
4846
- * @returns Prediction result.
4847
- *
4848
- * @example
4849
- * const result = await admin.agents.predict('agt_01...', { text: 'Classify this' });
4850
- */
4851
- predict: async (agentId, input, options) => {
4852
- return rb.execute(
4853
- postAdminAgentsPredict,
4854
- {
4855
- body: {
4856
- data: {
4857
- type: "agent",
4858
- attributes: { agent_id: agentId, ...input }
4859
- }
4860
- }
4861
- },
4862
- options
4863
- );
4864
- },
4865
4864
  /**
4866
4865
  * Runs an agent against a test input and returns the result.
4867
4866
  *
@@ -8759,20 +8758,12 @@ function createConnectorsNamespace(rb) {
8759
8758
  options
8760
8759
  ),
8761
8760
  /** Delete a connector instance. */
8762
- delete: async (id, options) => rb.executeDelete(
8763
- deleteAdminConnectorsById,
8764
- { path: { id } },
8765
- options
8766
- )
8761
+ delete: async (id, options) => rb.executeDelete(deleteAdminConnectorsById, { path: { id } }, options)
8767
8762
  },
8768
8763
  /** Credentials — OAuth tokens and API keys. */
8769
8764
  credentials: {
8770
8765
  /** List all credentials. */
8771
- list: async (options) => rb.execute(
8772
- getAdminConnectorsCredentials,
8773
- {},
8774
- options
8775
- ),
8766
+ list: async (options) => rb.execute(getAdminConnectorsCredentials, {}, options),
8776
8767
  /** Get a credential by ID. */
8777
8768
  get: async (id, options) => rb.execute(
8778
8769
  getAdminConnectorsCredentialsById,
@@ -10349,7 +10340,10 @@ function createCrmNamespace(rb) {
10349
10340
  update: async (id, attributes, options) => {
10350
10341
  return rb.execute(
10351
10342
  patchAdminCrmContactsById,
10352
- { path: { id }, body: { data: { type: "crm_contact", id, attributes } } },
10343
+ {
10344
+ path: { id },
10345
+ body: { data: { type: "crm_contact", id, attributes } }
10346
+ },
10353
10347
  options
10354
10348
  );
10355
10349
  },
@@ -10357,7 +10351,10 @@ function createCrmNamespace(rb) {
10357
10351
  archive: async (id, options) => {
10358
10352
  return rb.execute(
10359
10353
  patchAdminCrmContactsByIdArchive,
10360
- { path: { id }, body: { data: { type: "crm_contact", id, attributes: {} } } },
10354
+ {
10355
+ path: { id },
10356
+ body: { data: { type: "crm_contact", id, attributes: {} } }
10357
+ },
10361
10358
  options
10362
10359
  );
10363
10360
  },
@@ -10365,7 +10362,10 @@ function createCrmNamespace(rb) {
10365
10362
  unarchive: async (id, options) => {
10366
10363
  return rb.execute(
10367
10364
  postAdminCrmContactsByIdUnarchive,
10368
- { path: { id }, body: { data: { type: "crm_contact", id, attributes: {} } } },
10365
+ {
10366
+ path: { id },
10367
+ body: { data: { type: "crm_contact", id, attributes: {} } }
10368
+ },
10369
10369
  options
10370
10370
  );
10371
10371
  },
@@ -10399,13 +10399,20 @@ function createCrmNamespace(rb) {
10399
10399
  update: async (id, attributes, options) => {
10400
10400
  return rb.execute(
10401
10401
  patchAdminCrmCompaniesById,
10402
- { path: { id }, body: { data: { type: "crm_company", id, attributes } } },
10402
+ {
10403
+ path: { id },
10404
+ body: { data: { type: "crm_company", id, attributes } }
10405
+ },
10403
10406
  options
10404
10407
  );
10405
10408
  },
10406
10409
  /** Delete a company. */
10407
10410
  delete: async (id, options) => {
10408
- return rb.execute(deleteAdminCrmCompaniesById, { path: { id } }, options);
10411
+ return rb.execute(
10412
+ deleteAdminCrmCompaniesById,
10413
+ { path: { id } },
10414
+ options
10415
+ );
10409
10416
  }
10410
10417
  },
10411
10418
  // ========== Deals ==========
@@ -10434,7 +10441,10 @@ function createCrmNamespace(rb) {
10434
10441
  update: async (id, attributes, options) => {
10435
10442
  return rb.execute(
10436
10443
  patchAdminCrmDealsById,
10437
- { path: { id }, body: { data: { type: "crm_deal", id, attributes } } },
10444
+ {
10445
+ path: { id },
10446
+ body: { data: { type: "crm_deal", id, attributes } }
10447
+ },
10438
10448
  options
10439
10449
  );
10440
10450
  },
@@ -10442,7 +10452,10 @@ function createCrmNamespace(rb) {
10442
10452
  moveStage: async (id, attributes, options) => {
10443
10453
  return rb.execute(
10444
10454
  patchAdminCrmDealsByIdMoveStage,
10445
- { path: { id }, body: { data: { type: "crm_deal", id, attributes } } },
10455
+ {
10456
+ path: { id },
10457
+ body: { data: { type: "crm_deal", id, attributes } }
10458
+ },
10446
10459
  options
10447
10460
  );
10448
10461
  },
@@ -10477,13 +10490,20 @@ function createCrmNamespace(rb) {
10477
10490
  update: async (id, attributes, options) => {
10478
10491
  return rb.execute(
10479
10492
  patchAdminCrmActivitiesById,
10480
- { path: { id }, body: { data: { type: "crm_activity", id, attributes } } },
10493
+ {
10494
+ path: { id },
10495
+ body: { data: { type: "crm_activity", id, attributes } }
10496
+ },
10481
10497
  options
10482
10498
  );
10483
10499
  },
10484
10500
  /** Delete an activity. */
10485
10501
  delete: async (id, options) => {
10486
- return rb.execute(deleteAdminCrmActivitiesById, { path: { id } }, options);
10502
+ return rb.execute(
10503
+ deleteAdminCrmActivitiesById,
10504
+ { path: { id } },
10505
+ options
10506
+ );
10487
10507
  }
10488
10508
  },
10489
10509
  // ========== Pipelines ==========
@@ -10512,20 +10532,31 @@ function createCrmNamespace(rb) {
10512
10532
  update: async (id, attributes, options) => {
10513
10533
  return rb.execute(
10514
10534
  patchAdminCrmPipelinesById,
10515
- { path: { id }, body: { data: { type: "crm_pipeline", id, attributes } } },
10535
+ {
10536
+ path: { id },
10537
+ body: { data: { type: "crm_pipeline", id, attributes } }
10538
+ },
10516
10539
  options
10517
10540
  );
10518
10541
  },
10519
10542
  /** Delete a pipeline. */
10520
10543
  delete: async (id, options) => {
10521
- return rb.execute(deleteAdminCrmPipelinesById, { path: { id } }, options);
10544
+ return rb.execute(
10545
+ deleteAdminCrmPipelinesById,
10546
+ { path: { id } },
10547
+ options
10548
+ );
10522
10549
  }
10523
10550
  },
10524
10551
  // ========== Pipeline Stages ==========
10525
10552
  pipelineStages: {
10526
10553
  /** Get a pipeline stage by ID. */
10527
10554
  get: async (id, options) => {
10528
- return rb.execute(getAdminCrmPipelineStagesById, { path: { id } }, options);
10555
+ return rb.execute(
10556
+ getAdminCrmPipelineStagesById,
10557
+ { path: { id } },
10558
+ options
10559
+ );
10529
10560
  },
10530
10561
  /** List stages for a specific pipeline. */
10531
10562
  listByPipeline: async (pipelineId, options) => {
@@ -10547,20 +10578,31 @@ function createCrmNamespace(rb) {
10547
10578
  update: async (id, attributes, options) => {
10548
10579
  return rb.execute(
10549
10580
  patchAdminCrmPipelineStagesById,
10550
- { path: { id }, body: { data: { type: "crm_pipeline_stage", id, attributes } } },
10581
+ {
10582
+ path: { id },
10583
+ body: { data: { type: "crm_pipeline_stage", id, attributes } }
10584
+ },
10551
10585
  options
10552
10586
  );
10553
10587
  },
10554
10588
  /** Delete a pipeline stage. */
10555
10589
  delete: async (id, options) => {
10556
- return rb.execute(deleteAdminCrmPipelineStagesById, { path: { id } }, options);
10590
+ return rb.execute(
10591
+ deleteAdminCrmPipelineStagesById,
10592
+ { path: { id } },
10593
+ options
10594
+ );
10557
10595
  }
10558
10596
  },
10559
10597
  // ========== Relationships ==========
10560
10598
  relationships: {
10561
10599
  /** Get a relationship by ID. */
10562
10600
  get: async (id, options) => {
10563
- return rb.execute(getAdminCrmRelationshipsById, { path: { id } }, options);
10601
+ return rb.execute(
10602
+ getAdminCrmRelationshipsById,
10603
+ { path: { id } },
10604
+ options
10605
+ );
10564
10606
  },
10565
10607
  /** List relationships by workspace. */
10566
10608
  listByWorkspace: async (workspaceId, options) => {
@@ -10580,14 +10622,22 @@ function createCrmNamespace(rb) {
10580
10622
  },
10581
10623
  /** Delete a relationship. */
10582
10624
  delete: async (id, options) => {
10583
- return rb.execute(deleteAdminCrmRelationshipsById, { path: { id } }, options);
10625
+ return rb.execute(
10626
+ deleteAdminCrmRelationshipsById,
10627
+ { path: { id } },
10628
+ options
10629
+ );
10584
10630
  }
10585
10631
  },
10586
10632
  // ========== Relationship Types ==========
10587
10633
  relationshipTypes: {
10588
10634
  /** Get a relationship type by ID. */
10589
10635
  get: async (id, options) => {
10590
- return rb.execute(getAdminCrmRelationshipTypesById, { path: { id } }, options);
10636
+ return rb.execute(
10637
+ getAdminCrmRelationshipTypesById,
10638
+ { path: { id } },
10639
+ options
10640
+ );
10591
10641
  },
10592
10642
  /** List all relationship types. */
10593
10643
  list: async (options) => {
@@ -10605,20 +10655,31 @@ function createCrmNamespace(rb) {
10605
10655
  update: async (id, attributes, options) => {
10606
10656
  return rb.execute(
10607
10657
  patchAdminCrmRelationshipTypesById,
10608
- { path: { id }, body: { data: { type: "crm_relationship_type", id, attributes } } },
10658
+ {
10659
+ path: { id },
10660
+ body: { data: { type: "crm_relationship_type", id, attributes } }
10661
+ },
10609
10662
  options
10610
10663
  );
10611
10664
  },
10612
10665
  /** Delete a relationship type. */
10613
10666
  delete: async (id, options) => {
10614
- return rb.execute(deleteAdminCrmRelationshipTypesById, { path: { id } }, options);
10667
+ return rb.execute(
10668
+ deleteAdminCrmRelationshipTypesById,
10669
+ { path: { id } },
10670
+ options
10671
+ );
10615
10672
  }
10616
10673
  },
10617
10674
  // ========== Custom Entities ==========
10618
10675
  customEntities: {
10619
10676
  /** Get a custom entity by ID. */
10620
10677
  get: async (id, options) => {
10621
- return rb.execute(getAdminCrmCustomEntitiesById, { path: { id } }, options);
10678
+ return rb.execute(
10679
+ getAdminCrmCustomEntitiesById,
10680
+ { path: { id } },
10681
+ options
10682
+ );
10622
10683
  },
10623
10684
  /** List custom entities by workspace. */
10624
10685
  listByWorkspace: async (workspaceId, options) => {
@@ -10640,13 +10701,20 @@ function createCrmNamespace(rb) {
10640
10701
  update: async (id, attributes, options) => {
10641
10702
  return rb.execute(
10642
10703
  patchAdminCrmCustomEntitiesById,
10643
- { path: { id }, body: { data: { type: "crm_custom_entity", id, attributes } } },
10704
+ {
10705
+ path: { id },
10706
+ body: { data: { type: "crm_custom_entity", id, attributes } }
10707
+ },
10644
10708
  options
10645
10709
  );
10646
10710
  },
10647
10711
  /** Delete a custom entity. */
10648
10712
  delete: async (id, options) => {
10649
- return rb.execute(deleteAdminCrmCustomEntitiesById, { path: { id } }, options);
10713
+ return rb.execute(
10714
+ deleteAdminCrmCustomEntitiesById,
10715
+ { path: { id } },
10716
+ options
10717
+ );
10650
10718
  },
10651
10719
  /** List versions for a custom entity. */
10652
10720
  listVersions: async (entityId, options) => {
@@ -10673,7 +10741,11 @@ function createCrmNamespace(rb) {
10673
10741
  },
10674
10742
  /** Get a deal product by ID. */
10675
10743
  get: async (id, options) => {
10676
- return rb.execute(getAdminCrmDealProductsById, { path: { id } }, options);
10744
+ return rb.execute(
10745
+ getAdminCrmDealProductsById,
10746
+ { path: { id } },
10747
+ options
10748
+ );
10677
10749
  },
10678
10750
  /** Create a deal product. */
10679
10751
  create: async (attributes, options) => {
@@ -10685,7 +10757,11 @@ function createCrmNamespace(rb) {
10685
10757
  },
10686
10758
  /** Delete a deal product. */
10687
10759
  delete: async (id, options) => {
10688
- return rb.execute(deleteAdminCrmDealProductsById, { path: { id } }, options);
10760
+ return rb.execute(
10761
+ deleteAdminCrmDealProductsById,
10762
+ { path: { id } },
10763
+ options
10764
+ );
10689
10765
  }
10690
10766
  },
10691
10767
  // ========== Exports ==========
@@ -10714,7 +10790,10 @@ function createCrmNamespace(rb) {
10714
10790
  refreshUrl: async (id, options) => {
10715
10791
  return rb.execute(
10716
10792
  patchAdminCrmExportsByIdRefreshUrl,
10717
- { path: { id }, body: { data: { type: "crm_data_export_job", id, attributes: {} } } },
10793
+ {
10794
+ path: { id },
10795
+ body: { data: { type: "crm_data_export_job", id, attributes: {} } }
10796
+ },
10718
10797
  options
10719
10798
  );
10720
10799
  }
@@ -10723,7 +10802,11 @@ function createCrmNamespace(rb) {
10723
10802
  entityTypes: {
10724
10803
  /** Get an entity type by ID. */
10725
10804
  get: async (id, options) => {
10726
- return rb.execute(getAdminIsvCrmEntityTypesById, { path: { id } }, options);
10805
+ return rb.execute(
10806
+ getAdminIsvCrmEntityTypesById,
10807
+ { path: { id } },
10808
+ options
10809
+ );
10727
10810
  },
10728
10811
  /** List entity types by application. */
10729
10812
  listByApplication: async (applicationId, options) => {
@@ -10745,25 +10828,36 @@ function createCrmNamespace(rb) {
10745
10828
  update: async (id, attributes, options) => {
10746
10829
  return rb.execute(
10747
10830
  patchAdminIsvCrmEntityTypesById,
10748
- { path: { id }, body: { data: { type: "crm_custom_entity_type", id, attributes } } },
10831
+ {
10832
+ path: { id },
10833
+ body: { data: { type: "crm_custom_entity_type", id, attributes } }
10834
+ },
10749
10835
  options
10750
10836
  );
10751
10837
  },
10752
10838
  /** Delete an entity type. */
10753
10839
  delete: async (id, options) => {
10754
- return rb.execute(deleteAdminIsvCrmEntityTypesById, { path: { id } }, options);
10840
+ return rb.execute(
10841
+ deleteAdminIsvCrmEntityTypesById,
10842
+ { path: { id } },
10843
+ options
10844
+ );
10755
10845
  }
10756
10846
  },
10757
10847
  // ========== ISV: Field Definitions ==========
10758
10848
  fieldDefinitions: {
10759
10849
  /** Get a field definition by ID. */
10760
10850
  get: async (id, options) => {
10761
- return rb.execute(getAdminIsvCrmFieldDefinitionsById, { path: { id } }, options);
10851
+ return rb.execute(
10852
+ getAdminCrmFieldDefinitionsById,
10853
+ { path: { id } },
10854
+ options
10855
+ );
10762
10856
  },
10763
10857
  /** List field definitions by entity type. */
10764
10858
  listByEntityType: async (entityType, options) => {
10765
10859
  return rb.execute(
10766
- getAdminIsvCrmFieldDefinitionsEntityTypeByEntityType,
10860
+ getAdminCrmFieldDefinitionsEntityTypeByEntityType,
10767
10861
  { path: { entity_type: entityType } },
10768
10862
  options
10769
10863
  );
@@ -10771,35 +10865,52 @@ function createCrmNamespace(rb) {
10771
10865
  /** Create a field definition. */
10772
10866
  create: async (attributes, options) => {
10773
10867
  return rb.execute(
10774
- postAdminIsvCrmFieldDefinitions,
10775
- { body: { data: { type: "crm_custom_field_definition", attributes } } },
10868
+ postAdminCrmFieldDefinitions,
10869
+ {
10870
+ body: { data: { type: "crm_custom_field_definition", attributes } }
10871
+ },
10776
10872
  options
10777
10873
  );
10778
10874
  },
10779
10875
  /** Update a field definition. */
10780
10876
  update: async (id, attributes, options) => {
10781
10877
  return rb.execute(
10782
- patchAdminIsvCrmFieldDefinitionsById,
10783
- { path: { id }, body: { data: { type: "crm_custom_field_definition", id, attributes } } },
10878
+ patchAdminCrmFieldDefinitionsById,
10879
+ {
10880
+ path: { id },
10881
+ body: {
10882
+ data: { type: "crm_custom_field_definition", id, attributes }
10883
+ }
10884
+ },
10784
10885
  options
10785
10886
  );
10786
10887
  },
10787
10888
  /** Delete a field definition. */
10788
10889
  delete: async (id, options) => {
10789
- return rb.execute(deleteAdminIsvCrmFieldDefinitionsById, { path: { id } }, options);
10890
+ return rb.execute(
10891
+ deleteAdminCrmFieldDefinitionsById,
10892
+ { path: { id } },
10893
+ options
10894
+ );
10790
10895
  }
10791
10896
  },
10792
10897
  // ========== ISV: Channel Capture Config ==========
10793
10898
  channelCaptureConfig: {
10794
10899
  /** Get channel capture config by ID. */
10795
10900
  get: async (id, options) => {
10796
- return rb.execute(getAdminIsvCrmChannelCaptureConfigById, { path: { id } }, options);
10901
+ return rb.execute(
10902
+ getAdminIsvCrmChannelCaptureConfigById,
10903
+ { path: { id } },
10904
+ options
10905
+ );
10797
10906
  },
10798
10907
  /** Create or upsert channel capture config. */
10799
10908
  create: async (attributes, options) => {
10800
10909
  return rb.execute(
10801
10910
  postAdminIsvCrmChannelCaptureConfig,
10802
- { body: { data: { type: "crm_channel_capture_config", attributes } } },
10911
+ {
10912
+ body: { data: { type: "crm_channel_capture_config", attributes } }
10913
+ },
10803
10914
  options
10804
10915
  );
10805
10916
  },
@@ -10807,7 +10918,12 @@ function createCrmNamespace(rb) {
10807
10918
  update: async (id, attributes, options) => {
10808
10919
  return rb.execute(
10809
10920
  patchAdminIsvCrmChannelCaptureConfigById,
10810
- { path: { id }, body: { data: { type: "crm_channel_capture_config", id, attributes } } },
10921
+ {
10922
+ path: { id },
10923
+ body: {
10924
+ data: { type: "crm_channel_capture_config", id, attributes }
10925
+ }
10926
+ },
10811
10927
  options
10812
10928
  );
10813
10929
  }
@@ -10817,7 +10933,7 @@ function createCrmNamespace(rb) {
10817
10933
  /** List sync configs by workspace. */
10818
10934
  listByWorkspace: async (workspaceId, options) => {
10819
10935
  return rb.execute(
10820
- getAdminIsvCrmSyncConfigsWorkspaceByWorkspaceId,
10936
+ getAdminCrmSyncConfigsWorkspaceByWorkspaceId,
10821
10937
  { path: { workspace_id: workspaceId } },
10822
10938
  options
10823
10939
  );
@@ -10825,7 +10941,7 @@ function createCrmNamespace(rb) {
10825
10941
  /** Create a sync config. */
10826
10942
  create: async (attributes, options) => {
10827
10943
  return rb.execute(
10828
- postAdminIsvCrmSyncConfigs,
10944
+ postAdminCrmSyncConfigs,
10829
10945
  { body: { data: { type: "crm_sync_config", attributes } } },
10830
10946
  options
10831
10947
  );
@@ -10833,14 +10949,21 @@ function createCrmNamespace(rb) {
10833
10949
  /** Update a sync config. */
10834
10950
  update: async (id, attributes, options) => {
10835
10951
  return rb.execute(
10836
- patchAdminIsvCrmSyncConfigsById,
10837
- { path: { id }, body: { data: { type: "crm_sync_config", id, attributes } } },
10952
+ patchAdminCrmSyncConfigsById,
10953
+ {
10954
+ path: { id },
10955
+ body: { data: { type: "crm_sync_config", id, attributes } }
10956
+ },
10838
10957
  options
10839
10958
  );
10840
10959
  },
10841
10960
  /** Delete a sync config. */
10842
10961
  delete: async (id, options) => {
10843
- return rb.execute(deleteAdminIsvCrmSyncConfigsById, { path: { id } }, options);
10962
+ return rb.execute(
10963
+ deleteAdminCrmSyncConfigsById,
10964
+ { path: { id } },
10965
+ options
10966
+ );
10844
10967
  }
10845
10968
  }
10846
10969
  };
@@ -10853,7 +10976,11 @@ function createSupportNamespace(rb) {
10853
10976
  tickets: {
10854
10977
  /** Get a support ticket by ID */
10855
10978
  get: async (id, options) => {
10856
- return rb.execute(getAdminSupportTicketsById, { path: { id } }, options);
10979
+ return rb.execute(
10980
+ getAdminSupportTicketsById,
10981
+ { path: { id } },
10982
+ options
10983
+ );
10857
10984
  },
10858
10985
  /** List tickets for a workspace */
10859
10986
  listByWorkspace: async (workspaceId, options) => {
@@ -10875,7 +11002,10 @@ function createSupportNamespace(rb) {
10875
11002
  update: async (id, attributes, options) => {
10876
11003
  return rb.execute(
10877
11004
  patchAdminSupportTicketsById,
10878
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11005
+ {
11006
+ path: { id },
11007
+ body: { data: { type: "support_ticket", id, attributes } }
11008
+ },
10879
11009
  options
10880
11010
  );
10881
11011
  },
@@ -10883,7 +11013,10 @@ function createSupportNamespace(rb) {
10883
11013
  assign: async (id, attributes, options) => {
10884
11014
  return rb.execute(
10885
11015
  patchAdminSupportTicketsByIdAssign,
10886
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11016
+ {
11017
+ path: { id },
11018
+ body: { data: { type: "support_ticket", id, attributes } }
11019
+ },
10887
11020
  options
10888
11021
  );
10889
11022
  },
@@ -10891,7 +11024,10 @@ function createSupportNamespace(rb) {
10891
11024
  resolve: async (id, attributes, options) => {
10892
11025
  return rb.execute(
10893
11026
  patchAdminSupportTicketsByIdResolve,
10894
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11027
+ {
11028
+ path: { id },
11029
+ body: { data: { type: "support_ticket", id, attributes } }
11030
+ },
10895
11031
  options
10896
11032
  );
10897
11033
  },
@@ -10899,7 +11035,10 @@ function createSupportNamespace(rb) {
10899
11035
  close: async (id, attributes, options) => {
10900
11036
  return rb.execute(
10901
11037
  patchAdminSupportTicketsByIdClose,
10902
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11038
+ {
11039
+ path: { id },
11040
+ body: { data: { type: "support_ticket", id, attributes } }
11041
+ },
10903
11042
  options
10904
11043
  );
10905
11044
  },
@@ -10907,7 +11046,10 @@ function createSupportNamespace(rb) {
10907
11046
  reopen: async (id, attributes, options) => {
10908
11047
  return rb.execute(
10909
11048
  patchAdminSupportTicketsByIdReopen,
10910
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11049
+ {
11050
+ path: { id },
11051
+ body: { data: { type: "support_ticket", id, attributes } }
11052
+ },
10911
11053
  options
10912
11054
  );
10913
11055
  },
@@ -10915,13 +11057,20 @@ function createSupportNamespace(rb) {
10915
11057
  merge: async (id, attributes, options) => {
10916
11058
  return rb.execute(
10917
11059
  patchAdminSupportTicketsByIdMerge,
10918
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11060
+ {
11061
+ path: { id },
11062
+ body: { data: { type: "support_ticket", id, attributes } }
11063
+ },
10919
11064
  options
10920
11065
  );
10921
11066
  },
10922
11067
  /** Delete a support ticket */
10923
11068
  delete: async (id, options) => {
10924
- return rb.executeDelete(deleteAdminSupportTicketsById, { path: { id } }, options);
11069
+ return rb.executeDelete(
11070
+ deleteAdminSupportTicketsById,
11071
+ { path: { id } },
11072
+ options
11073
+ );
10925
11074
  }
10926
11075
  },
10927
11076
  // --- Messages ---
@@ -10993,7 +11142,11 @@ function createSupportNamespace(rb) {
10993
11142
  },
10994
11143
  /** Delete a tag */
10995
11144
  delete: async (id, options) => {
10996
- return rb.executeDelete(deleteAdminSupportTagsById, { path: { id } }, options);
11145
+ return rb.executeDelete(
11146
+ deleteAdminSupportTagsById,
11147
+ { path: { id } },
11148
+ options
11149
+ );
10997
11150
  }
10998
11151
  },
10999
11152
  // --- Queues ---
@@ -11022,13 +11175,20 @@ function createSupportNamespace(rb) {
11022
11175
  update: async (id, attributes, options) => {
11023
11176
  return rb.execute(
11024
11177
  patchAdminSupportQueuesById,
11025
- { path: { id }, body: { data: { type: "support_queue", id, attributes } } },
11178
+ {
11179
+ path: { id },
11180
+ body: { data: { type: "support_queue", id, attributes } }
11181
+ },
11026
11182
  options
11027
11183
  );
11028
11184
  },
11029
11185
  /** Delete a queue */
11030
11186
  delete: async (id, options) => {
11031
- return rb.executeDelete(deleteAdminSupportQueuesById, { path: { id } }, options);
11187
+ return rb.executeDelete(
11188
+ deleteAdminSupportQueuesById,
11189
+ { path: { id } },
11190
+ options
11191
+ );
11032
11192
  }
11033
11193
  },
11034
11194
  // --- Queue Members ---
@@ -11061,20 +11221,31 @@ function createSupportNamespace(rb) {
11061
11221
  update: async (id, attributes, options) => {
11062
11222
  return rb.execute(
11063
11223
  patchAdminSupportQueueMembersById,
11064
- { path: { id }, body: { data: { type: "support_queue_member", id, attributes } } },
11224
+ {
11225
+ path: { id },
11226
+ body: { data: { type: "support_queue_member", id, attributes } }
11227
+ },
11065
11228
  options
11066
11229
  );
11067
11230
  },
11068
11231
  /** Remove a member from a queue */
11069
11232
  delete: async (id, options) => {
11070
- return rb.executeDelete(deleteAdminSupportQueueMembersById, { path: { id } }, options);
11233
+ return rb.executeDelete(
11234
+ deleteAdminSupportQueueMembersById,
11235
+ { path: { id } },
11236
+ options
11237
+ );
11071
11238
  }
11072
11239
  },
11073
11240
  // --- Routing Rules ---
11074
11241
  routingRules: {
11075
11242
  /** Get a routing rule by ID */
11076
11243
  get: async (id, options) => {
11077
- return rb.execute(getAdminSupportRoutingRulesById, { path: { id } }, options);
11244
+ return rb.execute(
11245
+ getAdminSupportRoutingRulesById,
11246
+ { path: { id } },
11247
+ options
11248
+ );
11078
11249
  },
11079
11250
  /** List routing rules for an application */
11080
11251
  listByApplication: async (applicationId, options) => {
@@ -11096,20 +11267,31 @@ function createSupportNamespace(rb) {
11096
11267
  update: async (id, attributes, options) => {
11097
11268
  return rb.execute(
11098
11269
  patchAdminSupportRoutingRulesById,
11099
- { path: { id }, body: { data: { type: "support_routing_rule", id, attributes } } },
11270
+ {
11271
+ path: { id },
11272
+ body: { data: { type: "support_routing_rule", id, attributes } }
11273
+ },
11100
11274
  options
11101
11275
  );
11102
11276
  },
11103
11277
  /** Delete a routing rule */
11104
11278
  delete: async (id, options) => {
11105
- return rb.executeDelete(deleteAdminSupportRoutingRulesById, { path: { id } }, options);
11279
+ return rb.executeDelete(
11280
+ deleteAdminSupportRoutingRulesById,
11281
+ { path: { id } },
11282
+ options
11283
+ );
11106
11284
  }
11107
11285
  },
11108
11286
  // --- SLA Policies ---
11109
11287
  slaPolicies: {
11110
11288
  /** Get an SLA policy by ID */
11111
11289
  get: async (id, options) => {
11112
- return rb.execute(getAdminSupportSlaPoliciesById, { path: { id } }, options);
11290
+ return rb.execute(
11291
+ getAdminSupportSlaPoliciesById,
11292
+ { path: { id } },
11293
+ options
11294
+ );
11113
11295
  },
11114
11296
  /** List SLA policies for an application */
11115
11297
  listByApplication: async (applicationId, options) => {
@@ -11131,13 +11313,20 @@ function createSupportNamespace(rb) {
11131
11313
  update: async (id, attributes, options) => {
11132
11314
  return rb.execute(
11133
11315
  patchAdminSupportSlaPoliciesById,
11134
- { path: { id }, body: { data: { type: "support_sla_policy", id, attributes } } },
11316
+ {
11317
+ path: { id },
11318
+ body: { data: { type: "support_sla_policy", id, attributes } }
11319
+ },
11135
11320
  options
11136
11321
  );
11137
11322
  },
11138
11323
  /** Delete an SLA policy */
11139
11324
  delete: async (id, options) => {
11140
- return rb.executeDelete(deleteAdminSupportSlaPoliciesById, { path: { id } }, options);
11325
+ return rb.executeDelete(
11326
+ deleteAdminSupportSlaPoliciesById,
11327
+ { path: { id } },
11328
+ options
11329
+ );
11141
11330
  }
11142
11331
  },
11143
11332
  // --- AI Config ---
@@ -11173,7 +11362,11 @@ function createSupportNamespace(rb) {
11173
11362
  upsert: async (attributes, options) => {
11174
11363
  return rb.execute(
11175
11364
  postAdminSupportChannelCaptureConfigs,
11176
- { body: { data: { type: "support_channel_capture_config", attributes } } },
11365
+ {
11366
+ body: {
11367
+ data: { type: "support_channel_capture_config", attributes }
11368
+ }
11369
+ },
11177
11370
  options
11178
11371
  );
11179
11372
  }
@@ -11200,13 +11393,20 @@ function createSupportNamespace(rb) {
11200
11393
  update: async (id, attributes, options) => {
11201
11394
  return rb.execute(
11202
11395
  patchAdminSupportSyncConfigsById,
11203
- { path: { id }, body: { data: { type: "support_sync_config", id, attributes } } },
11396
+ {
11397
+ path: { id },
11398
+ body: { data: { type: "support_sync_config", id, attributes } }
11399
+ },
11204
11400
  options
11205
11401
  );
11206
11402
  },
11207
11403
  /** Delete a sync config */
11208
11404
  delete: async (id, options) => {
11209
- return rb.executeDelete(deleteAdminSupportSyncConfigsById, { path: { id } }, options);
11405
+ return rb.executeDelete(
11406
+ deleteAdminSupportSyncConfigsById,
11407
+ { path: { id } },
11408
+ options
11409
+ );
11210
11410
  }
11211
11411
  },
11212
11412
  // --- Canned Responses ---
@@ -11231,13 +11431,20 @@ function createSupportNamespace(rb) {
11231
11431
  update: async (id, attributes, options) => {
11232
11432
  return rb.execute(
11233
11433
  patchAdminSupportCannedResponsesById,
11234
- { path: { id }, body: { data: { type: "support_canned_response", id, attributes } } },
11434
+ {
11435
+ path: { id },
11436
+ body: { data: { type: "support_canned_response", id, attributes } }
11437
+ },
11235
11438
  options
11236
11439
  );
11237
11440
  },
11238
11441
  /** Delete a canned response */
11239
11442
  delete: async (id, options) => {
11240
- return rb.executeDelete(deleteAdminSupportCannedResponsesById, { path: { id } }, options);
11443
+ return rb.executeDelete(
11444
+ deleteAdminSupportCannedResponsesById,
11445
+ { path: { id } },
11446
+ options
11447
+ );
11241
11448
  }
11242
11449
  }
11243
11450
  };
@@ -11563,16 +11770,186 @@ function createAiNamespace(rb) {
11563
11770
  * console.log('Semantic cache cleared');
11564
11771
  */
11565
11772
  clear: async (options) => {
11566
- return rb.execute(
11567
- postAdminSysSemanticCacheClear,
11568
- {},
11569
- options
11570
- );
11773
+ return rb.execute(postAdminSysSemanticCacheClear, {}, options);
11571
11774
  }
11572
11775
  }
11573
11776
  };
11574
11777
  }
11575
11778
 
11779
+ // src/namespaces/crm-clusters.ts
11780
+ function createCrmClustersNamespace(rb) {
11781
+ return {
11782
+ /**
11783
+ * Discovers relationship clusters in the workspace CRM using community detection.
11784
+ * Each cluster is automatically labeled by AI.
11785
+ *
11786
+ * @param workspaceId - The workspace ID to discover clusters for
11787
+ * @returns Array of discovered clusters with AI-generated labels
11788
+ * @example
11789
+ * ```typescript
11790
+ * const { data } = await admin.crmClusters.discover('workspace-uuid');
11791
+ * ```
11792
+ */
11793
+ async discover(workspaceId) {
11794
+ return rb.rawGet(
11795
+ `/isv/crm/clusters?workspace_id=${encodeURIComponent(workspaceId)}`
11796
+ );
11797
+ }
11798
+ };
11799
+ }
11800
+
11801
+ // src/namespaces/compliance.ts
11802
+ function createComplianceNamespace(rb) {
11803
+ return {
11804
+ /**
11805
+ * Scans text for PII and PHI violations (HIPAA Safe Harbor).
11806
+ *
11807
+ * @param text - The text to scan for compliance violations
11808
+ * @returns Scan result with clean flag, detections, and scrubbed preview
11809
+ * @example
11810
+ * ```typescript
11811
+ * const result = await admin.compliance.scan('Patient DOB: 03/15/1985');
11812
+ * ```
11813
+ */
11814
+ async scan(text) {
11815
+ return rb.rawPost("/isv/compliance/scan", { text });
11816
+ }
11817
+ };
11818
+ }
11819
+
11820
+ // src/namespaces/pipelines.ts
11821
+ var postAdminPipelinesByIdTrigger = (options) => (options.client ?? null).post({
11822
+ url: "/admin/pipelines/{id}/trigger",
11823
+ ...options,
11824
+ headers: { "Content-Type": "application/vnd.api+json", ...options.headers }
11825
+ });
11826
+ function createPipelinesNamespace(rb) {
11827
+ return {
11828
+ /**
11829
+ * List all pipelines.
11830
+ *
11831
+ * @param options - Optional request options.
11832
+ * @returns Array of pipelines.
11833
+ */
11834
+ async list(options) {
11835
+ return rb.execute(getAdminPipelines, {}, options);
11836
+ },
11837
+ /**
11838
+ * Get a pipeline by ID.
11839
+ *
11840
+ * @param id - Pipeline UUID.
11841
+ * @param options - Optional request options.
11842
+ * @returns Pipeline resource.
11843
+ */
11844
+ async get(id, options) {
11845
+ return rb.execute(getAdminPipelinesById, { path: { id } }, options);
11846
+ },
11847
+ /**
11848
+ * Create a new pipeline.
11849
+ *
11850
+ * @param attributes - Pipeline configuration including node DAG.
11851
+ * @param options - Optional request options.
11852
+ * @returns Created pipeline resource.
11853
+ */
11854
+ async create(attributes, options) {
11855
+ return rb.execute(
11856
+ postAdminPipelines,
11857
+ { body: { data: { type: "pipeline", attributes } } },
11858
+ options
11859
+ );
11860
+ },
11861
+ /**
11862
+ * Update an existing pipeline.
11863
+ *
11864
+ * @param id - Pipeline UUID.
11865
+ * @param attributes - Fields to update.
11866
+ * @param options - Optional request options.
11867
+ * @returns Updated pipeline resource.
11868
+ */
11869
+ async update(id, attributes, options) {
11870
+ return rb.execute(
11871
+ patchAdminPipelinesById,
11872
+ { path: { id }, body: { data: { type: "pipeline", id, attributes } } },
11873
+ options
11874
+ );
11875
+ },
11876
+ /**
11877
+ * Delete a pipeline.
11878
+ *
11879
+ * @param id - Pipeline UUID.
11880
+ * @param options - Optional request options.
11881
+ */
11882
+ async delete(id, options) {
11883
+ return rb.execute(deleteAdminPipelinesById, { path: { id } }, options);
11884
+ },
11885
+ /**
11886
+ * Trigger pipeline execution.
11887
+ *
11888
+ * @param id - Pipeline UUID.
11889
+ * @param attributes - Execution parameters including workspace_id and input.
11890
+ * @param options - Optional request options.
11891
+ * @returns Pipeline execution result map.
11892
+ */
11893
+ async trigger(id, attributes, options) {
11894
+ return rb.execute(
11895
+ postAdminPipelinesByIdTrigger,
11896
+ {
11897
+ path: { id },
11898
+ body: {
11899
+ data: {
11900
+ type: "pipeline",
11901
+ attributes: {
11902
+ pipeline_id: id,
11903
+ ...attributes
11904
+ }
11905
+ }
11906
+ }
11907
+ },
11908
+ options
11909
+ );
11910
+ }
11911
+ };
11912
+ }
11913
+
11914
+ // src/namespaces/tenants.ts
11915
+ function createTenantsNamespace(rb) {
11916
+ return {
11917
+ /**
11918
+ * Suspends a tenant, preventing billing charges and access.
11919
+ *
11920
+ * @param id - Tenant UUID
11921
+ * @param reason - Human-readable reason for suspension (required)
11922
+ * @returns Updated tenant id and status
11923
+ */
11924
+ async suspend(id, reason) {
11925
+ return rb.rawPost(`/isv/tenants/${id}/suspend`, {
11926
+ reason
11927
+ });
11928
+ },
11929
+ /**
11930
+ * Restores a suspended tenant to active status.
11931
+ *
11932
+ * @param id - Tenant UUID
11933
+ * @returns Updated tenant id and status
11934
+ */
11935
+ async unsuspend(id) {
11936
+ return rb.rawPost(
11937
+ `/isv/tenants/${id}/unsuspend`,
11938
+ {}
11939
+ );
11940
+ },
11941
+ /**
11942
+ * Permanently cancels a tenant.
11943
+ *
11944
+ * @param id - Tenant UUID
11945
+ * @returns Updated tenant id and status
11946
+ */
11947
+ async cancel(id) {
11948
+ return rb.rawPost(`/isv/tenants/${id}/cancel`, {});
11949
+ }
11950
+ };
11951
+ }
11952
+
11576
11953
  // src/gpt-admin.ts
11577
11954
  var GptAdmin = class extends BaseClient {
11578
11955
  constructor(config) {
@@ -11607,6 +11984,10 @@ var GptAdmin = class extends BaseClient {
11607
11984
  this.support = createSupportNamespace(rb);
11608
11985
  this.models = createModelsNamespace(rb);
11609
11986
  this.ai = createAiNamespace(rb);
11987
+ this.crmClusters = createCrmClustersNamespace(rb);
11988
+ this.compliance = createComplianceNamespace(rb);
11989
+ this.pipelines = createPipelinesNamespace(rb);
11990
+ this.tenants = createTenantsNamespace(rb);
11610
11991
  }
11611
11992
  };
11612
11993