@seamapi/types 1.528.0 → 1.530.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.
@@ -25136,6 +25136,7 @@ declare const batch: z.ZodObject<{
25136
25136
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25137
25137
  } & {
25138
25138
  event_type: z.ZodLiteral<"access_method.issued">;
25139
+ code: z.ZodOptional<z.ZodString>;
25139
25140
  }, "strip", z.ZodTypeAny, {
25140
25141
  workspace_id: string;
25141
25142
  created_at: string;
@@ -25144,6 +25145,7 @@ declare const batch: z.ZodObject<{
25144
25145
  occurred_at: string;
25145
25146
  event_type: "access_method.issued";
25146
25147
  access_grant_ids: string[];
25148
+ code?: string | undefined;
25147
25149
  access_grant_keys?: string[] | undefined;
25148
25150
  }, {
25149
25151
  workspace_id: string;
@@ -25153,6 +25155,7 @@ declare const batch: z.ZodObject<{
25153
25155
  occurred_at: string;
25154
25156
  event_type: "access_method.issued";
25155
25157
  access_grant_ids: string[];
25158
+ code?: string | undefined;
25156
25159
  access_grant_keys?: string[] | undefined;
25157
25160
  }>, z.ZodObject<{
25158
25161
  event_id: z.ZodString;
@@ -33099,6 +33102,7 @@ declare const batch: z.ZodObject<{
33099
33102
  occurred_at: string;
33100
33103
  event_type: "access_method.issued";
33101
33104
  access_grant_ids: string[];
33105
+ code?: string | undefined;
33102
33106
  access_grant_keys?: string[] | undefined;
33103
33107
  } | {
33104
33108
  workspace_id: string;
@@ -36950,6 +36954,7 @@ declare const batch: z.ZodObject<{
36950
36954
  occurred_at: string;
36951
36955
  event_type: "access_method.issued";
36952
36956
  access_grant_ids: string[];
36957
+ code?: string | undefined;
36953
36958
  access_grant_keys?: string[] | undefined;
36954
36959
  } | {
36955
36960
  workspace_id: string;
@@ -47858,6 +47863,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
47858
47863
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47859
47864
  } & {
47860
47865
  event_type: z.ZodLiteral<"access_method.issued">;
47866
+ code: z.ZodOptional<z.ZodString>;
47861
47867
  }, "strip", z.ZodTypeAny, {
47862
47868
  workspace_id: string;
47863
47869
  created_at: string;
@@ -47866,6 +47872,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
47866
47872
  occurred_at: string;
47867
47873
  event_type: "access_method.issued";
47868
47874
  access_grant_ids: string[];
47875
+ code?: string | undefined;
47869
47876
  access_grant_keys?: string[] | undefined;
47870
47877
  }, {
47871
47878
  workspace_id: string;
@@ -47875,6 +47882,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
47875
47882
  occurred_at: string;
47876
47883
  event_type: "access_method.issued";
47877
47884
  access_grant_ids: string[];
47885
+ code?: string | undefined;
47878
47886
  access_grant_keys?: string[] | undefined;
47879
47887
  }>, z.ZodObject<{
47880
47888
  event_id: z.ZodString;
@@ -58169,6 +58177,111 @@ declare const _default: {
58169
58177
  'x-route-path': string;
58170
58178
  deprecated?: never;
58171
58179
  'x-deprecated'?: never;
58180
+ } | {
58181
+ description: string;
58182
+ properties: {
58183
+ access_grant_ids: {
58184
+ description: string;
58185
+ items: {
58186
+ format: string;
58187
+ type: string;
58188
+ };
58189
+ type: string;
58190
+ };
58191
+ access_grant_keys: {
58192
+ description: string;
58193
+ items: {
58194
+ type: string;
58195
+ };
58196
+ type: string;
58197
+ };
58198
+ access_method_id: {
58199
+ description: string;
58200
+ format: string;
58201
+ type: string;
58202
+ };
58203
+ code: {
58204
+ description: string;
58205
+ type: string;
58206
+ nullable?: never;
58207
+ };
58208
+ created_at: {
58209
+ description: string;
58210
+ format: string;
58211
+ type: string;
58212
+ };
58213
+ event_id: {
58214
+ description: string;
58215
+ format: string;
58216
+ type: string;
58217
+ };
58218
+ event_type: {
58219
+ enum: string[];
58220
+ type: string;
58221
+ };
58222
+ occurred_at: {
58223
+ description: string;
58224
+ format: string;
58225
+ type: string;
58226
+ };
58227
+ workspace_id: {
58228
+ description: string;
58229
+ format: string;
58230
+ type: string;
58231
+ };
58232
+ access_code_id?: never;
58233
+ connected_account_custom_metadata?: never;
58234
+ connected_account_id?: never;
58235
+ device_custom_metadata?: never;
58236
+ device_id?: never;
58237
+ backup_access_code_id?: never;
58238
+ access_grant_id?: never;
58239
+ acs_entrance_id?: never;
58240
+ acs_system_id?: never;
58241
+ acs_credential_id?: never;
58242
+ acs_user_id?: never;
58243
+ acs_encoder_id?: never;
58244
+ acs_access_group_id?: never;
58245
+ client_session_id?: never;
58246
+ connect_webview_id?: never;
58247
+ action_attempt_id?: never;
58248
+ action_type?: never;
58249
+ status?: never;
58250
+ error_code?: never;
58251
+ battery_level?: never;
58252
+ battery_status?: never;
58253
+ minut_metadata?: never;
58254
+ noise_level_decibels?: never;
58255
+ noise_level_nrs?: never;
58256
+ noise_threshold_id?: never;
58257
+ noise_threshold_name?: never;
58258
+ noiseaware_metadata?: never;
58259
+ method?: never;
58260
+ climate_preset_key?: never;
58261
+ is_fallback_climate_preset?: never;
58262
+ thermostat_schedule_id?: never;
58263
+ cooling_set_point_celsius?: never;
58264
+ cooling_set_point_fahrenheit?: never;
58265
+ fan_mode_setting?: never;
58266
+ heating_set_point_celsius?: never;
58267
+ heating_set_point_fahrenheit?: never;
58268
+ hvac_mode_setting?: never;
58269
+ lower_limit_celsius?: never;
58270
+ lower_limit_fahrenheit?: never;
58271
+ temperature_celsius?: never;
58272
+ temperature_fahrenheit?: never;
58273
+ upper_limit_celsius?: never;
58274
+ upper_limit_fahrenheit?: never;
58275
+ desired_temperature_celsius?: never;
58276
+ desired_temperature_fahrenheit?: never;
58277
+ device_name?: never;
58278
+ enrollment_automation_id?: never;
58279
+ };
58280
+ required: string[];
58281
+ type: string;
58282
+ 'x-route-path': string;
58283
+ deprecated?: never;
58284
+ 'x-deprecated'?: never;
58172
58285
  } | {
58173
58286
  description: string;
58174
58287
  properties: {
@@ -82488,6 +82601,82 @@ declare const _default: {
82488
82601
  'x-title': string;
82489
82602
  };
82490
82603
  };
82604
+ '/devices/simulate/paid_subscription': {
82605
+ post: {
82606
+ description: string;
82607
+ operationId: string;
82608
+ requestBody: {
82609
+ content: {
82610
+ 'application/json': {
82611
+ schema: {
82612
+ properties: {
82613
+ device_id: {
82614
+ format: string;
82615
+ type: string;
82616
+ };
82617
+ is_expired: {
82618
+ type: string;
82619
+ };
82620
+ };
82621
+ required: string[];
82622
+ type: string;
82623
+ };
82624
+ };
82625
+ };
82626
+ };
82627
+ responses: {
82628
+ 200: {
82629
+ content: {
82630
+ 'application/json': {
82631
+ schema: {
82632
+ properties: {
82633
+ ok: {
82634
+ type: string;
82635
+ };
82636
+ };
82637
+ required: string[];
82638
+ type: string;
82639
+ };
82640
+ };
82641
+ };
82642
+ description: string;
82643
+ };
82644
+ 400: {
82645
+ description: string;
82646
+ };
82647
+ 401: {
82648
+ description: string;
82649
+ };
82650
+ };
82651
+ security: ({
82652
+ api_key: never[];
82653
+ pat_with_workspace?: never;
82654
+ console_session_with_workspace?: never;
82655
+ client_session_with_customer?: never;
82656
+ } | {
82657
+ pat_with_workspace: never[];
82658
+ api_key?: never;
82659
+ console_session_with_workspace?: never;
82660
+ client_session_with_customer?: never;
82661
+ } | {
82662
+ console_session_with_workspace: never[];
82663
+ api_key?: never;
82664
+ pat_with_workspace?: never;
82665
+ client_session_with_customer?: never;
82666
+ } | {
82667
+ client_session_with_customer: never[];
82668
+ api_key?: never;
82669
+ pat_with_workspace?: never;
82670
+ console_session_with_workspace?: never;
82671
+ })[];
82672
+ summary: string;
82673
+ tags: string[];
82674
+ 'x-fern-sdk-group-name': string[];
82675
+ 'x-fern-sdk-method-name': string;
82676
+ 'x-response-key': null;
82677
+ 'x-title': string;
82678
+ };
82679
+ };
82491
82680
  '/devices/simulate/remove': {
82492
82681
  post: {
82493
82682
  description: string;
@@ -118856,6 +119045,8 @@ type Routes = {
118856
119045
  /** Keys of the access grants associated with this access method (if present). */
118857
119046
  access_grant_keys?: string[] | undefined;
118858
119047
  event_type: 'access_method.issued';
119048
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
119049
+ code?: string | undefined;
118859
119050
  } | {
118860
119051
  /** ID of the event. */
118861
119052
  event_id: string;
@@ -135225,6 +135416,18 @@ type Routes = {
135225
135416
  formData: {};
135226
135417
  jsonResponse: {};
135227
135418
  };
135419
+ '/devices/simulate/paid_subscription': {
135420
+ route: '/devices/simulate/paid_subscription';
135421
+ method: 'POST';
135422
+ queryParams: {};
135423
+ jsonBody: {
135424
+ device_id: string;
135425
+ is_expired: boolean;
135426
+ };
135427
+ commonParams: {};
135428
+ formData: {};
135429
+ jsonResponse: {};
135430
+ };
135228
135431
  '/devices/simulate/remove': {
135229
135432
  route: '/devices/simulate/remove';
135230
135433
  method: 'POST';
@@ -136630,6 +136833,8 @@ type Routes = {
136630
136833
  /** Keys of the access grants associated with this access method (if present). */
136631
136834
  access_grant_keys?: string[] | undefined;
136632
136835
  event_type: 'access_method.issued';
136836
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
136837
+ code?: string | undefined;
136633
136838
  } | {
136634
136839
  /** ID of the event. */
136635
136840
  event_id: string;
@@ -138524,6 +138729,8 @@ type Routes = {
138524
138729
  /** Keys of the access grants associated with this access method (if present). */
138525
138730
  access_grant_keys?: string[] | undefined;
138526
138731
  event_type: 'access_method.issued';
138732
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
138733
+ code?: string | undefined;
138527
138734
  } | {
138528
138735
  /** ID of the event. */
138529
138736
  event_id: string;
@@ -157350,6 +157557,8 @@ type Routes = {
157350
157557
  /** Keys of the access grants associated with this access method (if present). */
157351
157558
  access_grant_keys?: string[] | undefined;
157352
157559
  event_type: 'access_method.issued';
157560
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
157561
+ code?: string | undefined;
157353
157562
  } | {
157354
157563
  /** ID of the event. */
157355
157564
  event_id: string;
@@ -184602,6 +184811,8 @@ type Routes = {
184602
184811
  /** Keys of the access grants associated with this access method (if present). */
184603
184812
  access_grant_keys?: string[] | undefined;
184604
184813
  event_type: 'access_method.issued';
184814
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
184815
+ code?: string | undefined;
184605
184816
  } | {
184606
184817
  /** ID of the event. */
184607
184818
  event_id: string;
package/dist/index.cjs CHANGED
@@ -4287,7 +4287,10 @@ var access_method_event = common_event.extend({
4287
4287
  )
4288
4288
  });
4289
4289
  var access_method_issued_event = access_method_event.extend({
4290
- event_type: zod.z.literal("access_method.issued")
4290
+ event_type: zod.z.literal("access_method.issued"),
4291
+ code: zod.z.string().optional().describe(
4292
+ "The actual PIN code for code access methods (only present when mode is 'code')."
4293
+ )
4291
4294
  }).describe(`
4292
4295
  ---
4293
4296
  route_path: /access_methods
@@ -18568,6 +18571,10 @@ var openapi_default = {
18568
18571
  format: "uuid",
18569
18572
  type: "string"
18570
18573
  },
18574
+ code: {
18575
+ description: "The actual PIN code for code access methods (only present when mode is 'code').",
18576
+ type: "string"
18577
+ },
18571
18578
  created_at: {
18572
18579
  description: "Date and time at which the event was created.",
18573
18580
  format: "date-time",
@@ -43453,6 +43460,54 @@ var openapi_default = {
43453
43460
  "x-title": "Simulate Hub Disconnection"
43454
43461
  }
43455
43462
  },
43463
+ "/devices/simulate/paid_subscription": {
43464
+ post: {
43465
+ description: "Toggle the simulated Nuki Smart Hosting subscription for a device (sandbox only).\nSend `is_expired: true` to simulate an expired subscription, or `false` to simulate an active subscription.\nThe actual device error is created/cleared by the poller after this state change.",
43466
+ operationId: "devicesSimulatePaidSubscriptionPost",
43467
+ requestBody: {
43468
+ content: {
43469
+ "application/json": {
43470
+ schema: {
43471
+ properties: {
43472
+ device_id: { format: "uuid", type: "string" },
43473
+ is_expired: { type: "boolean" }
43474
+ },
43475
+ required: ["device_id", "is_expired"],
43476
+ type: "object"
43477
+ }
43478
+ }
43479
+ }
43480
+ },
43481
+ responses: {
43482
+ 200: {
43483
+ content: {
43484
+ "application/json": {
43485
+ schema: {
43486
+ properties: { ok: { type: "boolean" } },
43487
+ required: ["ok"],
43488
+ type: "object"
43489
+ }
43490
+ }
43491
+ },
43492
+ description: "OK"
43493
+ },
43494
+ 400: { description: "Bad Request" },
43495
+ 401: { description: "Unauthorized" }
43496
+ },
43497
+ security: [
43498
+ { api_key: [] },
43499
+ { pat_with_workspace: [] },
43500
+ { console_session_with_workspace: [] },
43501
+ { client_session_with_customer: [] }
43502
+ ],
43503
+ summary: "/devices/simulate/paid_subscription",
43504
+ tags: ["/devices"],
43505
+ "x-fern-sdk-group-name": ["devices", "simulate"],
43506
+ "x-fern-sdk-method-name": "paid_subscription",
43507
+ "x-response-key": null,
43508
+ "x-title": "Simulate Paid Subscription"
43509
+ }
43510
+ },
43456
43511
  "/devices/simulate/remove": {
43457
43512
  post: {
43458
43513
  description: "Simulates removing a device from Seam. Only applicable for [sandbox devices](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://docs.seam.co/latest/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).",