@seamapi/types 1.664.0 → 1.666.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.
@@ -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
+ 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: {
@@ -99017,6 +99188,10 @@ declare const _default: {
99017
99188
  ok: {
99018
99189
  type: string;
99019
99190
  };
99191
+ slug: {
99192
+ nullable: boolean;
99193
+ type: string;
99194
+ };
99020
99195
  };
99021
99196
  required: string[];
99022
99197
  type: string;
@@ -99065,6 +99240,10 @@ declare const _default: {
99065
99240
  ok: {
99066
99241
  type: string;
99067
99242
  };
99243
+ slug: {
99244
+ nullable: boolean;
99245
+ type: string;
99246
+ };
99068
99247
  };
99069
99248
  required: string[];
99070
99249
  type: string;
@@ -99111,6 +99290,11 @@ declare const _default: {
99111
99290
  enum: string[];
99112
99291
  type: string;
99113
99292
  };
99293
+ slug: {
99294
+ description: string;
99295
+ nullable: boolean;
99296
+ type: string;
99297
+ };
99114
99298
  };
99115
99299
  type: string;
99116
99300
  };
@@ -99169,6 +99353,11 @@ declare const _default: {
99169
99353
  enum: string[];
99170
99354
  type: string;
99171
99355
  };
99356
+ slug: {
99357
+ description: string;
99358
+ nullable: boolean;
99359
+ type: string;
99360
+ };
99172
99361
  };
99173
99362
  type: string;
99174
99363
  };
@@ -164900,6 +165089,26 @@ type Routes = {
164900
165089
  jsonResponse: {};
164901
165090
  maxDuration: undefined;
164902
165091
  };
165092
+ '/seam/customer/v1/connectors/authorize': {
165093
+ route: '/seam/customer/v1/connectors/authorize';
165094
+ method: 'GET' | 'POST';
165095
+ queryParams: {};
165096
+ jsonBody: {};
165097
+ commonParams: {
165098
+ /** Workspace slug */
165099
+ slug: string;
165100
+ /** Connector name/type. If not provided, workspace_slug will be used as connector_name */
165101
+ connector_name?: string | undefined;
165102
+ };
165103
+ formData: {};
165104
+ jsonResponse: {
165105
+ connector_authorize: {
165106
+ authorize_url: string;
165107
+ connector_type: string;
165108
+ };
165109
+ };
165110
+ maxDuration: undefined;
165111
+ };
164903
165112
  '/seam/customer/v1/connectors/connector_types': {
164904
165113
  route: '/seam/customer/v1/connectors/connector_types';
164905
165114
  method: 'GET' | 'POST';
@@ -164929,7 +165138,7 @@ type Routes = {
164929
165138
  queryParams: {};
164930
165139
  jsonBody: {
164931
165140
  /** Type of connector to create */
164932
- connector_type: 'mock' | 'mews' | 'rms';
165141
+ connector_type: 'mock' | 'mews' | 'rms' | 'cloudbeds';
164933
165142
  /** Key identifying the customer */
164934
165143
  customer_key?: string | undefined;
164935
165144
  /** Instance-specific configuration for the connector */
@@ -165028,6 +165237,7 @@ type Routes = {
165028
165237
  client_token?: string | undefined;
165029
165238
  access_token?: string | undefined;
165030
165239
  client?: string;
165240
+ is_demo?: boolean;
165031
165241
  enterprise_ids?: string[] | undefined;
165032
165242
  enterprise_id?: string | undefined;
165033
165243
  } | {
@@ -165038,6 +165248,13 @@ type Routes = {
165038
165248
  /** Optional property ID for single-property connectors */
165039
165249
  property_id?: (string | number) | undefined;
165040
165250
  auth_token?: string | undefined;
165251
+ } | {
165252
+ /** OAuth2 access token for authentication */
165253
+ access_token?: string | undefined;
165254
+ /** OAuth2 refresh token for token refresh */
165255
+ refresh_token?: string | undefined;
165256
+ /** Optional property ID for single-property connectors */
165257
+ property_id?: string | undefined;
165041
165258
  };
165042
165259
  };
165043
165260
  commonParams: {};
@@ -167194,6 +167411,7 @@ type Routes = {
167194
167411
  jsonResponse: {
167195
167412
  /** Business vertical of the customer portal. */
167196
167413
  business_vertical?: ('short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined;
167414
+ slug?: (string | null) | undefined;
167197
167415
  };
167198
167416
  maxDuration: undefined;
167199
167417
  };
@@ -167204,6 +167422,8 @@ type Routes = {
167204
167422
  jsonBody: {
167205
167423
  /** Business vertical to set on the workspace. */
167206
167424
  business_vertical?: ('short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined;
167425
+ /** Slug to set on the workspace. */
167426
+ slug?: (string | null) | undefined;
167207
167427
  };
167208
167428
  commonParams: {};
167209
167429
  formData: {};
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: "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
+ slug: {
54553
+ description: "Workspace slug",
54554
+ minLength: 1,
54555
+ type: "string"
54556
+ }
54557
+ },
54558
+ required: ["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
  },
@@ -56819,7 +56961,8 @@ var openapi_default = {
56819
56961
  ],
56820
56962
  type: "string"
56821
56963
  },
56822
- ok: { type: "boolean" }
56964
+ ok: { type: "boolean" },
56965
+ slug: { nullable: true, type: "string" }
56823
56966
  },
56824
56967
  required: ["ok"],
56825
56968
  type: "object"
@@ -56861,7 +57004,8 @@ var openapi_default = {
56861
57004
  ],
56862
57005
  type: "string"
56863
57006
  },
56864
- ok: { type: "boolean" }
57007
+ ok: { type: "boolean" },
57008
+ slug: { nullable: true, type: "string" }
56865
57009
  },
56866
57010
  required: ["ok"],
56867
57011
  type: "object"
@@ -56903,6 +57047,11 @@ var openapi_default = {
56903
57047
  "property_tours"
56904
57048
  ],
56905
57049
  type: "string"
57050
+ },
57051
+ slug: {
57052
+ description: "Slug to set on the workspace.",
57053
+ nullable: true,
57054
+ type: "string"
56906
57055
  }
56907
57056
  },
56908
57057
  type: "object"
@@ -56953,6 +57102,11 @@ var openapi_default = {
56953
57102
  "property_tours"
56954
57103
  ],
56955
57104
  type: "string"
57105
+ },
57106
+ slug: {
57107
+ description: "Slug to set on the workspace.",
57108
+ nullable: true,
57109
+ type: "string"
56956
57110
  }
56957
57111
  },
56958
57112
  type: "object"