@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.
@@ -95388,6 +95388,90 @@ declare const _default: {
95388
95388
  'x-undocumented': string;
95389
95389
  };
95390
95390
  };
95391
+ '/seam/customer/v1/connectors/delete': {
95392
+ post: {
95393
+ description: string;
95394
+ operationId: string;
95395
+ requestBody: {
95396
+ content: {
95397
+ 'application/json': {
95398
+ schema: {
95399
+ properties: {
95400
+ connector_id: {
95401
+ description: string;
95402
+ minLength: number;
95403
+ type: string;
95404
+ };
95405
+ };
95406
+ required: string[];
95407
+ type: string;
95408
+ };
95409
+ };
95410
+ };
95411
+ };
95412
+ responses: {
95413
+ 200: {
95414
+ content: {
95415
+ 'application/json': {
95416
+ schema: {
95417
+ properties: {
95418
+ connector: {
95419
+ properties: {
95420
+ connector_id: {
95421
+ type: string;
95422
+ };
95423
+ connector_type: {
95424
+ type: string;
95425
+ };
95426
+ status: {
95427
+ enum: string[];
95428
+ type: string;
95429
+ };
95430
+ };
95431
+ required: string[];
95432
+ type: string;
95433
+ };
95434
+ ok: {
95435
+ type: string;
95436
+ };
95437
+ };
95438
+ required: string[];
95439
+ type: string;
95440
+ };
95441
+ };
95442
+ };
95443
+ description: string;
95444
+ };
95445
+ 400: {
95446
+ description: string;
95447
+ };
95448
+ 401: {
95449
+ description: string;
95450
+ };
95451
+ };
95452
+ security: ({
95453
+ api_key: never[];
95454
+ client_session_with_customer?: never;
95455
+ console_session_with_workspace?: never;
95456
+ } | {
95457
+ client_session_with_customer: never[];
95458
+ api_key?: never;
95459
+ console_session_with_workspace?: never;
95460
+ } | {
95461
+ console_session_with_workspace: never[];
95462
+ api_key?: never;
95463
+ client_session_with_customer?: never;
95464
+ })[];
95465
+ summary: string;
95466
+ tags: never[];
95467
+ 'x-fern-sdk-group-name': string[];
95468
+ 'x-fern-sdk-method-name': string;
95469
+ 'x-fern-sdk-return-value': string;
95470
+ 'x-response-key': string;
95471
+ 'x-title': string;
95472
+ 'x-undocumented': string;
95473
+ };
95474
+ };
95391
95475
  '/seam/customer/v1/connectors/list': {
95392
95476
  get: {
95393
95477
  description: string;
@@ -95623,6 +95707,161 @@ declare const _default: {
95623
95707
  'x-undocumented': string;
95624
95708
  };
95625
95709
  };
95710
+ '/seam/customer/v1/connectors/update': {
95711
+ post: {
95712
+ description: string;
95713
+ operationId: string;
95714
+ requestBody: {
95715
+ content: {
95716
+ 'application/json': {
95717
+ schema: {
95718
+ properties: {
95719
+ config: {
95720
+ description: string;
95721
+ oneOf: ({
95722
+ properties: {
95723
+ access_token: {
95724
+ minLength: number;
95725
+ type: string;
95726
+ };
95727
+ client: {
95728
+ default: string;
95729
+ minLength: number;
95730
+ type: string;
95731
+ };
95732
+ client_token: {
95733
+ minLength: number;
95734
+ type: string;
95735
+ };
95736
+ enterprise_id: {
95737
+ format: string;
95738
+ type: string;
95739
+ };
95740
+ enterprise_ids: {
95741
+ items: {
95742
+ format: string;
95743
+ type: string;
95744
+ };
95745
+ type: string;
95746
+ };
95747
+ };
95748
+ type: string;
95749
+ } | {
95750
+ properties: {
95751
+ access_token?: never;
95752
+ client?: never;
95753
+ client_token?: never;
95754
+ enterprise_id?: never;
95755
+ enterprise_ids?: never;
95756
+ };
95757
+ type: string;
95758
+ })[];
95759
+ };
95760
+ connector_id: {
95761
+ description: string;
95762
+ minLength: number;
95763
+ type: string;
95764
+ };
95765
+ customer_key: {
95766
+ description: string;
95767
+ minLength: number;
95768
+ type: string;
95769
+ };
95770
+ };
95771
+ required: string[];
95772
+ type: string;
95773
+ };
95774
+ };
95775
+ };
95776
+ };
95777
+ responses: {
95778
+ 200: {
95779
+ content: {
95780
+ 'application/json': {
95781
+ schema: {
95782
+ properties: {
95783
+ connector: {
95784
+ properties: {
95785
+ connector_id: {
95786
+ type: string;
95787
+ };
95788
+ connector_type: {
95789
+ type: string;
95790
+ };
95791
+ error: {
95792
+ type: string;
95793
+ };
95794
+ status: {
95795
+ enum: string[];
95796
+ type: string;
95797
+ };
95798
+ webhook_subscription: {
95799
+ properties: {
95800
+ events: {
95801
+ items: {
95802
+ type: string;
95803
+ };
95804
+ type: string;
95805
+ };
95806
+ status: {
95807
+ enum: string[];
95808
+ type: string;
95809
+ };
95810
+ subscription_id: {
95811
+ type: string;
95812
+ };
95813
+ webhook_url: {
95814
+ type: string;
95815
+ };
95816
+ };
95817
+ required: string[];
95818
+ type: string;
95819
+ };
95820
+ };
95821
+ required: string[];
95822
+ type: string;
95823
+ };
95824
+ ok: {
95825
+ type: string;
95826
+ };
95827
+ };
95828
+ required: string[];
95829
+ type: string;
95830
+ };
95831
+ };
95832
+ };
95833
+ description: string;
95834
+ };
95835
+ 400: {
95836
+ description: string;
95837
+ };
95838
+ 401: {
95839
+ description: string;
95840
+ };
95841
+ };
95842
+ security: ({
95843
+ api_key: never[];
95844
+ client_session_with_customer?: never;
95845
+ console_session_with_workspace?: never;
95846
+ } | {
95847
+ client_session_with_customer: never[];
95848
+ api_key?: never;
95849
+ console_session_with_workspace?: never;
95850
+ } | {
95851
+ console_session_with_workspace: never[];
95852
+ api_key?: never;
95853
+ client_session_with_customer?: never;
95854
+ })[];
95855
+ summary: string;
95856
+ tags: never[];
95857
+ 'x-fern-sdk-group-name': string[];
95858
+ 'x-fern-sdk-method-name': string;
95859
+ 'x-fern-sdk-return-value': string;
95860
+ 'x-response-key': string;
95861
+ 'x-title': string;
95862
+ 'x-undocumented': string;
95863
+ };
95864
+ };
95626
95865
  '/seam/customer/v1/events/list': {
95627
95866
  get: {
95628
95867
  description: string;
@@ -167895,6 +168134,24 @@ type Routes = {
167895
168134
  };
167896
168135
  };
167897
168136
  };
168137
+ '/seam/customer/v1/connectors/delete': {
168138
+ route: '/seam/customer/v1/connectors/delete';
168139
+ method: 'POST';
168140
+ queryParams: {};
168141
+ jsonBody: {
168142
+ /** ID of the connector to delete */
168143
+ connector_id: string;
168144
+ };
168145
+ commonParams: {};
168146
+ formData: {};
168147
+ jsonResponse: {
168148
+ connector: {
168149
+ connector_id: string;
168150
+ connector_type: string;
168151
+ status: 'deleted';
168152
+ };
168153
+ };
168154
+ };
167898
168155
  '/seam/customer/v1/connectors/list': {
167899
168156
  route: '/seam/customer/v1/connectors/list';
167900
168157
  method: 'GET' | 'POST';
@@ -167933,6 +168190,41 @@ type Routes = {
167933
168190
  };
167934
168191
  };
167935
168192
  };
168193
+ '/seam/customer/v1/connectors/update': {
168194
+ route: '/seam/customer/v1/connectors/update';
168195
+ method: 'POST';
168196
+ queryParams: {};
168197
+ jsonBody: {
168198
+ /** ID of the connector to update */
168199
+ connector_id: string;
168200
+ /** Key identifying the customer */
168201
+ customer_key?: string | undefined;
168202
+ /** Instance-specific configuration for the connector */
168203
+ config: {
168204
+ client_token?: string | undefined;
168205
+ access_token?: string | undefined;
168206
+ client?: string;
168207
+ enterprise_ids?: string[] | undefined;
168208
+ enterprise_id?: string | undefined;
168209
+ } | {};
168210
+ };
168211
+ commonParams: {};
168212
+ formData: {};
168213
+ jsonResponse: {
168214
+ connector: {
168215
+ connector_id: string;
168216
+ connector_type: string;
168217
+ status: 'active' | 'inactive' | 'error';
168218
+ webhook_subscription?: {
168219
+ subscription_id: string;
168220
+ webhook_url: string;
168221
+ events: string[];
168222
+ status: 'active' | 'inactive' | 'error';
168223
+ } | undefined;
168224
+ error?: string | undefined;
168225
+ };
168226
+ };
168227
+ };
167936
168228
  '/seam/customer/v1/events/list': {
167937
168229
  route: '/seam/customer/v1/events/list';
167938
168230
  method: 'GET' | 'POST';
package/dist/index.cjs CHANGED
@@ -54247,6 +54247,69 @@ var openapi_default = {
54247
54247
  "x-undocumented": "Internal endpoint for Console."
54248
54248
  }
54249
54249
  },
54250
+ "/seam/customer/v1/connectors/delete": {
54251
+ post: {
54252
+ 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.",
54253
+ operationId: "seamCustomerV1ConnectorsDeletePost",
54254
+ requestBody: {
54255
+ content: {
54256
+ "application/json": {
54257
+ schema: {
54258
+ properties: {
54259
+ connector_id: {
54260
+ description: "ID of the connector to delete",
54261
+ minLength: 1,
54262
+ type: "string"
54263
+ }
54264
+ },
54265
+ required: ["connector_id"],
54266
+ type: "object"
54267
+ }
54268
+ }
54269
+ }
54270
+ },
54271
+ responses: {
54272
+ 200: {
54273
+ content: {
54274
+ "application/json": {
54275
+ schema: {
54276
+ properties: {
54277
+ connector: {
54278
+ properties: {
54279
+ connector_id: { type: "string" },
54280
+ connector_type: { type: "string" },
54281
+ status: { enum: ["deleted"], type: "string" }
54282
+ },
54283
+ required: ["connector_id", "connector_type", "status"],
54284
+ type: "object"
54285
+ },
54286
+ ok: { type: "boolean" }
54287
+ },
54288
+ required: ["connector", "ok"],
54289
+ type: "object"
54290
+ }
54291
+ }
54292
+ },
54293
+ description: "OK"
54294
+ },
54295
+ 400: { description: "Bad Request" },
54296
+ 401: { description: "Unauthorized" }
54297
+ },
54298
+ security: [
54299
+ { api_key: [] },
54300
+ { client_session_with_customer: [] },
54301
+ { console_session_with_workspace: [] }
54302
+ ],
54303
+ summary: "/seam/customer/v1/connectors/delete",
54304
+ tags: [],
54305
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
54306
+ "x-fern-sdk-method-name": "delete",
54307
+ "x-fern-sdk-return-value": "connector",
54308
+ "x-response-key": "connector",
54309
+ "x-title": "Delete Connector",
54310
+ "x-undocumented": "Internal endpoint for Console."
54311
+ }
54312
+ },
54250
54313
  "/seam/customer/v1/connectors/list": {
54251
54314
  get: {
54252
54315
  description: "Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).",
@@ -54438,6 +54501,122 @@ var openapi_default = {
54438
54501
  "x-undocumented": "Only used internally."
54439
54502
  }
54440
54503
  },
54504
+ "/seam/customer/v1/connectors/update": {
54505
+ post: {
54506
+ 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.",
54507
+ operationId: "seamCustomerV1ConnectorsUpdatePost",
54508
+ requestBody: {
54509
+ content: {
54510
+ "application/json": {
54511
+ schema: {
54512
+ properties: {
54513
+ config: {
54514
+ description: "Instance-specific configuration for the connector",
54515
+ oneOf: [
54516
+ {
54517
+ properties: {
54518
+ access_token: { minLength: 1, type: "string" },
54519
+ client: {
54520
+ default: "seam",
54521
+ minLength: 1,
54522
+ type: "string"
54523
+ },
54524
+ client_token: { minLength: 1, type: "string" },
54525
+ enterprise_id: { format: "uuid", type: "string" },
54526
+ enterprise_ids: {
54527
+ items: { format: "uuid", type: "string" },
54528
+ type: "array"
54529
+ }
54530
+ },
54531
+ type: "object"
54532
+ },
54533
+ { properties: {}, type: "object" }
54534
+ ]
54535
+ },
54536
+ connector_id: {
54537
+ description: "ID of the connector to update",
54538
+ minLength: 1,
54539
+ type: "string"
54540
+ },
54541
+ customer_key: {
54542
+ description: "Key identifying the customer",
54543
+ minLength: 1,
54544
+ type: "string"
54545
+ }
54546
+ },
54547
+ required: ["connector_id", "config"],
54548
+ type: "object"
54549
+ }
54550
+ }
54551
+ }
54552
+ },
54553
+ responses: {
54554
+ 200: {
54555
+ content: {
54556
+ "application/json": {
54557
+ schema: {
54558
+ properties: {
54559
+ connector: {
54560
+ properties: {
54561
+ connector_id: { type: "string" },
54562
+ connector_type: { type: "string" },
54563
+ error: { type: "string" },
54564
+ status: {
54565
+ enum: ["active", "inactive", "error"],
54566
+ type: "string"
54567
+ },
54568
+ webhook_subscription: {
54569
+ properties: {
54570
+ events: {
54571
+ items: { type: "string" },
54572
+ type: "array"
54573
+ },
54574
+ status: {
54575
+ enum: ["active", "inactive", "error"],
54576
+ type: "string"
54577
+ },
54578
+ subscription_id: { type: "string" },
54579
+ webhook_url: { type: "string" }
54580
+ },
54581
+ required: [
54582
+ "subscription_id",
54583
+ "webhook_url",
54584
+ "events",
54585
+ "status"
54586
+ ],
54587
+ type: "object"
54588
+ }
54589
+ },
54590
+ required: ["connector_id", "connector_type", "status"],
54591
+ type: "object"
54592
+ },
54593
+ ok: { type: "boolean" }
54594
+ },
54595
+ required: ["connector", "ok"],
54596
+ type: "object"
54597
+ }
54598
+ }
54599
+ },
54600
+ description: "OK"
54601
+ },
54602
+ 400: { description: "Bad Request" },
54603
+ 401: { description: "Unauthorized" }
54604
+ },
54605
+ security: [
54606
+ { api_key: [] },
54607
+ { client_session_with_customer: [] },
54608
+ { console_session_with_workspace: [] }
54609
+ ],
54610
+ summary: "/seam/customer/v1/connectors/update",
54611
+ tags: [],
54612
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
54613
+ "x-fern-sdk-method-name": "update",
54614
+ "x-fern-sdk-return-value": "connector",
54615
+ "x-response-key": "connector",
54616
+ "x-title": "Update Connector",
54617
+ "x-undocumented": "Internal endpoint for Console."
54618
+ }
54619
+ },
54441
54620
  "/seam/customer/v1/events/list": {
54442
54621
  get: {
54443
54622
  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.",