@seamapi/types 1.894.0 → 1.896.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.
@@ -49,6 +49,20 @@ export declare const access_code_changed_event: z.ZodObject<{
49
49
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
50
50
  } & {
51
51
  event_type: z.ZodLiteral<"access_code.changed">;
52
+ changed_properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ property: z.ZodString;
54
+ from: z.ZodNullable<z.ZodString>;
55
+ to: z.ZodNullable<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ from: string | null;
58
+ to: string | null;
59
+ property: string;
60
+ }, {
61
+ from: string | null;
62
+ to: string | null;
63
+ property: string;
64
+ }>, "many">>;
65
+ change_reason: z.ZodOptional<z.ZodString>;
52
66
  }, "strip", z.ZodTypeAny, {
53
67
  device_id: string;
54
68
  workspace_id: string;
@@ -60,6 +74,12 @@ export declare const access_code_changed_event: z.ZodObject<{
60
74
  event_type: "access_code.changed";
61
75
  device_custom_metadata?: Record<string, string | boolean> | undefined;
62
76
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
77
+ changed_properties?: {
78
+ from: string | null;
79
+ to: string | null;
80
+ property: string;
81
+ }[] | undefined;
82
+ change_reason?: string | undefined;
63
83
  }, {
64
84
  device_id: string;
65
85
  workspace_id: string;
@@ -71,6 +91,12 @@ export declare const access_code_changed_event: z.ZodObject<{
71
91
  event_type: "access_code.changed";
72
92
  device_custom_metadata?: Record<string, string | boolean> | undefined;
73
93
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
94
+ changed_properties?: {
95
+ from: string | null;
96
+ to: string | null;
97
+ property: string;
98
+ }[] | undefined;
99
+ change_reason?: string | undefined;
74
100
  }>;
75
101
  export type AccessCodeChangedEvent = z.infer<typeof access_code_changed_event>;
76
102
  export declare const access_code_scheduled_on_device_event: z.ZodObject<{
@@ -1383,6 +1409,20 @@ export declare const access_code_events: readonly [z.ZodObject<{
1383
1409
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
1384
1410
  } & {
1385
1411
  event_type: z.ZodLiteral<"access_code.changed">;
1412
+ changed_properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
1413
+ property: z.ZodString;
1414
+ from: z.ZodNullable<z.ZodString>;
1415
+ to: z.ZodNullable<z.ZodString>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ from: string | null;
1418
+ to: string | null;
1419
+ property: string;
1420
+ }, {
1421
+ from: string | null;
1422
+ to: string | null;
1423
+ property: string;
1424
+ }>, "many">>;
1425
+ change_reason: z.ZodOptional<z.ZodString>;
1386
1426
  }, "strip", z.ZodTypeAny, {
1387
1427
  device_id: string;
1388
1428
  workspace_id: string;
@@ -1394,6 +1434,12 @@ export declare const access_code_events: readonly [z.ZodObject<{
1394
1434
  event_type: "access_code.changed";
1395
1435
  device_custom_metadata?: Record<string, string | boolean> | undefined;
1396
1436
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1437
+ changed_properties?: {
1438
+ from: string | null;
1439
+ to: string | null;
1440
+ property: string;
1441
+ }[] | undefined;
1442
+ change_reason?: string | undefined;
1397
1443
  }, {
1398
1444
  device_id: string;
1399
1445
  workspace_id: string;
@@ -1405,6 +1451,12 @@ export declare const access_code_events: readonly [z.ZodObject<{
1405
1451
  event_type: "access_code.changed";
1406
1452
  device_custom_metadata?: Record<string, string | boolean> | undefined;
1407
1453
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1454
+ changed_properties?: {
1455
+ from: string | null;
1456
+ to: string | null;
1457
+ property: string;
1458
+ }[] | undefined;
1459
+ change_reason?: string | undefined;
1408
1460
  }>, z.ZodObject<{
1409
1461
  event_id: z.ZodString;
1410
1462
  workspace_id: z.ZodString;
@@ -49,6 +49,26 @@ export const access_code_created_event = access_code_event.extend({
49
49
  `);
50
50
  export const access_code_changed_event = access_code_event.extend({
51
51
  event_type: z.literal('access_code.changed'),
52
+ changed_properties: z
53
+ .array(z.object({
54
+ property: z
55
+ .string()
56
+ .describe('Name of the property that changed (e.g. `code`).'),
57
+ from: z
58
+ .string()
59
+ .nullable()
60
+ .describe('Previous value of the property, or null if not set.'),
61
+ to: z
62
+ .string()
63
+ .nullable()
64
+ .describe('New value of the property, or null if cleared.'),
65
+ }))
66
+ .optional()
67
+ .describe('List of properties that changed on the access code.'),
68
+ change_reason: z
69
+ .string()
70
+ .optional()
71
+ .describe('Human-readable reason for the change (e.g. `ongoing code auto-renewed`).'),
52
72
  }).describe(`
53
73
  ---
54
74
  route_path: /access_codes
@@ -1 +1 @@
1
- {"version":3,"file":"access-codes.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,aAAa,CAAA;AAEpB,MAAM,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC5C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC7E,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,4DAA4D,CAAC;IACzE,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,gIAAgI,CACjI;IACH,sBAAsB,EAAE,eAAe;SACpC,QAAQ,EAAE;SACV,QAAQ,CACP,oEAAoE,CACrE;IACH,iCAAiC,EAAE,eAAe;SAC/C,QAAQ,EAAE;SACV,QAAQ,CACP,0FAA0F,CAC3F;CACJ,CAA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U,EAAE,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;CACvD,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,mCAAmC,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAC1E,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;CACvD,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,yBAAyB;IACzB,yBAAyB;IACzB,qCAAqC;IACrC,+BAA+B;IAC/B,qCAAqC;IACrC,4CAA4C;IAC5C,yCAAyC;IACzC,yBAAyB;IACzB,+CAA+C;IAC/C,8CAA8C;IAC9C,2CAA2C;IAC3C,0CAA0C;IAC1C,2CAA2C;IAC3C,gDAAgD;IAChD,wDAAwD;IACxD,mCAAmC;IACnC,mCAAmC;CAC3B,CAAA"}
1
+ {"version":3,"file":"access-codes.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,aAAa,CAAA;AAEpB,MAAM,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC5C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC7E,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,4DAA4D,CAAC;IACzE,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,gIAAgI,CACjI;IACH,sBAAsB,EAAE,eAAe;SACpC,QAAQ,EAAE;SACV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minatedUnion<"event_type", [z.ZodObj
47
47
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
48
48
  } & {
49
49
  event_type: z.ZodLiteral<"access_code.changed">;
50
+ changed_properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ property: z.ZodString;
52
+ from: z.ZodNullable<z.ZodString>;
53
+ to: z.ZodNullable<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ from: string | null;
56
+ to: string | null;
57
+ property: string;
58
+ }, {
59
+ from: string | null;
60
+ to: string | null;
61
+ property: string;
62
+ }>, "many">>;
63
+ change_reason: z.ZodOptional<z.ZodString>;
50
64
  }, "strip", z.ZodTypeAny, {
51
65
  device_id: string;
52
66
  workspace_id: string;
@@ -58,6 +72,12 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
58
72
  event_type: "access_code.changed";
59
73
  device_custom_metadata?: Record<string, string | boolean> | undefined;
60
74
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
75
+ changed_properties?: {
76
+ from: string | null;
77
+ to: string | null;
78
+ property: string;
79
+ }[] | undefined;
80
+ change_reason?: string | undefined;
61
81
  }, {
62
82
  device_id: string;
63
83
  workspace_id: string;
@@ -69,6 +89,12 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
69
89
  event_type: "access_code.changed";
70
90
  device_custom_metadata?: Record<string, string | boolean> | undefined;
71
91
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
92
+ changed_properties?: {
93
+ from: string | null;
94
+ to: string | null;
95
+ property: string;
96
+ }[] | undefined;
97
+ change_reason?: string | undefined;
72
98
  }>, z.ZodObject<{
73
99
  event_id: z.ZodString;
74
100
  workspace_id: z.ZodString;
@@ -15711,6 +15711,34 @@ const openapi = {
15711
15711
  format: 'uuid',
15712
15712
  type: 'string',
15713
15713
  },
15714
+ change_reason: {
15715
+ description: 'Human-readable reason for the change (e.g. `ongoing code auto-renewed`).',
15716
+ type: 'string',
15717
+ },
15718
+ changed_properties: {
15719
+ description: 'List of properties that changed on the access code.',
15720
+ items: {
15721
+ properties: {
15722
+ from: {
15723
+ description: 'Previous value of the property, or null if not set.',
15724
+ nullable: true,
15725
+ type: 'string',
15726
+ },
15727
+ property: {
15728
+ description: 'Name of the property that changed (e.g. `code`).',
15729
+ type: 'string',
15730
+ },
15731
+ to: {
15732
+ description: 'New value of the property, or null if cleared.',
15733
+ nullable: true,
15734
+ type: 'string',
15735
+ },
15736
+ },
15737
+ required: ['property', 'from', 'to'],
15738
+ type: 'object',
15739
+ },
15740
+ type: 'array',
15741
+ },
15714
15742
  connected_account_custom_metadata: {
15715
15743
  additionalProperties: {
15716
15744
  oneOf: [{ type: 'string' }, { type: 'boolean' }],