@seamapi/types 1.906.0 → 1.907.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<{
@@ -78253,6 +78256,8 @@ type Routes = {
78253
78256
  [x: string]: string | boolean;
78254
78257
  } | undefined;
78255
78258
  event_type: 'device.deleted';
78259
+ /** 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. */
78260
+ device_name?: (string | null) | undefined;
78256
78261
  } | {
78257
78262
  /** ID of the event. */
78258
78263
  event_id: string;
@@ -81110,6 +81115,8 @@ type Routes = {
81110
81115
  [x: string]: string | boolean;
81111
81116
  } | undefined;
81112
81117
  event_type: 'device.deleted';
81118
+ /** 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. */
81119
+ device_name?: (string | null) | undefined;
81113
81120
  } | {
81114
81121
  /** ID of the event. */
81115
81122
  event_id: string;
@@ -109599,6 +109606,8 @@ type Routes = {
109599
109606
  [x: string]: string | boolean;
109600
109607
  } | undefined;
109601
109608
  event_type: 'device.deleted';
109609
+ /** 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. */
109610
+ device_name?: (string | null) | undefined;
109602
109611
  } | {
109603
109612
  /** ID of the event. */
109604
109613
  event_id: string;
@@ -146264,6 +146273,8 @@ type Routes = {
146264
146273
  [x: string]: string | boolean;
146265
146274
  } | undefined;
146266
146275
  event_type: 'device.deleted';
146276
+ /** 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. */
146277
+ device_name?: (string | null) | undefined;
146267
146278
  } | {
146268
146279
  /** ID of the event. */
146269
146280
  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",