@seamapi/types 1.1096.0 → 1.1098.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"}
@@ -28333,6 +28333,37 @@ const openapi = {
28333
28333
  description: 'Unique key for the space within the workspace.',
28334
28334
  type: 'string',
28335
28335
  },
28336
+ warnings: {
28337
+ description: 'Warnings associated with the space.',
28338
+ items: {
28339
+ description: 'Warning associated with the space.',
28340
+ discriminator: { propertyName: 'warning_code' },
28341
+ oneOf: [
28342
+ {
28343
+ description: 'Indicates that the space is being deleted. Seam removes it, revokes its access grants, and detaches its devices and entrances shortly.',
28344
+ properties: {
28345
+ created_at: {
28346
+ description: 'Date and time at which Seam created the warning.',
28347
+ format: 'date-time',
28348
+ type: 'string',
28349
+ },
28350
+ message: {
28351
+ description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
28352
+ type: 'string',
28353
+ },
28354
+ warning_code: {
28355
+ description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
28356
+ enum: ['being_deleted'],
28357
+ type: 'string',
28358
+ },
28359
+ },
28360
+ required: ['created_at', 'message', 'warning_code'],
28361
+ type: 'object',
28362
+ },
28363
+ ],
28364
+ },
28365
+ type: 'array',
28366
+ },
28336
28367
  workspace_id: {
28337
28368
  description: 'ID of the workspace associated with the space.',
28338
28369
  format: 'uuid',
@@ -28347,6 +28378,7 @@ const openapi = {
28347
28378
  'created_at',
28348
28379
  'device_count',
28349
28380
  'acs_entrance_count',
28381
+ 'warnings',
28350
28382
  ],
28351
28383
  type: 'object',
28352
28384
  'x-draft': 'Early access.',
@@ -66240,7 +66272,7 @@ const openapi = {
66240
66272
  },
66241
66273
  '/workspaces/customization_profiles/create': {
66242
66274
  post: {
66243
- description: 'Updates the customization profile for the workspace.',
66275
+ description: "Creates a customization profile. From a customer client session, the profile is owned by that customer, and it becomes the customer's `customization_profile_id` when the customer has none yet.",
66244
66276
  operationId: 'workspacesCustomizationProfilesCreatePost',
66245
66277
  requestBody: {
66246
66278
  content: {
@@ -66307,7 +66339,7 @@ const openapi = {
66307
66339
  'x-fern-sdk-method-name': 'create',
66308
66340
  'x-fern-sdk-return-value': 'customization_profile',
66309
66341
  'x-response-key': 'customization_profile',
66310
- 'x-title': 'Update Customization Profile',
66342
+ 'x-title': 'Create Customization Profile',
66311
66343
  'x-undocumented': 'Unreleased.',
66312
66344
  },
66313
66345
  },