@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
package/dist/connect.d.cts
CHANGED
|
@@ -96509,6 +96509,138 @@ declare const _default: {
|
|
|
96509
96509
|
'x-undocumented': string;
|
|
96510
96510
|
};
|
|
96511
96511
|
};
|
|
96512
|
+
'/seam/customer/v1/connectors/authorize': {
|
|
96513
|
+
get: {
|
|
96514
|
+
description: string;
|
|
96515
|
+
operationId: string;
|
|
96516
|
+
parameters: {
|
|
96517
|
+
in: string;
|
|
96518
|
+
name: string;
|
|
96519
|
+
required: boolean;
|
|
96520
|
+
schema: {
|
|
96521
|
+
description: string;
|
|
96522
|
+
minLength: number;
|
|
96523
|
+
type: string;
|
|
96524
|
+
};
|
|
96525
|
+
}[];
|
|
96526
|
+
responses: {
|
|
96527
|
+
200: {
|
|
96528
|
+
content: {
|
|
96529
|
+
'application/json': {
|
|
96530
|
+
schema: {
|
|
96531
|
+
properties: {
|
|
96532
|
+
connector_authorize: {
|
|
96533
|
+
properties: {
|
|
96534
|
+
authorize_url: {
|
|
96535
|
+
format: string;
|
|
96536
|
+
type: string;
|
|
96537
|
+
};
|
|
96538
|
+
connector_type: {
|
|
96539
|
+
type: string;
|
|
96540
|
+
};
|
|
96541
|
+
};
|
|
96542
|
+
required: string[];
|
|
96543
|
+
type: string;
|
|
96544
|
+
};
|
|
96545
|
+
ok: {
|
|
96546
|
+
type: string;
|
|
96547
|
+
};
|
|
96548
|
+
};
|
|
96549
|
+
required: string[];
|
|
96550
|
+
type: string;
|
|
96551
|
+
};
|
|
96552
|
+
};
|
|
96553
|
+
};
|
|
96554
|
+
description: string;
|
|
96555
|
+
};
|
|
96556
|
+
400: {
|
|
96557
|
+
description: string;
|
|
96558
|
+
};
|
|
96559
|
+
401: {
|
|
96560
|
+
description: string;
|
|
96561
|
+
};
|
|
96562
|
+
};
|
|
96563
|
+
summary: string;
|
|
96564
|
+
tags: never[];
|
|
96565
|
+
'x-fern-sdk-group-name': string[];
|
|
96566
|
+
'x-fern-sdk-method-name': string;
|
|
96567
|
+
'x-fern-sdk-return-value': string;
|
|
96568
|
+
'x-response-key': string;
|
|
96569
|
+
'x-title': string;
|
|
96570
|
+
'x-undocumented': string;
|
|
96571
|
+
};
|
|
96572
|
+
post: {
|
|
96573
|
+
description: string;
|
|
96574
|
+
operationId: string;
|
|
96575
|
+
requestBody: {
|
|
96576
|
+
content: {
|
|
96577
|
+
'application/json': {
|
|
96578
|
+
schema: {
|
|
96579
|
+
properties: {
|
|
96580
|
+
connector_name: {
|
|
96581
|
+
description: string;
|
|
96582
|
+
minLength: number;
|
|
96583
|
+
type: string;
|
|
96584
|
+
};
|
|
96585
|
+
workspace_slug: {
|
|
96586
|
+
description: string;
|
|
96587
|
+
minLength: number;
|
|
96588
|
+
type: string;
|
|
96589
|
+
};
|
|
96590
|
+
};
|
|
96591
|
+
required: string[];
|
|
96592
|
+
type: string;
|
|
96593
|
+
};
|
|
96594
|
+
};
|
|
96595
|
+
};
|
|
96596
|
+
};
|
|
96597
|
+
responses: {
|
|
96598
|
+
200: {
|
|
96599
|
+
content: {
|
|
96600
|
+
'application/json': {
|
|
96601
|
+
schema: {
|
|
96602
|
+
properties: {
|
|
96603
|
+
connector_authorize: {
|
|
96604
|
+
properties: {
|
|
96605
|
+
authorize_url: {
|
|
96606
|
+
format: string;
|
|
96607
|
+
type: string;
|
|
96608
|
+
};
|
|
96609
|
+
connector_type: {
|
|
96610
|
+
type: string;
|
|
96611
|
+
};
|
|
96612
|
+
};
|
|
96613
|
+
required: string[];
|
|
96614
|
+
type: string;
|
|
96615
|
+
};
|
|
96616
|
+
ok: {
|
|
96617
|
+
type: string;
|
|
96618
|
+
};
|
|
96619
|
+
};
|
|
96620
|
+
required: string[];
|
|
96621
|
+
type: string;
|
|
96622
|
+
};
|
|
96623
|
+
};
|
|
96624
|
+
};
|
|
96625
|
+
description: string;
|
|
96626
|
+
};
|
|
96627
|
+
400: {
|
|
96628
|
+
description: string;
|
|
96629
|
+
};
|
|
96630
|
+
401: {
|
|
96631
|
+
description: string;
|
|
96632
|
+
};
|
|
96633
|
+
};
|
|
96634
|
+
summary: string;
|
|
96635
|
+
tags: never[];
|
|
96636
|
+
'x-fern-sdk-group-name': string[];
|
|
96637
|
+
'x-fern-sdk-method-name': string;
|
|
96638
|
+
'x-fern-sdk-return-value': string;
|
|
96639
|
+
'x-response-key': string;
|
|
96640
|
+
'x-title': string;
|
|
96641
|
+
'x-undocumented': string;
|
|
96642
|
+
};
|
|
96643
|
+
};
|
|
96512
96644
|
'/seam/customer/v1/connectors/connector_types': {
|
|
96513
96645
|
get: {
|
|
96514
96646
|
description: string;
|
|
@@ -97155,10 +97287,12 @@ declare const _default: {
|
|
|
97155
97287
|
client_token?: never;
|
|
97156
97288
|
enterprise_id?: never;
|
|
97157
97289
|
enterprise_ids?: never;
|
|
97290
|
+
is_demo?: never;
|
|
97158
97291
|
auth_token?: never;
|
|
97159
97292
|
client_id?: never;
|
|
97160
97293
|
client_password?: never;
|
|
97161
97294
|
property_id?: never;
|
|
97295
|
+
refresh_token?: never;
|
|
97162
97296
|
};
|
|
97163
97297
|
type: string;
|
|
97164
97298
|
required?: never;
|
|
@@ -97167,6 +97301,7 @@ declare const _default: {
|
|
|
97167
97301
|
access_token: {
|
|
97168
97302
|
minLength: number;
|
|
97169
97303
|
type: string;
|
|
97304
|
+
description?: never;
|
|
97170
97305
|
};
|
|
97171
97306
|
client: {
|
|
97172
97307
|
default: string;
|
|
@@ -97186,10 +97321,15 @@ declare const _default: {
|
|
|
97186
97321
|
};
|
|
97187
97322
|
type: string;
|
|
97188
97323
|
};
|
|
97324
|
+
is_demo: {
|
|
97325
|
+
default: boolean;
|
|
97326
|
+
type: string;
|
|
97327
|
+
};
|
|
97189
97328
|
auth_token?: never;
|
|
97190
97329
|
client_id?: never;
|
|
97191
97330
|
client_password?: never;
|
|
97192
97331
|
property_id?: never;
|
|
97332
|
+
refresh_token?: never;
|
|
97193
97333
|
};
|
|
97194
97334
|
type: string;
|
|
97195
97335
|
required?: never;
|
|
@@ -97217,15 +97357,46 @@ declare const _default: {
|
|
|
97217
97357
|
format: string;
|
|
97218
97358
|
type: string;
|
|
97219
97359
|
})[];
|
|
97360
|
+
type?: never;
|
|
97220
97361
|
};
|
|
97221
97362
|
access_token?: never;
|
|
97222
97363
|
client?: never;
|
|
97223
97364
|
client_token?: never;
|
|
97224
97365
|
enterprise_id?: never;
|
|
97225
97366
|
enterprise_ids?: never;
|
|
97367
|
+
is_demo?: never;
|
|
97368
|
+
refresh_token?: never;
|
|
97226
97369
|
};
|
|
97227
97370
|
required: string[];
|
|
97228
97371
|
type: string;
|
|
97372
|
+
} | {
|
|
97373
|
+
properties: {
|
|
97374
|
+
access_token: {
|
|
97375
|
+
description: string;
|
|
97376
|
+
minLength: number;
|
|
97377
|
+
type: string;
|
|
97378
|
+
};
|
|
97379
|
+
property_id: {
|
|
97380
|
+
description: string;
|
|
97381
|
+
type: string;
|
|
97382
|
+
oneOf?: never;
|
|
97383
|
+
};
|
|
97384
|
+
refresh_token: {
|
|
97385
|
+
description: string;
|
|
97386
|
+
minLength: number;
|
|
97387
|
+
type: string;
|
|
97388
|
+
};
|
|
97389
|
+
client?: never;
|
|
97390
|
+
client_token?: never;
|
|
97391
|
+
enterprise_id?: never;
|
|
97392
|
+
enterprise_ids?: never;
|
|
97393
|
+
is_demo?: never;
|
|
97394
|
+
auth_token?: never;
|
|
97395
|
+
client_id?: never;
|
|
97396
|
+
client_password?: never;
|
|
97397
|
+
};
|
|
97398
|
+
type: string;
|
|
97399
|
+
required?: never;
|
|
97229
97400
|
})[];
|
|
97230
97401
|
};
|
|
97231
97402
|
connector_id: {
|
|
@@ -164900,6 +165071,26 @@ type Routes = {
|
|
|
164900
165071
|
jsonResponse: {};
|
|
164901
165072
|
maxDuration: undefined;
|
|
164902
165073
|
};
|
|
165074
|
+
'/seam/customer/v1/connectors/authorize': {
|
|
165075
|
+
route: '/seam/customer/v1/connectors/authorize';
|
|
165076
|
+
method: 'GET' | 'POST';
|
|
165077
|
+
queryParams: {};
|
|
165078
|
+
jsonBody: {};
|
|
165079
|
+
commonParams: {
|
|
165080
|
+
/** Workspace slug */
|
|
165081
|
+
workspace_slug: string;
|
|
165082
|
+
/** Connector name/type. If not provided, workspace_slug will be used as connector_name */
|
|
165083
|
+
connector_name?: string | undefined;
|
|
165084
|
+
};
|
|
165085
|
+
formData: {};
|
|
165086
|
+
jsonResponse: {
|
|
165087
|
+
connector_authorize: {
|
|
165088
|
+
authorize_url: string;
|
|
165089
|
+
connector_type: string;
|
|
165090
|
+
};
|
|
165091
|
+
};
|
|
165092
|
+
maxDuration: undefined;
|
|
165093
|
+
};
|
|
164903
165094
|
'/seam/customer/v1/connectors/connector_types': {
|
|
164904
165095
|
route: '/seam/customer/v1/connectors/connector_types';
|
|
164905
165096
|
method: 'GET' | 'POST';
|
|
@@ -164929,7 +165120,7 @@ type Routes = {
|
|
|
164929
165120
|
queryParams: {};
|
|
164930
165121
|
jsonBody: {
|
|
164931
165122
|
/** Type of connector to create */
|
|
164932
|
-
connector_type: 'mock' | 'mews' | 'rms';
|
|
165123
|
+
connector_type: 'mock' | 'mews' | 'rms' | 'cloudbeds';
|
|
164933
165124
|
/** Key identifying the customer */
|
|
164934
165125
|
customer_key?: string | undefined;
|
|
164935
165126
|
/** Instance-specific configuration for the connector */
|
|
@@ -165028,6 +165219,7 @@ type Routes = {
|
|
|
165028
165219
|
client_token?: string | undefined;
|
|
165029
165220
|
access_token?: string | undefined;
|
|
165030
165221
|
client?: string;
|
|
165222
|
+
is_demo?: boolean;
|
|
165031
165223
|
enterprise_ids?: string[] | undefined;
|
|
165032
165224
|
enterprise_id?: string | undefined;
|
|
165033
165225
|
} | {
|
|
@@ -165038,6 +165230,13 @@ type Routes = {
|
|
|
165038
165230
|
/** Optional property ID for single-property connectors */
|
|
165039
165231
|
property_id?: (string | number) | undefined;
|
|
165040
165232
|
auth_token?: string | undefined;
|
|
165233
|
+
} | {
|
|
165234
|
+
/** OAuth2 access token for authentication */
|
|
165235
|
+
access_token?: string | undefined;
|
|
165236
|
+
/** OAuth2 refresh token for token refresh */
|
|
165237
|
+
refresh_token?: string | undefined;
|
|
165238
|
+
/** Optional property ID for single-property connectors */
|
|
165239
|
+
property_id?: string | undefined;
|
|
165041
165240
|
};
|
|
165042
165241
|
};
|
|
165043
165242
|
commonParams: {};
|
package/dist/index.cjs
CHANGED
|
@@ -54475,6 +54475,128 @@ var openapi_default = {
|
|
|
54475
54475
|
"x-undocumented": "Internal endpoint for customer portals."
|
|
54476
54476
|
}
|
|
54477
54477
|
},
|
|
54478
|
+
"/seam/customer/v1/connectors/authorize": {
|
|
54479
|
+
get: {
|
|
54480
|
+
description: "Returns the OAuth authorization URL for a global connector.\nThis endpoint only works for global connectors (connectors that support multiple customers).",
|
|
54481
|
+
operationId: "seamCustomerV1ConnectorsAuthorizeGet",
|
|
54482
|
+
parameters: [
|
|
54483
|
+
{
|
|
54484
|
+
in: "query",
|
|
54485
|
+
name: "workspace_slug",
|
|
54486
|
+
required: true,
|
|
54487
|
+
schema: {
|
|
54488
|
+
description: "Workspace slug",
|
|
54489
|
+
minLength: 1,
|
|
54490
|
+
type: "string"
|
|
54491
|
+
}
|
|
54492
|
+
},
|
|
54493
|
+
{
|
|
54494
|
+
in: "query",
|
|
54495
|
+
name: "connector_name",
|
|
54496
|
+
required: false,
|
|
54497
|
+
schema: {
|
|
54498
|
+
description: "Connector name/type. If not provided, workspace_slug will be used as connector_name",
|
|
54499
|
+
minLength: 1,
|
|
54500
|
+
type: "string"
|
|
54501
|
+
}
|
|
54502
|
+
}
|
|
54503
|
+
],
|
|
54504
|
+
responses: {
|
|
54505
|
+
200: {
|
|
54506
|
+
content: {
|
|
54507
|
+
"application/json": {
|
|
54508
|
+
schema: {
|
|
54509
|
+
properties: {
|
|
54510
|
+
connector_authorize: {
|
|
54511
|
+
properties: {
|
|
54512
|
+
authorize_url: { format: "uri", type: "string" },
|
|
54513
|
+
connector_type: { type: "string" }
|
|
54514
|
+
},
|
|
54515
|
+
required: ["authorize_url", "connector_type"],
|
|
54516
|
+
type: "object"
|
|
54517
|
+
},
|
|
54518
|
+
ok: { type: "boolean" }
|
|
54519
|
+
},
|
|
54520
|
+
required: ["connector_authorize", "ok"],
|
|
54521
|
+
type: "object"
|
|
54522
|
+
}
|
|
54523
|
+
}
|
|
54524
|
+
},
|
|
54525
|
+
description: "OK"
|
|
54526
|
+
},
|
|
54527
|
+
400: { description: "Bad Request" },
|
|
54528
|
+
401: { description: "Unauthorized" }
|
|
54529
|
+
},
|
|
54530
|
+
summary: "/seam/customer/v1/connectors/authorize",
|
|
54531
|
+
tags: [],
|
|
54532
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
|
|
54533
|
+
"x-fern-sdk-method-name": "authorize",
|
|
54534
|
+
"x-fern-sdk-return-value": "connector_authorize",
|
|
54535
|
+
"x-response-key": "connector_authorize",
|
|
54536
|
+
"x-title": "Get OAuth Authorization URL for Global Connector",
|
|
54537
|
+
"x-undocumented": "Internal endpoint for OAuth authorization."
|
|
54538
|
+
},
|
|
54539
|
+
post: {
|
|
54540
|
+
description: "Returns the OAuth authorization URL for a global connector.\nThis endpoint only works for global connectors (connectors that support multiple customers).",
|
|
54541
|
+
operationId: "seamCustomerV1ConnectorsAuthorizePost",
|
|
54542
|
+
requestBody: {
|
|
54543
|
+
content: {
|
|
54544
|
+
"application/json": {
|
|
54545
|
+
schema: {
|
|
54546
|
+
properties: {
|
|
54547
|
+
connector_name: {
|
|
54548
|
+
description: "Connector name/type. If not provided, workspace_slug will be used as connector_name",
|
|
54549
|
+
minLength: 1,
|
|
54550
|
+
type: "string"
|
|
54551
|
+
},
|
|
54552
|
+
workspace_slug: {
|
|
54553
|
+
description: "Workspace slug",
|
|
54554
|
+
minLength: 1,
|
|
54555
|
+
type: "string"
|
|
54556
|
+
}
|
|
54557
|
+
},
|
|
54558
|
+
required: ["workspace_slug"],
|
|
54559
|
+
type: "object"
|
|
54560
|
+
}
|
|
54561
|
+
}
|
|
54562
|
+
}
|
|
54563
|
+
},
|
|
54564
|
+
responses: {
|
|
54565
|
+
200: {
|
|
54566
|
+
content: {
|
|
54567
|
+
"application/json": {
|
|
54568
|
+
schema: {
|
|
54569
|
+
properties: {
|
|
54570
|
+
connector_authorize: {
|
|
54571
|
+
properties: {
|
|
54572
|
+
authorize_url: { format: "uri", type: "string" },
|
|
54573
|
+
connector_type: { type: "string" }
|
|
54574
|
+
},
|
|
54575
|
+
required: ["authorize_url", "connector_type"],
|
|
54576
|
+
type: "object"
|
|
54577
|
+
},
|
|
54578
|
+
ok: { type: "boolean" }
|
|
54579
|
+
},
|
|
54580
|
+
required: ["connector_authorize", "ok"],
|
|
54581
|
+
type: "object"
|
|
54582
|
+
}
|
|
54583
|
+
}
|
|
54584
|
+
},
|
|
54585
|
+
description: "OK"
|
|
54586
|
+
},
|
|
54587
|
+
400: { description: "Bad Request" },
|
|
54588
|
+
401: { description: "Unauthorized" }
|
|
54589
|
+
},
|
|
54590
|
+
summary: "/seam/customer/v1/connectors/authorize",
|
|
54591
|
+
tags: [],
|
|
54592
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
|
|
54593
|
+
"x-fern-sdk-method-name": "authorize",
|
|
54594
|
+
"x-fern-sdk-return-value": "connector_authorize",
|
|
54595
|
+
"x-response-key": "connector_authorize",
|
|
54596
|
+
"x-title": "Get OAuth Authorization URL for Global Connector",
|
|
54597
|
+
"x-undocumented": "Internal endpoint for OAuth authorization."
|
|
54598
|
+
}
|
|
54599
|
+
},
|
|
54478
54600
|
"/seam/customer/v1/connectors/connector_types": {
|
|
54479
54601
|
get: {
|
|
54480
54602
|
description: "Lists all available connector types and their editable fields for UI input.",
|
|
@@ -54651,7 +54773,7 @@ var openapi_default = {
|
|
|
54651
54773
|
},
|
|
54652
54774
|
connector_type: {
|
|
54653
54775
|
description: "Type of connector to create",
|
|
54654
|
-
enum: ["mock", "mews", "rms"],
|
|
54776
|
+
enum: ["mock", "mews", "rms", "cloudbeds"],
|
|
54655
54777
|
type: "string"
|
|
54656
54778
|
},
|
|
54657
54779
|
customer_key: {
|
|
@@ -55013,7 +55135,8 @@ var openapi_default = {
|
|
|
55013
55135
|
enterprise_ids: {
|
|
55014
55136
|
items: { type: "string" },
|
|
55015
55137
|
type: "array"
|
|
55016
|
-
}
|
|
55138
|
+
},
|
|
55139
|
+
is_demo: { default: true, type: "boolean" }
|
|
55017
55140
|
},
|
|
55018
55141
|
type: "object"
|
|
55019
55142
|
},
|
|
@@ -55040,6 +55163,25 @@ var openapi_default = {
|
|
|
55040
55163
|
},
|
|
55041
55164
|
required: ["client_id", "client_password"],
|
|
55042
55165
|
type: "object"
|
|
55166
|
+
},
|
|
55167
|
+
{
|
|
55168
|
+
properties: {
|
|
55169
|
+
access_token: {
|
|
55170
|
+
description: "OAuth2 access token for authentication",
|
|
55171
|
+
minLength: 1,
|
|
55172
|
+
type: "string"
|
|
55173
|
+
},
|
|
55174
|
+
property_id: {
|
|
55175
|
+
description: "Optional property ID for single-property connectors",
|
|
55176
|
+
type: "string"
|
|
55177
|
+
},
|
|
55178
|
+
refresh_token: {
|
|
55179
|
+
description: "OAuth2 refresh token for token refresh",
|
|
55180
|
+
minLength: 1,
|
|
55181
|
+
type: "string"
|
|
55182
|
+
}
|
|
55183
|
+
},
|
|
55184
|
+
type: "object"
|
|
55043
55185
|
}
|
|
55044
55186
|
]
|
|
55045
55187
|
},
|