@seamapi/types 1.1018.0 → 1.1020.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.
@@ -41285,9 +41285,9 @@ export type Routes = {
41285
41285
  customer_key?: string | undefined;
41286
41286
  /** Your user ID for the user by which you want to filter Connect Webviews. */
41287
41287
  user_identifier_key?: string | undefined;
41288
- /** Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string. */
41288
+ /** Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter. */
41289
41289
  custom_metadata_has?: {
41290
- [x: string]: string | boolean;
41290
+ [x: string]: string | boolean | null;
41291
41291
  } | undefined;
41292
41292
  /** String for which to search. Filters returned Connect Webviews to include all records that satisfy a partial match using `connect_webview_id`, `accepted_providers`, `custom_metadata`, or `customer_key`. */
41293
41293
  search?: string | undefined;
@@ -41579,9 +41579,9 @@ export type Routes = {
41579
41579
  commonParams: {
41580
41580
  /** Your user ID for the user by which you want to filter connected accounts. */
41581
41581
  user_identifier_key?: string | undefined;
41582
- /** Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string. */
41582
+ /** Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter. */
41583
41583
  custom_metadata_has?: {
41584
- [x: string]: string | boolean;
41584
+ [x: string]: string | boolean | null;
41585
41585
  } | undefined;
41586
41586
  /** Customer key by which you want to filter connected accounts. */
41587
41587
  customer_key?: string | undefined;
@@ -44458,9 +44458,9 @@ export type Routes = {
44458
44458
  created_before?: Date | undefined;
44459
44459
  /** Your own internal user ID for the user for which you want to list devices. */
44460
44460
  user_identifier_key?: string | undefined;
44461
- /** Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string. */
44461
+ /** Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter. */
44462
44462
  custom_metadata_has?: {
44463
- [x: string]: string | boolean;
44463
+ [x: string]: string | boolean | null;
44464
44464
  } | undefined;
44465
44465
  /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
44466
44466
  page_cursor?: (string | undefined) | null;
@@ -110998,10 +110998,9 @@ export type Routes = {
110998
110998
  };
110999
110999
  '/unstable_partner/building_blocks/generate_magic_link': {
111000
111000
  route: '/unstable_partner/building_blocks/generate_magic_link';
111001
- method: 'POST' | 'GET';
111001
+ method: 'POST';
111002
111002
  queryParams: {};
111003
- jsonBody: {};
111004
- commonParams: {
111003
+ jsonBody: {
111005
111004
  /** Type of building block for which you want to create a magic link. */
111006
111005
  building_block_type: 'connect_accounts' | 'organize_spaces' | 'console' | 'manage_devices';
111007
111006
  /** Customer key for which you want to create a new building block magic link. */
@@ -111036,6 +111035,7 @@ export type Routes = {
111036
111035
  } | undefined;
111037
111036
  }[] | undefined;
111038
111037
  };
111038
+ commonParams: {};
111039
111039
  formData: {};
111040
111040
  jsonResponse: {
111041
111041
  /** Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1018.0",
3
+ "version": "1.1020.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -31,10 +31,21 @@ export const custom_metadata_input = z
31
31
  'Set of up to 50 key:value pairs, with key names up to 40 characters long that cannot contain a period (.). Accepts string or Boolean values. Strings are limited to 500 characters. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. Set a key to `null` or to an empty string to remove that key from the custom metadata.',
32
32
  )
33
33
 
34
+ // A query string can only carry `null` for an unset value — the serializer drops
35
+ // an empty string — so `""` is dropped here rather than given a meaning it could
36
+ // not keep on a GET. It has to be the schema and not a handler: lib/api/pagination.ts
37
+ // serializes req.commonParams for next_page_url and the cursor hash.
34
38
  export const custom_metadata_has = z
35
- .record(custom_metadata_has_key, z.union([z.string(), z.boolean()]))
39
+ .record(custom_metadata_has_key, z.union([z.string(), z.boolean(), z.null()]))
40
+ .transform((custom_metadata_has_filter) =>
41
+ Object.fromEntries(
42
+ Object.entries(custom_metadata_has_filter).filter(
43
+ ([, metadata_value]) => metadata_value !== '',
44
+ ),
45
+ ),
46
+ )
36
47
  .describe(
37
- 'Set of key:value pairs by which to filter. Key names cannot contain a period (.). Accepts string or Boolean values. Specify an empty string to match a key that is unset or set to an empty string.',
48
+ 'Set of key:value pairs by which to filter. Key names cannot contain a period (.). Accepts string or Boolean values, or `null` to match a key that is unset. A key given an empty string is omitted from the filter.',
38
49
  )
39
50
 
40
51
  export const custom_metadata = z
@@ -46,3 +57,5 @@ export const custom_metadata = z
46
57
  export type CustomMetadata = z.output<typeof custom_metadata>
47
58
 
48
59
  export type CustomMetadataInput = z.input<typeof custom_metadata_input>
60
+
61
+ export type CustomMetadataHas = z.output<typeof custom_metadata_has>
@@ -51244,10 +51244,11 @@ const openapi: OpenAPISpec = {
51244
51244
  name: 'custom_metadata_has',
51245
51245
  schema: {
51246
51246
  additionalProperties: {
51247
+ nullable: true,
51247
51248
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
51248
51249
  },
51249
51250
  description:
51250
- 'Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string.',
51251
+ 'Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter.',
51251
51252
  type: 'object',
51252
51253
  },
51253
51254
  },
@@ -51333,10 +51334,11 @@ const openapi: OpenAPISpec = {
51333
51334
  properties: {
51334
51335
  custom_metadata_has: {
51335
51336
  additionalProperties: {
51337
+ nullable: true,
51336
51338
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
51337
51339
  },
51338
51340
  description:
51339
- 'Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string.',
51341
+ 'Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter.',
51340
51342
  type: 'object',
51341
51343
  },
51342
51344
  customer_key: {
@@ -51672,10 +51674,11 @@ const openapi: OpenAPISpec = {
51672
51674
  name: 'custom_metadata_has',
51673
51675
  schema: {
51674
51676
  additionalProperties: {
51677
+ nullable: true,
51675
51678
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
51676
51679
  },
51677
51680
  description:
51678
- 'Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string.',
51681
+ 'Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter.',
51679
51682
  type: 'object',
51680
51683
  },
51681
51684
  },
@@ -51781,10 +51784,11 @@ const openapi: OpenAPISpec = {
51781
51784
  properties: {
51782
51785
  custom_metadata_has: {
51783
51786
  additionalProperties: {
51787
+ nullable: true,
51784
51788
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
51785
51789
  },
51786
51790
  description:
51787
- 'Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string.',
51791
+ 'Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter.',
51788
51792
  type: 'object',
51789
51793
  },
51790
51794
  customer_key: {
@@ -55498,10 +55502,11 @@ const openapi: OpenAPISpec = {
55498
55502
  name: 'custom_metadata_has',
55499
55503
  schema: {
55500
55504
  additionalProperties: {
55505
+ nullable: true,
55501
55506
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
55502
55507
  },
55503
55508
  description:
55504
- 'Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string.',
55509
+ 'Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter.',
55505
55510
  type: 'object',
55506
55511
  },
55507
55512
  },
@@ -55688,10 +55693,11 @@ const openapi: OpenAPISpec = {
55688
55693
  },
55689
55694
  custom_metadata_has: {
55690
55695
  additionalProperties: {
55696
+ nullable: true,
55691
55697
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
55692
55698
  },
55693
55699
  description:
55694
- 'Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string.',
55700
+ 'Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter.',
55695
55701
  type: 'object',
55696
55702
  },
55697
55703
  customer_key: {
@@ -83804,161 +83810,6 @@ const openapi: OpenAPISpec = {
83804
83810
  },
83805
83811
  },
83806
83812
  '/unstable_partner/building_blocks/generate_magic_link': {
83807
- get: {
83808
- description: 'Creates a new building block magic link.',
83809
- operationId: 'unstablePartnerBuildingBlocksGenerateMagicLinkGet',
83810
- parameters: [
83811
- {
83812
- in: 'query',
83813
- name: 'building_block_type',
83814
- required: true,
83815
- schema: {
83816
- description:
83817
- 'Type of building block for which you want to create a magic link.',
83818
- enum: [
83819
- 'connect_accounts',
83820
- 'organize_spaces',
83821
- 'console',
83822
- 'manage_devices',
83823
- ],
83824
- type: 'string',
83825
- },
83826
- },
83827
- {
83828
- in: 'query',
83829
- name: 'customer_key',
83830
- required: true,
83831
- schema: {
83832
- description:
83833
- 'Customer key for which you want to create a new building block magic link.',
83834
- minLength: 1,
83835
- type: 'string',
83836
- },
83837
- },
83838
- {
83839
- in: 'query',
83840
- name: 'spaces',
83841
- required: false,
83842
- schema: {
83843
- description:
83844
- 'Optional list of spaces that you want to include in the new building block magic link.',
83845
- items: {
83846
- properties: {
83847
- customer_data: {
83848
- description:
83849
- 'Reservation/stay-related defaults for the space (time zone, default check-in/out times, address).',
83850
- properties: {
83851
- address: {
83852
- description: 'Postal address for the space.',
83853
- nullable: true,
83854
- type: 'string',
83855
- },
83856
- default_checkin_time: {
83857
- description:
83858
- 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.',
83859
- nullable: true,
83860
- pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
83861
- type: 'string',
83862
- },
83863
- default_checkout_time: {
83864
- description:
83865
- 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.',
83866
- nullable: true,
83867
- pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
83868
- type: 'string',
83869
- },
83870
- time_zone: {
83871
- description:
83872
- 'IANA time zone for the space, e.g. America/Los_Angeles.',
83873
- nullable: true,
83874
- type: 'string',
83875
- },
83876
- },
83877
- type: 'object',
83878
- },
83879
- duration_minutes: {
83880
- description:
83881
- 'Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space.',
83882
- exclusiveMinimum: true,
83883
- minimum: 0,
83884
- type: 'integer',
83885
- },
83886
- geolocation: {
83887
- description:
83888
- 'Geographic coordinates (latitude and longitude) of the space.',
83889
- properties: {
83890
- latitude: {
83891
- description:
83892
- 'Latitude of the space, in decimal degrees.',
83893
- format: 'float',
83894
- type: 'number',
83895
- },
83896
- longitude: {
83897
- description:
83898
- 'Longitude of the space, in decimal degrees.',
83899
- format: 'float',
83900
- type: 'number',
83901
- },
83902
- },
83903
- required: ['latitude', 'longitude'],
83904
- type: 'object',
83905
- },
83906
- name: {
83907
- description:
83908
- 'Your display name for this location resource.',
83909
- type: 'string',
83910
- },
83911
- parent_site_key: {
83912
- description: 'Your unique identifier for the site.',
83913
- minLength: 1,
83914
- type: 'string',
83915
- },
83916
- space_key: {
83917
- description: 'Your unique identifier for the space.',
83918
- minLength: 1,
83919
- type: 'string',
83920
- },
83921
- },
83922
- required: ['name', 'space_key'],
83923
- type: 'object',
83924
- },
83925
- type: 'array',
83926
- },
83927
- },
83928
- ],
83929
- responses: {
83930
- '200': {
83931
- content: {
83932
- 'application/json': {
83933
- schema: {
83934
- properties: {
83935
- magic_link: { $ref: '#/components/schemas/magic_link' },
83936
- ok: { type: 'boolean' },
83937
- },
83938
- required: ['magic_link', 'ok'],
83939
- type: 'object',
83940
- },
83941
- },
83942
- },
83943
- description: 'OK',
83944
- },
83945
- '400': { description: 'Bad Request' },
83946
- '401': { description: 'Unauthorized' },
83947
- },
83948
- security: [
83949
- { pat_with_workspace: [] },
83950
- { console_session_with_workspace: [] },
83951
- { api_key: [] },
83952
- ],
83953
- summary: '/unstable_partner/building_blocks/generate_magic_link',
83954
- tags: [],
83955
- 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
83956
- 'x-fern-sdk-method-name': 'generate_magic_link',
83957
- 'x-fern-sdk-return-value': 'magic_link',
83958
- 'x-response-key': 'magic_link',
83959
- 'x-title': 'Generate a Building Block Magic Link',
83960
- 'x-undocumented': 'Experimental partner building blocks.',
83961
- },
83962
83813
  post: {
83963
83814
  description: 'Creates a new building block magic link.',
83964
83815
  operationId: 'unstablePartnerBuildingBlocksGenerateMagicLinkPost',
@@ -48415,10 +48415,10 @@ export type Routes = {
48415
48415
  customer_key?: string | undefined
48416
48416
  /** Your user ID for the user by which you want to filter Connect Webviews. */
48417
48417
  user_identifier_key?: string | undefined
48418
- /** Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string. */
48418
+ /** Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter. */
48419
48419
  custom_metadata_has?:
48420
48420
  | {
48421
- [x: string]: string | boolean
48421
+ [x: string]: string | boolean | null
48422
48422
  }
48423
48423
  | undefined
48424
48424
  /** String for which to search. Filters returned Connect Webviews to include all records that satisfy a partial match using `connect_webview_id`, `accepted_providers`, `custom_metadata`, or `customer_key`. */
@@ -48747,10 +48747,10 @@ export type Routes = {
48747
48747
  commonParams: {
48748
48748
  /** Your user ID for the user by which you want to filter connected accounts. */
48749
48749
  user_identifier_key?: string | undefined
48750
- /** Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string. */
48750
+ /** Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter. */
48751
48751
  custom_metadata_has?:
48752
48752
  | {
48753
- [x: string]: string | boolean
48753
+ [x: string]: string | boolean | null
48754
48754
  }
48755
48755
  | undefined
48756
48756
  /** Customer key by which you want to filter connected accounts. */
@@ -52363,10 +52363,10 @@ export type Routes = {
52363
52363
  created_before?: Date | undefined
52364
52364
  /** Your own internal user ID for the user for which you want to list devices. */
52365
52365
  user_identifier_key?: string | undefined
52366
- /** Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify an empty string to match a key that is unset or set to an empty string. */
52366
+ /** Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter. */
52367
52367
  custom_metadata_has?:
52368
52368
  | {
52369
- [x: string]: string | boolean
52369
+ [x: string]: string | boolean | null
52370
52370
  }
52371
52371
  | undefined
52372
52372
  /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
@@ -133007,10 +133007,9 @@ export type Routes = {
133007
133007
  }
133008
133008
  '/unstable_partner/building_blocks/generate_magic_link': {
133009
133009
  route: '/unstable_partner/building_blocks/generate_magic_link'
133010
- method: 'POST' | 'GET'
133010
+ method: 'POST'
133011
133011
  queryParams: {}
133012
- jsonBody: {}
133013
- commonParams: {
133012
+ jsonBody: {
133014
133013
  /** Type of building block for which you want to create a magic link. */
133015
133014
  building_block_type:
133016
133015
  'connect_accounts' | 'organize_spaces' | 'console' | 'manage_devices'
@@ -133052,6 +133051,7 @@ export type Routes = {
133052
133051
  }[]
133053
133052
  | undefined
133054
133053
  }
133054
+ commonParams: {}
133055
133055
  formData: {}
133056
133056
  jsonResponse: {
133057
133057
  /** Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.