@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
|
@@ -52176,6 +52176,26 @@ export type Routes = {
|
|
|
52176
52176
|
jsonResponse: {};
|
|
52177
52177
|
maxDuration: undefined;
|
|
52178
52178
|
};
|
|
52179
|
+
'/seam/customer/v1/connectors/authorize': {
|
|
52180
|
+
route: '/seam/customer/v1/connectors/authorize';
|
|
52181
|
+
method: 'GET' | 'POST';
|
|
52182
|
+
queryParams: {};
|
|
52183
|
+
jsonBody: {};
|
|
52184
|
+
commonParams: {
|
|
52185
|
+
/** Workspace slug */
|
|
52186
|
+
workspace_slug: string;
|
|
52187
|
+
/** Connector name/type. If not provided, workspace_slug will be used as connector_name */
|
|
52188
|
+
connector_name?: string | undefined;
|
|
52189
|
+
};
|
|
52190
|
+
formData: {};
|
|
52191
|
+
jsonResponse: {
|
|
52192
|
+
connector_authorize: {
|
|
52193
|
+
authorize_url: string;
|
|
52194
|
+
connector_type: string;
|
|
52195
|
+
};
|
|
52196
|
+
};
|
|
52197
|
+
maxDuration: undefined;
|
|
52198
|
+
};
|
|
52179
52199
|
'/seam/customer/v1/connectors/connector_types': {
|
|
52180
52200
|
route: '/seam/customer/v1/connectors/connector_types';
|
|
52181
52201
|
method: 'GET' | 'POST';
|
|
@@ -52205,7 +52225,7 @@ export type Routes = {
|
|
|
52205
52225
|
queryParams: {};
|
|
52206
52226
|
jsonBody: {
|
|
52207
52227
|
/** Type of connector to create */
|
|
52208
|
-
connector_type: 'mock' | 'mews' | 'rms';
|
|
52228
|
+
connector_type: 'mock' | 'mews' | 'rms' | 'cloudbeds';
|
|
52209
52229
|
/** Key identifying the customer */
|
|
52210
52230
|
customer_key?: string | undefined;
|
|
52211
52231
|
/** Instance-specific configuration for the connector */
|
|
@@ -52304,6 +52324,7 @@ export type Routes = {
|
|
|
52304
52324
|
client_token?: string | undefined;
|
|
52305
52325
|
access_token?: string | undefined;
|
|
52306
52326
|
client?: string;
|
|
52327
|
+
is_demo?: boolean;
|
|
52307
52328
|
enterprise_ids?: string[] | undefined;
|
|
52308
52329
|
enterprise_id?: string | undefined;
|
|
52309
52330
|
} | {
|
|
@@ -52314,6 +52335,13 @@ export type Routes = {
|
|
|
52314
52335
|
/** Optional property ID for single-property connectors */
|
|
52315
52336
|
property_id?: (string | number) | undefined;
|
|
52316
52337
|
auth_token?: string | undefined;
|
|
52338
|
+
} | {
|
|
52339
|
+
/** OAuth2 access token for authentication */
|
|
52340
|
+
access_token?: string | undefined;
|
|
52341
|
+
/** OAuth2 refresh token for token refresh */
|
|
52342
|
+
refresh_token?: string | undefined;
|
|
52343
|
+
/** Optional property ID for single-property connectors */
|
|
52344
|
+
property_id?: string | undefined;
|
|
52317
52345
|
};
|
|
52318
52346
|
};
|
|
52319
52347
|
commonParams: {};
|
package/package.json
CHANGED
|
@@ -52833,6 +52833,132 @@ export default {
|
|
|
52833
52833
|
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
52834
52834
|
},
|
|
52835
52835
|
},
|
|
52836
|
+
'/seam/customer/v1/connectors/authorize': {
|
|
52837
|
+
get: {
|
|
52838
|
+
description:
|
|
52839
|
+
'Returns the OAuth authorization URL for a global connector.\nThis endpoint only works for global connectors (connectors that support multiple customers).',
|
|
52840
|
+
operationId: 'seamCustomerV1ConnectorsAuthorizeGet',
|
|
52841
|
+
parameters: [
|
|
52842
|
+
{
|
|
52843
|
+
in: 'query',
|
|
52844
|
+
name: 'workspace_slug',
|
|
52845
|
+
required: true,
|
|
52846
|
+
schema: {
|
|
52847
|
+
description: 'Workspace slug',
|
|
52848
|
+
minLength: 1,
|
|
52849
|
+
type: 'string',
|
|
52850
|
+
},
|
|
52851
|
+
},
|
|
52852
|
+
{
|
|
52853
|
+
in: 'query',
|
|
52854
|
+
name: 'connector_name',
|
|
52855
|
+
required: false,
|
|
52856
|
+
schema: {
|
|
52857
|
+
description:
|
|
52858
|
+
'Connector name/type. If not provided, workspace_slug will be used as connector_name',
|
|
52859
|
+
minLength: 1,
|
|
52860
|
+
type: 'string',
|
|
52861
|
+
},
|
|
52862
|
+
},
|
|
52863
|
+
],
|
|
52864
|
+
responses: {
|
|
52865
|
+
200: {
|
|
52866
|
+
content: {
|
|
52867
|
+
'application/json': {
|
|
52868
|
+
schema: {
|
|
52869
|
+
properties: {
|
|
52870
|
+
connector_authorize: {
|
|
52871
|
+
properties: {
|
|
52872
|
+
authorize_url: { format: 'uri', type: 'string' },
|
|
52873
|
+
connector_type: { type: 'string' },
|
|
52874
|
+
},
|
|
52875
|
+
required: ['authorize_url', 'connector_type'],
|
|
52876
|
+
type: 'object',
|
|
52877
|
+
},
|
|
52878
|
+
ok: { type: 'boolean' },
|
|
52879
|
+
},
|
|
52880
|
+
required: ['connector_authorize', 'ok'],
|
|
52881
|
+
type: 'object',
|
|
52882
|
+
},
|
|
52883
|
+
},
|
|
52884
|
+
},
|
|
52885
|
+
description: 'OK',
|
|
52886
|
+
},
|
|
52887
|
+
400: { description: 'Bad Request' },
|
|
52888
|
+
401: { description: 'Unauthorized' },
|
|
52889
|
+
},
|
|
52890
|
+
summary: '/seam/customer/v1/connectors/authorize',
|
|
52891
|
+
tags: [],
|
|
52892
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
52893
|
+
'x-fern-sdk-method-name': 'authorize',
|
|
52894
|
+
'x-fern-sdk-return-value': 'connector_authorize',
|
|
52895
|
+
'x-response-key': 'connector_authorize',
|
|
52896
|
+
'x-title': 'Get OAuth Authorization URL for Global Connector',
|
|
52897
|
+
'x-undocumented': 'Internal endpoint for OAuth authorization.',
|
|
52898
|
+
},
|
|
52899
|
+
post: {
|
|
52900
|
+
description:
|
|
52901
|
+
'Returns the OAuth authorization URL for a global connector.\nThis endpoint only works for global connectors (connectors that support multiple customers).',
|
|
52902
|
+
operationId: 'seamCustomerV1ConnectorsAuthorizePost',
|
|
52903
|
+
requestBody: {
|
|
52904
|
+
content: {
|
|
52905
|
+
'application/json': {
|
|
52906
|
+
schema: {
|
|
52907
|
+
properties: {
|
|
52908
|
+
connector_name: {
|
|
52909
|
+
description:
|
|
52910
|
+
'Connector name/type. If not provided, workspace_slug will be used as connector_name',
|
|
52911
|
+
minLength: 1,
|
|
52912
|
+
type: 'string',
|
|
52913
|
+
},
|
|
52914
|
+
workspace_slug: {
|
|
52915
|
+
description: 'Workspace slug',
|
|
52916
|
+
minLength: 1,
|
|
52917
|
+
type: 'string',
|
|
52918
|
+
},
|
|
52919
|
+
},
|
|
52920
|
+
required: ['workspace_slug'],
|
|
52921
|
+
type: 'object',
|
|
52922
|
+
},
|
|
52923
|
+
},
|
|
52924
|
+
},
|
|
52925
|
+
},
|
|
52926
|
+
responses: {
|
|
52927
|
+
200: {
|
|
52928
|
+
content: {
|
|
52929
|
+
'application/json': {
|
|
52930
|
+
schema: {
|
|
52931
|
+
properties: {
|
|
52932
|
+
connector_authorize: {
|
|
52933
|
+
properties: {
|
|
52934
|
+
authorize_url: { format: 'uri', type: 'string' },
|
|
52935
|
+
connector_type: { type: 'string' },
|
|
52936
|
+
},
|
|
52937
|
+
required: ['authorize_url', 'connector_type'],
|
|
52938
|
+
type: 'object',
|
|
52939
|
+
},
|
|
52940
|
+
ok: { type: 'boolean' },
|
|
52941
|
+
},
|
|
52942
|
+
required: ['connector_authorize', 'ok'],
|
|
52943
|
+
type: 'object',
|
|
52944
|
+
},
|
|
52945
|
+
},
|
|
52946
|
+
},
|
|
52947
|
+
description: 'OK',
|
|
52948
|
+
},
|
|
52949
|
+
400: { description: 'Bad Request' },
|
|
52950
|
+
401: { description: 'Unauthorized' },
|
|
52951
|
+
},
|
|
52952
|
+
summary: '/seam/customer/v1/connectors/authorize',
|
|
52953
|
+
tags: [],
|
|
52954
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
52955
|
+
'x-fern-sdk-method-name': 'authorize',
|
|
52956
|
+
'x-fern-sdk-return-value': 'connector_authorize',
|
|
52957
|
+
'x-response-key': 'connector_authorize',
|
|
52958
|
+
'x-title': 'Get OAuth Authorization URL for Global Connector',
|
|
52959
|
+
'x-undocumented': 'Internal endpoint for OAuth authorization.',
|
|
52960
|
+
},
|
|
52961
|
+
},
|
|
52836
52962
|
'/seam/customer/v1/connectors/connector_types': {
|
|
52837
52963
|
get: {
|
|
52838
52964
|
description:
|
|
@@ -53013,7 +53139,7 @@ export default {
|
|
|
53013
53139
|
},
|
|
53014
53140
|
connector_type: {
|
|
53015
53141
|
description: 'Type of connector to create',
|
|
53016
|
-
enum: ['mock', 'mews', 'rms'],
|
|
53142
|
+
enum: ['mock', 'mews', 'rms', 'cloudbeds'],
|
|
53017
53143
|
type: 'string',
|
|
53018
53144
|
},
|
|
53019
53145
|
customer_key: {
|
|
@@ -53382,6 +53508,7 @@ export default {
|
|
|
53382
53508
|
items: { type: 'string' },
|
|
53383
53509
|
type: 'array',
|
|
53384
53510
|
},
|
|
53511
|
+
is_demo: { default: true, type: 'boolean' },
|
|
53385
53512
|
},
|
|
53386
53513
|
type: 'object',
|
|
53387
53514
|
},
|
|
@@ -53411,6 +53538,28 @@ export default {
|
|
|
53411
53538
|
required: ['client_id', 'client_password'],
|
|
53412
53539
|
type: 'object',
|
|
53413
53540
|
},
|
|
53541
|
+
{
|
|
53542
|
+
properties: {
|
|
53543
|
+
access_token: {
|
|
53544
|
+
description:
|
|
53545
|
+
'OAuth2 access token for authentication',
|
|
53546
|
+
minLength: 1,
|
|
53547
|
+
type: 'string',
|
|
53548
|
+
},
|
|
53549
|
+
property_id: {
|
|
53550
|
+
description:
|
|
53551
|
+
'Optional property ID for single-property connectors',
|
|
53552
|
+
type: 'string',
|
|
53553
|
+
},
|
|
53554
|
+
refresh_token: {
|
|
53555
|
+
description:
|
|
53556
|
+
'OAuth2 refresh token for token refresh',
|
|
53557
|
+
minLength: 1,
|
|
53558
|
+
type: 'string',
|
|
53559
|
+
},
|
|
53560
|
+
},
|
|
53561
|
+
type: 'object',
|
|
53562
|
+
},
|
|
53414
53563
|
],
|
|
53415
53564
|
},
|
|
53416
53565
|
connector_id: {
|
|
@@ -62022,6 +62022,26 @@ export type Routes = {
|
|
|
62022
62022
|
jsonResponse: {}
|
|
62023
62023
|
maxDuration: undefined
|
|
62024
62024
|
}
|
|
62025
|
+
'/seam/customer/v1/connectors/authorize': {
|
|
62026
|
+
route: '/seam/customer/v1/connectors/authorize'
|
|
62027
|
+
method: 'GET' | 'POST'
|
|
62028
|
+
queryParams: {}
|
|
62029
|
+
jsonBody: {}
|
|
62030
|
+
commonParams: {
|
|
62031
|
+
/** Workspace slug */
|
|
62032
|
+
workspace_slug: string
|
|
62033
|
+
/** Connector name/type. If not provided, workspace_slug will be used as connector_name */
|
|
62034
|
+
connector_name?: string | undefined
|
|
62035
|
+
}
|
|
62036
|
+
formData: {}
|
|
62037
|
+
jsonResponse: {
|
|
62038
|
+
connector_authorize: {
|
|
62039
|
+
authorize_url: string
|
|
62040
|
+
connector_type: string
|
|
62041
|
+
}
|
|
62042
|
+
}
|
|
62043
|
+
maxDuration: undefined
|
|
62044
|
+
}
|
|
62025
62045
|
'/seam/customer/v1/connectors/connector_types': {
|
|
62026
62046
|
route: '/seam/customer/v1/connectors/connector_types'
|
|
62027
62047
|
method: 'GET' | 'POST'
|
|
@@ -62051,7 +62071,7 @@ export type Routes = {
|
|
|
62051
62071
|
queryParams: {}
|
|
62052
62072
|
jsonBody: {
|
|
62053
62073
|
/** Type of connector to create */
|
|
62054
|
-
connector_type: 'mock' | 'mews' | 'rms'
|
|
62074
|
+
connector_type: 'mock' | 'mews' | 'rms' | 'cloudbeds'
|
|
62055
62075
|
/** Key identifying the customer */
|
|
62056
62076
|
customer_key?: string | undefined
|
|
62057
62077
|
/** Instance-specific configuration for the connector */
|
|
@@ -62154,6 +62174,7 @@ export type Routes = {
|
|
|
62154
62174
|
client_token?: string | undefined
|
|
62155
62175
|
access_token?: string | undefined
|
|
62156
62176
|
client?: string
|
|
62177
|
+
is_demo?: boolean
|
|
62157
62178
|
enterprise_ids?: string[] | undefined
|
|
62158
62179
|
enterprise_id?: string | undefined
|
|
62159
62180
|
}
|
|
@@ -62166,6 +62187,14 @@ export type Routes = {
|
|
|
62166
62187
|
property_id?: (string | number) | undefined
|
|
62167
62188
|
auth_token?: string | undefined
|
|
62168
62189
|
}
|
|
62190
|
+
| {
|
|
62191
|
+
/** OAuth2 access token for authentication */
|
|
62192
|
+
access_token?: string | undefined
|
|
62193
|
+
/** OAuth2 refresh token for token refresh */
|
|
62194
|
+
refresh_token?: string | undefined
|
|
62195
|
+
/** Optional property ID for single-property connectors */
|
|
62196
|
+
property_id?: string | undefined
|
|
62197
|
+
}
|
|
62169
62198
|
}
|
|
62170
62199
|
commonParams: {}
|
|
62171
62200
|
formData: {}
|