@gpt-platform/admin 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -814,7 +814,7 @@ var createClient = (config = {}) => {
814
814
  };
815
815
 
816
816
  // src/version.ts
817
- var SDK_VERSION = "0.5.1";
817
+ var SDK_VERSION = "0.5.2";
818
818
  var DEFAULT_API_VERSION = "2026-02-27";
819
819
 
820
820
  // src/base-client.ts
@@ -8759,20 +8759,12 @@ function createConnectorsNamespace(rb) {
8759
8759
  options
8760
8760
  ),
8761
8761
  /** Delete a connector instance. */
8762
- delete: async (id, options) => rb.executeDelete(
8763
- deleteAdminConnectorsById,
8764
- { path: { id } },
8765
- options
8766
- )
8762
+ delete: async (id, options) => rb.executeDelete(deleteAdminConnectorsById, { path: { id } }, options)
8767
8763
  },
8768
8764
  /** Credentials — OAuth tokens and API keys. */
8769
8765
  credentials: {
8770
8766
  /** List all credentials. */
8771
- list: async (options) => rb.execute(
8772
- getAdminConnectorsCredentials,
8773
- {},
8774
- options
8775
- ),
8767
+ list: async (options) => rb.execute(getAdminConnectorsCredentials, {}, options),
8776
8768
  /** Get a credential by ID. */
8777
8769
  get: async (id, options) => rb.execute(
8778
8770
  getAdminConnectorsCredentialsById,
@@ -10349,7 +10341,10 @@ function createCrmNamespace(rb) {
10349
10341
  update: async (id, attributes, options) => {
10350
10342
  return rb.execute(
10351
10343
  patchAdminCrmContactsById,
10352
- { path: { id }, body: { data: { type: "crm_contact", id, attributes } } },
10344
+ {
10345
+ path: { id },
10346
+ body: { data: { type: "crm_contact", id, attributes } }
10347
+ },
10353
10348
  options
10354
10349
  );
10355
10350
  },
@@ -10357,7 +10352,10 @@ function createCrmNamespace(rb) {
10357
10352
  archive: async (id, options) => {
10358
10353
  return rb.execute(
10359
10354
  patchAdminCrmContactsByIdArchive,
10360
- { path: { id }, body: { data: { type: "crm_contact", id, attributes: {} } } },
10355
+ {
10356
+ path: { id },
10357
+ body: { data: { type: "crm_contact", id, attributes: {} } }
10358
+ },
10361
10359
  options
10362
10360
  );
10363
10361
  },
@@ -10365,7 +10363,10 @@ function createCrmNamespace(rb) {
10365
10363
  unarchive: async (id, options) => {
10366
10364
  return rb.execute(
10367
10365
  postAdminCrmContactsByIdUnarchive,
10368
- { path: { id }, body: { data: { type: "crm_contact", id, attributes: {} } } },
10366
+ {
10367
+ path: { id },
10368
+ body: { data: { type: "crm_contact", id, attributes: {} } }
10369
+ },
10369
10370
  options
10370
10371
  );
10371
10372
  },
@@ -10399,13 +10400,20 @@ function createCrmNamespace(rb) {
10399
10400
  update: async (id, attributes, options) => {
10400
10401
  return rb.execute(
10401
10402
  patchAdminCrmCompaniesById,
10402
- { path: { id }, body: { data: { type: "crm_company", id, attributes } } },
10403
+ {
10404
+ path: { id },
10405
+ body: { data: { type: "crm_company", id, attributes } }
10406
+ },
10403
10407
  options
10404
10408
  );
10405
10409
  },
10406
10410
  /** Delete a company. */
10407
10411
  delete: async (id, options) => {
10408
- return rb.execute(deleteAdminCrmCompaniesById, { path: { id } }, options);
10412
+ return rb.execute(
10413
+ deleteAdminCrmCompaniesById,
10414
+ { path: { id } },
10415
+ options
10416
+ );
10409
10417
  }
10410
10418
  },
10411
10419
  // ========== Deals ==========
@@ -10434,7 +10442,10 @@ function createCrmNamespace(rb) {
10434
10442
  update: async (id, attributes, options) => {
10435
10443
  return rb.execute(
10436
10444
  patchAdminCrmDealsById,
10437
- { path: { id }, body: { data: { type: "crm_deal", id, attributes } } },
10445
+ {
10446
+ path: { id },
10447
+ body: { data: { type: "crm_deal", id, attributes } }
10448
+ },
10438
10449
  options
10439
10450
  );
10440
10451
  },
@@ -10442,7 +10453,10 @@ function createCrmNamespace(rb) {
10442
10453
  moveStage: async (id, attributes, options) => {
10443
10454
  return rb.execute(
10444
10455
  patchAdminCrmDealsByIdMoveStage,
10445
- { path: { id }, body: { data: { type: "crm_deal", id, attributes } } },
10456
+ {
10457
+ path: { id },
10458
+ body: { data: { type: "crm_deal", id, attributes } }
10459
+ },
10446
10460
  options
10447
10461
  );
10448
10462
  },
@@ -10477,13 +10491,20 @@ function createCrmNamespace(rb) {
10477
10491
  update: async (id, attributes, options) => {
10478
10492
  return rb.execute(
10479
10493
  patchAdminCrmActivitiesById,
10480
- { path: { id }, body: { data: { type: "crm_activity", id, attributes } } },
10494
+ {
10495
+ path: { id },
10496
+ body: { data: { type: "crm_activity", id, attributes } }
10497
+ },
10481
10498
  options
10482
10499
  );
10483
10500
  },
10484
10501
  /** Delete an activity. */
10485
10502
  delete: async (id, options) => {
10486
- return rb.execute(deleteAdminCrmActivitiesById, { path: { id } }, options);
10503
+ return rb.execute(
10504
+ deleteAdminCrmActivitiesById,
10505
+ { path: { id } },
10506
+ options
10507
+ );
10487
10508
  }
10488
10509
  },
10489
10510
  // ========== Pipelines ==========
@@ -10512,20 +10533,31 @@ function createCrmNamespace(rb) {
10512
10533
  update: async (id, attributes, options) => {
10513
10534
  return rb.execute(
10514
10535
  patchAdminCrmPipelinesById,
10515
- { path: { id }, body: { data: { type: "crm_pipeline", id, attributes } } },
10536
+ {
10537
+ path: { id },
10538
+ body: { data: { type: "crm_pipeline", id, attributes } }
10539
+ },
10516
10540
  options
10517
10541
  );
10518
10542
  },
10519
10543
  /** Delete a pipeline. */
10520
10544
  delete: async (id, options) => {
10521
- return rb.execute(deleteAdminCrmPipelinesById, { path: { id } }, options);
10545
+ return rb.execute(
10546
+ deleteAdminCrmPipelinesById,
10547
+ { path: { id } },
10548
+ options
10549
+ );
10522
10550
  }
10523
10551
  },
10524
10552
  // ========== Pipeline Stages ==========
10525
10553
  pipelineStages: {
10526
10554
  /** Get a pipeline stage by ID. */
10527
10555
  get: async (id, options) => {
10528
- return rb.execute(getAdminCrmPipelineStagesById, { path: { id } }, options);
10556
+ return rb.execute(
10557
+ getAdminCrmPipelineStagesById,
10558
+ { path: { id } },
10559
+ options
10560
+ );
10529
10561
  },
10530
10562
  /** List stages for a specific pipeline. */
10531
10563
  listByPipeline: async (pipelineId, options) => {
@@ -10547,20 +10579,31 @@ function createCrmNamespace(rb) {
10547
10579
  update: async (id, attributes, options) => {
10548
10580
  return rb.execute(
10549
10581
  patchAdminCrmPipelineStagesById,
10550
- { path: { id }, body: { data: { type: "crm_pipeline_stage", id, attributes } } },
10582
+ {
10583
+ path: { id },
10584
+ body: { data: { type: "crm_pipeline_stage", id, attributes } }
10585
+ },
10551
10586
  options
10552
10587
  );
10553
10588
  },
10554
10589
  /** Delete a pipeline stage. */
10555
10590
  delete: async (id, options) => {
10556
- return rb.execute(deleteAdminCrmPipelineStagesById, { path: { id } }, options);
10591
+ return rb.execute(
10592
+ deleteAdminCrmPipelineStagesById,
10593
+ { path: { id } },
10594
+ options
10595
+ );
10557
10596
  }
10558
10597
  },
10559
10598
  // ========== Relationships ==========
10560
10599
  relationships: {
10561
10600
  /** Get a relationship by ID. */
10562
10601
  get: async (id, options) => {
10563
- return rb.execute(getAdminCrmRelationshipsById, { path: { id } }, options);
10602
+ return rb.execute(
10603
+ getAdminCrmRelationshipsById,
10604
+ { path: { id } },
10605
+ options
10606
+ );
10564
10607
  },
10565
10608
  /** List relationships by workspace. */
10566
10609
  listByWorkspace: async (workspaceId, options) => {
@@ -10580,14 +10623,22 @@ function createCrmNamespace(rb) {
10580
10623
  },
10581
10624
  /** Delete a relationship. */
10582
10625
  delete: async (id, options) => {
10583
- return rb.execute(deleteAdminCrmRelationshipsById, { path: { id } }, options);
10626
+ return rb.execute(
10627
+ deleteAdminCrmRelationshipsById,
10628
+ { path: { id } },
10629
+ options
10630
+ );
10584
10631
  }
10585
10632
  },
10586
10633
  // ========== Relationship Types ==========
10587
10634
  relationshipTypes: {
10588
10635
  /** Get a relationship type by ID. */
10589
10636
  get: async (id, options) => {
10590
- return rb.execute(getAdminCrmRelationshipTypesById, { path: { id } }, options);
10637
+ return rb.execute(
10638
+ getAdminCrmRelationshipTypesById,
10639
+ { path: { id } },
10640
+ options
10641
+ );
10591
10642
  },
10592
10643
  /** List all relationship types. */
10593
10644
  list: async (options) => {
@@ -10605,20 +10656,31 @@ function createCrmNamespace(rb) {
10605
10656
  update: async (id, attributes, options) => {
10606
10657
  return rb.execute(
10607
10658
  patchAdminCrmRelationshipTypesById,
10608
- { path: { id }, body: { data: { type: "crm_relationship_type", id, attributes } } },
10659
+ {
10660
+ path: { id },
10661
+ body: { data: { type: "crm_relationship_type", id, attributes } }
10662
+ },
10609
10663
  options
10610
10664
  );
10611
10665
  },
10612
10666
  /** Delete a relationship type. */
10613
10667
  delete: async (id, options) => {
10614
- return rb.execute(deleteAdminCrmRelationshipTypesById, { path: { id } }, options);
10668
+ return rb.execute(
10669
+ deleteAdminCrmRelationshipTypesById,
10670
+ { path: { id } },
10671
+ options
10672
+ );
10615
10673
  }
10616
10674
  },
10617
10675
  // ========== Custom Entities ==========
10618
10676
  customEntities: {
10619
10677
  /** Get a custom entity by ID. */
10620
10678
  get: async (id, options) => {
10621
- return rb.execute(getAdminCrmCustomEntitiesById, { path: { id } }, options);
10679
+ return rb.execute(
10680
+ getAdminCrmCustomEntitiesById,
10681
+ { path: { id } },
10682
+ options
10683
+ );
10622
10684
  },
10623
10685
  /** List custom entities by workspace. */
10624
10686
  listByWorkspace: async (workspaceId, options) => {
@@ -10640,13 +10702,20 @@ function createCrmNamespace(rb) {
10640
10702
  update: async (id, attributes, options) => {
10641
10703
  return rb.execute(
10642
10704
  patchAdminCrmCustomEntitiesById,
10643
- { path: { id }, body: { data: { type: "crm_custom_entity", id, attributes } } },
10705
+ {
10706
+ path: { id },
10707
+ body: { data: { type: "crm_custom_entity", id, attributes } }
10708
+ },
10644
10709
  options
10645
10710
  );
10646
10711
  },
10647
10712
  /** Delete a custom entity. */
10648
10713
  delete: async (id, options) => {
10649
- return rb.execute(deleteAdminCrmCustomEntitiesById, { path: { id } }, options);
10714
+ return rb.execute(
10715
+ deleteAdminCrmCustomEntitiesById,
10716
+ { path: { id } },
10717
+ options
10718
+ );
10650
10719
  },
10651
10720
  /** List versions for a custom entity. */
10652
10721
  listVersions: async (entityId, options) => {
@@ -10673,7 +10742,11 @@ function createCrmNamespace(rb) {
10673
10742
  },
10674
10743
  /** Get a deal product by ID. */
10675
10744
  get: async (id, options) => {
10676
- return rb.execute(getAdminCrmDealProductsById, { path: { id } }, options);
10745
+ return rb.execute(
10746
+ getAdminCrmDealProductsById,
10747
+ { path: { id } },
10748
+ options
10749
+ );
10677
10750
  },
10678
10751
  /** Create a deal product. */
10679
10752
  create: async (attributes, options) => {
@@ -10685,7 +10758,11 @@ function createCrmNamespace(rb) {
10685
10758
  },
10686
10759
  /** Delete a deal product. */
10687
10760
  delete: async (id, options) => {
10688
- return rb.execute(deleteAdminCrmDealProductsById, { path: { id } }, options);
10761
+ return rb.execute(
10762
+ deleteAdminCrmDealProductsById,
10763
+ { path: { id } },
10764
+ options
10765
+ );
10689
10766
  }
10690
10767
  },
10691
10768
  // ========== Exports ==========
@@ -10714,7 +10791,10 @@ function createCrmNamespace(rb) {
10714
10791
  refreshUrl: async (id, options) => {
10715
10792
  return rb.execute(
10716
10793
  patchAdminCrmExportsByIdRefreshUrl,
10717
- { path: { id }, body: { data: { type: "crm_data_export_job", id, attributes: {} } } },
10794
+ {
10795
+ path: { id },
10796
+ body: { data: { type: "crm_data_export_job", id, attributes: {} } }
10797
+ },
10718
10798
  options
10719
10799
  );
10720
10800
  }
@@ -10723,7 +10803,11 @@ function createCrmNamespace(rb) {
10723
10803
  entityTypes: {
10724
10804
  /** Get an entity type by ID. */
10725
10805
  get: async (id, options) => {
10726
- return rb.execute(getAdminIsvCrmEntityTypesById, { path: { id } }, options);
10806
+ return rb.execute(
10807
+ getAdminIsvCrmEntityTypesById,
10808
+ { path: { id } },
10809
+ options
10810
+ );
10727
10811
  },
10728
10812
  /** List entity types by application. */
10729
10813
  listByApplication: async (applicationId, options) => {
@@ -10745,20 +10829,31 @@ function createCrmNamespace(rb) {
10745
10829
  update: async (id, attributes, options) => {
10746
10830
  return rb.execute(
10747
10831
  patchAdminIsvCrmEntityTypesById,
10748
- { path: { id }, body: { data: { type: "crm_custom_entity_type", id, attributes } } },
10832
+ {
10833
+ path: { id },
10834
+ body: { data: { type: "crm_custom_entity_type", id, attributes } }
10835
+ },
10749
10836
  options
10750
10837
  );
10751
10838
  },
10752
10839
  /** Delete an entity type. */
10753
10840
  delete: async (id, options) => {
10754
- return rb.execute(deleteAdminIsvCrmEntityTypesById, { path: { id } }, options);
10841
+ return rb.execute(
10842
+ deleteAdminIsvCrmEntityTypesById,
10843
+ { path: { id } },
10844
+ options
10845
+ );
10755
10846
  }
10756
10847
  },
10757
10848
  // ========== ISV: Field Definitions ==========
10758
10849
  fieldDefinitions: {
10759
10850
  /** Get a field definition by ID. */
10760
10851
  get: async (id, options) => {
10761
- return rb.execute(getAdminIsvCrmFieldDefinitionsById, { path: { id } }, options);
10852
+ return rb.execute(
10853
+ getAdminIsvCrmFieldDefinitionsById,
10854
+ { path: { id } },
10855
+ options
10856
+ );
10762
10857
  },
10763
10858
  /** List field definitions by entity type. */
10764
10859
  listByEntityType: async (entityType, options) => {
@@ -10772,7 +10867,9 @@ function createCrmNamespace(rb) {
10772
10867
  create: async (attributes, options) => {
10773
10868
  return rb.execute(
10774
10869
  postAdminIsvCrmFieldDefinitions,
10775
- { body: { data: { type: "crm_custom_field_definition", attributes } } },
10870
+ {
10871
+ body: { data: { type: "crm_custom_field_definition", attributes } }
10872
+ },
10776
10873
  options
10777
10874
  );
10778
10875
  },
@@ -10780,26 +10877,41 @@ function createCrmNamespace(rb) {
10780
10877
  update: async (id, attributes, options) => {
10781
10878
  return rb.execute(
10782
10879
  patchAdminIsvCrmFieldDefinitionsById,
10783
- { path: { id }, body: { data: { type: "crm_custom_field_definition", id, attributes } } },
10880
+ {
10881
+ path: { id },
10882
+ body: {
10883
+ data: { type: "crm_custom_field_definition", id, attributes }
10884
+ }
10885
+ },
10784
10886
  options
10785
10887
  );
10786
10888
  },
10787
10889
  /** Delete a field definition. */
10788
10890
  delete: async (id, options) => {
10789
- return rb.execute(deleteAdminIsvCrmFieldDefinitionsById, { path: { id } }, options);
10891
+ return rb.execute(
10892
+ deleteAdminIsvCrmFieldDefinitionsById,
10893
+ { path: { id } },
10894
+ options
10895
+ );
10790
10896
  }
10791
10897
  },
10792
10898
  // ========== ISV: Channel Capture Config ==========
10793
10899
  channelCaptureConfig: {
10794
10900
  /** Get channel capture config by ID. */
10795
10901
  get: async (id, options) => {
10796
- return rb.execute(getAdminIsvCrmChannelCaptureConfigById, { path: { id } }, options);
10902
+ return rb.execute(
10903
+ getAdminIsvCrmChannelCaptureConfigById,
10904
+ { path: { id } },
10905
+ options
10906
+ );
10797
10907
  },
10798
10908
  /** Create or upsert channel capture config. */
10799
10909
  create: async (attributes, options) => {
10800
10910
  return rb.execute(
10801
10911
  postAdminIsvCrmChannelCaptureConfig,
10802
- { body: { data: { type: "crm_channel_capture_config", attributes } } },
10912
+ {
10913
+ body: { data: { type: "crm_channel_capture_config", attributes } }
10914
+ },
10803
10915
  options
10804
10916
  );
10805
10917
  },
@@ -10807,7 +10919,12 @@ function createCrmNamespace(rb) {
10807
10919
  update: async (id, attributes, options) => {
10808
10920
  return rb.execute(
10809
10921
  patchAdminIsvCrmChannelCaptureConfigById,
10810
- { path: { id }, body: { data: { type: "crm_channel_capture_config", id, attributes } } },
10922
+ {
10923
+ path: { id },
10924
+ body: {
10925
+ data: { type: "crm_channel_capture_config", id, attributes }
10926
+ }
10927
+ },
10811
10928
  options
10812
10929
  );
10813
10930
  }
@@ -10834,13 +10951,20 @@ function createCrmNamespace(rb) {
10834
10951
  update: async (id, attributes, options) => {
10835
10952
  return rb.execute(
10836
10953
  patchAdminIsvCrmSyncConfigsById,
10837
- { path: { id }, body: { data: { type: "crm_sync_config", id, attributes } } },
10954
+ {
10955
+ path: { id },
10956
+ body: { data: { type: "crm_sync_config", id, attributes } }
10957
+ },
10838
10958
  options
10839
10959
  );
10840
10960
  },
10841
10961
  /** Delete a sync config. */
10842
10962
  delete: async (id, options) => {
10843
- return rb.execute(deleteAdminIsvCrmSyncConfigsById, { path: { id } }, options);
10963
+ return rb.execute(
10964
+ deleteAdminIsvCrmSyncConfigsById,
10965
+ { path: { id } },
10966
+ options
10967
+ );
10844
10968
  }
10845
10969
  }
10846
10970
  };
@@ -10853,7 +10977,11 @@ function createSupportNamespace(rb) {
10853
10977
  tickets: {
10854
10978
  /** Get a support ticket by ID */
10855
10979
  get: async (id, options) => {
10856
- return rb.execute(getAdminSupportTicketsById, { path: { id } }, options);
10980
+ return rb.execute(
10981
+ getAdminSupportTicketsById,
10982
+ { path: { id } },
10983
+ options
10984
+ );
10857
10985
  },
10858
10986
  /** List tickets for a workspace */
10859
10987
  listByWorkspace: async (workspaceId, options) => {
@@ -10875,7 +11003,10 @@ function createSupportNamespace(rb) {
10875
11003
  update: async (id, attributes, options) => {
10876
11004
  return rb.execute(
10877
11005
  patchAdminSupportTicketsById,
10878
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11006
+ {
11007
+ path: { id },
11008
+ body: { data: { type: "support_ticket", id, attributes } }
11009
+ },
10879
11010
  options
10880
11011
  );
10881
11012
  },
@@ -10883,7 +11014,10 @@ function createSupportNamespace(rb) {
10883
11014
  assign: async (id, attributes, options) => {
10884
11015
  return rb.execute(
10885
11016
  patchAdminSupportTicketsByIdAssign,
10886
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11017
+ {
11018
+ path: { id },
11019
+ body: { data: { type: "support_ticket", id, attributes } }
11020
+ },
10887
11021
  options
10888
11022
  );
10889
11023
  },
@@ -10891,7 +11025,10 @@ function createSupportNamespace(rb) {
10891
11025
  resolve: async (id, attributes, options) => {
10892
11026
  return rb.execute(
10893
11027
  patchAdminSupportTicketsByIdResolve,
10894
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11028
+ {
11029
+ path: { id },
11030
+ body: { data: { type: "support_ticket", id, attributes } }
11031
+ },
10895
11032
  options
10896
11033
  );
10897
11034
  },
@@ -10899,7 +11036,10 @@ function createSupportNamespace(rb) {
10899
11036
  close: async (id, attributes, options) => {
10900
11037
  return rb.execute(
10901
11038
  patchAdminSupportTicketsByIdClose,
10902
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11039
+ {
11040
+ path: { id },
11041
+ body: { data: { type: "support_ticket", id, attributes } }
11042
+ },
10903
11043
  options
10904
11044
  );
10905
11045
  },
@@ -10907,7 +11047,10 @@ function createSupportNamespace(rb) {
10907
11047
  reopen: async (id, attributes, options) => {
10908
11048
  return rb.execute(
10909
11049
  patchAdminSupportTicketsByIdReopen,
10910
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11050
+ {
11051
+ path: { id },
11052
+ body: { data: { type: "support_ticket", id, attributes } }
11053
+ },
10911
11054
  options
10912
11055
  );
10913
11056
  },
@@ -10915,13 +11058,20 @@ function createSupportNamespace(rb) {
10915
11058
  merge: async (id, attributes, options) => {
10916
11059
  return rb.execute(
10917
11060
  patchAdminSupportTicketsByIdMerge,
10918
- { path: { id }, body: { data: { type: "support_ticket", id, attributes } } },
11061
+ {
11062
+ path: { id },
11063
+ body: { data: { type: "support_ticket", id, attributes } }
11064
+ },
10919
11065
  options
10920
11066
  );
10921
11067
  },
10922
11068
  /** Delete a support ticket */
10923
11069
  delete: async (id, options) => {
10924
- return rb.executeDelete(deleteAdminSupportTicketsById, { path: { id } }, options);
11070
+ return rb.executeDelete(
11071
+ deleteAdminSupportTicketsById,
11072
+ { path: { id } },
11073
+ options
11074
+ );
10925
11075
  }
10926
11076
  },
10927
11077
  // --- Messages ---
@@ -10993,7 +11143,11 @@ function createSupportNamespace(rb) {
10993
11143
  },
10994
11144
  /** Delete a tag */
10995
11145
  delete: async (id, options) => {
10996
- return rb.executeDelete(deleteAdminSupportTagsById, { path: { id } }, options);
11146
+ return rb.executeDelete(
11147
+ deleteAdminSupportTagsById,
11148
+ { path: { id } },
11149
+ options
11150
+ );
10997
11151
  }
10998
11152
  },
10999
11153
  // --- Queues ---
@@ -11022,13 +11176,20 @@ function createSupportNamespace(rb) {
11022
11176
  update: async (id, attributes, options) => {
11023
11177
  return rb.execute(
11024
11178
  patchAdminSupportQueuesById,
11025
- { path: { id }, body: { data: { type: "support_queue", id, attributes } } },
11179
+ {
11180
+ path: { id },
11181
+ body: { data: { type: "support_queue", id, attributes } }
11182
+ },
11026
11183
  options
11027
11184
  );
11028
11185
  },
11029
11186
  /** Delete a queue */
11030
11187
  delete: async (id, options) => {
11031
- return rb.executeDelete(deleteAdminSupportQueuesById, { path: { id } }, options);
11188
+ return rb.executeDelete(
11189
+ deleteAdminSupportQueuesById,
11190
+ { path: { id } },
11191
+ options
11192
+ );
11032
11193
  }
11033
11194
  },
11034
11195
  // --- Queue Members ---
@@ -11061,20 +11222,31 @@ function createSupportNamespace(rb) {
11061
11222
  update: async (id, attributes, options) => {
11062
11223
  return rb.execute(
11063
11224
  patchAdminSupportQueueMembersById,
11064
- { path: { id }, body: { data: { type: "support_queue_member", id, attributes } } },
11225
+ {
11226
+ path: { id },
11227
+ body: { data: { type: "support_queue_member", id, attributes } }
11228
+ },
11065
11229
  options
11066
11230
  );
11067
11231
  },
11068
11232
  /** Remove a member from a queue */
11069
11233
  delete: async (id, options) => {
11070
- return rb.executeDelete(deleteAdminSupportQueueMembersById, { path: { id } }, options);
11234
+ return rb.executeDelete(
11235
+ deleteAdminSupportQueueMembersById,
11236
+ { path: { id } },
11237
+ options
11238
+ );
11071
11239
  }
11072
11240
  },
11073
11241
  // --- Routing Rules ---
11074
11242
  routingRules: {
11075
11243
  /** Get a routing rule by ID */
11076
11244
  get: async (id, options) => {
11077
- return rb.execute(getAdminSupportRoutingRulesById, { path: { id } }, options);
11245
+ return rb.execute(
11246
+ getAdminSupportRoutingRulesById,
11247
+ { path: { id } },
11248
+ options
11249
+ );
11078
11250
  },
11079
11251
  /** List routing rules for an application */
11080
11252
  listByApplication: async (applicationId, options) => {
@@ -11096,20 +11268,31 @@ function createSupportNamespace(rb) {
11096
11268
  update: async (id, attributes, options) => {
11097
11269
  return rb.execute(
11098
11270
  patchAdminSupportRoutingRulesById,
11099
- { path: { id }, body: { data: { type: "support_routing_rule", id, attributes } } },
11271
+ {
11272
+ path: { id },
11273
+ body: { data: { type: "support_routing_rule", id, attributes } }
11274
+ },
11100
11275
  options
11101
11276
  );
11102
11277
  },
11103
11278
  /** Delete a routing rule */
11104
11279
  delete: async (id, options) => {
11105
- return rb.executeDelete(deleteAdminSupportRoutingRulesById, { path: { id } }, options);
11280
+ return rb.executeDelete(
11281
+ deleteAdminSupportRoutingRulesById,
11282
+ { path: { id } },
11283
+ options
11284
+ );
11106
11285
  }
11107
11286
  },
11108
11287
  // --- SLA Policies ---
11109
11288
  slaPolicies: {
11110
11289
  /** Get an SLA policy by ID */
11111
11290
  get: async (id, options) => {
11112
- return rb.execute(getAdminSupportSlaPoliciesById, { path: { id } }, options);
11291
+ return rb.execute(
11292
+ getAdminSupportSlaPoliciesById,
11293
+ { path: { id } },
11294
+ options
11295
+ );
11113
11296
  },
11114
11297
  /** List SLA policies for an application */
11115
11298
  listByApplication: async (applicationId, options) => {
@@ -11131,13 +11314,20 @@ function createSupportNamespace(rb) {
11131
11314
  update: async (id, attributes, options) => {
11132
11315
  return rb.execute(
11133
11316
  patchAdminSupportSlaPoliciesById,
11134
- { path: { id }, body: { data: { type: "support_sla_policy", id, attributes } } },
11317
+ {
11318
+ path: { id },
11319
+ body: { data: { type: "support_sla_policy", id, attributes } }
11320
+ },
11135
11321
  options
11136
11322
  );
11137
11323
  },
11138
11324
  /** Delete an SLA policy */
11139
11325
  delete: async (id, options) => {
11140
- return rb.executeDelete(deleteAdminSupportSlaPoliciesById, { path: { id } }, options);
11326
+ return rb.executeDelete(
11327
+ deleteAdminSupportSlaPoliciesById,
11328
+ { path: { id } },
11329
+ options
11330
+ );
11141
11331
  }
11142
11332
  },
11143
11333
  // --- AI Config ---
@@ -11173,7 +11363,11 @@ function createSupportNamespace(rb) {
11173
11363
  upsert: async (attributes, options) => {
11174
11364
  return rb.execute(
11175
11365
  postAdminSupportChannelCaptureConfigs,
11176
- { body: { data: { type: "support_channel_capture_config", attributes } } },
11366
+ {
11367
+ body: {
11368
+ data: { type: "support_channel_capture_config", attributes }
11369
+ }
11370
+ },
11177
11371
  options
11178
11372
  );
11179
11373
  }
@@ -11200,13 +11394,20 @@ function createSupportNamespace(rb) {
11200
11394
  update: async (id, attributes, options) => {
11201
11395
  return rb.execute(
11202
11396
  patchAdminSupportSyncConfigsById,
11203
- { path: { id }, body: { data: { type: "support_sync_config", id, attributes } } },
11397
+ {
11398
+ path: { id },
11399
+ body: { data: { type: "support_sync_config", id, attributes } }
11400
+ },
11204
11401
  options
11205
11402
  );
11206
11403
  },
11207
11404
  /** Delete a sync config */
11208
11405
  delete: async (id, options) => {
11209
- return rb.executeDelete(deleteAdminSupportSyncConfigsById, { path: { id } }, options);
11406
+ return rb.executeDelete(
11407
+ deleteAdminSupportSyncConfigsById,
11408
+ { path: { id } },
11409
+ options
11410
+ );
11210
11411
  }
11211
11412
  },
11212
11413
  // --- Canned Responses ---
@@ -11231,13 +11432,20 @@ function createSupportNamespace(rb) {
11231
11432
  update: async (id, attributes, options) => {
11232
11433
  return rb.execute(
11233
11434
  patchAdminSupportCannedResponsesById,
11234
- { path: { id }, body: { data: { type: "support_canned_response", id, attributes } } },
11435
+ {
11436
+ path: { id },
11437
+ body: { data: { type: "support_canned_response", id, attributes } }
11438
+ },
11235
11439
  options
11236
11440
  );
11237
11441
  },
11238
11442
  /** Delete a canned response */
11239
11443
  delete: async (id, options) => {
11240
- return rb.executeDelete(deleteAdminSupportCannedResponsesById, { path: { id } }, options);
11444
+ return rb.executeDelete(
11445
+ deleteAdminSupportCannedResponsesById,
11446
+ { path: { id } },
11447
+ options
11448
+ );
11241
11449
  }
11242
11450
  }
11243
11451
  };
@@ -11563,16 +11771,92 @@ function createAiNamespace(rb) {
11563
11771
  * console.log('Semantic cache cleared');
11564
11772
  */
11565
11773
  clear: async (options) => {
11566
- return rb.execute(
11567
- postAdminSysSemanticCacheClear,
11568
- {},
11569
- options
11570
- );
11774
+ return rb.execute(postAdminSysSemanticCacheClear, {}, options);
11571
11775
  }
11572
11776
  }
11573
11777
  };
11574
11778
  }
11575
11779
 
11780
+ // src/namespaces/crm-clusters.ts
11781
+ function createCrmClustersNamespace(rb) {
11782
+ return {
11783
+ /**
11784
+ * Discovers relationship clusters in the workspace CRM using community detection.
11785
+ * Each cluster is automatically labeled by AI.
11786
+ *
11787
+ * @param workspaceId - The workspace ID to discover clusters for
11788
+ * @returns Array of discovered clusters with AI-generated labels
11789
+ * @example
11790
+ * ```typescript
11791
+ * const { data } = await admin.crmClusters.discover('workspace-uuid');
11792
+ * ```
11793
+ */
11794
+ async discover(workspaceId) {
11795
+ return rb.rawGet(
11796
+ `/isv/crm/clusters?workspace_id=${encodeURIComponent(workspaceId)}`
11797
+ );
11798
+ }
11799
+ };
11800
+ }
11801
+
11802
+ // src/namespaces/compliance.ts
11803
+ function createComplianceNamespace(rb) {
11804
+ return {
11805
+ /**
11806
+ * Scans text for PII and PHI violations (HIPAA Safe Harbor).
11807
+ *
11808
+ * @param text - The text to scan for compliance violations
11809
+ * @returns Scan result with clean flag, detections, and scrubbed preview
11810
+ * @example
11811
+ * ```typescript
11812
+ * const result = await admin.compliance.scan('Patient DOB: 03/15/1985');
11813
+ * ```
11814
+ */
11815
+ async scan(text) {
11816
+ return rb.rawPost("/isv/compliance/scan", { text });
11817
+ }
11818
+ };
11819
+ }
11820
+
11821
+ // src/namespaces/tenants.ts
11822
+ function createTenantsNamespace(rb) {
11823
+ return {
11824
+ /**
11825
+ * Suspends a tenant, preventing billing charges and access.
11826
+ *
11827
+ * @param id - Tenant UUID
11828
+ * @param reason - Human-readable reason for suspension (required)
11829
+ * @returns Updated tenant id and status
11830
+ */
11831
+ async suspend(id, reason) {
11832
+ return rb.rawPost(`/isv/tenants/${id}/suspend`, {
11833
+ reason
11834
+ });
11835
+ },
11836
+ /**
11837
+ * Restores a suspended tenant to active status.
11838
+ *
11839
+ * @param id - Tenant UUID
11840
+ * @returns Updated tenant id and status
11841
+ */
11842
+ async unsuspend(id) {
11843
+ return rb.rawPost(
11844
+ `/isv/tenants/${id}/unsuspend`,
11845
+ {}
11846
+ );
11847
+ },
11848
+ /**
11849
+ * Permanently cancels a tenant.
11850
+ *
11851
+ * @param id - Tenant UUID
11852
+ * @returns Updated tenant id and status
11853
+ */
11854
+ async cancel(id) {
11855
+ return rb.rawPost(`/isv/tenants/${id}/cancel`, {});
11856
+ }
11857
+ };
11858
+ }
11859
+
11576
11860
  // src/gpt-admin.ts
11577
11861
  var GptAdmin = class extends BaseClient {
11578
11862
  constructor(config) {
@@ -11607,6 +11891,9 @@ var GptAdmin = class extends BaseClient {
11607
11891
  this.support = createSupportNamespace(rb);
11608
11892
  this.models = createModelsNamespace(rb);
11609
11893
  this.ai = createAiNamespace(rb);
11894
+ this.crmClusters = createCrmClustersNamespace(rb);
11895
+ this.compliance = createComplianceNamespace(rb);
11896
+ this.tenants = createTenantsNamespace(rb);
11610
11897
  }
11611
11898
  };
11612
11899