@seamapi/types 1.694.0 → 1.696.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.
@@ -3716,6 +3716,20 @@ declare const access_grant: z.ZodObject<{
3716
3716
  created_at: string;
3717
3717
  warning_code: "being_deleted";
3718
3718
  }>]>, "many">;
3719
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
3720
+ created_at: z.ZodString;
3721
+ message: z.ZodString;
3722
+ } & {
3723
+ error_code: z.ZodLiteral<"cannot_create_requested_access_methods">;
3724
+ }, "strip", z.ZodTypeAny, {
3725
+ message: string;
3726
+ created_at: string;
3727
+ error_code: "cannot_create_requested_access_methods";
3728
+ }, {
3729
+ message: string;
3730
+ created_at: string;
3731
+ error_code: "cannot_create_requested_access_methods";
3732
+ }>]>, "many">;
3719
3733
  customization_profile_id: z.ZodOptional<z.ZodString>;
3720
3734
  }, "strip", z.ZodTypeAny, {
3721
3735
  name: string | null;
@@ -3724,6 +3738,11 @@ declare const access_grant: z.ZodObject<{
3724
3738
  created_at: string;
3725
3739
  starts_at: string;
3726
3740
  ends_at: string | null;
3741
+ errors: {
3742
+ message: string;
3743
+ created_at: string;
3744
+ error_code: "cannot_create_requested_access_methods";
3745
+ }[];
3727
3746
  warnings: {
3728
3747
  message: string;
3729
3748
  created_at: string;
@@ -3753,6 +3772,11 @@ declare const access_grant: z.ZodObject<{
3753
3772
  created_at: string;
3754
3773
  starts_at: string;
3755
3774
  ends_at: string | null;
3775
+ errors: {
3776
+ message: string;
3777
+ created_at: string;
3778
+ error_code: "cannot_create_requested_access_methods";
3779
+ }[];
3756
3780
  warnings: {
3757
3781
  message: string;
3758
3782
  created_at: string;
@@ -25693,6 +25717,20 @@ declare const batch: z.ZodObject<{
25693
25717
  created_at: string;
25694
25718
  warning_code: "being_deleted";
25695
25719
  }>]>, "many">;
25720
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
25721
+ created_at: z.ZodString;
25722
+ message: z.ZodString;
25723
+ } & {
25724
+ error_code: z.ZodLiteral<"cannot_create_requested_access_methods">;
25725
+ }, "strip", z.ZodTypeAny, {
25726
+ message: string;
25727
+ created_at: string;
25728
+ error_code: "cannot_create_requested_access_methods";
25729
+ }, {
25730
+ message: string;
25731
+ created_at: string;
25732
+ error_code: "cannot_create_requested_access_methods";
25733
+ }>]>, "many">;
25696
25734
  customization_profile_id: z.ZodOptional<z.ZodString>;
25697
25735
  }, "strip", z.ZodTypeAny, {
25698
25736
  name: string | null;
@@ -25701,6 +25739,11 @@ declare const batch: z.ZodObject<{
25701
25739
  created_at: string;
25702
25740
  starts_at: string;
25703
25741
  ends_at: string | null;
25742
+ errors: {
25743
+ message: string;
25744
+ created_at: string;
25745
+ error_code: "cannot_create_requested_access_methods";
25746
+ }[];
25704
25747
  warnings: {
25705
25748
  message: string;
25706
25749
  created_at: string;
@@ -25730,6 +25773,11 @@ declare const batch: z.ZodObject<{
25730
25773
  created_at: string;
25731
25774
  starts_at: string;
25732
25775
  ends_at: string | null;
25776
+ errors: {
25777
+ message: string;
25778
+ created_at: string;
25779
+ error_code: "cannot_create_requested_access_methods";
25780
+ }[];
25733
25781
  warnings: {
25734
25782
  message: string;
25735
25783
  created_at: string;
@@ -34558,6 +34606,11 @@ declare const batch: z.ZodObject<{
34558
34606
  created_at: string;
34559
34607
  starts_at: string;
34560
34608
  ends_at: string | null;
34609
+ errors: {
34610
+ message: string;
34611
+ created_at: string;
34612
+ error_code: "cannot_create_requested_access_methods";
34613
+ }[];
34561
34614
  warnings: {
34562
34615
  message: string;
34563
34616
  created_at: string;
@@ -38635,6 +38688,11 @@ declare const batch: z.ZodObject<{
38635
38688
  created_at: string;
38636
38689
  starts_at: string;
38637
38690
  ends_at: string | null;
38691
+ errors: {
38692
+ message: string;
38693
+ created_at: string;
38694
+ error_code: "cannot_create_requested_access_methods";
38695
+ }[];
38638
38696
  warnings: {
38639
38697
  message: string;
38640
38698
  created_at: string;
@@ -53717,6 +53775,35 @@ declare const _default: {
53717
53775
  nullable: boolean;
53718
53776
  type: string;
53719
53777
  };
53778
+ errors: {
53779
+ description: string;
53780
+ items: {
53781
+ discriminator: {
53782
+ propertyName: string;
53783
+ };
53784
+ oneOf: {
53785
+ properties: {
53786
+ created_at: {
53787
+ description: string;
53788
+ format: string;
53789
+ type: string;
53790
+ };
53791
+ error_code: {
53792
+ description: string;
53793
+ enum: string[];
53794
+ type: string;
53795
+ };
53796
+ message: {
53797
+ description: string;
53798
+ type: string;
53799
+ };
53800
+ };
53801
+ required: string[];
53802
+ type: string;
53803
+ }[];
53804
+ };
53805
+ type: string;
53806
+ };
53720
53807
  instant_key_url: {
53721
53808
  description: string;
53722
53809
  format: string;
@@ -73079,6 +73166,35 @@ declare const _default: {
73079
73166
  nullable: boolean;
73080
73167
  type: string;
73081
73168
  };
73169
+ errors: {
73170
+ description: string;
73171
+ items: {
73172
+ discriminator: {
73173
+ propertyName: string;
73174
+ };
73175
+ oneOf: {
73176
+ properties: {
73177
+ created_at: {
73178
+ description: string;
73179
+ format: string;
73180
+ type: string;
73181
+ };
73182
+ error_code: {
73183
+ description: string;
73184
+ enum: string[];
73185
+ type: string;
73186
+ };
73187
+ message: {
73188
+ description: string;
73189
+ type: string;
73190
+ };
73191
+ };
73192
+ required: string[];
73193
+ type: string;
73194
+ }[];
73195
+ };
73196
+ type: string;
73197
+ };
73082
73198
  location_ids: {
73083
73199
  deprecated: boolean;
73084
73200
  items: {
@@ -73301,6 +73417,35 @@ declare const _default: {
73301
73417
  nullable: boolean;
73302
73418
  type: string;
73303
73419
  };
73420
+ errors: {
73421
+ description: string;
73422
+ items: {
73423
+ discriminator: {
73424
+ propertyName: string;
73425
+ };
73426
+ oneOf: {
73427
+ properties: {
73428
+ created_at: {
73429
+ description: string;
73430
+ format: string;
73431
+ type: string;
73432
+ };
73433
+ error_code: {
73434
+ description: string;
73435
+ enum: string[];
73436
+ type: string;
73437
+ };
73438
+ message: {
73439
+ description: string;
73440
+ type: string;
73441
+ };
73442
+ };
73443
+ required: string[];
73444
+ type: string;
73445
+ }[];
73446
+ };
73447
+ type: string;
73448
+ };
73304
73449
  location_ids: {
73305
73450
  deprecated: boolean;
73306
73451
  items: {
@@ -73526,6 +73671,35 @@ declare const _default: {
73526
73671
  nullable: boolean;
73527
73672
  type: string;
73528
73673
  };
73674
+ errors: {
73675
+ description: string;
73676
+ items: {
73677
+ discriminator: {
73678
+ propertyName: string;
73679
+ };
73680
+ oneOf: {
73681
+ properties: {
73682
+ created_at: {
73683
+ description: string;
73684
+ format: string;
73685
+ type: string;
73686
+ };
73687
+ error_code: {
73688
+ description: string;
73689
+ enum: string[];
73690
+ type: string;
73691
+ };
73692
+ message: {
73693
+ description: string;
73694
+ type: string;
73695
+ };
73696
+ };
73697
+ required: string[];
73698
+ type: string;
73699
+ }[];
73700
+ };
73701
+ type: string;
73702
+ };
73529
73703
  location_ids: {
73530
73704
  deprecated: boolean;
73531
73705
  items: {
@@ -73764,6 +73938,35 @@ declare const _default: {
73764
73938
  nullable: boolean;
73765
73939
  type: string;
73766
73940
  };
73941
+ errors: {
73942
+ description: string;
73943
+ items: {
73944
+ discriminator: {
73945
+ propertyName: string;
73946
+ };
73947
+ oneOf: {
73948
+ properties: {
73949
+ created_at: {
73950
+ description: string;
73951
+ format: string;
73952
+ type: string;
73953
+ };
73954
+ error_code: {
73955
+ description: string;
73956
+ enum: string[];
73957
+ type: string;
73958
+ };
73959
+ message: {
73960
+ description: string;
73961
+ type: string;
73962
+ };
73963
+ };
73964
+ required: string[];
73965
+ type: string;
73966
+ }[];
73967
+ };
73968
+ type: string;
73969
+ };
73767
73970
  location_ids: {
73768
73971
  deprecated: boolean;
73769
73972
  items: {
@@ -99158,6 +99361,76 @@ declare const _default: {
99158
99361
  'x-undocumented': string;
99159
99362
  };
99160
99363
  };
99364
+ '/seam/customer/v1/customers/open_portal': {
99365
+ post: {
99366
+ description: string;
99367
+ operationId: string;
99368
+ requestBody: {
99369
+ content: {
99370
+ 'application/json': {
99371
+ schema: {
99372
+ properties: {
99373
+ customer_key: {
99374
+ description: string;
99375
+ type: string;
99376
+ };
99377
+ };
99378
+ required: string[];
99379
+ type: string;
99380
+ };
99381
+ };
99382
+ };
99383
+ };
99384
+ responses: {
99385
+ 200: {
99386
+ content: {
99387
+ 'application/json': {
99388
+ schema: {
99389
+ properties: {
99390
+ magic_link: {
99391
+ $ref: string;
99392
+ };
99393
+ ok: {
99394
+ type: string;
99395
+ };
99396
+ };
99397
+ required: string[];
99398
+ type: string;
99399
+ };
99400
+ };
99401
+ };
99402
+ description: string;
99403
+ };
99404
+ 400: {
99405
+ description: string;
99406
+ };
99407
+ 401: {
99408
+ description: string;
99409
+ };
99410
+ };
99411
+ security: ({
99412
+ pat_with_workspace: never[];
99413
+ console_session_with_workspace?: never;
99414
+ api_key?: never;
99415
+ } | {
99416
+ console_session_with_workspace: never[];
99417
+ pat_with_workspace?: never;
99418
+ api_key?: never;
99419
+ } | {
99420
+ api_key: never[];
99421
+ pat_with_workspace?: never;
99422
+ console_session_with_workspace?: never;
99423
+ })[];
99424
+ summary: string;
99425
+ tags: never[];
99426
+ 'x-fern-sdk-group-name': string[];
99427
+ 'x-fern-sdk-method-name': string;
99428
+ 'x-fern-sdk-return-value': string;
99429
+ 'x-response-key': string;
99430
+ 'x-title': string;
99431
+ 'x-undocumented': string;
99432
+ };
99433
+ };
99161
99434
  '/seam/customer/v1/events/list': {
99162
99435
  get: {
99163
99436
  description: string;
@@ -124751,6 +125024,15 @@ type Routes = {
124751
125024
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
124752
125025
  warning_code: 'being_deleted';
124753
125026
  }[];
125027
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
125028
+ errors: {
125029
+ /** Date and time at which Seam created the error. */
125030
+ created_at: string;
125031
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
125032
+ message: string;
125033
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
125034
+ error_code: 'cannot_create_requested_access_methods';
125035
+ }[];
124754
125036
  /** ID of the customization profile associated with the Access Grant. */
124755
125037
  customization_profile_id?: string | undefined;
124756
125038
  };
@@ -124839,6 +125121,15 @@ type Routes = {
124839
125121
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
124840
125122
  warning_code: 'being_deleted';
124841
125123
  }[];
125124
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
125125
+ errors: {
125126
+ /** Date and time at which Seam created the error. */
125127
+ created_at: string;
125128
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
125129
+ message: string;
125130
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
125131
+ error_code: 'cannot_create_requested_access_methods';
125132
+ }[];
124842
125133
  /** ID of the customization profile associated with the Access Grant. */
124843
125134
  customization_profile_id?: string | undefined;
124844
125135
  };
@@ -126667,6 +126958,15 @@ type Routes = {
126667
126958
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
126668
126959
  warning_code: 'being_deleted';
126669
126960
  }[];
126961
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
126962
+ errors: {
126963
+ /** Date and time at which Seam created the error. */
126964
+ created_at: string;
126965
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
126966
+ message: string;
126967
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
126968
+ error_code: 'cannot_create_requested_access_methods';
126969
+ }[];
126670
126970
  /** ID of the customization profile associated with the Access Grant. */
126671
126971
  customization_profile_id?: string | undefined;
126672
126972
  }[];
@@ -126746,6 +127046,15 @@ type Routes = {
126746
127046
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
126747
127047
  warning_code: 'being_deleted';
126748
127048
  }[];
127049
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
127050
+ errors: {
127051
+ /** Date and time at which Seam created the error. */
127052
+ created_at: string;
127053
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
127054
+ message: string;
127055
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
127056
+ error_code: 'cannot_create_requested_access_methods';
127057
+ }[];
126749
127058
  /** ID of the customization profile associated with the Access Grant. */
126750
127059
  customization_profile_id?: string | undefined;
126751
127060
  };
@@ -126810,6 +127119,15 @@ type Routes = {
126810
127119
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
126811
127120
  warning_code: 'being_deleted';
126812
127121
  }[];
127122
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
127123
+ errors: {
127124
+ /** Date and time at which Seam created the error. */
127125
+ created_at: string;
127126
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
127127
+ message: string;
127128
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
127129
+ error_code: 'cannot_create_requested_access_methods';
127130
+ }[];
126813
127131
  /** ID of user identity to which the Access Grant gives access. */
126814
127132
  user_identity_id?: string | undefined;
126815
127133
  };
@@ -126879,6 +127197,15 @@ type Routes = {
126879
127197
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
126880
127198
  warning_code: 'being_deleted';
126881
127199
  }[];
127200
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
127201
+ errors: {
127202
+ /** Date and time at which Seam created the error. */
127203
+ created_at: string;
127204
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
127205
+ message: string;
127206
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
127207
+ error_code: 'cannot_create_requested_access_methods';
127208
+ }[];
126882
127209
  /** ID of user identity to which the Access Grant gives access. */
126883
127210
  user_identity_id?: string | undefined;
126884
127211
  }[];
@@ -129711,6 +130038,15 @@ type Routes = {
129711
130038
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
129712
130039
  warning_code: 'being_deleted';
129713
130040
  }[];
130041
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
130042
+ errors: {
130043
+ /** Date and time at which Seam created the error. */
130044
+ created_at: string;
130045
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
130046
+ message: string;
130047
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
130048
+ error_code: 'cannot_create_requested_access_methods';
130049
+ }[];
129714
130050
  /** ID of the customization profile associated with the Access Grant. */
129715
130051
  customization_profile_id?: string | undefined;
129716
130052
  }[] | undefined;
@@ -167009,6 +167345,15 @@ type Routes = {
167009
167345
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
167010
167346
  warning_code: 'being_deleted';
167011
167347
  }[];
167348
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
167349
+ errors: {
167350
+ /** Date and time at which Seam created the error. */
167351
+ created_at: string;
167352
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
167353
+ message: string;
167354
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
167355
+ error_code: 'cannot_create_requested_access_methods';
167356
+ }[];
167012
167357
  /** ID of the customization profile associated with the Access Grant. */
167013
167358
  customization_profile_id?: string | undefined;
167014
167359
  }[];
@@ -167477,6 +167822,37 @@ type Routes = {
167477
167822
  };
167478
167823
  maxDuration: undefined;
167479
167824
  };
167825
+ '/seam/customer/v1/customers/open_portal': {
167826
+ route: '/seam/customer/v1/customers/open_portal';
167827
+ method: 'POST';
167828
+ queryParams: {};
167829
+ jsonBody: {};
167830
+ commonParams: {
167831
+ /** The customer key to open a portal for. */
167832
+ customer_key: string;
167833
+ };
167834
+ formData: {};
167835
+ jsonResponse: {
167836
+ /** 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.
167837
+
167838
+ With Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.
167839
+
167840
+ Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */
167841
+ magic_link: {
167842
+ /** URL for the magic link. */
167843
+ url: string;
167844
+ /** Customer key for the magic link. */
167845
+ customer_key: string;
167846
+ /** Date and time at which the magic link expires. */
167847
+ expires_at: string;
167848
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the magic link. */
167849
+ workspace_id: string;
167850
+ /** Date and time at which the magic link was created. */
167851
+ created_at: string;
167852
+ };
167853
+ };
167854
+ maxDuration: undefined;
167855
+ };
167480
167856
  '/seam/customer/v1/events/list': {
167481
167857
  route: '/seam/customer/v1/events/list';
167482
167858
  method: 'GET' | 'POST';
@@ -169852,6 +170228,15 @@ type Routes = {
169852
170228
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
169853
170229
  warning_code: 'being_deleted';
169854
170230
  }[];
170231
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
170232
+ errors: {
170233
+ /** Date and time at which Seam created the error. */
170234
+ created_at: string;
170235
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
170236
+ message: string;
170237
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
170238
+ error_code: 'cannot_create_requested_access_methods';
170239
+ }[];
169855
170240
  /** ID of the customization profile associated with the Access Grant. */
169856
170241
  customization_profile_id?: string | undefined;
169857
170242
  };
@@ -196093,6 +196478,15 @@ type Routes = {
196093
196478
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196094
196479
  warning_code: 'being_deleted';
196095
196480
  }[];
196481
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
196482
+ errors: {
196483
+ /** Date and time at which Seam created the error. */
196484
+ created_at: string;
196485
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
196486
+ message: string;
196487
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
196488
+ error_code: 'cannot_create_requested_access_methods';
196489
+ }[];
196096
196490
  /** ID of the customization profile associated with the Access Grant. */
196097
196491
  customization_profile_id?: string | undefined;
196098
196492
  }[] | undefined;