@seamapi/types 1.357.1 → 1.359.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.
Files changed (51) hide show
  1. package/dist/connect.cjs +500 -36
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2325 -833
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/model-types.d.ts +1 -1
  8. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +100 -0
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +100 -0
  10. package/lib/seam/connect/models/acs/acs-access-group.d.ts +14 -14
  11. package/lib/seam/connect/models/acs/acs-credential.d.ts +74 -74
  12. package/lib/seam/connect/models/acs/acs-encoder.d.ts +8 -8
  13. package/lib/seam/connect/models/acs/acs-system.d.ts +72 -72
  14. package/lib/seam/connect/models/acs/acs-user.d.ts +104 -104
  15. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +168 -168
  16. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +72 -72
  17. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +96 -96
  18. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +2 -2
  19. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +634 -21
  20. package/lib/seam/connect/models/connected-accounts/connected-account.js +56 -0
  21. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  22. package/lib/seam/connect/models/devices/device-metadata.d.ts +24 -24
  23. package/lib/seam/connect/models/devices/device.d.ts +146 -46
  24. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +127 -27
  25. package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
  26. package/lib/seam/connect/models/events/connect-webviews.d.ts +4 -4
  27. package/lib/seam/connect/models/events/connected-accounts.d.ts +28 -28
  28. package/lib/seam/connect/models/events/devices.d.ts +128 -128
  29. package/lib/seam/connect/models/events/seam-event.d.ts +114 -114
  30. package/lib/seam/connect/models/index.d.ts +1 -0
  31. package/lib/seam/connect/models/index.js +1 -0
  32. package/lib/seam/connect/models/index.js.map +1 -1
  33. package/lib/seam/connect/models/pagination.d.ts +14 -0
  34. package/lib/seam/connect/models/pagination.js +18 -0
  35. package/lib/seam/connect/models/pagination.js.map +1 -0
  36. package/lib/seam/connect/openapi.d.ts +389 -24
  37. package/lib/seam/connect/openapi.js +438 -28
  38. package/lib/seam/connect/openapi.js.map +1 -1
  39. package/lib/seam/connect/route-types.d.ts +567 -0
  40. package/lib/seam/connect/schemas.d.ts +1 -1
  41. package/lib/seam/connect/schemas.js +1 -1
  42. package/lib/seam/connect/schemas.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  45. package/src/lib/seam/connect/model-types.ts +0 -2
  46. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +77 -2
  47. package/src/lib/seam/connect/models/index.ts +1 -0
  48. package/src/lib/seam/connect/models/pagination.ts +22 -0
  49. package/src/lib/seam/connect/openapi.ts +470 -31
  50. package/src/lib/seam/connect/route-types.ts +597 -0
  51. package/src/lib/seam/connect/schemas.ts +1 -0
@@ -10,6 +10,7 @@ export * from './custom-metadata.js';
10
10
  export * from './devices/index.js';
11
11
  export * from './events/index.js';
12
12
  export * from './noise-sensors/index.js';
13
+ export * from './pagination.js';
13
14
  export * from './phone-number.js';
14
15
  export * from './thermostats/index.js';
15
16
  export * from './user-identities/index.js';
@@ -10,6 +10,7 @@ export * from './custom-metadata.js';
10
10
  export * from './devices/index.js';
11
11
  export * from './events/index.js';
12
12
  export * from './noise-sensors/index.js';
13
+ export * from './pagination.js';
13
14
  export * from './phone-number.js';
14
15
  export * from './thermostats/index.js';
15
16
  export * from './user-identities/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare const pagination: z.ZodObject<{
3
+ next_page_cursor: z.ZodNullable<z.ZodString>;
4
+ has_next_page: z.ZodBoolean;
5
+ next_page_url: z.ZodNullable<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ next_page_cursor: string | null;
8
+ has_next_page: boolean;
9
+ next_page_url: string | null;
10
+ }, {
11
+ next_page_cursor: string | null;
12
+ has_next_page: boolean;
13
+ next_page_url: string | null;
14
+ }>;
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export const pagination = z
3
+ .object({
4
+ next_page_cursor: z
5
+ .string()
6
+ .nullable()
7
+ .describe('Opaque value that can be used to select the next page of results via the `page_cursor` parameter.'),
8
+ has_next_page: z
9
+ .boolean()
10
+ .describe('Indicates whether there is another page of results after this one.'),
11
+ next_page_url: z
12
+ .string()
13
+ .url()
14
+ .nullable()
15
+ .describe('URL to get the next page of results.'),
16
+ })
17
+ .describe('Information about the current page of results.');
18
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mGAAmG,CACpG;IACH,aAAa,EAAE,CAAC;SACb,OAAO,EAAE;SACT,QAAQ,CACP,oEAAoE,CACrE;IACH,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CAAC,sCAAsC,CAAC;CACpD,CAAC;KACD,QAAQ,CAAC,gDAAgD,CAAC,CAAA"}
@@ -56,7 +56,9 @@ declare const _default: {
56
56
  type: string;
57
57
  };
58
58
  is_device_error?: never;
59
+ created_at?: never;
59
60
  is_connected_account_error?: never;
61
+ salto_ks_metadata?: never;
60
62
  };
61
63
  required: string[];
62
64
  type: string;
@@ -76,13 +78,20 @@ declare const _default: {
76
78
  type: string;
77
79
  };
78
80
  is_access_code_error?: never;
81
+ created_at?: never;
79
82
  is_connected_account_error?: never;
83
+ salto_ks_metadata?: never;
80
84
  };
81
85
  required: string[];
82
86
  type: string;
83
87
  } | {
84
88
  description: string;
85
89
  properties: {
90
+ created_at: {
91
+ description: string;
92
+ format: string;
93
+ type: string;
94
+ };
86
95
  error_code: {
87
96
  description: string;
88
97
  enum: string[];
@@ -97,6 +106,61 @@ declare const _default: {
97
106
  };
98
107
  is_access_code_error?: never;
99
108
  is_device_error?: never;
109
+ salto_ks_metadata?: never;
110
+ };
111
+ required: string[];
112
+ type: string;
113
+ } | {
114
+ description: string;
115
+ properties: {
116
+ created_at: {
117
+ description: string;
118
+ format: string;
119
+ type: string;
120
+ };
121
+ error_code: {
122
+ description: string;
123
+ enum: string[];
124
+ type: string;
125
+ };
126
+ is_connected_account_error: {
127
+ enum: boolean[];
128
+ type: string;
129
+ };
130
+ message: {
131
+ type: string;
132
+ };
133
+ salto_ks_metadata: {
134
+ properties: {
135
+ sites: {
136
+ items: {
137
+ properties: {
138
+ site_id: {
139
+ type: string;
140
+ };
141
+ site_name: {
142
+ type: string;
143
+ };
144
+ site_user_subscription_limit: {
145
+ minimum: number;
146
+ type: string;
147
+ };
148
+ subscribed_site_user_count: {
149
+ minimum: number;
150
+ type: string;
151
+ };
152
+ };
153
+ required: string[];
154
+ type: string;
155
+ };
156
+ type: string;
157
+ };
158
+ };
159
+ required: string[];
160
+ type: string;
161
+ };
162
+ is_access_code_error?: never;
163
+ is_device_error?: never;
100
164
  };
101
165
  required: string[];
102
166
  type: string;
@@ -2396,9 +2460,14 @@ declare const _default: {
2396
2460
  discriminator: {
2397
2461
  propertyName: string;
2398
2462
  };
2399
- oneOf: {
2463
+ oneOf: ({
2400
2464
  description: string;
2401
2465
  properties: {
2466
+ created_at: {
2467
+ description: string;
2468
+ format: string;
2469
+ type: string;
2470
+ };
2402
2471
  error_code: {
2403
2472
  description: string;
2404
2473
  enum: string[];
@@ -2411,10 +2480,63 @@ declare const _default: {
2411
2480
  message: {
2412
2481
  type: string;
2413
2482
  };
2483
+ salto_ks_metadata?: never;
2414
2484
  };
2415
2485
  required: string[];
2416
2486
  type: string;
2417
- }[];
2487
+ } | {
2488
+ description: string;
2489
+ properties: {
2490
+ created_at: {
2491
+ description: string;
2492
+ format: string;
2493
+ type: string;
2494
+ };
2495
+ error_code: {
2496
+ description: string;
2497
+ enum: string[];
2498
+ type: string;
2499
+ };
2500
+ is_connected_account_error: {
2501
+ enum: boolean[];
2502
+ type: string;
2503
+ };
2504
+ message: {
2505
+ type: string;
2506
+ };
2507
+ salto_ks_metadata: {
2508
+ properties: {
2509
+ sites: {
2510
+ items: {
2511
+ properties: {
2512
+ site_id: {
2513
+ type: string;
2514
+ };
2515
+ site_name: {
2516
+ type: string;
2517
+ };
2518
+ site_user_subscription_limit: {
2519
+ minimum: number;
2520
+ type: string;
2521
+ };
2522
+ subscribed_site_user_count: {
2523
+ minimum: number;
2524
+ type: string;
2525
+ };
2526
+ };
2527
+ required: string[];
2528
+ type: string;
2529
+ };
2530
+ type: string;
2531
+ };
2532
+ };
2533
+ required: string[];
2534
+ type: string;
2535
+ };
2536
+ };
2537
+ required: string[];
2538
+ type: string;
2539
+ })[];
2418
2540
  };
2419
2541
  type: string;
2420
2542
  };
@@ -2444,9 +2566,14 @@ declare const _default: {
2444
2566
  discriminator: {
2445
2567
  propertyName: string;
2446
2568
  };
2447
- oneOf: {
2569
+ oneOf: ({
2448
2570
  description: string;
2449
2571
  properties: {
2572
+ created_at: {
2573
+ description: string;
2574
+ format: string;
2575
+ type: string;
2576
+ };
2450
2577
  message: {
2451
2578
  type: string;
2452
2579
  };
@@ -2455,10 +2582,59 @@ declare const _default: {
2455
2582
  enum: string[];
2456
2583
  type: string;
2457
2584
  };
2585
+ salto_ks_metadata?: never;
2458
2586
  };
2459
2587
  required: string[];
2460
2588
  type: string;
2461
- }[];
2589
+ } | {
2590
+ description: string;
2591
+ properties: {
2592
+ created_at: {
2593
+ description: string;
2594
+ format: string;
2595
+ type: string;
2596
+ };
2597
+ message: {
2598
+ type: string;
2599
+ };
2600
+ salto_ks_metadata: {
2601
+ properties: {
2602
+ sites: {
2603
+ items: {
2604
+ properties: {
2605
+ site_id: {
2606
+ type: string;
2607
+ };
2608
+ site_name: {
2609
+ type: string;
2610
+ };
2611
+ site_user_subscription_limit: {
2612
+ minimum: number;
2613
+ type: string;
2614
+ };
2615
+ subscribed_site_user_count: {
2616
+ minimum: number;
2617
+ type: string;
2618
+ };
2619
+ };
2620
+ required: string[];
2621
+ type: string;
2622
+ };
2623
+ type: string;
2624
+ };
2625
+ };
2626
+ required: string[];
2627
+ type: string;
2628
+ };
2629
+ warning_code: {
2630
+ description: string;
2631
+ enum: string[];
2632
+ type: string;
2633
+ };
2634
+ };
2635
+ required: string[];
2636
+ type: string;
2637
+ })[];
2462
2638
  };
2463
2639
  type: string;
2464
2640
  };
@@ -2570,13 +2746,45 @@ declare const _default: {
2570
2746
  message: {
2571
2747
  type: string;
2572
2748
  };
2749
+ created_at?: never;
2573
2750
  is_connected_account_error?: never;
2751
+ salto_ks_metadata?: never;
2752
+ };
2753
+ required: string[];
2754
+ type: string;
2755
+ } | {
2756
+ description: string;
2757
+ properties: {
2758
+ created_at: {
2759
+ description: string;
2760
+ format: string;
2761
+ type: string;
2762
+ };
2763
+ error_code: {
2764
+ description: string;
2765
+ enum: string[];
2766
+ type: string;
2767
+ };
2768
+ is_connected_account_error: {
2769
+ enum: boolean[];
2770
+ type: string;
2771
+ };
2772
+ message: {
2773
+ type: string;
2774
+ };
2775
+ is_device_error?: never;
2776
+ salto_ks_metadata?: never;
2574
2777
  };
2575
2778
  required: string[];
2576
2779
  type: string;
2577
2780
  } | {
2578
2781
  description: string;
2579
2782
  properties: {
2783
+ created_at: {
2784
+ description: string;
2785
+ format: string;
2786
+ type: string;
2787
+ };
2580
2788
  error_code: {
2581
2789
  description: string;
2582
2790
  enum: string[];
@@ -2589,6 +2797,35 @@ declare const _default: {
2589
2797
  message: {
2590
2798
  type: string;
2591
2799
  };
2800
+ salto_ks_metadata: {
2801
+ properties: {
2802
+ sites: {
2803
+ items: {
2804
+ properties: {
2805
+ site_id: {
2806
+ type: string;
2807
+ };
2808
+ site_name: {
2809
+ type: string;
2810
+ };
2811
+ site_user_subscription_limit: {
2812
+ minimum: number;
2813
+ type: string;
2814
+ };
2815
+ subscribed_site_user_count: {
2816
+ minimum: number;
2817
+ type: string;
2818
+ };
2819
+ };
2820
+ required: string[];
2821
+ type: string;
2822
+ };
2823
+ type: string;
2824
+ };
2825
+ };
2826
+ required: string[];
2827
+ type: string;
2828
+ };
2592
2829
  is_device_error?: never;
2593
2830
  };
2594
2831
  required: string[];
@@ -6790,6 +7027,28 @@ declare const _default: {
6790
7027
  type: string;
6791
7028
  'x-route-path': string;
6792
7029
  };
7030
+ pagination: {
7031
+ description: string;
7032
+ properties: {
7033
+ has_next_page: {
7034
+ description: string;
7035
+ type: string;
7036
+ };
7037
+ next_page_cursor: {
7038
+ description: string;
7039
+ nullable: boolean;
7040
+ type: string;
7041
+ };
7042
+ next_page_url: {
7043
+ description: string;
7044
+ format: string;
7045
+ nullable: boolean;
7046
+ type: string;
7047
+ };
7048
+ };
7049
+ required: string[];
7050
+ type: string;
7051
+ };
6793
7052
  phone: {
6794
7053
  description: string;
6795
7054
  properties: {
@@ -7030,7 +7289,9 @@ declare const _default: {
7030
7289
  type: string;
7031
7290
  };
7032
7291
  is_device_error?: never;
7292
+ created_at?: never;
7033
7293
  is_connected_account_error?: never;
7294
+ salto_ks_metadata?: never;
7034
7295
  };
7035
7296
  required: string[];
7036
7297
  type: string;
@@ -7050,13 +7311,20 @@ declare const _default: {
7050
7311
  type: string;
7051
7312
  };
7052
7313
  is_access_code_error?: never;
7314
+ created_at?: never;
7053
7315
  is_connected_account_error?: never;
7316
+ salto_ks_metadata?: never;
7054
7317
  };
7055
7318
  required: string[];
7056
7319
  type: string;
7057
7320
  } | {
7058
7321
  description: string;
7059
7322
  properties: {
7323
+ created_at: {
7324
+ description: string;
7325
+ format: string;
7326
+ type: string;
7327
+ };
7060
7328
  error_code: {
7061
7329
  description: string;
7062
7330
  enum: string[];
@@ -7071,6 +7339,61 @@ declare const _default: {
7071
7339
  };
7072
7340
  is_access_code_error?: never;
7073
7341
  is_device_error?: never;
7342
+ salto_ks_metadata?: never;
7343
+ };
7344
+ required: string[];
7345
+ type: string;
7346
+ } | {
7347
+ description: string;
7348
+ properties: {
7349
+ created_at: {
7350
+ description: string;
7351
+ format: string;
7352
+ type: string;
7353
+ };
7354
+ error_code: {
7355
+ description: string;
7356
+ enum: string[];
7357
+ type: string;
7358
+ };
7359
+ is_connected_account_error: {
7360
+ enum: boolean[];
7361
+ type: string;
7362
+ };
7363
+ message: {
7364
+ type: string;
7365
+ };
7366
+ salto_ks_metadata: {
7367
+ properties: {
7368
+ sites: {
7369
+ items: {
7370
+ properties: {
7371
+ site_id: {
7372
+ type: string;
7373
+ };
7374
+ site_name: {
7375
+ type: string;
7376
+ };
7377
+ site_user_subscription_limit: {
7378
+ minimum: number;
7379
+ type: string;
7380
+ };
7381
+ subscribed_site_user_count: {
7382
+ minimum: number;
7383
+ type: string;
7384
+ };
7385
+ };
7386
+ required: string[];
7387
+ type: string;
7388
+ };
7389
+ type: string;
7390
+ };
7391
+ };
7392
+ required: string[];
7393
+ type: string;
7394
+ };
7395
+ is_access_code_error?: never;
7396
+ is_device_error?: never;
7074
7397
  };
7075
7398
  required: string[];
7076
7399
  type: string;
@@ -7710,13 +8033,20 @@ declare const _default: {
7710
8033
  message: {
7711
8034
  type: string;
7712
8035
  };
8036
+ created_at?: never;
7713
8037
  is_connected_account_error?: never;
8038
+ salto_ks_metadata?: never;
7714
8039
  };
7715
8040
  required: string[];
7716
8041
  type: string;
7717
8042
  } | {
7718
8043
  description: string;
7719
8044
  properties: {
8045
+ created_at: {
8046
+ description: string;
8047
+ format: string;
8048
+ type: string;
8049
+ };
7720
8050
  error_code: {
7721
8051
  description: string;
7722
8052
  enum: string[];
@@ -7730,6 +8060,60 @@ declare const _default: {
7730
8060
  type: string;
7731
8061
  };
7732
8062
  is_device_error?: never;
8063
+ salto_ks_metadata?: never;
8064
+ };
8065
+ required: string[];
8066
+ type: string;
8067
+ } | {
8068
+ description: string;
8069
+ properties: {
8070
+ created_at: {
8071
+ description: string;
8072
+ format: string;
8073
+ type: string;
8074
+ };
8075
+ error_code: {
8076
+ description: string;
8077
+ enum: string[];
8078
+ type: string;
8079
+ };
8080
+ is_connected_account_error: {
8081
+ enum: boolean[];
8082
+ type: string;
8083
+ };
8084
+ message: {
8085
+ type: string;
8086
+ };
8087
+ salto_ks_metadata: {
8088
+ properties: {
8089
+ sites: {
8090
+ items: {
8091
+ properties: {
8092
+ site_id: {
8093
+ type: string;
8094
+ };
8095
+ site_name: {
8096
+ type: string;
8097
+ };
8098
+ site_user_subscription_limit: {
8099
+ minimum: number;
8100
+ type: string;
8101
+ };
8102
+ subscribed_site_user_count: {
8103
+ minimum: number;
8104
+ type: string;
8105
+ };
8106
+ };
8107
+ required: string[];
8108
+ type: string;
8109
+ };
8110
+ type: string;
8111
+ };
8112
+ };
8113
+ required: string[];
8114
+ type: string;
8115
+ };
8116
+ is_device_error?: never;
7733
8117
  };
7734
8118
  required: string[];
7735
8119
  type: string;
@@ -13818,26 +14202,7 @@ declare const _default: {
13818
14202
  type: string;
13819
14203
  };
13820
14204
  pagination: {
13821
- description: string;
13822
- properties: {
13823
- has_next_page: {
13824
- description: string;
13825
- type: string;
13826
- };
13827
- next_page_cursor: {
13828
- description: string;
13829
- nullable: boolean;
13830
- type: string;
13831
- };
13832
- next_page_url: {
13833
- description: string;
13834
- format: string;
13835
- nullable: boolean;
13836
- type: string;
13837
- };
13838
- };
13839
- required: string[];
13840
- type: string;
14205
+ $ref: string;
13841
14206
  };
13842
14207
  };
13843
14208
  required: string[];