@seamapi/types 1.557.0 → 1.558.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.
@@ -36340,27 +36340,27 @@ export declare const workspaces_batch: z.ZodObject<{
36340
36340
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
36341
36341
  } & {
36342
36342
  event_type: z.ZodLiteral<"connected_account.connected">;
36343
- connect_webview_id: z.ZodString;
36343
+ connect_webview_id: z.ZodOptional<z.ZodString>;
36344
36344
  customer_key: z.ZodOptional<z.ZodString>;
36345
36345
  }, "strip", z.ZodTypeAny, {
36346
36346
  workspace_id: string;
36347
36347
  created_at: string;
36348
36348
  connected_account_id: string;
36349
- connect_webview_id: string;
36350
36349
  event_id: string;
36351
36350
  occurred_at: string;
36352
36351
  event_type: "connected_account.connected";
36353
36352
  customer_key?: string | undefined;
36353
+ connect_webview_id?: string | undefined;
36354
36354
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
36355
36355
  }, {
36356
36356
  workspace_id: string;
36357
36357
  created_at: string;
36358
36358
  connected_account_id: string;
36359
- connect_webview_id: string;
36360
36359
  event_id: string;
36361
36360
  occurred_at: string;
36362
36361
  event_type: "connected_account.connected";
36363
36362
  customer_key?: string | undefined;
36363
+ connect_webview_id?: string | undefined;
36364
36364
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
36365
36365
  }>, z.ZodObject<{
36366
36366
  event_id: z.ZodString;
@@ -44081,11 +44081,11 @@ export declare const workspaces_batch: z.ZodObject<{
44081
44081
  workspace_id: string;
44082
44082
  created_at: string;
44083
44083
  connected_account_id: string;
44084
- connect_webview_id: string;
44085
44084
  event_id: string;
44086
44085
  occurred_at: string;
44087
44086
  event_type: "connected_account.connected";
44088
44087
  customer_key?: string | undefined;
44088
+ connect_webview_id?: string | undefined;
44089
44089
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
44090
44090
  } | {
44091
44091
  workspace_id: string;
@@ -48057,11 +48057,11 @@ export declare const workspaces_batch: z.ZodObject<{
48057
48057
  workspace_id: string;
48058
48058
  created_at: string;
48059
48059
  connected_account_id: string;
48060
- connect_webview_id: string;
48061
48060
  event_id: string;
48062
48061
  occurred_at: string;
48063
48062
  event_type: "connected_account.connected";
48064
48063
  customer_key?: string | undefined;
48064
+ connect_webview_id?: string | undefined;
48065
48065
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
48066
48066
  } | {
48067
48067
  workspace_id: string;
@@ -65036,27 +65036,27 @@ export declare const batch: z.ZodObject<{
65036
65036
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
65037
65037
  } & {
65038
65038
  event_type: z.ZodLiteral<"connected_account.connected">;
65039
- connect_webview_id: z.ZodString;
65039
+ connect_webview_id: z.ZodOptional<z.ZodString>;
65040
65040
  customer_key: z.ZodOptional<z.ZodString>;
65041
65041
  }, "strip", z.ZodTypeAny, {
65042
65042
  workspace_id: string;
65043
65043
  created_at: string;
65044
65044
  connected_account_id: string;
65045
- connect_webview_id: string;
65046
65045
  event_id: string;
65047
65046
  occurred_at: string;
65048
65047
  event_type: "connected_account.connected";
65049
65048
  customer_key?: string | undefined;
65049
+ connect_webview_id?: string | undefined;
65050
65050
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
65051
65051
  }, {
65052
65052
  workspace_id: string;
65053
65053
  created_at: string;
65054
65054
  connected_account_id: string;
65055
- connect_webview_id: string;
65056
65055
  event_id: string;
65057
65056
  occurred_at: string;
65058
65057
  event_type: "connected_account.connected";
65059
65058
  customer_key?: string | undefined;
65059
+ connect_webview_id?: string | undefined;
65060
65060
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
65061
65061
  }>, z.ZodObject<{
65062
65062
  event_id: z.ZodString;
@@ -72706,11 +72706,11 @@ export declare const batch: z.ZodObject<{
72706
72706
  workspace_id: string;
72707
72707
  created_at: string;
72708
72708
  connected_account_id: string;
72709
- connect_webview_id: string;
72710
72709
  event_id: string;
72711
72710
  occurred_at: string;
72712
72711
  event_type: "connected_account.connected";
72713
72712
  customer_key?: string | undefined;
72713
+ connect_webview_id?: string | undefined;
72714
72714
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
72715
72715
  } | {
72716
72716
  workspace_id: string;
@@ -76611,11 +76611,11 @@ export declare const batch: z.ZodObject<{
76611
76611
  workspace_id: string;
76612
76612
  created_at: string;
76613
76613
  connected_account_id: string;
76614
- connect_webview_id: string;
76615
76614
  event_id: string;
76616
76615
  occurred_at: string;
76617
76616
  event_type: "connected_account.connected";
76618
76617
  customer_key?: string | undefined;
76618
+ connect_webview_id?: string | undefined;
76619
76619
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
76620
76620
  } | {
76621
76621
  workspace_id: string;
@@ -9,27 +9,27 @@ export declare const connected_account_connected_event: z.ZodObject<{
9
9
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
10
10
  } & {
11
11
  event_type: z.ZodLiteral<"connected_account.connected">;
12
- connect_webview_id: z.ZodString;
12
+ connect_webview_id: z.ZodOptional<z.ZodString>;
13
13
  customer_key: z.ZodOptional<z.ZodString>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  workspace_id: string;
16
16
  created_at: string;
17
17
  connected_account_id: string;
18
- connect_webview_id: string;
19
18
  event_id: string;
20
19
  occurred_at: string;
21
20
  event_type: "connected_account.connected";
22
21
  customer_key?: string | undefined;
22
+ connect_webview_id?: string | undefined;
23
23
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
24
24
  }, {
25
25
  workspace_id: string;
26
26
  created_at: string;
27
27
  connected_account_id: string;
28
- connect_webview_id: string;
29
28
  event_id: string;
30
29
  occurred_at: string;
31
30
  event_type: "connected_account.connected";
32
31
  customer_key?: string | undefined;
32
+ connect_webview_id?: string | undefined;
33
33
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
34
34
  }>;
35
35
  export type ConnectedAccountConnectedEvent = z.infer<typeof connected_account_connected_event>;
@@ -219,27 +219,27 @@ export declare const connected_account_events: readonly [z.ZodObject<{
219
219
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
220
220
  } & {
221
221
  event_type: z.ZodLiteral<"connected_account.connected">;
222
- connect_webview_id: z.ZodString;
222
+ connect_webview_id: z.ZodOptional<z.ZodString>;
223
223
  customer_key: z.ZodOptional<z.ZodString>;
224
224
  }, "strip", z.ZodTypeAny, {
225
225
  workspace_id: string;
226
226
  created_at: string;
227
227
  connected_account_id: string;
228
- connect_webview_id: string;
229
228
  event_id: string;
230
229
  occurred_at: string;
231
230
  event_type: "connected_account.connected";
232
231
  customer_key?: string | undefined;
232
+ connect_webview_id?: string | undefined;
233
233
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
234
234
  }, {
235
235
  workspace_id: string;
236
236
  created_at: string;
237
237
  connected_account_id: string;
238
- connect_webview_id: string;
239
238
  event_id: string;
240
239
  occurred_at: string;
241
240
  event_type: "connected_account.connected";
242
241
  customer_key?: string | undefined;
242
+ connect_webview_id?: string | undefined;
243
243
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
244
244
  }>, z.ZodObject<{
245
245
  event_id: z.ZodString;
@@ -16,7 +16,7 @@ const connect_webview_id = z
16
16
  .describe('ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event.');
17
17
  export const connected_account_connected_event = connected_account_event.extend({
18
18
  event_type: z.literal('connected_account.connected'),
19
- connect_webview_id,
19
+ connect_webview_id: connect_webview_id.optional(),
20
20
  customer_key: z
21
21
  .string()
22
22
  .optional()
@@ -1 +1 @@
1
- {"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"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C,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;S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,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"}
@@ -1356,27 +1356,27 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
1356
1356
  connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
1357
1357
  } & {
1358
1358
  event_type: z.ZodLiteral<"connected_account.connected">;
1359
- connect_webview_id: z.ZodString;
1359
+ connect_webview_id: z.ZodOptional<z.ZodString>;
1360
1360
  customer_key: z.ZodOptional<z.ZodString>;
1361
1361
  }, "strip", z.ZodTypeAny, {
1362
1362
  workspace_id: string;
1363
1363
  created_at: string;
1364
1364
  connected_account_id: string;
1365
- connect_webview_id: string;
1366
1365
  event_id: string;
1367
1366
  occurred_at: string;
1368
1367
  event_type: "connected_account.connected";
1369
1368
  customer_key?: string | undefined;
1369
+ connect_webview_id?: string | undefined;
1370
1370
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1371
1371
  }, {
1372
1372
  workspace_id: string;
1373
1373
  created_at: string;
1374
1374
  connected_account_id: string;
1375
- connect_webview_id: string;
1376
1375
  event_id: string;
1377
1376
  occurred_at: string;
1378
1377
  event_type: "connected_account.connected";
1379
1378
  customer_key?: string | undefined;
1379
+ connect_webview_id?: string | undefined;
1380
1380
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1381
1381
  }>, z.ZodObject<{
1382
1382
  event_id: z.ZodString;
@@ -14318,7 +14318,6 @@ export default {
14318
14318
  'occurred_at',
14319
14319
  'connected_account_id',
14320
14320
  'event_type',
14321
- 'connect_webview_id',
14322
14321
  ],
14323
14322
  type: 'object',
14324
14323
  'x-route-path': '/connected_accounts',