@seamapi/types 1.599.0 → 1.600.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 +215 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +346 -0
- package/dist/index.cjs +215 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +281 -0
- package/lib/seam/connect/openapi.js +215 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +65 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +221 -0
- package/src/lib/seam/connect/route-types.ts +69 -0
package/dist/connect.cjs
CHANGED
|
@@ -52988,6 +52988,171 @@ var openapi_default = {
|
|
|
52988
52988
|
"x-undocumented": "Internal endpoint for customer portals."
|
|
52989
52989
|
}
|
|
52990
52990
|
},
|
|
52991
|
+
"/seam/customer/v1/connectors/create": {
|
|
52992
|
+
post: {
|
|
52993
|
+
description: "Creates a new connector for a customer in a workspace. The connector will be activated and start syncing data from the external API.",
|
|
52994
|
+
operationId: "seamCustomerV1ConnectorsCreatePost",
|
|
52995
|
+
requestBody: {
|
|
52996
|
+
content: {
|
|
52997
|
+
"application/json": {
|
|
52998
|
+
schema: {
|
|
52999
|
+
properties: {
|
|
53000
|
+
config: {
|
|
53001
|
+
description: "Instance-specific configuration for the connector",
|
|
53002
|
+
oneOf: [
|
|
53003
|
+
{
|
|
53004
|
+
properties: {
|
|
53005
|
+
access_token: { minLength: 1, type: "string" },
|
|
53006
|
+
client: { minLength: 1, type: "string" },
|
|
53007
|
+
client_token: { minLength: 1, type: "string" },
|
|
53008
|
+
enterprise_ids: {
|
|
53009
|
+
items: { format: "uuid", type: "string" },
|
|
53010
|
+
type: "array"
|
|
53011
|
+
}
|
|
53012
|
+
},
|
|
53013
|
+
required: ["client_token", "access_token", "client"],
|
|
53014
|
+
type: "object"
|
|
53015
|
+
},
|
|
53016
|
+
{ properties: {}, type: "object" }
|
|
53017
|
+
]
|
|
53018
|
+
},
|
|
53019
|
+
connector_type: {
|
|
53020
|
+
description: "Type of connector to create",
|
|
53021
|
+
enum: ["mews", "mock"],
|
|
53022
|
+
type: "string"
|
|
53023
|
+
},
|
|
53024
|
+
customer_key: {
|
|
53025
|
+
description: "Key identifying the customer",
|
|
53026
|
+
minLength: 1,
|
|
53027
|
+
type: "string"
|
|
53028
|
+
}
|
|
53029
|
+
},
|
|
53030
|
+
required: ["connector_type", "customer_key", "config"],
|
|
53031
|
+
type: "object"
|
|
53032
|
+
}
|
|
53033
|
+
}
|
|
53034
|
+
}
|
|
53035
|
+
},
|
|
53036
|
+
responses: {
|
|
53037
|
+
200: {
|
|
53038
|
+
content: {
|
|
53039
|
+
"application/json": {
|
|
53040
|
+
schema: {
|
|
53041
|
+
properties: {
|
|
53042
|
+
connector: {
|
|
53043
|
+
properties: {
|
|
53044
|
+
connector_id: { type: "string" },
|
|
53045
|
+
connector_type: { type: "string" },
|
|
53046
|
+
error: { type: "string" },
|
|
53047
|
+
status: {
|
|
53048
|
+
enum: ["active", "inactive", "error"],
|
|
53049
|
+
type: "string"
|
|
53050
|
+
},
|
|
53051
|
+
webhook_subscription: {
|
|
53052
|
+
properties: {
|
|
53053
|
+
events: {
|
|
53054
|
+
items: { type: "string" },
|
|
53055
|
+
type: "array"
|
|
53056
|
+
},
|
|
53057
|
+
status: {
|
|
53058
|
+
enum: ["active", "inactive", "error"],
|
|
53059
|
+
type: "string"
|
|
53060
|
+
},
|
|
53061
|
+
subscription_id: { type: "string" },
|
|
53062
|
+
webhook_url: { type: "string" }
|
|
53063
|
+
},
|
|
53064
|
+
required: [
|
|
53065
|
+
"subscription_id",
|
|
53066
|
+
"webhook_url",
|
|
53067
|
+
"events",
|
|
53068
|
+
"status"
|
|
53069
|
+
],
|
|
53070
|
+
type: "object"
|
|
53071
|
+
}
|
|
53072
|
+
},
|
|
53073
|
+
required: ["connector_id", "connector_type", "status"],
|
|
53074
|
+
type: "object"
|
|
53075
|
+
},
|
|
53076
|
+
ok: { type: "boolean" }
|
|
53077
|
+
},
|
|
53078
|
+
required: ["connector", "ok"],
|
|
53079
|
+
type: "object"
|
|
53080
|
+
}
|
|
53081
|
+
}
|
|
53082
|
+
},
|
|
53083
|
+
description: "OK"
|
|
53084
|
+
},
|
|
53085
|
+
400: { description: "Bad Request" },
|
|
53086
|
+
401: { description: "Unauthorized" }
|
|
53087
|
+
},
|
|
53088
|
+
security: [{ api_key: [] }],
|
|
53089
|
+
summary: "/seam/customer/v1/connectors/create",
|
|
53090
|
+
tags: [],
|
|
53091
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
|
|
53092
|
+
"x-fern-sdk-method-name": "create",
|
|
53093
|
+
"x-fern-sdk-return-value": "connector",
|
|
53094
|
+
"x-response-key": "connector",
|
|
53095
|
+
"x-title": "Create Connector"
|
|
53096
|
+
}
|
|
53097
|
+
},
|
|
53098
|
+
"/seam/customer/v1/connectors/sync": {
|
|
53099
|
+
post: {
|
|
53100
|
+
description: "Triggers an immediate data sync for a connector by scheduling a polling task.",
|
|
53101
|
+
operationId: "seamCustomerV1ConnectorsSyncPost",
|
|
53102
|
+
requestBody: {
|
|
53103
|
+
content: {
|
|
53104
|
+
"application/json": {
|
|
53105
|
+
schema: {
|
|
53106
|
+
properties: {
|
|
53107
|
+
connector_id: {
|
|
53108
|
+
description: "ID of the connector to sync",
|
|
53109
|
+
format: "uuid",
|
|
53110
|
+
type: "string"
|
|
53111
|
+
}
|
|
53112
|
+
},
|
|
53113
|
+
required: ["connector_id"],
|
|
53114
|
+
type: "object"
|
|
53115
|
+
}
|
|
53116
|
+
}
|
|
53117
|
+
}
|
|
53118
|
+
},
|
|
53119
|
+
responses: {
|
|
53120
|
+
200: {
|
|
53121
|
+
content: {
|
|
53122
|
+
"application/json": {
|
|
53123
|
+
schema: {
|
|
53124
|
+
properties: {
|
|
53125
|
+
connector_sync: {
|
|
53126
|
+
properties: {
|
|
53127
|
+
connector_id: { type: "string" },
|
|
53128
|
+
message: { type: "string" },
|
|
53129
|
+
status: { type: "string" }
|
|
53130
|
+
},
|
|
53131
|
+
required: ["connector_id", "status", "message"],
|
|
53132
|
+
type: "object"
|
|
53133
|
+
},
|
|
53134
|
+
ok: { type: "boolean" }
|
|
53135
|
+
},
|
|
53136
|
+
required: ["connector_sync", "ok"],
|
|
53137
|
+
type: "object"
|
|
53138
|
+
}
|
|
53139
|
+
}
|
|
53140
|
+
},
|
|
53141
|
+
description: "OK"
|
|
53142
|
+
},
|
|
53143
|
+
400: { description: "Bad Request" },
|
|
53144
|
+
401: { description: "Unauthorized" }
|
|
53145
|
+
},
|
|
53146
|
+
security: [{ api_key: [] }],
|
|
53147
|
+
summary: "/seam/customer/v1/connectors/sync",
|
|
53148
|
+
tags: [],
|
|
53149
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "connectors"],
|
|
53150
|
+
"x-fern-sdk-method-name": "sync",
|
|
53151
|
+
"x-fern-sdk-return-value": "connector_sync",
|
|
53152
|
+
"x-response-key": "connector_sync",
|
|
53153
|
+
"x-title": "Sync Connector Data"
|
|
53154
|
+
}
|
|
53155
|
+
},
|
|
52991
53156
|
"/seam/customer/v1/events/list": {
|
|
52992
53157
|
get: {
|
|
52993
53158
|
description: "Returns a list of events for devices in a specific space. This endpoint is designed for customer portals and only supports filtering by space_id.",
|
|
@@ -54990,6 +55155,56 @@ var openapi_default = {
|
|
|
54990
55155
|
"x-title": "List Spaces"
|
|
54991
55156
|
}
|
|
54992
55157
|
},
|
|
55158
|
+
"/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]": {
|
|
55159
|
+
post: {
|
|
55160
|
+
description: "Receives webhook events from external connector APIs and processes them into partner resources.",
|
|
55161
|
+
operationId: "seamCustomerV1WebhooksConnectorsByWorkspaceIdByConnectorIdPost",
|
|
55162
|
+
requestBody: {
|
|
55163
|
+
content: {
|
|
55164
|
+
"application/json": { schema: { properties: {}, type: "object" } }
|
|
55165
|
+
}
|
|
55166
|
+
},
|
|
55167
|
+
responses: {
|
|
55168
|
+
200: {
|
|
55169
|
+
content: {
|
|
55170
|
+
"application/json": {
|
|
55171
|
+
schema: {
|
|
55172
|
+
properties: {
|
|
55173
|
+
error: { type: "string" },
|
|
55174
|
+
ok: { type: "boolean" },
|
|
55175
|
+
processed_events: { format: "float", type: "number" },
|
|
55176
|
+
success: { type: "boolean" }
|
|
55177
|
+
},
|
|
55178
|
+
required: ["success", "processed_events", "ok"],
|
|
55179
|
+
type: "object"
|
|
55180
|
+
}
|
|
55181
|
+
}
|
|
55182
|
+
},
|
|
55183
|
+
description: "OK"
|
|
55184
|
+
},
|
|
55185
|
+
400: { description: "Bad Request" },
|
|
55186
|
+
401: { description: "Unauthorized" }
|
|
55187
|
+
},
|
|
55188
|
+
security: [
|
|
55189
|
+
{ pat_with_workspace: [] },
|
|
55190
|
+
{ console_session_with_workspace: [] },
|
|
55191
|
+
{ api_key: [] }
|
|
55192
|
+
],
|
|
55193
|
+
summary: "/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]",
|
|
55194
|
+
tags: ["/webhooks"],
|
|
55195
|
+
"x-fern-sdk-group-name": [
|
|
55196
|
+
"seam",
|
|
55197
|
+
"customer",
|
|
55198
|
+
"v1",
|
|
55199
|
+
"webhooks",
|
|
55200
|
+
"connectors",
|
|
55201
|
+
"[workspace_id]"
|
|
55202
|
+
],
|
|
55203
|
+
"x-fern-sdk-method-name": "by_connector_id",
|
|
55204
|
+
"x-response-key": null,
|
|
55205
|
+
"x-title": "Connector Webhook Endpoint"
|
|
55206
|
+
}
|
|
55207
|
+
},
|
|
54993
55208
|
"/seam/instant_key/v1/client_sessions/exchange_short_code": {
|
|
54994
55209
|
post: {
|
|
54995
55210
|
description: "Exchanges a short code for a client session token. Mobile apps use this endpoint to retrieve a client session token securely using a short code obtained from an Instant Key URL.",
|