@seamapi/types 1.437.1 → 1.439.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 (63) hide show
  1. package/dist/connect.cjs +1315 -190
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +8832 -319
  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/batches/batch.d.ts +5669 -0
  9. package/lib/seam/connect/models/batches/batch.js +8 -0
  10. package/lib/seam/connect/models/batches/batch.js.map +1 -0
  11. package/lib/seam/connect/models/batches/index.d.ts +2 -0
  12. package/lib/seam/connect/models/batches/index.js +3 -0
  13. package/lib/seam/connect/models/batches/index.js.map +1 -0
  14. package/lib/seam/connect/models/batches/spaces.d.ts +5669 -0
  15. package/lib/seam/connect/models/batches/spaces.js +13 -0
  16. package/lib/seam/connect/models/batches/spaces.js.map +1 -0
  17. package/lib/seam/connect/models/events/access-codes.d.ts +204 -0
  18. package/lib/seam/connect/models/events/access-codes.js +7 -0
  19. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  20. package/lib/seam/connect/models/events/connect-webviews.d.ts +6 -0
  21. package/lib/seam/connect/models/events/connect-webviews.js +5 -0
  22. package/lib/seam/connect/models/events/connect-webviews.js.map +1 -1
  23. package/lib/seam/connect/models/events/connected-accounts.d.ts +42 -0
  24. package/lib/seam/connect/models/events/connected-accounts.js +4 -0
  25. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  26. package/lib/seam/connect/models/events/devices.d.ts +396 -0
  27. package/lib/seam/connect/models/events/devices.js +7 -0
  28. package/lib/seam/connect/models/events/devices.js.map +1 -1
  29. package/lib/seam/connect/models/events/phones.d.ts +6 -0
  30. package/lib/seam/connect/models/events/phones.js +4 -0
  31. package/lib/seam/connect/models/events/phones.js.map +1 -1
  32. package/lib/seam/connect/models/events/seam-event.d.ts +327 -0
  33. package/lib/seam/connect/models/events/seam-event.js +1 -1
  34. package/lib/seam/connect/models/index.d.ts +1 -0
  35. package/lib/seam/connect/models/index.js +1 -0
  36. package/lib/seam/connect/models/index.js.map +1 -1
  37. package/lib/seam/connect/models/user-identities/user-identity.d.ts +3 -0
  38. package/lib/seam/connect/models/user-identities/user-identity.js +3 -0
  39. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
  40. package/lib/seam/connect/openapi.d.ts +783 -25
  41. package/lib/seam/connect/openapi.js +1068 -0
  42. package/lib/seam/connect/openapi.js.map +1 -1
  43. package/lib/seam/connect/route-types.d.ts +1755 -0
  44. package/lib/seam/connect/schemas.d.ts +1 -1
  45. package/lib/seam/connect/schemas.js +1 -1
  46. package/lib/seam/connect/schemas.js.map +1 -1
  47. package/package.json +1 -1
  48. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  49. package/src/lib/seam/connect/model-types.ts +1 -0
  50. package/src/lib/seam/connect/models/batches/batch.ts +12 -0
  51. package/src/lib/seam/connect/models/batches/index.ts +2 -0
  52. package/src/lib/seam/connect/models/batches/spaces.ts +16 -0
  53. package/src/lib/seam/connect/models/events/access-codes.ts +11 -0
  54. package/src/lib/seam/connect/models/events/connect-webviews.ts +8 -0
  55. package/src/lib/seam/connect/models/events/connected-accounts.ts +6 -0
  56. package/src/lib/seam/connect/models/events/devices.ts +11 -0
  57. package/src/lib/seam/connect/models/events/phones.ts +6 -0
  58. package/src/lib/seam/connect/models/events/seam-event.ts +1 -1
  59. package/src/lib/seam/connect/models/index.ts +1 -0
  60. package/src/lib/seam/connect/models/user-identities/user-identity.ts +5 -0
  61. package/src/lib/seam/connect/openapi.ts +1186 -0
  62. package/src/lib/seam/connect/route-types.ts +2536 -0
  63. package/src/lib/seam/connect/schemas.ts +1 -0
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { custom_metadata } from '../custom-metadata.js';
2
3
  import { common_event } from './common.js';
3
4
  const access_code_event = common_event.extend({
4
5
  access_code_id: z.string().uuid().describe('ID of the affected access code.'),
@@ -10,6 +11,12 @@ const access_code_event = common_event.extend({
10
11
  .string()
11
12
  .uuid()
12
13
  .describe('ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.'),
14
+ device_custom_metadata: custom_metadata
15
+ .optional()
16
+ .describe('Custom metadata of the device, present when device_id is provided.'),
17
+ connected_account_custom_metadata: custom_metadata
18
+ .optional()
19
+ .describe('Custom metadata of the connected account, present when connected_account_id is provided.'),
13
20
  });
14
21
  const code = z.string().describe('Code for the affected access code.');
15
22
  export const access_code_created_event = access_code_event.extend({
@@ -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,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,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,uIAAuI,CACxI;CACJ,CAAC,CAAA;AAEF,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAChE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;CAC7C,CAAC,CAAC,QAAQ,CAAC;;;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AAyB;IACzB,+CAA+C;IAC/C,8CAA8C;IAC9C,2CAA2C;IAC3C,0CAA0C;IAC1C,2CAA2C;IAC3C,gDAAgD;IAChD,wDAAwD;IACxD,mCAAmC;IACnC,mCAAmC;CAC3B,CAAA"}
@@ -9,6 +9,7 @@ export declare const connect_webview_login_succeeded_event: z.ZodObject<z.object
9
9
  }>, {
10
10
  event_type: z.ZodLiteral<"connect_webview.login_succeeded">;
11
11
  connected_account_id: z.ZodString;
12
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
12
13
  }>, "strip", z.ZodTypeAny, {
13
14
  workspace_id: string;
14
15
  created_at: string;
@@ -17,6 +18,7 @@ export declare const connect_webview_login_succeeded_event: z.ZodObject<z.object
17
18
  event_id: string;
18
19
  occurred_at: string;
19
20
  event_type: "connect_webview.login_succeeded";
21
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
20
22
  }, {
21
23
  workspace_id: string;
22
24
  created_at: string;
@@ -25,6 +27,7 @@ export declare const connect_webview_login_succeeded_event: z.ZodObject<z.object
25
27
  event_id: string;
26
28
  occurred_at: string;
27
29
  event_type: "connect_webview.login_succeeded";
30
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
28
31
  }>;
29
32
  export type ConnectWebviewLoginSucceededEvent = z.infer<typeof connect_webview_login_succeeded_event>;
30
33
  export declare const connect_webview_login_failed_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -62,6 +65,7 @@ export declare const connect_webview_events: readonly [z.ZodObject<z.objectUtil.
62
65
  }>, {
63
66
  event_type: z.ZodLiteral<"connect_webview.login_succeeded">;
64
67
  connected_account_id: z.ZodString;
68
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
65
69
  }>, "strip", z.ZodTypeAny, {
66
70
  workspace_id: string;
67
71
  created_at: string;
@@ -70,6 +74,7 @@ export declare const connect_webview_events: readonly [z.ZodObject<z.objectUtil.
70
74
  event_id: string;
71
75
  occurred_at: string;
72
76
  event_type: "connect_webview.login_succeeded";
77
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
73
78
  }, {
74
79
  workspace_id: string;
75
80
  created_at: string;
@@ -78,6 +83,7 @@ export declare const connect_webview_events: readonly [z.ZodObject<z.objectUtil.
78
83
  event_id: string;
79
84
  occurred_at: string;
80
85
  event_type: "connect_webview.login_succeeded";
86
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
81
87
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
82
88
  event_id: z.ZodString;
83
89
  workspace_id: z.ZodString;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { custom_metadata } from '../custom-metadata.js';
2
3
  import { common_event } from './common.js';
3
4
  const connect_webview_event = common_event.extend({
4
5
  connect_webview_id: z
@@ -10,9 +11,13 @@ const connected_account_id = z
10
11
  .string()
11
12
  .uuid()
12
13
  .describe('ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.');
14
+ const connected_account_custom_metadata = custom_metadata
15
+ .optional()
16
+ .describe('Custom metadata of the connected account; present when connected_account_id is provided.');
13
17
  export const connect_webview_login_succeeded_event = connect_webview_event.extend({
14
18
  event_type: z.literal('connect_webview.login_succeeded'),
15
19
  connected_account_id,
20
+ connected_account_custom_metadata,
16
21
  }).describe(`
17
22
  ---
18
23
  route_path: /connect_webviews
@@ -1 +1 @@
1
- {"version":3,"file":"connect-webviews.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connect-webviews.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,qBAAqB,GAAG,YAAY,CAAC,MAAM,CAAC;IAChD,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,mGAAmG,CACpG;CACJ,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,CAAC;KAC3B,MAAM,EAAE;KACR,IAAI,EAAE;KACN,QAAQ,CACP,wHAAwH,CACzH,CAAA;AAEH,MAAM,CAAC,MAAM,qCAAqC,GAChD,qBAAqB,CAAC,MAAM,CAAC;IAC3B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC;IACxD,oBAAoB;CACrB,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,kCAAkC,GAAG,qBAAqB,CAAC,MAAM,CAAC;IAC7E,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;CACtD,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,qCAAqC;IACrC,kCAAkC;CAC1B,CAAA"}
1
+ {"version":3,"file":"connect-webviews.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connect-webviews.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,qBAAqB,GAAG,YAAY,CAAC,MAAM,CAAC;IAChD,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,mGAAmG,CACpG;CACJ,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,CAAC;KAC3B,MAAM,EAAE;KACR,IAAI,EAAE;KACN,QAAQ,CACP,wHAAwH,CACzH,CAAA;AAEH,MAAM,iCAAiC,GAAG,eAAe;KACtD,QAAQ,EAAE;KACV,QAAQ,CACP,0FAA0F,CAC3F,CAAA;AAEH,MAAM,CAAC,MAAM,qCAAqC,GAChD,qBAAqB,CAAC,MAAM,CAAC;IAC3B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC;IACxD,oBAAoB;IACpB,iCAAiC;CAClC,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,kCAAkC,GAAG,qBAAqB,CAAC,MAAM,CAAC;IAC7E,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;CACtD,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,qCAAqC;IACrC,kCAAkC;CAC1B,CAAA"}
@@ -6,6 +6,7 @@ export declare const connected_account_connected_event: z.ZodObject<z.objectUtil
6
6
  occurred_at: z.ZodString;
7
7
  }, {
8
8
  connected_account_id: z.ZodString;
9
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
9
10
  }>, {
10
11
  event_type: z.ZodLiteral<"connected_account.connected">;
11
12
  connect_webview_id: z.ZodString;
@@ -17,6 +18,7 @@ export declare const connected_account_connected_event: z.ZodObject<z.objectUtil
17
18
  event_id: string;
18
19
  occurred_at: string;
19
20
  event_type: "connected_account.connected";
21
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
20
22
  }, {
21
23
  workspace_id: string;
22
24
  created_at: string;
@@ -25,6 +27,7 @@ export declare const connected_account_connected_event: z.ZodObject<z.objectUtil
25
27
  event_id: string;
26
28
  occurred_at: string;
27
29
  event_type: "connected_account.connected";
30
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
28
31
  }>;
29
32
  export type ConnectedAccountConnectedEvent = z.infer<typeof connected_account_connected_event>;
30
33
  export declare const connected_account_created_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -34,6 +37,7 @@ export declare const connected_account_created_event: z.ZodObject<z.objectUtil.e
34
37
  occurred_at: z.ZodString;
35
38
  }, {
36
39
  connected_account_id: z.ZodString;
40
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
37
41
  }>, {
38
42
  event_type: z.ZodLiteral<"connected_account.created">;
39
43
  connect_webview_id: z.ZodString;
@@ -45,6 +49,7 @@ export declare const connected_account_created_event: z.ZodObject<z.objectUtil.e
45
49
  event_id: string;
46
50
  occurred_at: string;
47
51
  event_type: "connected_account.created";
52
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
48
53
  }, {
49
54
  workspace_id: string;
50
55
  created_at: string;
@@ -53,6 +58,7 @@ export declare const connected_account_created_event: z.ZodObject<z.objectUtil.e
53
58
  event_id: string;
54
59
  occurred_at: string;
55
60
  event_type: "connected_account.created";
61
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
56
62
  }>;
57
63
  export type ConnectedAccountCreatedEvent = z.infer<typeof connected_account_created_event>;
58
64
  /** @deprecated */
@@ -63,6 +69,7 @@ export declare const connected_account_successful_login_event: z.ZodObject<z.obj
63
69
  occurred_at: z.ZodString;
64
70
  }, {
65
71
  connected_account_id: z.ZodString;
72
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
66
73
  }>, {
67
74
  event_type: z.ZodLiteral<"connected_account.successful_login">;
68
75
  connect_webview_id: z.ZodString;
@@ -74,6 +81,7 @@ export declare const connected_account_successful_login_event: z.ZodObject<z.obj
74
81
  event_id: string;
75
82
  occurred_at: string;
76
83
  event_type: "connected_account.successful_login";
84
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
77
85
  }, {
78
86
  workspace_id: string;
79
87
  created_at: string;
@@ -82,6 +90,7 @@ export declare const connected_account_successful_login_event: z.ZodObject<z.obj
82
90
  event_id: string;
83
91
  occurred_at: string;
84
92
  event_type: "connected_account.successful_login";
93
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
85
94
  }>;
86
95
  /** @deprecated Rely on ConnectWebviewLoginSucceededEvent instead */
87
96
  export type ConnectedAccountSuccessfulLoginEvent = z.infer<typeof connected_account_successful_login_event>;
@@ -92,6 +101,7 @@ export declare const connected_account_disconnected_event: z.ZodObject<z.objectU
92
101
  occurred_at: z.ZodString;
93
102
  }, {
94
103
  connected_account_id: z.ZodString;
104
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
95
105
  }>, {
96
106
  event_type: z.ZodLiteral<"connected_account.disconnected">;
97
107
  }>, "strip", z.ZodTypeAny, {
@@ -101,6 +111,7 @@ export declare const connected_account_disconnected_event: z.ZodObject<z.objectU
101
111
  event_id: string;
102
112
  occurred_at: string;
103
113
  event_type: "connected_account.disconnected";
114
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
104
115
  }, {
105
116
  workspace_id: string;
106
117
  created_at: string;
@@ -108,6 +119,7 @@ export declare const connected_account_disconnected_event: z.ZodObject<z.objectU
108
119
  event_id: string;
109
120
  occurred_at: string;
110
121
  event_type: "connected_account.disconnected";
122
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
111
123
  }>;
112
124
  export type ConnectedAccountDisconnectedEvent = z.infer<typeof connected_account_disconnected_event>;
113
125
  export declare const connected_account_completed_first_sync_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -117,6 +129,7 @@ export declare const connected_account_completed_first_sync_event: z.ZodObject<z
117
129
  occurred_at: z.ZodString;
118
130
  }, {
119
131
  connected_account_id: z.ZodString;
132
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
120
133
  }>, {
121
134
  event_type: z.ZodLiteral<"connected_account.completed_first_sync">;
122
135
  }>, "strip", z.ZodTypeAny, {
@@ -126,6 +139,7 @@ export declare const connected_account_completed_first_sync_event: z.ZodObject<z
126
139
  event_id: string;
127
140
  occurred_at: string;
128
141
  event_type: "connected_account.completed_first_sync";
142
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
129
143
  }, {
130
144
  workspace_id: string;
131
145
  created_at: string;
@@ -133,6 +147,7 @@ export declare const connected_account_completed_first_sync_event: z.ZodObject<z
133
147
  event_id: string;
134
148
  occurred_at: string;
135
149
  event_type: "connected_account.completed_first_sync";
150
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
136
151
  }>;
137
152
  export type ConnectedAccountCompletedFirstSyncEvent = z.infer<typeof connected_account_completed_first_sync_event>;
138
153
  export declare const connected_account_deleted_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -142,6 +157,7 @@ export declare const connected_account_deleted_event: z.ZodObject<z.objectUtil.e
142
157
  occurred_at: z.ZodString;
143
158
  }, {
144
159
  connected_account_id: z.ZodString;
160
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
145
161
  }>, {
146
162
  event_type: z.ZodLiteral<"connected_account.deleted">;
147
163
  }>, "strip", z.ZodTypeAny, {
@@ -151,6 +167,7 @@ export declare const connected_account_deleted_event: z.ZodObject<z.objectUtil.e
151
167
  event_id: string;
152
168
  occurred_at: string;
153
169
  event_type: "connected_account.deleted";
170
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
154
171
  }, {
155
172
  workspace_id: string;
156
173
  created_at: string;
@@ -158,6 +175,7 @@ export declare const connected_account_deleted_event: z.ZodObject<z.objectUtil.e
158
175
  event_id: string;
159
176
  occurred_at: string;
160
177
  event_type: "connected_account.deleted";
178
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
161
179
  }>;
162
180
  export type ConnectedAccountDeletedEvent = z.infer<typeof connected_account_deleted_event>;
163
181
  export declare const connected_account_completed_first_sync_after_reconnection_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -167,6 +185,7 @@ export declare const connected_account_completed_first_sync_after_reconnection_e
167
185
  occurred_at: z.ZodString;
168
186
  }, {
169
187
  connected_account_id: z.ZodString;
188
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
170
189
  }>, {
171
190
  event_type: z.ZodLiteral<"connected_account.completed_first_sync_after_reconnection">;
172
191
  }>, "strip", z.ZodTypeAny, {
@@ -176,6 +195,7 @@ export declare const connected_account_completed_first_sync_after_reconnection_e
176
195
  event_id: string;
177
196
  occurred_at: string;
178
197
  event_type: "connected_account.completed_first_sync_after_reconnection";
198
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
179
199
  }, {
180
200
  workspace_id: string;
181
201
  created_at: string;
@@ -183,6 +203,7 @@ export declare const connected_account_completed_first_sync_after_reconnection_e
183
203
  event_id: string;
184
204
  occurred_at: string;
185
205
  event_type: "connected_account.completed_first_sync_after_reconnection";
206
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
186
207
  }>;
187
208
  export type ConnectedAccountCompletedFirstSyncAfterReconnectionEvent = z.infer<typeof connected_account_completed_first_sync_after_reconnection_event>;
188
209
  export declare const connected_account_events: readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -192,6 +213,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
192
213
  occurred_at: z.ZodString;
193
214
  }, {
194
215
  connected_account_id: z.ZodString;
216
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
195
217
  }>, {
196
218
  event_type: z.ZodLiteral<"connected_account.connected">;
197
219
  connect_webview_id: z.ZodString;
@@ -203,6 +225,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
203
225
  event_id: string;
204
226
  occurred_at: string;
205
227
  event_type: "connected_account.connected";
228
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
206
229
  }, {
207
230
  workspace_id: string;
208
231
  created_at: string;
@@ -211,6 +234,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
211
234
  event_id: string;
212
235
  occurred_at: string;
213
236
  event_type: "connected_account.connected";
237
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
214
238
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
215
239
  event_id: z.ZodString;
216
240
  workspace_id: z.ZodString;
@@ -218,6 +242,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
218
242
  occurred_at: z.ZodString;
219
243
  }, {
220
244
  connected_account_id: z.ZodString;
245
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
221
246
  }>, {
222
247
  event_type: z.ZodLiteral<"connected_account.created">;
223
248
  connect_webview_id: z.ZodString;
@@ -229,6 +254,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
229
254
  event_id: string;
230
255
  occurred_at: string;
231
256
  event_type: "connected_account.created";
257
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
232
258
  }, {
233
259
  workspace_id: string;
234
260
  created_at: string;
@@ -237,6 +263,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
237
263
  event_id: string;
238
264
  occurred_at: string;
239
265
  event_type: "connected_account.created";
266
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
240
267
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
241
268
  event_id: z.ZodString;
242
269
  workspace_id: z.ZodString;
@@ -244,6 +271,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
244
271
  occurred_at: z.ZodString;
245
272
  }, {
246
273
  connected_account_id: z.ZodString;
274
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
247
275
  }>, {
248
276
  event_type: z.ZodLiteral<"connected_account.successful_login">;
249
277
  connect_webview_id: z.ZodString;
@@ -255,6 +283,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
255
283
  event_id: string;
256
284
  occurred_at: string;
257
285
  event_type: "connected_account.successful_login";
286
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
258
287
  }, {
259
288
  workspace_id: string;
260
289
  created_at: string;
@@ -263,6 +292,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
263
292
  event_id: string;
264
293
  occurred_at: string;
265
294
  event_type: "connected_account.successful_login";
295
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
266
296
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
267
297
  event_id: z.ZodString;
268
298
  workspace_id: z.ZodString;
@@ -270,6 +300,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
270
300
  occurred_at: z.ZodString;
271
301
  }, {
272
302
  connected_account_id: z.ZodString;
303
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
273
304
  }>, {
274
305
  event_type: z.ZodLiteral<"connected_account.disconnected">;
275
306
  }>, "strip", z.ZodTypeAny, {
@@ -279,6 +310,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
279
310
  event_id: string;
280
311
  occurred_at: string;
281
312
  event_type: "connected_account.disconnected";
313
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
282
314
  }, {
283
315
  workspace_id: string;
284
316
  created_at: string;
@@ -286,6 +318,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
286
318
  event_id: string;
287
319
  occurred_at: string;
288
320
  event_type: "connected_account.disconnected";
321
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
289
322
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
290
323
  event_id: z.ZodString;
291
324
  workspace_id: z.ZodString;
@@ -293,6 +326,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
293
326
  occurred_at: z.ZodString;
294
327
  }, {
295
328
  connected_account_id: z.ZodString;
329
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
296
330
  }>, {
297
331
  event_type: z.ZodLiteral<"connected_account.completed_first_sync">;
298
332
  }>, "strip", z.ZodTypeAny, {
@@ -302,6 +336,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
302
336
  event_id: string;
303
337
  occurred_at: string;
304
338
  event_type: "connected_account.completed_first_sync";
339
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
305
340
  }, {
306
341
  workspace_id: string;
307
342
  created_at: string;
@@ -309,6 +344,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
309
344
  event_id: string;
310
345
  occurred_at: string;
311
346
  event_type: "connected_account.completed_first_sync";
347
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
312
348
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
313
349
  event_id: z.ZodString;
314
350
  workspace_id: z.ZodString;
@@ -316,6 +352,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
316
352
  occurred_at: z.ZodString;
317
353
  }, {
318
354
  connected_account_id: z.ZodString;
355
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
319
356
  }>, {
320
357
  event_type: z.ZodLiteral<"connected_account.deleted">;
321
358
  }>, "strip", z.ZodTypeAny, {
@@ -325,6 +362,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
325
362
  event_id: string;
326
363
  occurred_at: string;
327
364
  event_type: "connected_account.deleted";
365
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
328
366
  }, {
329
367
  workspace_id: string;
330
368
  created_at: string;
@@ -332,6 +370,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
332
370
  event_id: string;
333
371
  occurred_at: string;
334
372
  event_type: "connected_account.deleted";
373
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
335
374
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
336
375
  event_id: z.ZodString;
337
376
  workspace_id: z.ZodString;
@@ -339,6 +378,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
339
378
  occurred_at: z.ZodString;
340
379
  }, {
341
380
  connected_account_id: z.ZodString;
381
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
342
382
  }>, {
343
383
  event_type: z.ZodLiteral<"connected_account.completed_first_sync_after_reconnection">;
344
384
  }>, "strip", z.ZodTypeAny, {
@@ -348,6 +388,7 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
348
388
  event_id: string;
349
389
  occurred_at: string;
350
390
  event_type: "connected_account.completed_first_sync_after_reconnection";
391
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
351
392
  }, {
352
393
  workspace_id: string;
353
394
  created_at: string;
@@ -355,4 +396,5 @@ export declare const connected_account_events: readonly [z.ZodObject<z.objectUti
355
396
  event_id: string;
356
397
  occurred_at: string;
357
398
  event_type: "connected_account.completed_first_sync_after_reconnection";
399
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
358
400
  }>];
@@ -1,10 +1,14 @@
1
1
  import { z } from 'zod';
2
+ import { custom_metadata } from '../custom-metadata.js';
2
3
  import { common_event } from './common.js';
3
4
  const connected_account_event = common_event.extend({
4
5
  connected_account_id: z
5
6
  .string()
6
7
  .uuid()
7
8
  .describe('ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).'),
9
+ connected_account_custom_metadata: custom_metadata
10
+ .optional()
11
+ .describe('Custom metadata of the connected account, present when connected_account_id is provided.'),
8
12
  });
9
13
  const connect_webview_id = z
10
14
  .string()
@@ -1 +1 @@
1
- {"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,uBAAuB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,uGAAuG,CACxG;CACJ,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,CAAC;KACzB,MAAM,EAAE;KACR,IAAI,EAAE;KACN,QAAQ,CACP,oHAAoH,CACrH,CAAA;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,uBAAuB,CAAC,MAAM,CAC7E;IACE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IACpD,kBAAkB;CACnB,CACF,CAAC,QAAQ,CAAC;;;;;CAKV,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAC5E,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAClD,kBAAkB;CACnB,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAKF,kBAAkB;AAClB,MAAM,CAAC,MAAM,wCAAwC,GACnD,uBAAuB,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,oCAAoC,CAAC;IAC3D,kBAAkB;CACnB,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMX,CAAC,CAAA;AAOJ,MAAM,CAAC,MAAM,oCAAoC,GAC/C,uBAAuB,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC;CACxD,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,4CAA4C,GACvD,uBAAuB,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,wCAAwC,CAAC;CAChE,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,+BAA+B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAC5E,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;CACnD,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,+DAA+D,GAC1E,uBAAuB,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CACnB,2DAA2D,CAC5D;CACF,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,iCAAiC;IACjC,+BAA+B;IAC/B,wCAAwC;IACxC,oCAAoC;IACpC,4CAA4C;IAC5C,+BAA+B;IAC/B,+DAA+D;CACvD,CAAA"}
1
+ {"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,uBAAuB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,uGAAuG,CACxG;IACH,iCAAiC,EAAE,eAAe;SAC/C,QAAQ,EAAE;SACV,QAAQ,CACP,0FAA0F,CAC3F;CACJ,CAAC,CAAA;AAE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