@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.
@@ -1,6 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  export declare const custom_metadata_input: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>;
3
- export declare const custom_metadata_has: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
3
+ export declare const custom_metadata_has: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, {
4
+ [k: string]: string | boolean | null;
5
+ }, Record<string, string | boolean | null>>;
4
6
  export declare const custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
5
7
  export type CustomMetadata = z.output<typeof custom_metadata>;
6
8
  export type CustomMetadataInput = z.input<typeof custom_metadata_input>;
9
+ export type CustomMetadataHas = z.output<typeof custom_metadata_has>;
@@ -20,9 +20,14 @@ export const custom_metadata_input = z
20
20
  message: 'Custom metadata is limited to a maximum of 50 keys',
21
21
  })
22
22
  .describe('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.');
23
+ // A query string can only carry `null` for an unset value — the serializer drops
24
+ // an empty string — so `""` is dropped here rather than given a meaning it could
25
+ // not keep on a GET. It has to be the schema and not a handler: lib/api/pagination.ts
26
+ // serializes req.commonParams for next_page_url and the cursor hash.
23
27
  export const custom_metadata_has = z
24
- .record(custom_metadata_has_key, z.union([z.string(), z.boolean()]))
25
- .describe('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.');
28
+ .record(custom_metadata_has_key, z.union([z.string(), z.boolean(), z.null()]))
29
+ .transform((custom_metadata_has_filter) => Object.fromEntries(Object.entries(custom_metadata_has_filter).filter(([, metadata_value]) => metadata_value !== '')))
30
+ .describe('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.');
26
31
  export const custom_metadata = z
27
32
  .record(z.string(), z.union([z.string(), z.boolean()]))
28
33
  .describe('Set of key:value pairs. 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. Keys set to `null` or to an empty string are omitted.');
@@ -1 +1 @@
1
- {"version":3,"file":"custom-metadata.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/custom-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,mBAAmB,GAAG;IAC1B,OAAO,EAAE,uDAAuD;CACjE,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAW,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAEzE,MAAM,mBAAmB,GAAG,CAAC;KAC1B,MAAM,EAAE;KACR,GAAG,CAAC,EAAE,CAAC;KACP,MAAM,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,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C,OAAO,CAAC,0BAA0B,CAAC,CAAC,MAAM,CAC/C,CAAC,CAAC,EAAE,cAAc,CAAC,EAAE,EAAE,CAAC,cAAc,KAAK,EAAE,CAC9C,CACF,CACF;KACA,QAAQ,CACP,qNAAqN,CACtN,CAAA;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;KACtD,QAAQ,CACP,gjBAAgjB,CACjjB,CAAA"}
@@ -46529,9 +46529,10 @@ const openapi = {
46529
46529
  name: 'custom_metadata_has',
46530
46530
  schema: {
46531
46531
  additionalProperties: {
46532
+ nullable: true,
46532
46533
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
46533
46534
  },
46534
- description: '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.',
46535
+ description: '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.',
46535
46536
  type: 'object',
46536
46537
  },
46537
46538
  },
@@ -46614,9 +46615,10 @@ const openapi = {
46614
46615
  properties: {
46615
46616
  custom_metadata_has: {
46616
46617
  additionalProperties: {
46618
+ nullable: true,
46617
46619
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
46618
46620
  },
46619
- description: '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.',
46621
+ description: '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.',
46620
46622
  type: 'object',
46621
46623
  },
46622
46624
  customer_key: {
@@ -46937,9 +46939,10 @@ const openapi = {
46937
46939
  name: 'custom_metadata_has',
46938
46940
  schema: {
46939
46941
  additionalProperties: {
46942
+ nullable: true,
46940
46943
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
46941
46944
  },
46942
- description: '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.',
46945
+ description: '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.',
46943
46946
  type: 'object',
46944
46947
  },
46945
46948
  },
@@ -47040,9 +47043,10 @@ const openapi = {
47040
47043
  properties: {
47041
47044
  custom_metadata_has: {
47042
47045
  additionalProperties: {
47046
+ nullable: true,
47043
47047
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
47044
47048
  },
47045
- description: '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.',
47049
+ description: '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.',
47046
47050
  type: 'object',
47047
47051
  },
47048
47052
  customer_key: {
@@ -50422,9 +50426,10 @@ const openapi = {
50422
50426
  name: 'custom_metadata_has',
50423
50427
  schema: {
50424
50428
  additionalProperties: {
50429
+ nullable: true,
50425
50430
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
50426
50431
  },
50427
- description: '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.',
50432
+ description: '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.',
50428
50433
  type: 'object',
50429
50434
  },
50430
50435
  },
@@ -50603,9 +50608,10 @@ const openapi = {
50603
50608
  },
50604
50609
  custom_metadata_has: {
50605
50610
  additionalProperties: {
50611
+ nullable: true,
50606
50612
  oneOf: [{ type: 'string' }, { type: 'boolean' }],
50607
50613
  },
50608
- description: '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.',
50614
+ description: '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.',
50609
50615
  type: 'object',
50610
50616
  },
50611
50617
  customer_key: {