@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.
@@ -12522,6 +12522,15 @@ export type Routes = {
12522
12522
  /** Longitude of the space, in decimal degrees. */
12523
12523
  longitude: number;
12524
12524
  } | null) | undefined;
12525
+ /** Warnings associated with the space. */
12526
+ warnings: {
12527
+ /** Date and time at which Seam created the warning. */
12528
+ created_at: string;
12529
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
12530
+ message: string;
12531
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
12532
+ warning_code: 'being_deleted';
12533
+ }[];
12525
12534
  /** */
12526
12535
  parent_space_id?: string | undefined;
12527
12536
  /** */
@@ -19765,6 +19774,15 @@ export type Routes = {
19765
19774
  /** Longitude of the space, in decimal degrees. */
19766
19775
  longitude: number;
19767
19776
  } | null) | undefined;
19777
+ /** Warnings associated with the space. */
19778
+ warnings: {
19779
+ /** Date and time at which Seam created the warning. */
19780
+ created_at: string;
19781
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
19782
+ message: string;
19783
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
19784
+ warning_code: 'being_deleted';
19785
+ }[];
19768
19786
  /** */
19769
19787
  parent_space_id?: string | undefined;
19770
19788
  /** */
@@ -81517,6 +81535,15 @@ export type Routes = {
81517
81535
  /** Longitude of the space, in decimal degrees. */
81518
81536
  longitude: number;
81519
81537
  } | null) | undefined;
81538
+ /** Warnings associated with the space. */
81539
+ warnings: {
81540
+ /** Date and time at which Seam created the warning. */
81541
+ created_at: string;
81542
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
81543
+ message: string;
81544
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
81545
+ warning_code: 'being_deleted';
81546
+ }[];
81520
81547
  /** */
81521
81548
  parent_space_id?: string | undefined;
81522
81549
  /** */
@@ -81586,6 +81613,15 @@ export type Routes = {
81586
81613
  /** Longitude of the space, in decimal degrees. */
81587
81614
  longitude: number;
81588
81615
  } | null) | undefined;
81616
+ /** Warnings associated with the space. */
81617
+ warnings: {
81618
+ /** Date and time at which Seam created the warning. */
81619
+ created_at: string;
81620
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
81621
+ message: string;
81622
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
81623
+ warning_code: 'being_deleted';
81624
+ }[];
81589
81625
  /** */
81590
81626
  parent_space_id?: string | undefined;
81591
81627
  /** */
@@ -81647,6 +81683,15 @@ export type Routes = {
81647
81683
  /** Longitude of the space, in decimal degrees. */
81648
81684
  longitude: number;
81649
81685
  } | null) | undefined;
81686
+ /** Warnings associated with the space. */
81687
+ warnings: {
81688
+ /** Date and time at which Seam created the warning. */
81689
+ created_at: string;
81690
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
81691
+ message: string;
81692
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
81693
+ warning_code: 'being_deleted';
81694
+ }[];
81650
81695
  /** */
81651
81696
  parent_space_id?: string | undefined;
81652
81697
  /** */
@@ -89185,6 +89230,15 @@ export type Routes = {
89185
89230
  /** Longitude of the space, in decimal degrees. */
89186
89231
  longitude: number;
89187
89232
  } | null) | undefined;
89233
+ /** Warnings associated with the space. */
89234
+ warnings: {
89235
+ /** Date and time at which Seam created the warning. */
89236
+ created_at: string;
89237
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
89238
+ message: string;
89239
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
89240
+ warning_code: 'being_deleted';
89241
+ }[];
89188
89242
  /** */
89189
89243
  parent_space_id?: string | undefined;
89190
89244
  /** */
@@ -89249,6 +89303,15 @@ export type Routes = {
89249
89303
  /** Longitude of the space, in decimal degrees. */
89250
89304
  longitude: number;
89251
89305
  } | null) | undefined;
89306
+ /** Warnings associated with the space. */
89307
+ warnings: {
89308
+ /** Date and time at which Seam created the warning. */
89309
+ created_at: string;
89310
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
89311
+ message: string;
89312
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
89313
+ warning_code: 'being_deleted';
89314
+ }[];
89252
89315
  /** */
89253
89316
  parent_space_id?: string | undefined;
89254
89317
  /** */
@@ -94154,6 +94217,15 @@ export type Routes = {
94154
94217
  /** Longitude of the space, in decimal degrees. */
94155
94218
  longitude: number;
94156
94219
  } | null) | undefined;
94220
+ /** Warnings associated with the space. */
94221
+ warnings: {
94222
+ /** Date and time at which Seam created the warning. */
94223
+ created_at: string;
94224
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
94225
+ message: string;
94226
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
94227
+ warning_code: 'being_deleted';
94228
+ }[];
94157
94229
  /** */
94158
94230
  parent_space_id?: string | undefined;
94159
94231
  /** */
@@ -94227,6 +94299,15 @@ export type Routes = {
94227
94299
  /** Longitude of the space, in decimal degrees. */
94228
94300
  longitude: number;
94229
94301
  } | null) | undefined;
94302
+ /** Warnings associated with the space. */
94303
+ warnings: {
94304
+ /** Date and time at which Seam created the warning. */
94305
+ created_at: string;
94306
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
94307
+ message: string;
94308
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
94309
+ warning_code: 'being_deleted';
94310
+ }[];
94230
94311
  /** */
94231
94312
  parent_space_id?: string | undefined;
94232
94313
  /** */
@@ -94289,6 +94370,15 @@ export type Routes = {
94289
94370
  /** Longitude of the space, in decimal degrees. */
94290
94371
  longitude: number;
94291
94372
  } | null) | undefined;
94373
+ /** Warnings associated with the space. */
94374
+ warnings: {
94375
+ /** Date and time at which Seam created the warning. */
94376
+ created_at: string;
94377
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
94378
+ message: string;
94379
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
94380
+ warning_code: 'being_deleted';
94381
+ }[];
94292
94382
  /** */
94293
94383
  parent_space_id?: string | undefined;
94294
94384
  /** */
@@ -96585,6 +96675,15 @@ export type Routes = {
96585
96675
  /** Longitude of the space, in decimal degrees. */
96586
96676
  longitude: number;
96587
96677
  } | null) | undefined;
96678
+ /** Warnings associated with the space. */
96679
+ warnings: {
96680
+ /** Date and time at which Seam created the warning. */
96681
+ created_at: string;
96682
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
96683
+ message: string;
96684
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
96685
+ warning_code: 'being_deleted';
96686
+ }[];
96588
96687
  /** */
96589
96688
  parent_space_id?: string | undefined;
96590
96689
  /** */
@@ -96719,6 +96818,15 @@ export type Routes = {
96719
96818
  /** Longitude of the space, in decimal degrees. */
96720
96819
  longitude: number;
96721
96820
  } | null) | undefined;
96821
+ /** Warnings associated with the space. */
96822
+ warnings: {
96823
+ /** Date and time at which Seam created the warning. */
96824
+ created_at: string;
96825
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
96826
+ message: string;
96827
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
96828
+ warning_code: 'being_deleted';
96829
+ }[];
96722
96830
  /** */
96723
96831
  parent_space_id?: string | undefined;
96724
96832
  /** */
@@ -130657,6 +130765,15 @@ export type Routes = {
130657
130765
  /** Longitude of the space, in decimal degrees. */
130658
130766
  longitude: number;
130659
130767
  } | null) | undefined;
130768
+ /** Warnings associated with the space. */
130769
+ warnings: {
130770
+ /** Date and time at which Seam created the warning. */
130771
+ created_at: string;
130772
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
130773
+ message: string;
130774
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
130775
+ warning_code: 'being_deleted';
130776
+ }[];
130660
130777
  /** */
130661
130778
  parent_space_id?: string | undefined;
130662
130779
  /** */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1096.0",
3
+ "version": "1.1098.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -37,6 +37,38 @@ export const space_geolocation = z
37
37
  })
38
38
  .describe('Geographic coordinates of the space.')
39
39
 
40
+ const warning_code_description =
41
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
42
+
43
+ const common_space_warning = z.object({
44
+ created_at: datetime.describe(
45
+ 'Date and time at which Seam created the warning.',
46
+ ),
47
+ message: z
48
+ .string()
49
+ .describe(
50
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
51
+ ),
52
+ })
53
+
54
+ const space_being_deleted = common_space_warning
55
+ .extend({
56
+ warning_code: z.literal('being_deleted').describe(warning_code_description),
57
+ })
58
+ .describe(
59
+ 'Indicates that the space is being deleted. Seam removes it, revokes its access grants, and detaches its devices and entrances shortly.',
60
+ )
61
+
62
+ const space_warning = z
63
+ .discriminatedUnion('warning_code', [space_being_deleted])
64
+ .describe('Warning associated with the space.')
65
+
66
+ const _space_warning_map = z.object({
67
+ being_deleted: space_being_deleted.optional().nullable(),
68
+ })
69
+
70
+ export type SpaceWarningMap = z.infer<typeof _space_warning_map>
71
+
40
72
  export const space = z.object({
41
73
  space_id: z.string().uuid().describe('ID of the space.'),
42
74
  workspace_id: z
@@ -67,6 +99,9 @@ export const space = z.object({
67
99
  geolocation: space_geolocation
68
100
  .nullish()
69
101
  .describe('Geographic coordinates (latitude and longitude) of the space.'),
102
+ warnings: z
103
+ .array(space_warning)
104
+ .describe('Warnings associated with the space.'),
70
105
  parent_space_id: z.string().uuid().optional().describe(`
71
106
  ---
72
107
  undocumented: Only used internally.
@@ -31640,6 +31640,41 @@ const openapi: OpenAPISpec = {
31640
31640
  description: 'Unique key for the space within the workspace.',
31641
31641
  type: 'string',
31642
31642
  },
31643
+ warnings: {
31644
+ description: 'Warnings associated with the space.',
31645
+ items: {
31646
+ description: 'Warning associated with the space.',
31647
+ discriminator: { propertyName: 'warning_code' },
31648
+ oneOf: [
31649
+ {
31650
+ description:
31651
+ 'Indicates that the space is being deleted. Seam removes it, revokes its access grants, and detaches its devices and entrances shortly.',
31652
+ properties: {
31653
+ created_at: {
31654
+ description:
31655
+ 'Date and time at which Seam created the warning.',
31656
+ format: 'date-time',
31657
+ type: 'string',
31658
+ },
31659
+ message: {
31660
+ description:
31661
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
31662
+ type: 'string',
31663
+ },
31664
+ warning_code: {
31665
+ description:
31666
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
31667
+ enum: ['being_deleted'],
31668
+ type: 'string',
31669
+ },
31670
+ },
31671
+ required: ['created_at', 'message', 'warning_code'],
31672
+ type: 'object',
31673
+ },
31674
+ ],
31675
+ },
31676
+ type: 'array',
31677
+ },
31643
31678
  workspace_id: {
31644
31679
  description: 'ID of the workspace associated with the space.',
31645
31680
  format: 'uuid',
@@ -31654,6 +31689,7 @@ const openapi: OpenAPISpec = {
31654
31689
  'created_at',
31655
31690
  'device_count',
31656
31691
  'acs_entrance_count',
31692
+ 'warnings',
31657
31693
  ],
31658
31694
  type: 'object',
31659
31695
  'x-draft': 'Early access.',
@@ -71954,7 +71990,8 @@ const openapi: OpenAPISpec = {
71954
71990
  },
71955
71991
  '/workspaces/customization_profiles/create': {
71956
71992
  post: {
71957
- description: 'Updates the customization profile for the workspace.',
71993
+ description:
71994
+ "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.",
71958
71995
  operationId: 'workspacesCustomizationProfilesCreatePost',
71959
71996
  requestBody: {
71960
71997
  content: {
@@ -72021,7 +72058,7 @@ const openapi: OpenAPISpec = {
72021
72058
  'x-fern-sdk-method-name': 'create',
72022
72059
  'x-fern-sdk-return-value': 'customization_profile',
72023
72060
  'x-response-key': 'customization_profile',
72024
- 'x-title': 'Update Customization Profile',
72061
+ 'x-title': 'Create Customization Profile',
72025
72062
  'x-undocumented': 'Unreleased.',
72026
72063
  },
72027
72064
  },
@@ -14334,6 +14334,15 @@ export type Routes = {
14334
14334
  longitude: number
14335
14335
  } | null)
14336
14336
  | undefined
14337
+ /** Warnings associated with the space. */
14338
+ warnings: {
14339
+ /** Date and time at which Seam created the warning. */
14340
+ created_at: string
14341
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
14342
+ message: string
14343
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
14344
+ warning_code: 'being_deleted'
14345
+ }[]
14337
14346
  /** */
14338
14347
  parent_space_id?: string | undefined
14339
14348
  /** */
@@ -22971,6 +22980,15 @@ export type Routes = {
22971
22980
  longitude: number
22972
22981
  } | null)
22973
22982
  | undefined
22983
+ /** Warnings associated with the space. */
22984
+ warnings: {
22985
+ /** Date and time at which Seam created the warning. */
22986
+ created_at: string
22987
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
22988
+ message: string
22989
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
22990
+ warning_code: 'being_deleted'
22991
+ }[]
22974
22992
  /** */
22975
22993
  parent_space_id?: string | undefined
22976
22994
  /** */
@@ -97979,6 +97997,15 @@ export type Routes = {
97979
97997
  longitude: number
97980
97998
  } | null)
97981
97999
  | undefined
98000
+ /** Warnings associated with the space. */
98001
+ warnings: {
98002
+ /** Date and time at which Seam created the warning. */
98003
+ created_at: string
98004
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
98005
+ message: string
98006
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
98007
+ warning_code: 'being_deleted'
98008
+ }[]
97982
98009
  /** */
97983
98010
  parent_space_id?: string | undefined
97984
98011
  /** */
@@ -98052,6 +98079,15 @@ export type Routes = {
98052
98079
  longitude: number
98053
98080
  } | null)
98054
98081
  | undefined
98082
+ /** Warnings associated with the space. */
98083
+ warnings: {
98084
+ /** Date and time at which Seam created the warning. */
98085
+ created_at: string
98086
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
98087
+ message: string
98088
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
98089
+ warning_code: 'being_deleted'
98090
+ }[]
98055
98091
  /** */
98056
98092
  parent_space_id?: string | undefined
98057
98093
  /** */
@@ -98117,6 +98153,15 @@ export type Routes = {
98117
98153
  longitude: number
98118
98154
  } | null)
98119
98155
  | undefined
98156
+ /** Warnings associated with the space. */
98157
+ warnings: {
98158
+ /** Date and time at which Seam created the warning. */
98159
+ created_at: string
98160
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
98161
+ message: string
98162
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
98163
+ warning_code: 'being_deleted'
98164
+ }[]
98120
98165
  /** */
98121
98166
  parent_space_id?: string | undefined
98122
98167
  /** */
@@ -107011,6 +107056,15 @@ export type Routes = {
107011
107056
  longitude: number
107012
107057
  } | null)
107013
107058
  | undefined
107059
+ /** Warnings associated with the space. */
107060
+ warnings: {
107061
+ /** Date and time at which Seam created the warning. */
107062
+ created_at: string
107063
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
107064
+ message: string
107065
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
107066
+ warning_code: 'being_deleted'
107067
+ }[]
107014
107068
  /** */
107015
107069
  parent_space_id?: string | undefined
107016
107070
  /** */
@@ -107079,6 +107133,15 @@ export type Routes = {
107079
107133
  longitude: number
107080
107134
  } | null)
107081
107135
  | undefined
107136
+ /** Warnings associated with the space. */
107137
+ warnings: {
107138
+ /** Date and time at which Seam created the warning. */
107139
+ created_at: string
107140
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
107141
+ message: string
107142
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
107143
+ warning_code: 'being_deleted'
107144
+ }[]
107082
107145
  /** */
107083
107146
  parent_space_id?: string | undefined
107084
107147
  /** */
@@ -112804,6 +112867,15 @@ export type Routes = {
112804
112867
  longitude: number
112805
112868
  } | null)
112806
112869
  | undefined
112870
+ /** Warnings associated with the space. */
112871
+ warnings: {
112872
+ /** Date and time at which Seam created the warning. */
112873
+ created_at: string
112874
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
112875
+ message: string
112876
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
112877
+ warning_code: 'being_deleted'
112878
+ }[]
112807
112879
  /** */
112808
112880
  parent_space_id?: string | undefined
112809
112881
  /** */
@@ -112883,6 +112955,15 @@ export type Routes = {
112883
112955
  longitude: number
112884
112956
  } | null)
112885
112957
  | undefined
112958
+ /** Warnings associated with the space. */
112959
+ warnings: {
112960
+ /** Date and time at which Seam created the warning. */
112961
+ created_at: string
112962
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
112963
+ message: string
112964
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
112965
+ warning_code: 'being_deleted'
112966
+ }[]
112886
112967
  /** */
112887
112968
  parent_space_id?: string | undefined
112888
112969
  /** */
@@ -112968,6 +113049,15 @@ export type Routes = {
112968
113049
  longitude: number
112969
113050
  } | null)
112970
113051
  | undefined
113052
+ /** Warnings associated with the space. */
113053
+ warnings: {
113054
+ /** Date and time at which Seam created the warning. */
113055
+ created_at: string
113056
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
113057
+ message: string
113058
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
113059
+ warning_code: 'being_deleted'
113060
+ }[]
112971
113061
  /** */
112972
113062
  parent_space_id?: string | undefined
112973
113063
  /** */
@@ -115898,6 +115988,15 @@ export type Routes = {
115898
115988
  longitude: number
115899
115989
  } | null)
115900
115990
  | undefined
115991
+ /** Warnings associated with the space. */
115992
+ warnings: {
115993
+ /** Date and time at which Seam created the warning. */
115994
+ created_at: string
115995
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
115996
+ message: string
115997
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
115998
+ warning_code: 'being_deleted'
115999
+ }[]
115901
116000
  /** */
115902
116001
  parent_space_id?: string | undefined
115903
116002
  /** */
@@ -116038,6 +116137,15 @@ export type Routes = {
116038
116137
  longitude: number
116039
116138
  } | null)
116040
116139
  | undefined
116140
+ /** Warnings associated with the space. */
116141
+ warnings: {
116142
+ /** Date and time at which Seam created the warning. */
116143
+ created_at: string
116144
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
116145
+ message: string
116146
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
116147
+ warning_code: 'being_deleted'
116148
+ }[]
116041
116149
  /** */
116042
116150
  parent_space_id?: string | undefined
116043
116151
  /** */
@@ -156518,6 +156626,15 @@ export type Routes = {
156518
156626
  longitude: number
156519
156627
  } | null)
156520
156628
  | undefined
156629
+ /** Warnings associated with the space. */
156630
+ warnings: {
156631
+ /** Date and time at which Seam created the warning. */
156632
+ created_at: string
156633
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
156634
+ message: string
156635
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
156636
+ warning_code: 'being_deleted'
156637
+ }[]
156521
156638
  /** */
156522
156639
  parent_space_id?: string | undefined
156523
156640
  /** */