@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 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
  },