@seamapi/types 1.664.0 → 1.665.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 +144 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +200 -1
- package/dist/index.cjs +144 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +171 -0
- package/lib/seam/connect/openapi.js +143 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +29 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +150 -1
- package/src/lib/seam/connect/route-types.ts +30 -1
|
@@ -43800,6 +43800,138 @@ declare const _default: {
|
|
|
43800
43800
|
'x-undocumented': string;
|
|
43801
43801
|
};
|
|
43802
43802
|
};
|
|
43803
|
+
'/seam/customer/v1/connectors/authorize': {
|
|
43804
|
+
get: {
|
|
43805
|
+
description: string;
|
|
43806
|
+
operationId: string;
|
|
43807
|
+
parameters: {
|
|
43808
|
+
in: string;
|
|
43809
|
+
name: string;
|
|
43810
|
+
required: boolean;
|
|
43811
|
+
schema: {
|
|
43812
|
+
description: string;
|
|
43813
|
+
minLength: number;
|
|
43814
|
+
type: string;
|
|
43815
|
+
};
|
|
43816
|
+
}[];
|
|
43817
|
+
responses: {
|
|
43818
|
+
200: {
|
|
43819
|
+
content: {
|
|
43820
|
+
'application/json': {
|
|
43821
|
+
schema: {
|
|
43822
|
+
properties: {
|
|
43823
|
+
connector_authorize: {
|
|
43824
|
+
properties: {
|
|
43825
|
+
authorize_url: {
|
|
43826
|
+
format: string;
|
|
43827
|
+
type: string;
|
|
43828
|
+
};
|
|
43829
|
+
connector_type: {
|
|
43830
|
+
type: string;
|
|
43831
|
+
};
|
|
43832
|
+
};
|
|
43833
|
+
required: string[];
|
|
43834
|
+
type: string;
|
|
43835
|
+
};
|
|
43836
|
+
ok: {
|
|
43837
|
+
type: string;
|
|
43838
|
+
};
|
|
43839
|
+
};
|
|
43840
|
+
required: string[];
|
|
43841
|
+
type: string;
|
|
43842
|
+
};
|
|
43843
|
+
};
|
|
43844
|
+
};
|
|
43845
|
+
description: string;
|
|
43846
|
+
};
|
|
43847
|
+
400: {
|
|
43848
|
+
description: string;
|
|
43849
|
+
};
|
|
43850
|
+
401: {
|
|
43851
|
+
description: string;
|
|
43852
|
+
};
|
|
43853
|
+
};
|
|
43854
|
+
summary: string;
|
|
43855
|
+
tags: never[];
|
|
43856
|
+
'x-fern-sdk-group-name': string[];
|
|
43857
|
+
'x-fern-sdk-method-name': string;
|
|
43858
|
+
'x-fern-sdk-return-value': string;
|
|
43859
|
+
'x-response-key': string;
|
|
43860
|
+
'x-title': string;
|
|
43861
|
+
'x-undocumented': string;
|
|
43862
|
+
};
|
|
43863
|
+
post: {
|
|
43864
|
+
description: string;
|
|
43865
|
+
operationId: string;
|
|
43866
|
+
requestBody: {
|
|
43867
|
+
content: {
|
|
43868
|
+
'application/json': {
|
|
43869
|
+
schema: {
|
|
43870
|
+
properties: {
|
|
43871
|
+
connector_name: {
|
|
43872
|
+
description: string;
|
|
43873
|
+
minLength: number;
|
|
43874
|
+
type: string;
|
|
43875
|
+
};
|
|
43876
|
+
workspace_slug: {
|
|
43877
|
+
description: string;
|
|
43878
|
+
minLength: number;
|
|
43879
|
+
type: string;
|
|
43880
|
+
};
|
|
43881
|
+
};
|
|
43882
|
+
required: string[];
|
|
43883
|
+
type: string;
|
|
43884
|
+
};
|
|
43885
|
+
};
|
|
43886
|
+
};
|
|
43887
|
+
};
|
|
43888
|
+
responses: {
|
|
43889
|
+
200: {
|
|
43890
|
+
content: {
|
|
43891
|
+
'application/json': {
|
|
43892
|
+
schema: {
|
|
43893
|
+
properties: {
|
|
43894
|
+
connector_authorize: {
|
|
43895
|
+
properties: {
|
|
43896
|
+
authorize_url: {
|
|
43897
|
+
format: string;
|
|
43898
|
+
type: string;
|
|
43899
|
+
};
|
|
43900
|
+
connector_type: {
|
|
43901
|
+
type: string;
|
|
43902
|
+
};
|
|
43903
|
+
};
|
|
43904
|
+
required: string[];
|
|
43905
|
+
type: string;
|
|
43906
|
+
};
|
|
43907
|
+
ok: {
|
|
43908
|
+
type: string;
|
|
43909
|
+
};
|
|
43910
|
+
};
|
|
43911
|
+
required: string[];
|
|
43912
|
+
type: string;
|
|
43913
|
+
};
|
|
43914
|
+
};
|
|
43915
|
+
};
|
|
43916
|
+
description: string;
|
|
43917
|
+
};
|
|
43918
|
+
400: {
|
|
43919
|
+
description: string;
|
|
43920
|
+
};
|
|
43921
|
+
401: {
|
|
43922
|
+
description: string;
|
|
43923
|
+
};
|
|
43924
|
+
};
|
|
43925
|
+
summary: string;
|
|
43926
|
+
tags: never[];
|
|
43927
|
+
'x-fern-sdk-group-name': string[];
|
|
43928
|
+
'x-fern-sdk-method-name': string;
|
|
43929
|
+
'x-fern-sdk-return-value': string;
|
|
43930
|
+
'x-response-key': string;
|
|
43931
|
+
'x-title': string;
|
|
43932
|
+
'x-undocumented': string;
|
|
43933
|
+
};
|
|
43934
|
+
};
|
|
43803
43935
|
'/seam/customer/v1/connectors/connector_types': {
|
|
43804
43936
|
get: {
|
|
43805
43937
|
description: string;
|
|
@@ -44446,10 +44578,12 @@ declare const _default: {
|
|
|
44446
44578
|
client_token?: never;
|
|
44447
44579
|
enterprise_id?: never;
|
|
44448
44580
|
enterprise_ids?: never;
|
|
44581
|
+
is_demo?: never;
|
|
44449
44582
|
auth_token?: never;
|
|
44450
44583
|
client_id?: never;
|
|
44451
44584
|
client_password?: never;
|
|
44452
44585
|
property_id?: never;
|
|
44586
|
+
refresh_token?: never;
|
|
44453
44587
|
};
|
|
44454
44588
|
type: string;
|
|
44455
44589
|
required?: never;
|
|
@@ -44458,6 +44592,7 @@ declare const _default: {
|
|
|
44458
44592
|
access_token: {
|
|
44459
44593
|
minLength: number;
|
|
44460
44594
|
type: string;
|
|
44595
|
+
description?: never;
|
|
44461
44596
|
};
|
|
44462
44597
|
client: {
|
|
44463
44598
|
default: string;
|
|
@@ -44477,10 +44612,15 @@ declare const _default: {
|
|
|
44477
44612
|
};
|
|
44478
44613
|
type: string;
|
|
44479
44614
|
};
|
|
44615
|
+
is_demo: {
|
|
44616
|
+
default: boolean;
|
|
44617
|
+
type: string;
|
|
44618
|
+
};
|
|
44480
44619
|
auth_token?: never;
|
|
44481
44620
|
client_id?: never;
|
|
44482
44621
|
client_password?: never;
|
|
44483
44622
|
property_id?: never;
|
|
44623
|
+
refresh_token?: never;
|
|
44484
44624
|
};
|
|
44485
44625
|
type: string;
|
|
44486
44626
|
required?: never;
|
|
@@ -44508,15 +44648,46 @@ declare const _default: {
|
|
|
44508
44648
|
format: string;
|
|
44509
44649
|
type: string;
|
|
44510
44650
|
})[];
|
|
44651
|
+
type?: never;
|
|
44511
44652
|
};
|
|
44512
44653
|
access_token?: never;
|
|
44513
44654
|
client?: never;
|
|
44514
44655
|
client_token?: never;
|
|
44515
44656
|
enterprise_id?: never;
|
|
44516
44657
|
enterprise_ids?: never;
|
|
44658
|
+
is_demo?: never;
|
|
44659
|
+
refresh_token?: never;
|
|
44517
44660
|
};
|
|
44518
44661
|
required: string[];
|
|
44519
44662
|
type: string;
|
|
44663
|
+
} | {
|
|
44664
|
+
properties: {
|
|
44665
|
+
access_token: {
|
|
44666
|
+
description: string;
|
|
44667
|
+
minLength: number;
|
|
44668
|
+
type: string;
|
|
44669
|
+
};
|
|
44670
|
+
property_id: {
|
|
44671
|
+
description: string;
|
|
44672
|
+
type: string;
|
|
44673
|
+
oneOf?: never;
|
|
44674
|
+
};
|
|
44675
|
+
refresh_token: {
|
|
44676
|
+
description: string;
|
|
44677
|
+
minLength: number;
|
|
44678
|
+
type: string;
|
|
44679
|
+
};
|
|
44680
|
+
client?: never;
|
|
44681
|
+
client_token?: never;
|
|
44682
|
+
enterprise_id?: never;
|
|
44683
|
+
enterprise_ids?: never;
|
|
44684
|
+
is_demo?: never;
|
|
44685
|
+
auth_token?: never;
|
|
44686
|
+
client_id?: never;
|
|
44687
|
+
client_password?: never;
|
|
44688
|
+
};
|
|
44689
|
+
type: string;
|
|
44690
|
+
required?: never;
|
|
44520
44691
|
})[];
|
|
44521
44692
|
};
|
|
44522
44693
|
connector_id: {
|
|
@@ -48626,6 +48626,128 @@ export default {
|
|
|
48626
48626
|
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
48627
48627
|
},
|
|
48628
48628
|
},
|
|
48629
|
+
'/seam/customer/v1/connectors/authorize': {
|
|
48630
|
+
get: {
|
|
48631
|
+
description: 'Returns the OAuth authorization URL for a global connector.\nThis endpoint only works for global connectors (connectors that support multiple customers).',
|
|
48632
|
+
operationId: 'seamCustomerV1ConnectorsAuthorizeGet',
|
|
48633
|
+
parameters: [
|
|
48634
|
+
{
|
|
48635
|
+
in: 'query',
|
|
48636
|
+
name: 'workspace_slug',
|
|
48637
|
+
required: true,
|
|
48638
|
+
schema: {
|
|
48639
|
+
description: 'Workspace slug',
|
|
48640
|
+
minLength: 1,
|
|
48641
|
+
type: 'string',
|
|
48642
|
+
},
|
|
48643
|
+
},
|
|
48644
|
+
{
|
|
48645
|
+
in: 'query',
|
|
48646
|
+
name: 'connector_name',
|
|
48647
|
+
required: false,
|
|
48648
|
+
schema: {
|
|
48649
|
+
description: 'Connector name/type. If not provided, workspace_slug will be used as connector_name',
|
|
48650
|
+
minLength: 1,
|
|
48651
|
+
type: 'string',
|
|
48652
|
+
},
|
|
48653
|
+
},
|
|
48654
|
+
],
|
|
48655
|
+
responses: {
|
|
48656
|
+
200: {
|
|
48657
|
+
content: {
|
|
48658
|
+
'application/json': {
|
|
48659
|
+
schema: {
|
|
48660
|
+
properties: {
|
|
48661
|
+
connector_authorize: {
|
|
48662
|
+
properties: {
|
|
48663
|
+
authorize_url: { format: 'uri', type: 'string' },
|
|
48664
|
+
connector_type: { type: 'string' },
|
|
48665
|
+
},
|
|
48666
|
+
required: ['authorize_url', 'connector_type'],
|
|
48667
|
+
type: 'object',
|
|
48668
|
+
},
|
|
48669
|
+
ok: { type: 'boolean' },
|
|
48670
|
+
},
|
|
48671
|
+
required: ['connector_authorize', 'ok'],
|
|
48672
|
+
type: 'object',
|
|
48673
|
+
},
|
|
48674
|
+
},
|
|
48675
|
+
},
|
|
48676
|
+
description: 'OK',
|
|
48677
|
+
},
|
|
48678
|
+
400: { description: 'Bad Request' },
|
|
48679
|
+
401: { description: 'Unauthorized' },
|
|
48680
|
+
},
|
|
48681
|
+
summary: '/seam/customer/v1/connectors/authorize',
|
|
48682
|
+
tags: [],
|
|
48683
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
48684
|
+
'x-fern-sdk-method-name': 'authorize',
|
|
48685
|
+
'x-fern-sdk-return-value': 'connector_authorize',
|
|
48686
|
+
'x-response-key': 'connector_authorize',
|
|
48687
|
+
'x-title': 'Get OAuth Authorization URL for Global Connector',
|
|
48688
|
+
'x-undocumented': 'Internal endpoint for OAuth authorization.',
|
|
48689
|
+
},
|
|
48690
|
+
post: {
|
|
48691
|
+
description: 'Returns the OAuth authorization URL for a global connector.\nThis endpoint only works for global connectors (connectors that support multiple customers).',
|
|
48692
|
+
operationId: 'seamCustomerV1ConnectorsAuthorizePost',
|
|
48693
|
+
requestBody: {
|
|
48694
|
+
content: {
|
|
48695
|
+
'application/json': {
|
|
48696
|
+
schema: {
|
|
48697
|
+
properties: {
|
|
48698
|
+
connector_name: {
|
|
48699
|
+
description: 'Connector name/type. If not provided, workspace_slug will be used as connector_name',
|
|
48700
|
+
minLength: 1,
|
|
48701
|
+
type: 'string',
|
|
48702
|
+
},
|
|
48703
|
+
workspace_slug: {
|
|
48704
|
+
description: 'Workspace slug',
|
|
48705
|
+
minLength: 1,
|
|
48706
|
+
type: 'string',
|
|
48707
|
+
},
|
|
48708
|
+
},
|
|
48709
|
+
required: ['workspace_slug'],
|
|
48710
|
+
type: 'object',
|
|
48711
|
+
},
|
|
48712
|
+
},
|
|
48713
|
+
},
|
|
48714
|
+
},
|
|
48715
|
+
responses: {
|
|
48716
|
+
200: {
|
|
48717
|
+
content: {
|
|
48718
|
+
'application/json': {
|
|
48719
|
+
schema: {
|
|
48720
|
+
properties: {
|
|
48721
|
+
connector_authorize: {
|
|
48722
|
+
properties: {
|
|
48723
|
+
authorize_url: { format: 'uri', type: 'string' },
|
|
48724
|
+
connector_type: { type: 'string' },
|
|
48725
|
+
},
|
|
48726
|
+
required: ['authorize_url', 'connector_type'],
|
|
48727
|
+
type: 'object',
|
|
48728
|
+
},
|
|
48729
|
+
ok: { type: 'boolean' },
|
|
48730
|
+
},
|
|
48731
|
+
required: ['connector_authorize', 'ok'],
|
|
48732
|
+
type: 'object',
|
|
48733
|
+
},
|
|
48734
|
+
},
|
|
48735
|
+
},
|
|
48736
|
+
description: 'OK',
|
|
48737
|
+
},
|
|
48738
|
+
400: { description: 'Bad Request' },
|
|
48739
|
+
401: { description: 'Unauthorized' },
|
|
48740
|
+
},
|
|
48741
|
+
summary: '/seam/customer/v1/connectors/authorize',
|
|
48742
|
+
tags: [],
|
|
48743
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
48744
|
+
'x-fern-sdk-method-name': 'authorize',
|
|
48745
|
+
'x-fern-sdk-return-value': 'connector_authorize',
|
|
48746
|
+
'x-response-key': 'connector_authorize',
|
|
48747
|
+
'x-title': 'Get OAuth Authorization URL for Global Connector',
|
|
48748
|
+
'x-undocumented': 'Internal endpoint for OAuth authorization.',
|
|
48749
|
+
},
|
|
48750
|
+
},
|
|
48629
48751
|
'/seam/customer/v1/connectors/connector_types': {
|
|
48630
48752
|
get: {
|
|
48631
48753
|
description: 'Lists all available connector types and their editable fields for UI input.',
|
|
@@ -48802,7 +48924,7 @@ export default {
|
|
|
48802
48924
|
},
|
|
48803
48925
|
connector_type: {
|
|
48804
48926
|
description: 'Type of connector to create',
|
|
48805
|
-
enum: ['mock', 'mews', 'rms'],
|
|
48927
|
+
enum: ['mock', 'mews', 'rms', 'cloudbeds'],
|
|
48806
48928
|
type: 'string',
|
|
48807
48929
|
},
|
|
48808
48930
|
customer_key: {
|
|
@@ -49165,6 +49287,7 @@ export default {
|
|
|
49165
49287
|
items: { type: 'string' },
|
|
49166
49288
|
type: 'array',
|
|
49167
49289
|
},
|
|
49290
|
+
is_demo: { default: true, type: 'boolean' },
|
|
49168
49291
|
},
|
|
49169
49292
|
type: 'object',
|
|
49170
49293
|
},
|
|
@@ -49192,6 +49315,25 @@ export default {
|
|
|
49192
49315
|
required: ['client_id', 'client_password'],
|
|
49193
49316
|
type: 'object',
|
|
49194
49317
|
},
|
|
49318
|
+
{
|
|
49319
|
+
properties: {
|
|
49320
|
+
access_token: {
|
|
49321
|
+
description: 'OAuth2 access token for authentication',
|
|
49322
|
+
minLength: 1,
|
|
49323
|
+
type: 'string',
|
|
49324
|
+
},
|
|
49325
|
+
property_id: {
|
|
49326
|
+
description: 'Optional property ID for single-property connectors',
|
|
49327
|
+
type: 'string',
|
|
49328
|
+
},
|
|
49329
|
+
refresh_token: {
|
|
49330
|
+
description: 'OAuth2 refresh token for token refresh',
|
|
49331
|
+
minLength: 1,
|
|
49332
|
+
type: 'string',
|
|
49333
|
+
},
|
|
49334
|
+
},
|
|
49335
|
+
type: 'object',
|
|
49336
|
+
},
|
|
49195
49337
|
],
|
|
49196
49338
|
},
|
|
49197
49339
|
connector_id: {
|