@seamapi/types 1.1097.0 → 1.1099.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.
@@ -25,6 +25,35 @@ export declare const space_geolocation: z.ZodObject<{
25
25
  latitude: number;
26
26
  longitude: number;
27
27
  }>;
28
+ declare const _space_warning_map: z.ZodObject<{
29
+ being_deleted: z.ZodNullable<z.ZodOptional<z.ZodObject<{
30
+ created_at: z.ZodString;
31
+ message: z.ZodString;
32
+ } & {
33
+ warning_code: z.ZodLiteral<"being_deleted">;
34
+ }, "strip", z.ZodTypeAny, {
35
+ message: string;
36
+ created_at: string;
37
+ warning_code: "being_deleted";
38
+ }, {
39
+ message: string;
40
+ created_at: string;
41
+ warning_code: "being_deleted";
42
+ }>>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ being_deleted?: {
45
+ message: string;
46
+ created_at: string;
47
+ warning_code: "being_deleted";
48
+ } | null | undefined;
49
+ }, {
50
+ being_deleted?: {
51
+ message: string;
52
+ created_at: string;
53
+ warning_code: "being_deleted";
54
+ } | null | undefined;
55
+ }>;
56
+ export type SpaceWarningMap = z.infer<typeof _space_warning_map>;
28
57
  export declare const space: z.ZodObject<{
29
58
  space_id: z.ZodString;
30
59
  workspace_id: z.ZodString;
@@ -61,6 +90,20 @@ export declare const space: z.ZodObject<{
61
90
  latitude: number;
62
91
  longitude: number;
63
92
  }>>>;
93
+ warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
94
+ created_at: z.ZodString;
95
+ message: z.ZodString;
96
+ } & {
97
+ warning_code: z.ZodLiteral<"being_deleted">;
98
+ }, "strip", z.ZodTypeAny, {
99
+ message: string;
100
+ created_at: string;
101
+ warning_code: "being_deleted";
102
+ }, {
103
+ message: string;
104
+ created_at: string;
105
+ warning_code: "being_deleted";
106
+ }>]>, "many">;
64
107
  parent_space_id: z.ZodOptional<z.ZodString>;
65
108
  parent_space_key: z.ZodOptional<z.ZodString>;
66
109
  }, "strip", z.ZodTypeAny, {
@@ -68,6 +111,11 @@ export declare const space: z.ZodObject<{
68
111
  name: string;
69
112
  workspace_id: string;
70
113
  created_at: string;
114
+ warnings: {
115
+ message: string;
116
+ created_at: string;
117
+ warning_code: "being_deleted";
118
+ }[];
71
119
  device_count: number;
72
120
  space_id: string;
73
121
  acs_entrance_count: number;
@@ -90,6 +138,11 @@ export declare const space: z.ZodObject<{
90
138
  name: string;
91
139
  workspace_id: string;
92
140
  created_at: string;
141
+ warnings: {
142
+ message: string;
143
+ created_at: string;
144
+ warning_code: "being_deleted";
145
+ }[];
93
146
  device_count: number;
94
147
  space_id: string;
95
148
  acs_entrance_count: number;
@@ -109,3 +162,4 @@ export declare const space: z.ZodObject<{
109
162
  parent_space_key?: string | undefined;
110
163
  }>;
111
164
  export type Space = z.infer<typeof space>;
165
+ export {};
@@ -28,6 +28,24 @@ export const space_geolocation = z
28
28
  .describe('Longitude of the space, in decimal degrees.'),
29
29
  })
30
30
  .describe('Geographic coordinates of the space.');
31
+ const warning_code_description = 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.';
32
+ const common_space_warning = z.object({
33
+ created_at: datetime.describe('Date and time at which Seam created the warning.'),
34
+ message: z
35
+ .string()
36
+ .describe('Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.'),
37
+ });
38
+ const space_being_deleted = common_space_warning
39
+ .extend({
40
+ warning_code: z.literal('being_deleted').describe(warning_code_description),
41
+ })
42
+ .describe('Indicates that the space is being deleted. Seam removes it, revokes its access grants, and detaches its devices and entrances shortly.');
43
+ const space_warning = z
44
+ .discriminatedUnion('warning_code', [space_being_deleted])
45
+ .describe('Warning associated with the space.');
46
+ const _space_warning_map = z.object({
47
+ being_deleted: space_being_deleted.optional().nullable(),
48
+ });
31
49
  export const space = z.object({
32
50
  space_id: z.string().uuid().describe('ID of the space.'),
33
51
  workspace_id: z
@@ -54,6 +72,9 @@ export const space = z.object({
54
72
  geolocation: space_geolocation
55
73
  .nullish()
56
74
  .describe('Geographic coordinates (latitude and longitude) of the space.'),
75
+ warnings: z
76
+ .array(space_warning)
77
+ .describe('Warnings associated with the space.'),
57
78
  parent_space_id: z.string().uuid().optional().describe(`
58
79
  ---
59
80
  undocumented: Only used internally.
@@ -1 +1 @@
1
- {"version":3,"file":"space.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/spaces/space.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,cAAc,GAAG,sCAAsC,CAAA;AAE7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,OAAO,EAAE;SACT,QAAQ,CAAC,yDAAyD,CAAC;IACtE,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,KAAK,CAAC,cAAc,CAAC;SACrB,OAAO,EAAE;SACT,QAAQ,CACP,4EAA4E,CAC7E;IACH,qBAAqB,EAAE,CAAC;SACrB,MAAM,EAAE;SACR,KAAK,CAAC,cAAc,CAAC;SACrB,OAAO,EAAE;SACT,QAAQ,CACP,6EAA6E,CAC9E;IACH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CACxE,CAAC;KACD,QAAQ,CAAC,kDAAkD,CAAC,CAAA;AAE/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IAC3E,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,CAAC,6CAA6C,CAAC;CAC3D,CAAC;KACD,QAAQ,CAAC,sCAAsC,CAAC,CAAA;AAEnD,MAAM,CAAC,MAAM,KAAK,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C,CAAC;IAC5E,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yCAAyC,CAAC;IACtD,aAAa,EAAE,mBAAmB;SAC/B,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;SAC9B,QAAQ,CACP,sOAAsO,CACvO;SACA,QAAQ,EAAE;IACb,WAAW,EAAE,iBAAiB;SAC3B,OAAO,EAAE;SACT,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,aAAa,CAAC;SACpB,QAAQ,CAAC,qCAAqC,CAAC;IAClD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;KAIpD,CAAC;IACJ,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;KAI9C,CAAC;CACL,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
@@ -1634,6 +1634,28 @@ const openapi = {
1634
1634
  type: 'object',
1635
1635
  'x-resource-type': 'access_grant',
1636
1636
  },
1637
+ {
1638
+ description: 'Indicates that the access system rejected the access that Seam tried to set up for this access grant, so its credentials cannot open the affected entrances. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.',
1639
+ properties: {
1640
+ created_at: {
1641
+ description: 'Date and time at which Seam created the error.',
1642
+ format: 'date-time',
1643
+ type: 'string',
1644
+ },
1645
+ error_code: {
1646
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
1647
+ enum: ['access_not_provisioned'],
1648
+ type: 'string',
1649
+ },
1650
+ message: {
1651
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
1652
+ type: 'string',
1653
+ },
1654
+ },
1655
+ required: ['created_at', 'message', 'error_code'],
1656
+ type: 'object',
1657
+ 'x-resource-type': 'access_grant',
1658
+ },
1637
1659
  ],
1638
1660
  },
1639
1661
  type: 'array',
@@ -2186,6 +2208,28 @@ const openapi = {
2186
2208
  type: 'object',
2187
2209
  'x-resource-type': 'access_method',
2188
2210
  },
2211
+ {
2212
+ description: 'Indicates that the access system rejected the access that Seam tried to set up for this access method, so its credential cannot open the affected entrances, even after it is issued. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.',
2213
+ properties: {
2214
+ created_at: {
2215
+ description: 'Date and time at which Seam created the error.',
2216
+ format: 'date-time',
2217
+ type: 'string',
2218
+ },
2219
+ error_code: {
2220
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
2221
+ enum: ['access_not_provisioned'],
2222
+ type: 'string',
2223
+ },
2224
+ message: {
2225
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
2226
+ type: 'string',
2227
+ },
2228
+ },
2229
+ required: ['created_at', 'message', 'error_code'],
2230
+ type: 'object',
2231
+ 'x-resource-type': 'access_method',
2232
+ },
2189
2233
  ],
2190
2234
  },
2191
2235
  type: 'array',
@@ -8685,6 +8729,28 @@ const openapi = {
8685
8729
  type: 'object',
8686
8730
  'x-resource-type': 'access_method',
8687
8731
  },
8732
+ {
8733
+ description: 'Indicates that the access system rejected the access that Seam tried to set up for this access method, so its credential cannot open the affected entrances, even after it is issued. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.',
8734
+ properties: {
8735
+ created_at: {
8736
+ description: 'Date and time at which Seam created the error.',
8737
+ format: 'date-time',
8738
+ type: 'string',
8739
+ },
8740
+ error_code: {
8741
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
8742
+ enum: ['access_not_provisioned'],
8743
+ type: 'string',
8744
+ },
8745
+ message: {
8746
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
8747
+ type: 'string',
8748
+ },
8749
+ },
8750
+ required: ['created_at', 'message', 'error_code'],
8751
+ type: 'object',
8752
+ 'x-resource-type': 'access_method',
8753
+ },
8688
8754
  ],
8689
8755
  },
8690
8756
  type: 'array',
@@ -28333,6 +28399,37 @@ const openapi = {
28333
28399
  description: 'Unique key for the space within the workspace.',
28334
28400
  type: 'string',
28335
28401
  },
28402
+ warnings: {
28403
+ description: 'Warnings associated with the space.',
28404
+ items: {
28405
+ description: 'Warning associated with the space.',
28406
+ discriminator: { propertyName: 'warning_code' },
28407
+ oneOf: [
28408
+ {
28409
+ description: 'Indicates that the space is being deleted. Seam removes it, revokes its access grants, and detaches its devices and entrances shortly.',
28410
+ properties: {
28411
+ created_at: {
28412
+ description: 'Date and time at which Seam created the warning.',
28413
+ format: 'date-time',
28414
+ type: 'string',
28415
+ },
28416
+ message: {
28417
+ description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
28418
+ type: 'string',
28419
+ },
28420
+ warning_code: {
28421
+ description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
28422
+ enum: ['being_deleted'],
28423
+ type: 'string',
28424
+ },
28425
+ },
28426
+ required: ['created_at', 'message', 'warning_code'],
28427
+ type: 'object',
28428
+ },
28429
+ ],
28430
+ },
28431
+ type: 'array',
28432
+ },
28336
28433
  workspace_id: {
28337
28434
  description: 'ID of the workspace associated with the space.',
28338
28435
  format: 'uuid',
@@ -28347,6 +28444,7 @@ const openapi = {
28347
28444
  'created_at',
28348
28445
  'device_count',
28349
28446
  'acs_entrance_count',
28447
+ 'warnings',
28350
28448
  ],
28351
28449
  type: 'object',
28352
28450
  'x-draft': 'Early access.',
@@ -29910,6 +30008,28 @@ const openapi = {
29910
30008
  type: 'object',
29911
30009
  'x-resource-type': 'access_grant',
29912
30010
  },
30011
+ {
30012
+ description: 'Indicates that the access system rejected the access that Seam tried to set up for this access grant, so its credentials cannot open the affected entrances. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.',
30013
+ properties: {
30014
+ created_at: {
30015
+ description: 'Date and time at which Seam created the error.',
30016
+ format: 'date-time',
30017
+ type: 'string',
30018
+ },
30019
+ error_code: {
30020
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
30021
+ enum: ['access_not_provisioned'],
30022
+ type: 'string',
30023
+ },
30024
+ message: {
30025
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
30026
+ type: 'string',
30027
+ },
30028
+ },
30029
+ required: ['created_at', 'message', 'error_code'],
30030
+ type: 'object',
30031
+ 'x-resource-type': 'access_grant',
30032
+ },
29913
30033
  ],
29914
30034
  },
29915
30035
  type: 'array',
@@ -30446,6 +30566,28 @@ const openapi = {
30446
30566
  type: 'object',
30447
30567
  'x-resource-type': 'access_method',
30448
30568
  },
30569
+ {
30570
+ description: 'Indicates that the access system rejected the access that Seam tried to set up for this access method, so its credential cannot open the affected entrances, even after it is issued. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.',
30571
+ properties: {
30572
+ created_at: {
30573
+ description: 'Date and time at which Seam created the error.',
30574
+ format: 'date-time',
30575
+ type: 'string',
30576
+ },
30577
+ error_code: {
30578
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
30579
+ enum: ['access_not_provisioned'],
30580
+ type: 'string',
30581
+ },
30582
+ message: {
30583
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
30584
+ type: 'string',
30585
+ },
30586
+ },
30587
+ required: ['created_at', 'message', 'error_code'],
30588
+ type: 'object',
30589
+ 'x-resource-type': 'access_method',
30590
+ },
30449
30591
  ],
30450
30592
  },
30451
30593
  type: 'array',