@seamapi/types 1.966.0 → 1.968.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
@@ -3619,6 +3619,13 @@ var acs_entrance_salto_ks_metadata = zod.z.object({
3619
3619
  intrusion_alarm: zod.z.boolean().optional().describe("Indicates whether an intrusion alarm is active on the door."),
3620
3620
  privacy_mode: zod.z.boolean().optional().describe("Indicates whether privacy mode is enabled for the lock.")
3621
3621
  }).partial().describe("Salto KS-specific metadata associated with the entrance.");
3622
+ var acs_user_salto_ks_metadata = zod.z.object({
3623
+ is_subscribed: zod.z.boolean().optional().describe(
3624
+ "Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked."
3625
+ )
3626
+ }).partial().describe(
3627
+ "Salto KS-specific metadata associated with the access system user."
3628
+ );
3622
3629
  var acs_entrance_salto_space_metadata = zod.z.object({
3623
3630
  door_id: zod.z.string().optional().describe("Door ID in the Salto Space access system."),
3624
3631
  door_name: zod.z.string().optional().describe("Name of the door in the Salto Space access system."),
@@ -4741,6 +4748,9 @@ var common_acs_user = zod.z.object({
4741
4748
  `),
4742
4749
  salto_space_metadata: acs_user_salto_space_metadata.optional().describe(
4743
4750
  "Salto Space-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management)."
4751
+ ),
4752
+ salto_ks_metadata: acs_user_salto_ks_metadata.optional().describe(
4753
+ "Salto KS-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management)."
4744
4754
  )
4745
4755
  }).merge(user_fields);
4746
4756
  var acs_user = common_acs_user.merge(
@@ -12515,6 +12525,16 @@ var openapi = {
12515
12525
  description: "Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).",
12516
12526
  type: "string"
12517
12527
  },
12528
+ salto_ks_metadata: {
12529
+ description: "Salto KS-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).",
12530
+ properties: {
12531
+ is_subscribed: {
12532
+ description: "Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked.",
12533
+ type: "boolean"
12534
+ }
12535
+ },
12536
+ type: "object"
12537
+ },
12518
12538
  salto_space_metadata: {
12519
12539
  description: "Salto Space-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).",
12520
12540
  properties: {
@@ -36535,6 +36555,16 @@ var openapi = {
36535
36555
  description: "Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).",
36536
36556
  type: "string"
36537
36557
  },
36558
+ salto_ks_metadata: {
36559
+ description: "Salto KS-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).",
36560
+ properties: {
36561
+ is_subscribed: {
36562
+ description: "Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked.",
36563
+ type: "boolean"
36564
+ }
36565
+ },
36566
+ type: "object"
36567
+ },
36538
36568
  salto_space_metadata: {
36539
36569
  description: "Salto Space-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).",
36540
36570
  properties: {
@@ -38490,6 +38520,11 @@ var openapi = {
38490
38520
  scheme: "bearer",
38491
38521
  type: "http"
38492
38522
  },
38523
+ internal_service_agent: {
38524
+ bearerFormat: "Internal Service Agent Key",
38525
+ scheme: "bearer",
38526
+ type: "http"
38527
+ },
38493
38528
  pat_with_workspace: {
38494
38529
  bearerFormat: "API Token",
38495
38530
  scheme: "bearer",
@@ -38510,7 +38545,12 @@ var openapi = {
38510
38545
  name: "seam-client-session-token",
38511
38546
  type: "apiKey"
38512
38547
  },
38513
- seam_workspace: { in: "header", name: "seam-workspace", type: "apiKey" }
38548
+ seam_workspace: { in: "header", name: "seam-workspace", type: "apiKey" },
38549
+ support_read_only_token: {
38550
+ bearerFormat: "Support Read-Only Token",
38551
+ scheme: "bearer",
38552
+ type: "http"
38553
+ }
38514
38554
  }
38515
38555
  },
38516
38556
  info: { title: "Seam Connect", version: "1.0.0" },
@@ -82072,6 +82112,88 @@ var openapi = {
82072
82112
  "x-undocumented": "Seam Instant Key only."
82073
82113
  }
82074
82114
  },
82115
+ "/seam/mcp/v1/create_ro_token": {
82116
+ post: {
82117
+ description: "Mints a short-lived, read-only token bound to a single workspace. Used by the Seam support agent to inspect a customer workspace via read-only public API endpoints.",
82118
+ operationId: "seamMcpV1CreateRoTokenPost",
82119
+ requestBody: {
82120
+ content: {
82121
+ "application/json": {
82122
+ schema: {
82123
+ properties: {
82124
+ created_by: {
82125
+ description: "Identity of the automation minting the token (e.g. an agent session ID), recorded for auditing.",
82126
+ type: "string"
82127
+ },
82128
+ workspace_id: {
82129
+ description: "ID of the workspace the token will be bound to.",
82130
+ format: "uuid",
82131
+ type: "string"
82132
+ }
82133
+ },
82134
+ required: ["workspace_id"],
82135
+ type: "object"
82136
+ }
82137
+ }
82138
+ }
82139
+ },
82140
+ responses: {
82141
+ 200: {
82142
+ content: {
82143
+ "application/json": {
82144
+ schema: {
82145
+ properties: {
82146
+ ok: { type: "boolean" },
82147
+ support_read_only_token: {
82148
+ properties: {
82149
+ created_at: {
82150
+ description: "Date and time at which the token was created.",
82151
+ type: "string"
82152
+ },
82153
+ expires_at: {
82154
+ description: "Date and time at which the token expires. Tokens live for one hour.",
82155
+ type: "string"
82156
+ },
82157
+ token: {
82158
+ description: "Support read-only token to use as a Bearer token.",
82159
+ type: "string"
82160
+ },
82161
+ workspace_id: {
82162
+ description: "ID of the workspace the token is bound to.",
82163
+ format: "uuid",
82164
+ type: "string"
82165
+ }
82166
+ },
82167
+ required: [
82168
+ "token",
82169
+ "workspace_id",
82170
+ "created_at",
82171
+ "expires_at"
82172
+ ],
82173
+ type: "object"
82174
+ }
82175
+ },
82176
+ required: ["support_read_only_token", "ok"],
82177
+ type: "object"
82178
+ }
82179
+ }
82180
+ },
82181
+ description: "OK"
82182
+ },
82183
+ 400: { description: "Bad Request" },
82184
+ 401: { description: "Unauthorized" }
82185
+ },
82186
+ security: [{ internal_service_agent: [] }],
82187
+ summary: "/seam/mcp/v1/create_ro_token",
82188
+ tags: [],
82189
+ "x-fern-sdk-group-name": ["seam", "mcp", "v1"],
82190
+ "x-fern-sdk-method-name": "create_ro_token",
82191
+ "x-fern-sdk-return-value": "support_read_only_token",
82192
+ "x-response-key": "support_read_only_token",
82193
+ "x-title": "Create Support Read-Only Token",
82194
+ "x-undocumented": "Seam support agent only."
82195
+ }
82196
+ },
82075
82197
  "/seam/mobile_sdk/v1/acs/credentials/list": {
82076
82198
  get: {
82077
82199
  description: "Returns a list of all [credentials](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).",