@seamapi/types 1.663.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 +160 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +220 -1
- package/dist/index.cjs +160 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/customer-portal.d.ts +14 -0
- package/lib/seam/connect/models/customer/customer-portal.js +5 -0
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +187 -0
- package/lib/seam/connect/openapi.js +159 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +33 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/customer-portal.ts +7 -0
- package/src/lib/seam/connect/openapi.ts +169 -1
- package/src/lib/seam/connect/route-types.ts +34 -1
|
@@ -26519,6 +26519,8 @@ export type Routes = {
|
|
|
26519
26519
|
exclude?: boolean;
|
|
26520
26520
|
/** Indicates whether the customer can customize the access automation rules for their properties. */
|
|
26521
26521
|
allow_access_automation_rule_customization?: boolean;
|
|
26522
|
+
/** Indicates whether the customer can customize the climate automation rules for their properties. */
|
|
26523
|
+
allow_climate_automation_rule_customization?: boolean;
|
|
26522
26524
|
/** Indicates whether the customer can customize the Instant Key profile for their properties. */
|
|
26523
26525
|
allow_instant_key_customization?: boolean;
|
|
26524
26526
|
};
|
|
@@ -52174,6 +52176,26 @@ export type Routes = {
|
|
|
52174
52176
|
jsonResponse: {};
|
|
52175
52177
|
maxDuration: undefined;
|
|
52176
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
|
+
};
|
|
52177
52199
|
'/seam/customer/v1/connectors/connector_types': {
|
|
52178
52200
|
route: '/seam/customer/v1/connectors/connector_types';
|
|
52179
52201
|
method: 'GET' | 'POST';
|
|
@@ -52203,7 +52225,7 @@ export type Routes = {
|
|
|
52203
52225
|
queryParams: {};
|
|
52204
52226
|
jsonBody: {
|
|
52205
52227
|
/** Type of connector to create */
|
|
52206
|
-
connector_type: 'mock' | 'mews' | 'rms';
|
|
52228
|
+
connector_type: 'mock' | 'mews' | 'rms' | 'cloudbeds';
|
|
52207
52229
|
/** Key identifying the customer */
|
|
52208
52230
|
customer_key?: string | undefined;
|
|
52209
52231
|
/** Instance-specific configuration for the connector */
|
|
@@ -52302,6 +52324,7 @@ export type Routes = {
|
|
|
52302
52324
|
client_token?: string | undefined;
|
|
52303
52325
|
access_token?: string | undefined;
|
|
52304
52326
|
client?: string;
|
|
52327
|
+
is_demo?: boolean;
|
|
52305
52328
|
enterprise_ids?: string[] | undefined;
|
|
52306
52329
|
enterprise_id?: string | undefined;
|
|
52307
52330
|
} | {
|
|
@@ -52312,6 +52335,13 @@ export type Routes = {
|
|
|
52312
52335
|
/** Optional property ID for single-property connectors */
|
|
52313
52336
|
property_id?: (string | number) | undefined;
|
|
52314
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;
|
|
52315
52345
|
};
|
|
52316
52346
|
};
|
|
52317
52347
|
commonParams: {};
|
|
@@ -54321,6 +54351,8 @@ export type Routes = {
|
|
|
54321
54351
|
exclude?: boolean;
|
|
54322
54352
|
/** Indicates whether the customer can customize the access automation rules for their properties. */
|
|
54323
54353
|
allow_access_automation_rule_customization?: boolean;
|
|
54354
|
+
/** Indicates whether the customer can customize the climate automation rules for their properties. */
|
|
54355
|
+
allow_climate_automation_rule_customization?: boolean;
|
|
54324
54356
|
/** Indicates whether the customer can customize the Instant Key profile for their properties. */
|
|
54325
54357
|
allow_instant_key_customization?: boolean;
|
|
54326
54358
|
};
|
package/package.json
CHANGED
|
@@ -50,6 +50,12 @@ const base_configure_feature = base_feature.extend({
|
|
|
50
50
|
.describe(
|
|
51
51
|
'Indicates whether the customer can customize the access automation rules for their properties.',
|
|
52
52
|
),
|
|
53
|
+
allow_climate_automation_rule_customization: z
|
|
54
|
+
.boolean()
|
|
55
|
+
.default(false)
|
|
56
|
+
.describe(
|
|
57
|
+
'Indicates whether the customer can customize the climate automation rules for their properties.',
|
|
58
|
+
),
|
|
53
59
|
allow_instant_key_customization: z
|
|
54
60
|
.boolean()
|
|
55
61
|
.default(false)
|
|
@@ -121,6 +127,7 @@ export const portal_configuration = portal_configuration_base
|
|
|
121
127
|
exclude: false,
|
|
122
128
|
allow_instant_key_customization: false, // default
|
|
123
129
|
allow_access_automation_rule_customization: false, // default
|
|
130
|
+
allow_climate_automation_rule_customization: false, // default
|
|
124
131
|
},
|
|
125
132
|
},
|
|
126
133
|
is_embedded: false,
|
|
@@ -41237,6 +41237,7 @@ export default {
|
|
|
41237
41237
|
features: {
|
|
41238
41238
|
configure: {
|
|
41239
41239
|
allow_access_automation_rule_customization: false,
|
|
41240
|
+
allow_climate_automation_rule_customization: false,
|
|
41240
41241
|
allow_instant_key_customization: false,
|
|
41241
41242
|
exclude: false,
|
|
41242
41243
|
},
|
|
@@ -41273,6 +41274,12 @@ export default {
|
|
|
41273
41274
|
'Indicates whether the customer can customize the access automation rules for their properties.',
|
|
41274
41275
|
type: 'boolean',
|
|
41275
41276
|
},
|
|
41277
|
+
allow_climate_automation_rule_customization: {
|
|
41278
|
+
default: false,
|
|
41279
|
+
description:
|
|
41280
|
+
'Indicates whether the customer can customize the climate automation rules for their properties.',
|
|
41281
|
+
type: 'boolean',
|
|
41282
|
+
},
|
|
41276
41283
|
allow_instant_key_customization: {
|
|
41277
41284
|
default: false,
|
|
41278
41285
|
description:
|
|
@@ -52826,6 +52833,132 @@ export default {
|
|
|
52826
52833
|
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
52827
52834
|
},
|
|
52828
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
|
+
},
|
|
52829
52962
|
'/seam/customer/v1/connectors/connector_types': {
|
|
52830
52963
|
get: {
|
|
52831
52964
|
description:
|
|
@@ -53006,7 +53139,7 @@ export default {
|
|
|
53006
53139
|
},
|
|
53007
53140
|
connector_type: {
|
|
53008
53141
|
description: 'Type of connector to create',
|
|
53009
|
-
enum: ['mock', 'mews', 'rms'],
|
|
53142
|
+
enum: ['mock', 'mews', 'rms', 'cloudbeds'],
|
|
53010
53143
|
type: 'string',
|
|
53011
53144
|
},
|
|
53012
53145
|
customer_key: {
|
|
@@ -53375,6 +53508,7 @@ export default {
|
|
|
53375
53508
|
items: { type: 'string' },
|
|
53376
53509
|
type: 'array',
|
|
53377
53510
|
},
|
|
53511
|
+
is_demo: { default: true, type: 'boolean' },
|
|
53378
53512
|
},
|
|
53379
53513
|
type: 'object',
|
|
53380
53514
|
},
|
|
@@ -53404,6 +53538,28 @@ export default {
|
|
|
53404
53538
|
required: ['client_id', 'client_password'],
|
|
53405
53539
|
type: 'object',
|
|
53406
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
|
+
},
|
|
53407
53563
|
],
|
|
53408
53564
|
},
|
|
53409
53565
|
connector_id: {
|
|
@@ -54129,6 +54285,12 @@ export default {
|
|
|
54129
54285
|
'Indicates whether the customer can customize the access automation rules for their properties.',
|
|
54130
54286
|
type: 'boolean',
|
|
54131
54287
|
},
|
|
54288
|
+
allow_climate_automation_rule_customization: {
|
|
54289
|
+
default: false,
|
|
54290
|
+
description:
|
|
54291
|
+
'Indicates whether the customer can customize the climate automation rules for their properties.',
|
|
54292
|
+
type: 'boolean',
|
|
54293
|
+
},
|
|
54132
54294
|
allow_instant_key_customization: {
|
|
54133
54295
|
default: false,
|
|
54134
54296
|
description:
|
|
@@ -54446,6 +54608,12 @@ export default {
|
|
|
54446
54608
|
'Indicates whether the customer can customize the access automation rules for their properties.',
|
|
54447
54609
|
type: 'boolean',
|
|
54448
54610
|
},
|
|
54611
|
+
allow_climate_automation_rule_customization: {
|
|
54612
|
+
default: false,
|
|
54613
|
+
description:
|
|
54614
|
+
'Indicates whether the customer can customize the climate automation rules for their properties.',
|
|
54615
|
+
type: 'boolean',
|
|
54616
|
+
},
|
|
54449
54617
|
allow_instant_key_customization: {
|
|
54450
54618
|
default: false,
|
|
54451
54619
|
description:
|
|
@@ -30674,6 +30674,8 @@ export type Routes = {
|
|
|
30674
30674
|
exclude?: boolean
|
|
30675
30675
|
/** Indicates whether the customer can customize the access automation rules for their properties. */
|
|
30676
30676
|
allow_access_automation_rule_customization?: boolean
|
|
30677
|
+
/** Indicates whether the customer can customize the climate automation rules for their properties. */
|
|
30678
|
+
allow_climate_automation_rule_customization?: boolean
|
|
30677
30679
|
/** Indicates whether the customer can customize the Instant Key profile for their properties. */
|
|
30678
30680
|
allow_instant_key_customization?: boolean
|
|
30679
30681
|
}
|
|
@@ -62020,6 +62022,26 @@ export type Routes = {
|
|
|
62020
62022
|
jsonResponse: {}
|
|
62021
62023
|
maxDuration: undefined
|
|
62022
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
|
+
}
|
|
62023
62045
|
'/seam/customer/v1/connectors/connector_types': {
|
|
62024
62046
|
route: '/seam/customer/v1/connectors/connector_types'
|
|
62025
62047
|
method: 'GET' | 'POST'
|
|
@@ -62049,7 +62071,7 @@ export type Routes = {
|
|
|
62049
62071
|
queryParams: {}
|
|
62050
62072
|
jsonBody: {
|
|
62051
62073
|
/** Type of connector to create */
|
|
62052
|
-
connector_type: 'mock' | 'mews' | 'rms'
|
|
62074
|
+
connector_type: 'mock' | 'mews' | 'rms' | 'cloudbeds'
|
|
62053
62075
|
/** Key identifying the customer */
|
|
62054
62076
|
customer_key?: string | undefined
|
|
62055
62077
|
/** Instance-specific configuration for the connector */
|
|
@@ -62152,6 +62174,7 @@ export type Routes = {
|
|
|
62152
62174
|
client_token?: string | undefined
|
|
62153
62175
|
access_token?: string | undefined
|
|
62154
62176
|
client?: string
|
|
62177
|
+
is_demo?: boolean
|
|
62155
62178
|
enterprise_ids?: string[] | undefined
|
|
62156
62179
|
enterprise_id?: string | undefined
|
|
62157
62180
|
}
|
|
@@ -62164,6 +62187,14 @@ export type Routes = {
|
|
|
62164
62187
|
property_id?: (string | number) | undefined
|
|
62165
62188
|
auth_token?: string | undefined
|
|
62166
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
|
+
}
|
|
62167
62198
|
}
|
|
62168
62199
|
commonParams: {}
|
|
62169
62200
|
formData: {}
|
|
@@ -64694,6 +64725,8 @@ export type Routes = {
|
|
|
64694
64725
|
exclude?: boolean
|
|
64695
64726
|
/** Indicates whether the customer can customize the access automation rules for their properties. */
|
|
64696
64727
|
allow_access_automation_rule_customization?: boolean
|
|
64728
|
+
/** Indicates whether the customer can customize the climate automation rules for their properties. */
|
|
64729
|
+
allow_climate_automation_rule_customization?: boolean
|
|
64697
64730
|
/** Indicates whether the customer can customize the Instant Key profile for their properties. */
|
|
64698
64731
|
allow_instant_key_customization?: boolean
|
|
64699
64732
|
}
|