@seamapi/types 1.628.0 → 1.630.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/connect.cjs +180 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +298 -2
- package/dist/index.cjs +180 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +245 -2
- package/lib/seam/connect/openapi.js +180 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +53 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +183 -1
- package/src/lib/seam/connect/route-types.ts +57 -0
|
@@ -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;
|
|
@@ -43709,9 +43793,168 @@ declare const _default: {
|
|
|
43709
43793
|
description: string;
|
|
43710
43794
|
};
|
|
43711
43795
|
};
|
|
43712
|
-
security: {
|
|
43796
|
+
security: ({
|
|
43713
43797
|
api_key: never[];
|
|
43714
|
-
|
|
43798
|
+
console_session_with_workspace?: never;
|
|
43799
|
+
} | {
|
|
43800
|
+
console_session_with_workspace: never[];
|
|
43801
|
+
api_key?: never;
|
|
43802
|
+
})[];
|
|
43803
|
+
summary: string;
|
|
43804
|
+
tags: never[];
|
|
43805
|
+
'x-fern-sdk-group-name': string[];
|
|
43806
|
+
'x-fern-sdk-method-name': string;
|
|
43807
|
+
'x-fern-sdk-return-value': string;
|
|
43808
|
+
'x-response-key': string;
|
|
43809
|
+
'x-title': string;
|
|
43810
|
+
'x-undocumented': string;
|
|
43811
|
+
};
|
|
43812
|
+
};
|
|
43813
|
+
'/seam/customer/v1/connectors/update': {
|
|
43814
|
+
post: {
|
|
43815
|
+
description: string;
|
|
43816
|
+
operationId: string;
|
|
43817
|
+
requestBody: {
|
|
43818
|
+
content: {
|
|
43819
|
+
'application/json': {
|
|
43820
|
+
schema: {
|
|
43821
|
+
properties: {
|
|
43822
|
+
config: {
|
|
43823
|
+
description: string;
|
|
43824
|
+
oneOf: ({
|
|
43825
|
+
properties: {
|
|
43826
|
+
access_token: {
|
|
43827
|
+
minLength: number;
|
|
43828
|
+
type: string;
|
|
43829
|
+
};
|
|
43830
|
+
client: {
|
|
43831
|
+
default: string;
|
|
43832
|
+
minLength: number;
|
|
43833
|
+
type: string;
|
|
43834
|
+
};
|
|
43835
|
+
client_token: {
|
|
43836
|
+
minLength: number;
|
|
43837
|
+
type: string;
|
|
43838
|
+
};
|
|
43839
|
+
enterprise_id: {
|
|
43840
|
+
format: string;
|
|
43841
|
+
type: string;
|
|
43842
|
+
};
|
|
43843
|
+
enterprise_ids: {
|
|
43844
|
+
items: {
|
|
43845
|
+
format: string;
|
|
43846
|
+
type: string;
|
|
43847
|
+
};
|
|
43848
|
+
type: string;
|
|
43849
|
+
};
|
|
43850
|
+
};
|
|
43851
|
+
type: string;
|
|
43852
|
+
} | {
|
|
43853
|
+
properties: {
|
|
43854
|
+
access_token?: never;
|
|
43855
|
+
client?: never;
|
|
43856
|
+
client_token?: never;
|
|
43857
|
+
enterprise_id?: never;
|
|
43858
|
+
enterprise_ids?: never;
|
|
43859
|
+
};
|
|
43860
|
+
type: string;
|
|
43861
|
+
})[];
|
|
43862
|
+
};
|
|
43863
|
+
connector_id: {
|
|
43864
|
+
description: string;
|
|
43865
|
+
minLength: number;
|
|
43866
|
+
type: string;
|
|
43867
|
+
};
|
|
43868
|
+
customer_key: {
|
|
43869
|
+
description: string;
|
|
43870
|
+
minLength: number;
|
|
43871
|
+
type: string;
|
|
43872
|
+
};
|
|
43873
|
+
};
|
|
43874
|
+
required: string[];
|
|
43875
|
+
type: string;
|
|
43876
|
+
};
|
|
43877
|
+
};
|
|
43878
|
+
};
|
|
43879
|
+
};
|
|
43880
|
+
responses: {
|
|
43881
|
+
200: {
|
|
43882
|
+
content: {
|
|
43883
|
+
'application/json': {
|
|
43884
|
+
schema: {
|
|
43885
|
+
properties: {
|
|
43886
|
+
connector: {
|
|
43887
|
+
properties: {
|
|
43888
|
+
connector_id: {
|
|
43889
|
+
type: string;
|
|
43890
|
+
};
|
|
43891
|
+
connector_type: {
|
|
43892
|
+
type: string;
|
|
43893
|
+
};
|
|
43894
|
+
error: {
|
|
43895
|
+
type: string;
|
|
43896
|
+
};
|
|
43897
|
+
status: {
|
|
43898
|
+
enum: string[];
|
|
43899
|
+
type: string;
|
|
43900
|
+
};
|
|
43901
|
+
webhook_subscription: {
|
|
43902
|
+
properties: {
|
|
43903
|
+
events: {
|
|
43904
|
+
items: {
|
|
43905
|
+
type: string;
|
|
43906
|
+
};
|
|
43907
|
+
type: string;
|
|
43908
|
+
};
|
|
43909
|
+
status: {
|
|
43910
|
+
enum: string[];
|
|
43911
|
+
type: string;
|
|
43912
|
+
};
|
|
43913
|
+
subscription_id: {
|
|
43914
|
+
type: string;
|
|
43915
|
+
};
|
|
43916
|
+
webhook_url: {
|
|
43917
|
+
type: string;
|
|
43918
|
+
};
|
|
43919
|
+
};
|
|
43920
|
+
required: string[];
|
|
43921
|
+
type: string;
|
|
43922
|
+
};
|
|
43923
|
+
};
|
|
43924
|
+
required: string[];
|
|
43925
|
+
type: string;
|
|
43926
|
+
};
|
|
43927
|
+
ok: {
|
|
43928
|
+
type: string;
|
|
43929
|
+
};
|
|
43930
|
+
};
|
|
43931
|
+
required: string[];
|
|
43932
|
+
type: string;
|
|
43933
|
+
};
|
|
43934
|
+
};
|
|
43935
|
+
};
|
|
43936
|
+
description: string;
|
|
43937
|
+
};
|
|
43938
|
+
400: {
|
|
43939
|
+
description: string;
|
|
43940
|
+
};
|
|
43941
|
+
401: {
|
|
43942
|
+
description: string;
|
|
43943
|
+
};
|
|
43944
|
+
};
|
|
43945
|
+
security: ({
|
|
43946
|
+
api_key: never[];
|
|
43947
|
+
client_session_with_customer?: never;
|
|
43948
|
+
console_session_with_workspace?: never;
|
|
43949
|
+
} | {
|
|
43950
|
+
client_session_with_customer: never[];
|
|
43951
|
+
api_key?: never;
|
|
43952
|
+
console_session_with_workspace?: never;
|
|
43953
|
+
} | {
|
|
43954
|
+
console_session_with_workspace: never[];
|
|
43955
|
+
api_key?: never;
|
|
43956
|
+
client_session_with_customer?: never;
|
|
43957
|
+
})[];
|
|
43715
43958
|
summary: string;
|
|
43716
43959
|
tags: never[];
|
|
43717
43960
|
'x-fern-sdk-group-name': 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).',
|
|
@@ -48550,7 +48613,7 @@ export default {
|
|
|
48550
48613
|
400: { description: 'Bad Request' },
|
|
48551
48614
|
401: { description: 'Unauthorized' },
|
|
48552
48615
|
},
|
|
48553
|
-
security: [{ api_key: [] }],
|
|
48616
|
+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
|
|
48554
48617
|
summary: '/seam/customer/v1/connectors/sync',
|
|
48555
48618
|
tags: [],
|
|
48556
48619
|
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
@@ -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.',
|