@seamapi/types 1.811.0 → 1.813.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
@@ -2765,13 +2765,30 @@ var device_does_not_support_access_codes = common_access_grant_warning.extend({
2765
2765
  }).describe(
2766
2766
  "Indicates that a device in the access grant does not support access codes and was excluded from code materialization."
2767
2767
  );
2768
+ var device_time_constraints_violated_reason = zod.z.enum([
2769
+ "duration_exceeds_max",
2770
+ "times_do_not_match_slots",
2771
+ "ongoing_not_supported"
2772
+ ]);
2773
+ var device_time_constraints_violated = common_access_grant_warning.extend({
2774
+ warning_code: zod.z.literal("device_time_constraints_violated").describe(warning_code_description4),
2775
+ device_id: zod.z.string().uuid().describe(
2776
+ "ID of the device whose time constraints the access grant violates."
2777
+ ),
2778
+ reason: device_time_constraints_violated_reason.describe(
2779
+ "Specific reason why the grant's times are not programmable on the device."
2780
+ )
2781
+ }).describe(
2782
+ "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints."
2783
+ );
2768
2784
  var access_grant_warning = zod.z.discriminatedUnion("warning_code", [
2769
2785
  being_deleted3,
2770
2786
  underprovisioned_access,
2771
2787
  overprovisioned_access,
2772
2788
  updating_access_times,
2773
2789
  requested_code_unavailable,
2774
- device_does_not_support_access_codes
2790
+ device_does_not_support_access_codes,
2791
+ device_time_constraints_violated
2775
2792
  ]).describe(
2776
2793
  "Warning associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants)."
2777
2794
  );
@@ -2781,7 +2798,8 @@ zod.z.object({
2781
2798
  overprovisioned_access: overprovisioned_access.optional().nullable(),
2782
2799
  updating_access_times: updating_access_times.optional().nullable(),
2783
2800
  requested_code_unavailable_by_device: zod.z.record(zod.z.string().uuid(), requested_code_unavailable).optional().nullable(),
2784
- device_does_not_support_access_codes: zod.z.record(zod.z.string().uuid(), device_does_not_support_access_codes).optional().nullable()
2801
+ device_does_not_support_access_codes: zod.z.record(zod.z.string().uuid(), device_does_not_support_access_codes).optional().nullable(),
2802
+ device_time_constraints_violated: zod.z.record(zod.z.string().uuid(), device_time_constraints_violated).optional().nullable()
2785
2803
  });
2786
2804
  var access_grant = zod.z.object({
2787
2805
  workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the Access Grant."),
@@ -9178,6 +9196,47 @@ var openapi_default = {
9178
9196
  "device_id"
9179
9197
  ],
9180
9198
  type: "object"
9199
+ },
9200
+ {
9201
+ description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
9202
+ properties: {
9203
+ created_at: {
9204
+ description: "Date and time at which Seam created the warning.",
9205
+ format: "date-time",
9206
+ type: "string"
9207
+ },
9208
+ device_id: {
9209
+ description: "ID of the device whose time constraints the access grant violates.",
9210
+ format: "uuid",
9211
+ type: "string"
9212
+ },
9213
+ message: {
9214
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
9215
+ type: "string"
9216
+ },
9217
+ reason: {
9218
+ description: "Specific reason why the grant's times are not programmable on the device.",
9219
+ enum: [
9220
+ "duration_exceeds_max",
9221
+ "times_do_not_match_slots",
9222
+ "ongoing_not_supported"
9223
+ ],
9224
+ type: "string"
9225
+ },
9226
+ warning_code: {
9227
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9228
+ enum: ["device_time_constraints_violated"],
9229
+ type: "string"
9230
+ }
9231
+ },
9232
+ required: [
9233
+ "created_at",
9234
+ "message",
9235
+ "warning_code",
9236
+ "device_id",
9237
+ "reason"
9238
+ ],
9239
+ type: "object"
9181
9240
  }
9182
9241
  ]
9183
9242
  },
@@ -39523,6 +39582,47 @@ var openapi_default = {
39523
39582
  "device_id"
39524
39583
  ],
39525
39584
  type: "object"
39585
+ },
39586
+ {
39587
+ description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
39588
+ properties: {
39589
+ created_at: {
39590
+ description: "Date and time at which Seam created the warning.",
39591
+ format: "date-time",
39592
+ type: "string"
39593
+ },
39594
+ device_id: {
39595
+ description: "ID of the device whose time constraints the access grant violates.",
39596
+ format: "uuid",
39597
+ type: "string"
39598
+ },
39599
+ message: {
39600
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
39601
+ type: "string"
39602
+ },
39603
+ reason: {
39604
+ description: "Specific reason why the grant's times are not programmable on the device.",
39605
+ enum: [
39606
+ "duration_exceeds_max",
39607
+ "times_do_not_match_slots",
39608
+ "ongoing_not_supported"
39609
+ ],
39610
+ type: "string"
39611
+ },
39612
+ warning_code: {
39613
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
39614
+ enum: ["device_time_constraints_violated"],
39615
+ type: "string"
39616
+ }
39617
+ },
39618
+ required: [
39619
+ "created_at",
39620
+ "message",
39621
+ "warning_code",
39622
+ "device_id",
39623
+ "reason"
39624
+ ],
39625
+ type: "object"
39526
39626
  }
39527
39627
  ]
39528
39628
  },
@@ -40104,6 +40204,47 @@ var openapi_default = {
40104
40204
  "device_id"
40105
40205
  ],
40106
40206
  type: "object"
40207
+ },
40208
+ {
40209
+ description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
40210
+ properties: {
40211
+ created_at: {
40212
+ description: "Date and time at which Seam created the warning.",
40213
+ format: "date-time",
40214
+ type: "string"
40215
+ },
40216
+ device_id: {
40217
+ description: "ID of the device whose time constraints the access grant violates.",
40218
+ format: "uuid",
40219
+ type: "string"
40220
+ },
40221
+ message: {
40222
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
40223
+ type: "string"
40224
+ },
40225
+ reason: {
40226
+ description: "Specific reason why the grant's times are not programmable on the device.",
40227
+ enum: [
40228
+ "duration_exceeds_max",
40229
+ "times_do_not_match_slots",
40230
+ "ongoing_not_supported"
40231
+ ],
40232
+ type: "string"
40233
+ },
40234
+ warning_code: {
40235
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
40236
+ enum: ["device_time_constraints_violated"],
40237
+ type: "string"
40238
+ }
40239
+ },
40240
+ required: [
40241
+ "created_at",
40242
+ "message",
40243
+ "warning_code",
40244
+ "device_id",
40245
+ "reason"
40246
+ ],
40247
+ type: "object"
40107
40248
  }
40108
40249
  ]
40109
40250
  },
@@ -40727,6 +40868,49 @@ var openapi_default = {
40727
40868
  "device_id"
40728
40869
  ],
40729
40870
  type: "object"
40871
+ },
40872
+ {
40873
+ description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
40874
+ properties: {
40875
+ created_at: {
40876
+ description: "Date and time at which Seam created the warning.",
40877
+ format: "date-time",
40878
+ type: "string"
40879
+ },
40880
+ device_id: {
40881
+ description: "ID of the device whose time constraints the access grant violates.",
40882
+ format: "uuid",
40883
+ type: "string"
40884
+ },
40885
+ message: {
40886
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
40887
+ type: "string"
40888
+ },
40889
+ reason: {
40890
+ description: "Specific reason why the grant's times are not programmable on the device.",
40891
+ enum: [
40892
+ "duration_exceeds_max",
40893
+ "times_do_not_match_slots",
40894
+ "ongoing_not_supported"
40895
+ ],
40896
+ type: "string"
40897
+ },
40898
+ warning_code: {
40899
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
40900
+ enum: [
40901
+ "device_time_constraints_violated"
40902
+ ],
40903
+ type: "string"
40904
+ }
40905
+ },
40906
+ required: [
40907
+ "created_at",
40908
+ "message",
40909
+ "warning_code",
40910
+ "device_id",
40911
+ "reason"
40912
+ ],
40913
+ type: "object"
40730
40914
  }
40731
40915
  ]
40732
40916
  },
@@ -41336,6 +41520,49 @@ var openapi_default = {
41336
41520
  "device_id"
41337
41521
  ],
41338
41522
  type: "object"
41523
+ },
41524
+ {
41525
+ description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
41526
+ properties: {
41527
+ created_at: {
41528
+ description: "Date and time at which Seam created the warning.",
41529
+ format: "date-time",
41530
+ type: "string"
41531
+ },
41532
+ device_id: {
41533
+ description: "ID of the device whose time constraints the access grant violates.",
41534
+ format: "uuid",
41535
+ type: "string"
41536
+ },
41537
+ message: {
41538
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
41539
+ type: "string"
41540
+ },
41541
+ reason: {
41542
+ description: "Specific reason why the grant's times are not programmable on the device.",
41543
+ enum: [
41544
+ "duration_exceeds_max",
41545
+ "times_do_not_match_slots",
41546
+ "ongoing_not_supported"
41547
+ ],
41548
+ type: "string"
41549
+ },
41550
+ warning_code: {
41551
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
41552
+ enum: [
41553
+ "device_time_constraints_violated"
41554
+ ],
41555
+ type: "string"
41556
+ }
41557
+ },
41558
+ required: [
41559
+ "created_at",
41560
+ "message",
41561
+ "warning_code",
41562
+ "device_id",
41563
+ "reason"
41564
+ ],
41565
+ type: "object"
41339
41566
  }
41340
41567
  ]
41341
41568
  },
@@ -74733,6 +74960,116 @@ var openapi_default = {
74733
74960
  "x-title": "Add Entrances to a Space"
74734
74961
  }
74735
74962
  },
74963
+ "/spaces/add_connected_account": {
74964
+ post: {
74965
+ description: "Adds a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) to a specific space.",
74966
+ operationId: "spacesAddConnectedAccountPost",
74967
+ requestBody: {
74968
+ content: {
74969
+ "application/json": {
74970
+ schema: {
74971
+ properties: {
74972
+ connected_account_id: {
74973
+ description: "ID of the connected account that you want to add to the space.",
74974
+ format: "uuid",
74975
+ type: "string"
74976
+ },
74977
+ space_id: {
74978
+ description: "ID of the space to which you want to add the connected account.",
74979
+ format: "uuid",
74980
+ type: "string"
74981
+ }
74982
+ },
74983
+ required: ["space_id", "connected_account_id"],
74984
+ type: "object"
74985
+ }
74986
+ }
74987
+ }
74988
+ },
74989
+ responses: {
74990
+ 200: {
74991
+ content: {
74992
+ "application/json": {
74993
+ schema: {
74994
+ properties: { ok: { type: "boolean" } },
74995
+ required: ["ok"],
74996
+ type: "object"
74997
+ }
74998
+ }
74999
+ },
75000
+ description: "OK"
75001
+ },
75002
+ 400: { description: "Bad Request" },
75003
+ 401: { description: "Unauthorized" }
75004
+ },
75005
+ security: [
75006
+ { pat_with_workspace: [] },
75007
+ { console_session_with_workspace: [] },
75008
+ { api_key: [] },
75009
+ { client_session_with_customer: [] }
75010
+ ],
75011
+ summary: "/spaces/add_connected_account",
75012
+ tags: [],
75013
+ "x-fern-sdk-group-name": ["spaces"],
75014
+ "x-fern-sdk-method-name": "add_connected_account",
75015
+ "x-response-key": null,
75016
+ "x-title": "Add a Connected Account to a Space"
75017
+ },
75018
+ put: {
75019
+ description: "Adds a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) to a specific space.",
75020
+ operationId: "spacesAddConnectedAccountPut",
75021
+ requestBody: {
75022
+ content: {
75023
+ "application/json": {
75024
+ schema: {
75025
+ properties: {
75026
+ connected_account_id: {
75027
+ description: "ID of the connected account that you want to add to the space.",
75028
+ format: "uuid",
75029
+ type: "string"
75030
+ },
75031
+ space_id: {
75032
+ description: "ID of the space to which you want to add the connected account.",
75033
+ format: "uuid",
75034
+ type: "string"
75035
+ }
75036
+ },
75037
+ required: ["space_id", "connected_account_id"],
75038
+ type: "object"
75039
+ }
75040
+ }
75041
+ }
75042
+ },
75043
+ responses: {
75044
+ 200: {
75045
+ content: {
75046
+ "application/json": {
75047
+ schema: {
75048
+ properties: { ok: { type: "boolean" } },
75049
+ required: ["ok"],
75050
+ type: "object"
75051
+ }
75052
+ }
75053
+ },
75054
+ description: "OK"
75055
+ },
75056
+ 400: { description: "Bad Request" },
75057
+ 401: { description: "Unauthorized" }
75058
+ },
75059
+ security: [
75060
+ { pat_with_workspace: [] },
75061
+ { console_session_with_workspace: [] },
75062
+ { api_key: [] },
75063
+ { client_session_with_customer: [] }
75064
+ ],
75065
+ summary: "/spaces/add_connected_account",
75066
+ tags: [],
75067
+ "x-fern-sdk-group-name": ["spaces"],
75068
+ "x-fern-sdk-method-name": "add_connected_account",
75069
+ "x-response-key": null,
75070
+ "x-title": "Add a Connected Account to a Space"
75071
+ }
75072
+ },
74736
75073
  "/spaces/add_devices": {
74737
75074
  post: {
74738
75075
  description: "Adds devices to a specific space.",
@@ -75696,6 +76033,116 @@ var openapi_default = {
75696
76033
  "x-title": "Remove Entrances from a Space"
75697
76034
  }
75698
76035
  },
76036
+ "/spaces/remove_connected_account": {
76037
+ delete: {
76038
+ description: "Removes a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) from a specific space.",
76039
+ operationId: "spacesRemoveConnectedAccountDelete",
76040
+ parameters: [
76041
+ {
76042
+ in: "query",
76043
+ name: "space_id",
76044
+ required: true,
76045
+ schema: {
76046
+ description: "ID of the space from which you want to remove the connected account.",
76047
+ format: "uuid",
76048
+ type: "string"
76049
+ }
76050
+ },
76051
+ {
76052
+ in: "query",
76053
+ name: "connected_account_id",
76054
+ required: true,
76055
+ schema: {
76056
+ description: "ID of the connected account that you want to remove from the space.",
76057
+ format: "uuid",
76058
+ type: "string"
76059
+ }
76060
+ }
76061
+ ],
76062
+ responses: {
76063
+ 200: {
76064
+ content: {
76065
+ "application/json": {
76066
+ schema: {
76067
+ properties: { ok: { type: "boolean" } },
76068
+ required: ["ok"],
76069
+ type: "object"
76070
+ }
76071
+ }
76072
+ },
76073
+ description: "OK"
76074
+ },
76075
+ 400: { description: "Bad Request" },
76076
+ 401: { description: "Unauthorized" }
76077
+ },
76078
+ security: [
76079
+ { pat_with_workspace: [] },
76080
+ { console_session_with_workspace: [] },
76081
+ { api_key: [] },
76082
+ { client_session_with_customer: [] }
76083
+ ],
76084
+ summary: "/spaces/remove_connected_account",
76085
+ tags: [],
76086
+ "x-fern-sdk-group-name": ["spaces"],
76087
+ "x-fern-sdk-method-name": "remove_connected_account",
76088
+ "x-response-key": null,
76089
+ "x-title": "Remove a Connected Account from a Space"
76090
+ },
76091
+ post: {
76092
+ description: "Removes a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) from a specific space.",
76093
+ operationId: "spacesRemoveConnectedAccountPost",
76094
+ requestBody: {
76095
+ content: {
76096
+ "application/json": {
76097
+ schema: {
76098
+ properties: {
76099
+ connected_account_id: {
76100
+ description: "ID of the connected account that you want to remove from the space.",
76101
+ format: "uuid",
76102
+ type: "string"
76103
+ },
76104
+ space_id: {
76105
+ description: "ID of the space from which you want to remove the connected account.",
76106
+ format: "uuid",
76107
+ type: "string"
76108
+ }
76109
+ },
76110
+ required: ["space_id", "connected_account_id"],
76111
+ type: "object"
76112
+ }
76113
+ }
76114
+ }
76115
+ },
76116
+ responses: {
76117
+ 200: {
76118
+ content: {
76119
+ "application/json": {
76120
+ schema: {
76121
+ properties: { ok: { type: "boolean" } },
76122
+ required: ["ok"],
76123
+ type: "object"
76124
+ }
76125
+ }
76126
+ },
76127
+ description: "OK"
76128
+ },
76129
+ 400: { description: "Bad Request" },
76130
+ 401: { description: "Unauthorized" }
76131
+ },
76132
+ security: [
76133
+ { pat_with_workspace: [] },
76134
+ { console_session_with_workspace: [] },
76135
+ { api_key: [] },
76136
+ { client_session_with_customer: [] }
76137
+ ],
76138
+ summary: "/spaces/remove_connected_account",
76139
+ tags: [],
76140
+ "x-fern-sdk-group-name": ["spaces"],
76141
+ "x-fern-sdk-method-name": "remove_connected_account",
76142
+ "x-response-key": null,
76143
+ "x-title": "Remove a Connected Account from a Space"
76144
+ }
76145
+ },
75699
76146
  "/spaces/remove_devices": {
75700
76147
  delete: {
75701
76148
  description: "Removes devices from a specific space.",