@seamapi/types 1.407.0 → 1.409.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.
Files changed (44) hide show
  1. package/dist/connect.cjs +2194 -526
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +4416 -1760
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/model-types.d.ts +1 -1
  8. package/lib/seam/connect/models/access-grants/access-grant.d.ts +3 -0
  9. package/lib/seam/connect/models/access-grants/access-grant.js +9 -3
  10. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  11. package/lib/seam/connect/models/access-grants/access-method.js +2 -1
  12. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  13. package/lib/seam/connect/models/access-grants/requested-access-method.js +1 -5
  14. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
  15. package/lib/seam/connect/models/index.d.ts +1 -0
  16. package/lib/seam/connect/models/index.js +1 -0
  17. package/lib/seam/connect/models/index.js.map +1 -1
  18. package/lib/seam/connect/models/pagination.d.ts +1 -0
  19. package/lib/seam/connect/models/spaces/index.d.ts +1 -0
  20. package/lib/seam/connect/models/spaces/index.js +2 -0
  21. package/lib/seam/connect/models/spaces/index.js.map +1 -0
  22. package/lib/seam/connect/models/spaces/space.d.ts +21 -0
  23. package/lib/seam/connect/models/spaces/space.js +20 -0
  24. package/lib/seam/connect/models/spaces/space.js.map +1 -0
  25. package/lib/seam/connect/openapi.d.ts +5805 -3750
  26. package/lib/seam/connect/openapi.js +6538 -4891
  27. package/lib/seam/connect/openapi.js.map +1 -1
  28. package/lib/seam/connect/route-types.d.ts +476 -13
  29. package/lib/seam/connect/schemas.d.ts +1 -1
  30. package/lib/seam/connect/schemas.js +1 -1
  31. package/lib/seam/connect/schemas.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  34. package/src/lib/seam/connect/model-types.ts +6 -0
  35. package/src/lib/seam/connect/models/access-grants/access-grant.ts +9 -3
  36. package/src/lib/seam/connect/models/access-grants/access-method.ts +2 -1
  37. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +1 -5
  38. package/src/lib/seam/connect/models/index.ts +1 -0
  39. package/src/lib/seam/connect/models/pagination.ts +2 -0
  40. package/src/lib/seam/connect/models/spaces/index.ts +1 -0
  41. package/src/lib/seam/connect/models/spaces/space.ts +24 -0
  42. package/src/lib/seam/connect/openapi.ts +7562 -5851
  43. package/src/lib/seam/connect/route-types.ts +481 -13
  44. package/src/lib/seam/connect/schemas.ts +2 -0
@@ -14,9 +14,14 @@ export const access_grant = z.object({
14
14
  .string()
15
15
  .uuid()
16
16
  .describe('ID of user identity to which access is being granted.'),
17
- location_ids: z
17
+ location_ids: z.array(z.string().uuid()).describe(`
18
+ ---
19
+ deprecated: Use \`space_ids\`.
20
+ ---
21
+ `),
22
+ space_ids: z
18
23
  .array(z.string().uuid())
19
- .describe('IDs of the locations to which access is being given.'),
24
+ .describe('IDs of the spaces to which access is being given.'),
20
25
  requested_access_methods: z
21
26
  .array(requested_access_method)
22
27
  .describe('Access methods that the user requested for this access grant.'),
@@ -32,7 +37,8 @@ export const access_grant = z.object({
32
37
  .describe('Date and time at which the access grant was created.'),
33
38
  }).describe(`
34
39
  ---
35
- undocumented: Unreleased.
40
+ draft: Early access.
41
+ route_path: /access_grants
36
42
  ---
37
43
  `)
38
44
 
@@ -35,7 +35,8 @@ export const access_method = z.object({
35
35
  ),
36
36
  }).describe(`
37
37
  ---
38
- undocumented: Unreleased.
38
+ draft: Early access.
39
+ route_path: /access_methods
39
40
  ---
40
41
  `)
41
42
 
@@ -18,10 +18,6 @@ export const requested_access_method = z.object({
18
18
  .describe(
19
19
  'IDs of the access methods that were created for this requested access method.',
20
20
  ),
21
- }).describe(`
22
- ---
23
- undocumented: Unreleased.
24
- ---
25
- `)
21
+ })
26
22
 
27
23
  export type RequestedAccessMethod = z.infer<typeof requested_access_method>
@@ -17,6 +17,7 @@ export * from './pagination.js'
17
17
  export * from './partner/index.js'
18
18
  export * from './phone-number.js'
19
19
  export * from './phones/index.js'
20
+ export * from './spaces/index.js'
20
21
  export * from './thermostats/index.js'
21
22
  export * from './user-identities/index.js'
22
23
  export * from './webhooks/index.js'
@@ -21,3 +21,5 @@ export const pagination = z
21
21
  .describe('URL to get the next page of results.'),
22
22
  })
23
23
  .describe('Information about the current page of results.')
24
+
25
+ export type Pagination = z.infer<typeof pagination>
@@ -0,0 +1 @@
1
+ export * from './space.js'
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod'
2
+
3
+ export const space = z.object({
4
+ space_id: z.string().uuid().describe('Unique identifier for the space.'),
5
+ workspace_id: z
6
+ .string()
7
+ .uuid()
8
+ .describe(
9
+ 'Unique identifier for the Seam workspace associated with the space.',
10
+ ),
11
+ name: z.string().describe('Name of the space.'),
12
+ display_name: z.string().describe('Display name of the space.'),
13
+ created_at: z
14
+ .string()
15
+ .datetime()
16
+ .describe('Date and time at which the space object was created.'),
17
+ }).describe(`
18
+ ---
19
+ draft: Early access.
20
+ route_path: /spaces
21
+ ---
22
+ `)
23
+
24
+ export type Space = z.infer<typeof space>