@seamapi/types 1.906.0 → 1.908.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.
@@ -28116,6 +28116,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
28116
28116
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
28117
28117
  } & {
28118
28118
  event_type: z.ZodLiteral<"device.deleted">;
28119
+ device_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28119
28120
  }, "strip", z.ZodTypeAny, {
28120
28121
  device_id: string;
28121
28122
  workspace_id: string;
@@ -28125,6 +28126,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
28125
28126
  occurred_at: string;
28126
28127
  event_type: "device.deleted";
28127
28128
  customer_key?: string | undefined;
28129
+ device_name?: string | null | undefined;
28128
28130
  device_custom_metadata?: Record<string, string | boolean> | undefined;
28129
28131
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
28130
28132
  }, {
@@ -28136,6 +28138,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
28136
28138
  occurred_at: string;
28137
28139
  event_type: "device.deleted";
28138
28140
  customer_key?: string | undefined;
28141
+ device_name?: string | null | undefined;
28139
28142
  device_custom_metadata?: Record<string, string | boolean> | undefined;
28140
28143
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
28141
28144
  }>, z.ZodObject<{
@@ -71474,6 +71477,19 @@ type Routes = {
71474
71477
  /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */
71475
71478
  default_events?: string[] | undefined;
71476
71479
  } | undefined;
71480
+ /**
71481
+ Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.
71482
+ */
71483
+ device_management_confirmation?: {
71484
+ /** Custom title for the confirmation modal. */
71485
+ title?: string | undefined;
71486
+ /** Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed. */
71487
+ body?: string | undefined;
71488
+ /** Custom label for the confirm button. */
71489
+ confirm_button_label?: string | undefined;
71490
+ /** Custom label for the cancel button. */
71491
+ cancel_button_label?: string | undefined;
71492
+ } | undefined;
71477
71493
  };
71478
71494
  /** Configuration for the manage devices feature.
71479
71495
  ---
@@ -78253,6 +78269,8 @@ type Routes = {
78253
78269
  [x: string]: string | boolean;
78254
78270
  } | undefined;
78255
78271
  event_type: 'device.deleted';
78272
+ /** Name of the deleted device, captured at deletion time. The device record no longer exists when this event fires, so the name is preserved here. Null when the device had no resolvable name. */
78273
+ device_name?: (string | null) | undefined;
78256
78274
  } | {
78257
78275
  /** ID of the event. */
78258
78276
  event_id: string;
@@ -81110,6 +81128,8 @@ type Routes = {
81110
81128
  [x: string]: string | boolean;
81111
81129
  } | undefined;
81112
81130
  event_type: 'device.deleted';
81131
+ /** Name of the deleted device, captured at deletion time. The device record no longer exists when this event fires, so the name is preserved here. Null when the device had no resolvable name. */
81132
+ device_name?: (string | null) | undefined;
81113
81133
  } | {
81114
81134
  /** ID of the event. */
81115
81135
  event_id: string;
@@ -109599,6 +109619,8 @@ type Routes = {
109599
109619
  [x: string]: string | boolean;
109600
109620
  } | undefined;
109601
109621
  event_type: 'device.deleted';
109622
+ /** Name of the deleted device, captured at deletion time. The device record no longer exists when this event fires, so the name is preserved here. Null when the device had no resolvable name. */
109623
+ device_name?: (string | null) | undefined;
109602
109624
  } | {
109603
109625
  /** ID of the event. */
109604
109626
  event_id: string;
@@ -110531,6 +110553,19 @@ type Routes = {
110531
110553
  /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */
110532
110554
  default_events?: string[] | undefined;
110533
110555
  } | undefined;
110556
+ /**
110557
+ Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.
110558
+ */
110559
+ device_management_confirmation?: {
110560
+ /** Custom title for the confirmation modal. */
110561
+ title?: string | undefined;
110562
+ /** Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed. */
110563
+ body?: string | undefined;
110564
+ /** Custom label for the confirm button. */
110565
+ confirm_button_label?: string | undefined;
110566
+ /** Custom label for the cancel button. */
110567
+ cancel_button_label?: string | undefined;
110568
+ } | undefined;
110534
110569
  };
110535
110570
  /** Configuration for the manage devices feature.
110536
110571
  ---
@@ -110616,6 +110651,7 @@ type Routes = {
110616
110651
  feature_flags?: {
110617
110652
  RESERVATION_UI_V2?: boolean | undefined;
110618
110653
  SALTO_KS_ENTRANCES_ONLY_FOR_SPACES?: boolean | undefined;
110654
+ MANAGE_DEVICES_CONFIRMATION_MODAL?: boolean | undefined;
110619
110655
  } | undefined;
110620
110656
  };
110621
110657
  };
@@ -110657,6 +110693,19 @@ type Routes = {
110657
110693
  /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */
110658
110694
  default_events?: string[] | undefined;
110659
110695
  } | undefined;
110696
+ /**
110697
+ Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.
110698
+ */
110699
+ device_management_confirmation?: {
110700
+ /** Custom title for the confirmation modal. */
110701
+ title?: string | undefined;
110702
+ /** Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed. */
110703
+ body?: string | undefined;
110704
+ /** Custom label for the confirm button. */
110705
+ confirm_button_label?: string | undefined;
110706
+ /** Custom label for the cancel button. */
110707
+ cancel_button_label?: string | undefined;
110708
+ } | undefined;
110660
110709
  };
110661
110710
  /** Configuration for the manage devices feature.
110662
110711
  ---
@@ -146264,6 +146313,8 @@ type Routes = {
146264
146313
  [x: string]: string | boolean;
146265
146314
  } | undefined;
146266
146315
  event_type: 'device.deleted';
146316
+ /** Name of the deleted device, captured at deletion time. The device record no longer exists when this event fires, so the name is preserved here. Null when the device had no resolvable name. */
146317
+ device_name?: (string | null) | undefined;
146267
146318
  } | {
146268
146319
  /** ID of the event. */
146269
146320
  event_id: string;
package/dist/index.cjs CHANGED
@@ -6399,7 +6399,10 @@ var device_removed_event = device_event.extend({
6399
6399
  A [device](https://docs.seam.co/core-concepts/devices) was removed externally from the [connected account](https://docs.seam.co/core-concepts/connected-accounts).
6400
6400
  `);
6401
6401
  var device_deleted_event = device_event.extend({
6402
- event_type: zod.z.literal("device.deleted")
6402
+ event_type: zod.z.literal("device.deleted"),
6403
+ device_name: zod.z.string().nullable().optional().describe(
6404
+ "Name of the deleted device, captured at deletion time. The device record no longer exists when this event fires, so the name is preserved here. Null when the device had no resolvable name."
6405
+ )
6403
6406
  }).describe(`
6404
6407
  ---
6405
6408
  route_path: /devices
@@ -28586,6 +28589,11 @@ var openapi = {
28586
28589
  format: "uuid",
28587
28590
  type: "string"
28588
28591
  },
28592
+ device_name: {
28593
+ description: "Name of the deleted device, captured at deletion time. The device record no longer exists when this event fires, so the name is preserved here. Null when the device had no resolvable name.",
28594
+ nullable: true,
28595
+ type: "string"
28596
+ },
28589
28597
  event_id: {
28590
28598
  description: "ID of the event.",
28591
28599
  format: "uuid",
@@ -56065,6 +56073,28 @@ var openapi = {
56065
56073
  default: {},
56066
56074
  description: "Configuration for the manage feature.",
56067
56075
  properties: {
56076
+ device_management_confirmation: {
56077
+ description: "\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ",
56078
+ properties: {
56079
+ body: {
56080
+ description: "Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.",
56081
+ type: "string"
56082
+ },
56083
+ cancel_button_label: {
56084
+ description: "Custom label for the cancel button.",
56085
+ type: "string"
56086
+ },
56087
+ confirm_button_label: {
56088
+ description: "Custom label for the confirm button.",
56089
+ type: "string"
56090
+ },
56091
+ title: {
56092
+ description: "Custom title for the confirmation modal.",
56093
+ type: "string"
56094
+ }
56095
+ },
56096
+ type: "object"
56097
+ },
56068
56098
  events: {
56069
56099
  description: "Configuration for event type filtering in the manage feature.",
56070
56100
  properties: {
@@ -73902,6 +73932,9 @@ var openapi = {
73902
73932
  },
73903
73933
  feature_flags: {
73904
73934
  properties: {
73935
+ MANAGE_DEVICES_CONFIRMATION_MODAL: {
73936
+ type: "boolean"
73937
+ },
73905
73938
  RESERVATION_UI_V2: { type: "boolean" },
73906
73939
  SALTO_KS_ENTRANCES_ONLY_FOR_SPACES: {
73907
73940
  type: "boolean"
@@ -73971,6 +74004,28 @@ var openapi = {
73971
74004
  },
73972
74005
  description: "Configuration for the manage feature.",
73973
74006
  properties: {
74007
+ device_management_confirmation: {
74008
+ description: "\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ",
74009
+ properties: {
74010
+ body: {
74011
+ description: "Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.",
74012
+ type: "string"
74013
+ },
74014
+ cancel_button_label: {
74015
+ description: "Custom label for the cancel button.",
74016
+ type: "string"
74017
+ },
74018
+ confirm_button_label: {
74019
+ description: "Custom label for the confirm button.",
74020
+ type: "string"
74021
+ },
74022
+ title: {
74023
+ description: "Custom title for the confirmation modal.",
74024
+ type: "string"
74025
+ }
74026
+ },
74027
+ type: "object"
74028
+ },
73974
74029
  events: {
73975
74030
  description: "Configuration for event type filtering in the manage feature.",
73976
74031
  properties: {
@@ -74296,6 +74351,9 @@ var openapi = {
74296
74351
  },
74297
74352
  feature_flags: {
74298
74353
  properties: {
74354
+ MANAGE_DEVICES_CONFIRMATION_MODAL: {
74355
+ type: "boolean"
74356
+ },
74299
74357
  RESERVATION_UI_V2: { type: "boolean" },
74300
74358
  SALTO_KS_ENTRANCES_ONLY_FOR_SPACES: {
74301
74359
  type: "boolean"
@@ -74365,6 +74423,28 @@ var openapi = {
74365
74423
  },
74366
74424
  description: "Configuration for the manage feature.",
74367
74425
  properties: {
74426
+ device_management_confirmation: {
74427
+ description: "\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ",
74428
+ properties: {
74429
+ body: {
74430
+ description: "Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.",
74431
+ type: "string"
74432
+ },
74433
+ cancel_button_label: {
74434
+ description: "Custom label for the cancel button.",
74435
+ type: "string"
74436
+ },
74437
+ confirm_button_label: {
74438
+ description: "Custom label for the confirm button.",
74439
+ type: "string"
74440
+ },
74441
+ title: {
74442
+ description: "Custom title for the confirmation modal.",
74443
+ type: "string"
74444
+ }
74445
+ },
74446
+ type: "object"
74447
+ },
74368
74448
  events: {
74369
74449
  description: "Configuration for event type filtering in the manage feature.",
74370
74450
  properties: {
@@ -74719,6 +74799,28 @@ var openapi = {
74719
74799
  default: {},
74720
74800
  description: "Configuration for the manage feature.",
74721
74801
  properties: {
74802
+ device_management_confirmation: {
74803
+ description: "\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ",
74804
+ properties: {
74805
+ body: {
74806
+ description: "Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.",
74807
+ type: "string"
74808
+ },
74809
+ cancel_button_label: {
74810
+ description: "Custom label for the cancel button.",
74811
+ type: "string"
74812
+ },
74813
+ confirm_button_label: {
74814
+ description: "Custom label for the confirm button.",
74815
+ type: "string"
74816
+ },
74817
+ title: {
74818
+ description: "Custom title for the confirmation modal.",
74819
+ type: "string"
74820
+ }
74821
+ },
74822
+ type: "object"
74823
+ },
74722
74824
  events: {
74723
74825
  description: "Configuration for event type filtering in the manage feature.",
74724
74826
  properties: {
@@ -75075,6 +75177,28 @@ var openapi = {
75075
75177
  default: {},
75076
75178
  description: "Configuration for the manage feature.",
75077
75179
  properties: {
75180
+ device_management_confirmation: {
75181
+ description: "\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ",
75182
+ properties: {
75183
+ body: {
75184
+ description: "Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.",
75185
+ type: "string"
75186
+ },
75187
+ cancel_button_label: {
75188
+ description: "Custom label for the cancel button.",
75189
+ type: "string"
75190
+ },
75191
+ confirm_button_label: {
75192
+ description: "Custom label for the confirm button.",
75193
+ type: "string"
75194
+ },
75195
+ title: {
75196
+ description: "Custom title for the confirmation modal.",
75197
+ type: "string"
75198
+ }
75199
+ },
75200
+ type: "object"
75201
+ },
75078
75202
  events: {
75079
75203
  description: "Configuration for event type filtering in the manage feature.",
75080
75204
  properties: {