@seamapi/types 1.628.0 → 1.629.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.
@@ -43487,6 +43487,90 @@ declare const _default: {
43487
43487
  'x-undocumented': string;
43488
43488
  };
43489
43489
  };
43490
+ '/seam/customer/v1/connectors/delete': {
43491
+ post: {
43492
+ description: string;
43493
+ operationId: string;
43494
+ requestBody: {
43495
+ content: {
43496
+ 'application/json': {
43497
+ schema: {
43498
+ properties: {
43499
+ connector_id: {
43500
+ description: string;
43501
+ minLength: number;
43502
+ type: string;
43503
+ };
43504
+ };
43505
+ required: string[];
43506
+ type: string;
43507
+ };
43508
+ };
43509
+ };
43510
+ };
43511
+ responses: {
43512
+ 200: {
43513
+ content: {
43514
+ 'application/json': {
43515
+ schema: {
43516
+ properties: {
43517
+ connector: {
43518
+ properties: {
43519
+ connector_id: {
43520
+ type: string;
43521
+ };
43522
+ connector_type: {
43523
+ type: string;
43524
+ };
43525
+ status: {
43526
+ enum: string[];
43527
+ type: string;
43528
+ };
43529
+ };
43530
+ required: string[];
43531
+ type: string;
43532
+ };
43533
+ ok: {
43534
+ type: string;
43535
+ };
43536
+ };
43537
+ required: string[];
43538
+ type: string;
43539
+ };
43540
+ };
43541
+ };
43542
+ description: string;
43543
+ };
43544
+ 400: {
43545
+ description: string;
43546
+ };
43547
+ 401: {
43548
+ description: string;
43549
+ };
43550
+ };
43551
+ security: ({
43552
+ api_key: never[];
43553
+ client_session_with_customer?: never;
43554
+ console_session_with_workspace?: never;
43555
+ } | {
43556
+ client_session_with_customer: never[];
43557
+ api_key?: never;
43558
+ console_session_with_workspace?: never;
43559
+ } | {
43560
+ console_session_with_workspace: never[];
43561
+ api_key?: never;
43562
+ client_session_with_customer?: never;
43563
+ })[];
43564
+ summary: string;
43565
+ tags: never[];
43566
+ 'x-fern-sdk-group-name': string[];
43567
+ 'x-fern-sdk-method-name': string;
43568
+ 'x-fern-sdk-return-value': string;
43569
+ 'x-response-key': string;
43570
+ 'x-title': string;
43571
+ 'x-undocumented': string;
43572
+ };
43573
+ };
43490
43574
  '/seam/customer/v1/connectors/list': {
43491
43575
  get: {
43492
43576
  description: string;
@@ -43722,6 +43806,161 @@ declare const _default: {
43722
43806
  'x-undocumented': string;
43723
43807
  };
43724
43808
  };
43809
+ '/seam/customer/v1/connectors/update': {
43810
+ post: {
43811
+ description: string;
43812
+ operationId: string;
43813
+ requestBody: {
43814
+ content: {
43815
+ 'application/json': {
43816
+ schema: {
43817
+ properties: {
43818
+ config: {
43819
+ description: string;
43820
+ oneOf: ({
43821
+ properties: {
43822
+ access_token: {
43823
+ minLength: number;
43824
+ type: string;
43825
+ };
43826
+ client: {
43827
+ default: string;
43828
+ minLength: number;
43829
+ type: string;
43830
+ };
43831
+ client_token: {
43832
+ minLength: number;
43833
+ type: string;
43834
+ };
43835
+ enterprise_id: {
43836
+ format: string;
43837
+ type: string;
43838
+ };
43839
+ enterprise_ids: {
43840
+ items: {
43841
+ format: string;
43842
+ type: string;
43843
+ };
43844
+ type: string;
43845
+ };
43846
+ };
43847
+ type: string;
43848
+ } | {
43849
+ properties: {
43850
+ access_token?: never;
43851
+ client?: never;
43852
+ client_token?: never;
43853
+ enterprise_id?: never;
43854
+ enterprise_ids?: never;
43855
+ };
43856
+ type: string;
43857
+ })[];
43858
+ };
43859
+ connector_id: {
43860
+ description: string;
43861
+ minLength: number;
43862
+ type: string;
43863
+ };
43864
+ customer_key: {
43865
+ description: string;
43866
+ minLength: number;
43867
+ type: string;
43868
+ };
43869
+ };
43870
+ required: string[];
43871
+ type: string;
43872
+ };
43873
+ };
43874
+ };
43875
+ };
43876
+ responses: {
43877
+ 200: {
43878
+ content: {
43879
+ 'application/json': {
43880
+ schema: {
43881
+ properties: {
43882
+ connector: {
43883
+ properties: {
43884
+ connector_id: {
43885
+ type: string;
43886
+ };
43887
+ connector_type: {
43888
+ type: string;
43889
+ };
43890
+ error: {
43891
+ type: string;
43892
+ };
43893
+ status: {
43894
+ enum: string[];
43895
+ type: string;
43896
+ };
43897
+ webhook_subscription: {
43898
+ properties: {
43899
+ events: {
43900
+ items: {
43901
+ type: string;
43902
+ };
43903
+ type: string;
43904
+ };
43905
+ status: {
43906
+ enum: string[];
43907
+ type: string;
43908
+ };
43909
+ subscription_id: {
43910
+ type: string;
43911
+ };
43912
+ webhook_url: {
43913
+ type: string;
43914
+ };
43915
+ };
43916
+ required: string[];
43917
+ type: string;
43918
+ };
43919
+ };
43920
+ required: string[];
43921
+ type: string;
43922
+ };
43923
+ ok: {
43924
+ type: string;
43925
+ };
43926
+ };
43927
+ required: string[];
43928
+ type: string;
43929
+ };
43930
+ };
43931
+ };
43932
+ description: string;
43933
+ };
43934
+ 400: {
43935
+ description: string;
43936
+ };
43937
+ 401: {
43938
+ description: string;
43939
+ };
43940
+ };
43941
+ security: ({
43942
+ api_key: never[];
43943
+ client_session_with_customer?: never;
43944
+ console_session_with_workspace?: never;
43945
+ } | {
43946
+ client_session_with_customer: never[];
43947
+ api_key?: never;
43948
+ console_session_with_workspace?: never;
43949
+ } | {
43950
+ console_session_with_workspace: never[];
43951
+ api_key?: never;
43952
+ client_session_with_customer?: never;
43953
+ })[];
43954
+ summary: string;
43955
+ tags: never[];
43956
+ 'x-fern-sdk-group-name': string[];
43957
+ 'x-fern-sdk-method-name': string;
43958
+ 'x-fern-sdk-return-value': string;
43959
+ 'x-response-key': string;
43960
+ 'x-title': string;
43961
+ 'x-undocumented': string;
43962
+ };
43963
+ };
43725
43964
  '/seam/customer/v1/events/list': {
43726
43965
  get: {
43727
43966
  description: string;
@@ -48370,6 +48370,69 @@ export default {
48370
48370
  'x-undocumented': 'Internal endpoint for Console.',
48371
48371
  },
48372
48372
  },
48373
+ '/seam/customer/v1/connectors/delete': {
48374
+ post: {
48375
+ description: 'Deletes a connector from a workspace. The connector must already be assigned to a workspace.\nThis will remove the connector row from the database and deactivate any active connections.',
48376
+ operationId: 'seamCustomerV1ConnectorsDeletePost',
48377
+ requestBody: {
48378
+ content: {
48379
+ 'application/json': {
48380
+ schema: {
48381
+ properties: {
48382
+ connector_id: {
48383
+ description: 'ID of the connector to delete',
48384
+ minLength: 1,
48385
+ type: 'string',
48386
+ },
48387
+ },
48388
+ required: ['connector_id'],
48389
+ type: 'object',
48390
+ },
48391
+ },
48392
+ },
48393
+ },
48394
+ responses: {
48395
+ 200: {
48396
+ content: {
48397
+ 'application/json': {
48398
+ schema: {
48399
+ properties: {
48400
+ connector: {
48401
+ properties: {
48402
+ connector_id: { type: 'string' },
48403
+ connector_type: { type: 'string' },
48404
+ status: { enum: ['deleted'], type: 'string' },
48405
+ },
48406
+ required: ['connector_id', 'connector_type', 'status'],
48407
+ type: 'object',
48408
+ },
48409
+ ok: { type: 'boolean' },
48410
+ },
48411
+ required: ['connector', 'ok'],
48412
+ type: 'object',
48413
+ },
48414
+ },
48415
+ },
48416
+ description: 'OK',
48417
+ },
48418
+ 400: { description: 'Bad Request' },
48419
+ 401: { description: 'Unauthorized' },
48420
+ },
48421
+ security: [
48422
+ { api_key: [] },
48423
+ { client_session_with_customer: [] },
48424
+ { console_session_with_workspace: [] },
48425
+ ],
48426
+ summary: '/seam/customer/v1/connectors/delete',
48427
+ tags: [],
48428
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
48429
+ 'x-fern-sdk-method-name': 'delete',
48430
+ 'x-fern-sdk-return-value': 'connector',
48431
+ 'x-response-key': 'connector',
48432
+ 'x-title': 'Delete Connector',
48433
+ 'x-undocumented': 'Internal endpoint for Console.',
48434
+ },
48435
+ },
48373
48436
  '/seam/customer/v1/connectors/list': {
48374
48437
  get: {
48375
48438
  description: 'Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).',
@@ -48561,6 +48624,122 @@ export default {
48561
48624
  'x-undocumented': 'Only used internally.',
48562
48625
  },
48563
48626
  },
48627
+ '/seam/customer/v1/connectors/update': {
48628
+ post: {
48629
+ description: 'Updates an existing connector in a workspace. The connector must already be assigned to a workspace.\nThe connector will be reactivated with the new configuration.',
48630
+ operationId: 'seamCustomerV1ConnectorsUpdatePost',
48631
+ requestBody: {
48632
+ content: {
48633
+ 'application/json': {
48634
+ schema: {
48635
+ properties: {
48636
+ config: {
48637
+ description: 'Instance-specific configuration for the connector',
48638
+ oneOf: [
48639
+ {
48640
+ properties: {
48641
+ access_token: { minLength: 1, type: 'string' },
48642
+ client: {
48643
+ default: 'seam',
48644
+ minLength: 1,
48645
+ type: 'string',
48646
+ },
48647
+ client_token: { minLength: 1, type: 'string' },
48648
+ enterprise_id: { format: 'uuid', type: 'string' },
48649
+ enterprise_ids: {
48650
+ items: { format: 'uuid', type: 'string' },
48651
+ type: 'array',
48652
+ },
48653
+ },
48654
+ type: 'object',
48655
+ },
48656
+ { properties: {}, type: 'object' },
48657
+ ],
48658
+ },
48659
+ connector_id: {
48660
+ description: 'ID of the connector to update',
48661
+ minLength: 1,
48662
+ type: 'string',
48663
+ },
48664
+ customer_key: {
48665
+ description: 'Key identifying the customer',
48666
+ minLength: 1,
48667
+ type: 'string',
48668
+ },
48669
+ },
48670
+ required: ['connector_id', 'config'],
48671
+ type: 'object',
48672
+ },
48673
+ },
48674
+ },
48675
+ },
48676
+ responses: {
48677
+ 200: {
48678
+ content: {
48679
+ 'application/json': {
48680
+ schema: {
48681
+ properties: {
48682
+ connector: {
48683
+ properties: {
48684
+ connector_id: { type: 'string' },
48685
+ connector_type: { type: 'string' },
48686
+ error: { type: 'string' },
48687
+ status: {
48688
+ enum: ['active', 'inactive', 'error'],
48689
+ type: 'string',
48690
+ },
48691
+ webhook_subscription: {
48692
+ properties: {
48693
+ events: {
48694
+ items: { type: 'string' },
48695
+ type: 'array',
48696
+ },
48697
+ status: {
48698
+ enum: ['active', 'inactive', 'error'],
48699
+ type: 'string',
48700
+ },
48701
+ subscription_id: { type: 'string' },
48702
+ webhook_url: { type: 'string' },
48703
+ },
48704
+ required: [
48705
+ 'subscription_id',
48706
+ 'webhook_url',
48707
+ 'events',
48708
+ 'status',
48709
+ ],
48710
+ type: 'object',
48711
+ },
48712
+ },
48713
+ required: ['connector_id', 'connector_type', 'status'],
48714
+ type: 'object',
48715
+ },
48716
+ ok: { type: 'boolean' },
48717
+ },
48718
+ required: ['connector', 'ok'],
48719
+ type: 'object',
48720
+ },
48721
+ },
48722
+ },
48723
+ description: 'OK',
48724
+ },
48725
+ 400: { description: 'Bad Request' },
48726
+ 401: { description: 'Unauthorized' },
48727
+ },
48728
+ security: [
48729
+ { api_key: [] },
48730
+ { client_session_with_customer: [] },
48731
+ { console_session_with_workspace: [] },
48732
+ ],
48733
+ summary: '/seam/customer/v1/connectors/update',
48734
+ tags: [],
48735
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
48736
+ 'x-fern-sdk-method-name': 'update',
48737
+ 'x-fern-sdk-return-value': 'connector',
48738
+ 'x-response-key': 'connector',
48739
+ 'x-title': 'Update Connector',
48740
+ 'x-undocumented': 'Internal endpoint for Console.',
48741
+ },
48742
+ },
48564
48743
  '/seam/customer/v1/events/list': {
48565
48744
  get: {
48566
48745
  description: 'Returns a list of events for devices in a specific space. This endpoint is designed for customer portals and only supports filtering by space_id.',