@seamapi/types 1.1018.0 → 1.1019.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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1018.0",
3
+ "version": "1.1019.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: {
@@ -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`. */