@seamapi/types 1.482.0 → 1.484.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.
@@ -28711,7 +28711,7 @@ declare const connected_account_warning: z.ZodDiscriminatedUnion<"warning_code",
28711
28711
  warning_code: "salto_ks_subscription_limit_almost_reached";
28712
28712
  }>]>;
28713
28713
  declare const connected_account: z.ZodObject<{
28714
- connected_account_id: z.ZodOptional<z.ZodString>;
28714
+ connected_account_id: z.ZodString;
28715
28715
  created_at: z.ZodOptional<z.ZodString>;
28716
28716
  user_identifier: z.ZodOptional<z.ZodObject<{
28717
28717
  username: z.ZodOptional<z.ZodString>;
@@ -28985,6 +28985,7 @@ declare const connected_account: z.ZodObject<{
28985
28985
  is_connected_account_error?: boolean | undefined;
28986
28986
  is_bridge_error?: boolean | undefined;
28987
28987
  })[];
28988
+ connected_account_id: string;
28988
28989
  account_type_display_name: string;
28989
28990
  warnings: ({
28990
28991
  message: string;
@@ -29011,7 +29012,6 @@ declare const connected_account: z.ZodObject<{
29011
29012
  automatically_manage_new_devices: boolean;
29012
29013
  accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
29013
29014
  created_at?: string | undefined;
29014
- connected_account_id?: string | undefined;
29015
29015
  user_identifier?: {
29016
29016
  phone?: string | undefined;
29017
29017
  username?: string | undefined;
@@ -29055,6 +29055,7 @@ declare const connected_account: z.ZodObject<{
29055
29055
  is_connected_account_error?: boolean | undefined;
29056
29056
  is_bridge_error?: boolean | undefined;
29057
29057
  })[];
29058
+ connected_account_id: string;
29058
29059
  account_type_display_name: string;
29059
29060
  warnings: ({
29060
29061
  message: string;
@@ -29081,7 +29082,6 @@ declare const connected_account: z.ZodObject<{
29081
29082
  automatically_manage_new_devices: boolean;
29082
29083
  accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
29083
29084
  created_at?: string | undefined;
29084
- connected_account_id?: string | undefined;
29085
29085
  user_identifier?: {
29086
29086
  phone?: string | undefined;
29087
29087
  username?: string | undefined;
@@ -61410,6 +61410,9 @@ declare const _default: {
61410
61410
  ok: {
61411
61411
  type: string;
61412
61412
  };
61413
+ pagination: {
61414
+ $ref: string;
61415
+ };
61413
61416
  };
61414
61417
  required: string[];
61415
61418
  type: string;
@@ -61542,6 +61545,11 @@ declare const _default: {
61542
61545
  format: string;
61543
61546
  type: string;
61544
61547
  };
61548
+ page_cursor: {
61549
+ description: string;
61550
+ nullable: boolean;
61551
+ type: string;
61552
+ };
61545
61553
  };
61546
61554
  type: string;
61547
61555
  oneOf?: never;
@@ -61565,6 +61573,9 @@ declare const _default: {
61565
61573
  ok: {
61566
61574
  type: string;
61567
61575
  };
61576
+ pagination: {
61577
+ $ref: string;
61578
+ };
61568
61579
  };
61569
61580
  required: string[];
61570
61581
  type: string;
@@ -101616,7 +101627,7 @@ type Routes = {
101616
101627
  }[] | undefined;
101617
101628
  connected_accounts?: {
101618
101629
  /** ID of the connected account. */
101619
- connected_account_id?: string | undefined;
101630
+ connected_account_id: string;
101620
101631
  /** Date and time at which the connected account was created. */
101621
101632
  created_at?: string | undefined;
101622
101633
  /** User identifier associated with the connected account. */
@@ -108435,6 +108446,8 @@ type Routes = {
108435
108446
  created_before?: Date | undefined;
108436
108447
  /** Indicates whether you want to retrieve only multi-phone sync credentials or non-multi-phone sync credentials. */
108437
108448
  is_multi_phone_sync_credential?: boolean | undefined;
108449
+ /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
108450
+ page_cursor?: (string | undefined) | null;
108438
108451
  };
108439
108452
  formData: {};
108440
108453
  jsonResponse: {
@@ -108569,6 +108582,15 @@ type Routes = {
108569
108582
  } | undefined;
108570
108583
  is_managed: true;
108571
108584
  }[];
108585
+ /** Information about the current page of results. */
108586
+ pagination: {
108587
+ /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
108588
+ next_page_cursor: string | null;
108589
+ /** Indicates whether there is another page of results after this one. */
108590
+ has_next_page: boolean;
108591
+ /** URL to get the next page of results. */
108592
+ next_page_url: string | null;
108593
+ };
108572
108594
  };
108573
108595
  };
108574
108596
  '/acs/credentials/list_accessible_entrances': {
@@ -117380,7 +117402,7 @@ type Routes = {
117380
117402
  /** Represents a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). A connected account is an external third-party account to which your user has authorized Seam to get access, for example, an August account with a list of door locks. */
117381
117403
  connected_account: {
117382
117404
  /** ID of the connected account. */
117383
- connected_account_id?: string | undefined;
117405
+ connected_account_id: string;
117384
117406
  /** Date and time at which the connected account was created. */
117385
117407
  created_at?: string | undefined;
117386
117408
  /** User identifier associated with the connected account. */
@@ -117535,7 +117557,7 @@ type Routes = {
117535
117557
  jsonResponse: {
117536
117558
  connected_accounts: {
117537
117559
  /** ID of the connected account. */
117538
- connected_account_id?: string | undefined;
117560
+ connected_account_id: string;
117539
117561
  /** Date and time at which the connected account was created. */
117540
117562
  created_at?: string | undefined;
117541
117563
  /** User identifier associated with the connected account. */
@@ -117708,7 +117730,7 @@ type Routes = {
117708
117730
  /** Represents a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). A connected account is an external third-party account to which your user has authorized Seam to get access, for example, an August account with a list of door locks. */
117709
117731
  connected_account: {
117710
117732
  /** ID of the connected account. */
117711
- connected_account_id?: string | undefined;
117733
+ connected_account_id: string;
117712
117734
  /** Date and time at which the connected account was created. */
117713
117735
  created_at?: string | undefined;
117714
117736
  /** User identifier associated with the connected account. */
@@ -146501,7 +146523,7 @@ type Routes = {
146501
146523
  }[] | undefined;
146502
146524
  connected_accounts?: {
146503
146525
  /** ID of the connected account. */
146504
- connected_account_id?: string | undefined;
146526
+ connected_account_id: string;
146505
146527
  /** Date and time at which the connected account was created. */
146506
146528
  created_at?: string | undefined;
146507
146529
  /** User identifier associated with the connected account. */
package/dist/index.cjs CHANGED
@@ -679,7 +679,7 @@ zod.z.object({
679
679
  salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.nullable().optional()
680
680
  });
681
681
  var connected_account = zod.z.object({
682
- connected_account_id: zod.z.string().uuid().optional().describe("ID of the connected account."),
682
+ connected_account_id: zod.z.string().uuid().describe("ID of the connected account."),
683
683
  created_at: zod.z.string().datetime().optional().describe("Date and time at which the connected account was created."),
684
684
  user_identifier: zod.z.object({
685
685
  username: zod.z.string().optional().describe(
@@ -4207,6 +4207,7 @@ zod.z.object({
4207
4207
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
4208
4208
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4209
4209
  unmanaged_devices: unmanaged_device.array().optional(),
4210
+ connected_accounts: connected_account.array().optional(),
4210
4211
  connect_webviews: connect_webview.array().optional(),
4211
4212
  access_methods: access_method.array().optional(),
4212
4213
  access_grants: access_grant.array().optional()
@@ -13624,6 +13625,7 @@ var openapi_default = {
13624
13625
  }
13625
13626
  },
13626
13627
  required: [
13628
+ "connected_account_id",
13627
13629
  "account_type_display_name",
13628
13630
  "errors",
13629
13631
  "warnings",
@@ -33922,9 +33924,10 @@ var openapi_default = {
33922
33924
  items: { $ref: "#/components/schemas/acs_credential" },
33923
33925
  type: "array"
33924
33926
  },
33925
- ok: { type: "boolean" }
33927
+ ok: { type: "boolean" },
33928
+ pagination: { $ref: "#/components/schemas/pagination" }
33926
33929
  },
33927
- required: ["acs_credentials", "ok"],
33930
+ required: ["acs_credentials", "pagination", "ok"],
33928
33931
  type: "object"
33929
33932
  }
33930
33933
  }
@@ -34026,6 +34029,11 @@ var openapi_default = {
34026
34029
  description: "Number of credentials to return.",
34027
34030
  format: "float",
34028
34031
  type: "number"
34032
+ },
34033
+ page_cursor: {
34034
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
34035
+ nullable: true,
34036
+ type: "string"
34029
34037
  }
34030
34038
  },
34031
34039
  type: "object"
@@ -34045,9 +34053,10 @@ var openapi_default = {
34045
34053
  items: { $ref: "#/components/schemas/acs_credential" },
34046
34054
  type: "array"
34047
34055
  },
34048
- ok: { type: "boolean" }
34056
+ ok: { type: "boolean" },
34057
+ pagination: { $ref: "#/components/schemas/pagination" }
34049
34058
  },
34050
- required: ["acs_credentials", "ok"],
34059
+ required: ["acs_credentials", "pagination", "ok"],
34051
34060
  type: "object"
34052
34061
  }
34053
34062
  }