@seamapi/types 1.710.0 → 1.712.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.
- package/dist/connect.cjs +150 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +947 -108
- package/dist/index.cjs +150 -4
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +214 -0
- package/lib/seam/connect/models/events/connected-accounts.d.ts +320 -0
- package/lib/seam/connect/models/events/connected-accounts.js +4 -0
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +160 -0
- package/lib/seam/connect/openapi.d.ts +269 -0
- package/lib/seam/connect/openapi.js +145 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +196 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/connected-accounts.ts +4 -0
- package/src/lib/seam/connect/openapi.ts +170 -0
- package/src/lib/seam/connect/route-types.ts +212 -0
|
@@ -1472,6 +1472,112 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
1472
1472
|
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
1473
1473
|
} & {
|
|
1474
1474
|
event_type: z.ZodLiteral<"connected_account.disconnected">;
|
|
1475
|
+
connected_account_errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
1476
|
+
created_at: z.ZodString;
|
|
1477
|
+
message: z.ZodString;
|
|
1478
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1479
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1480
|
+
} & {
|
|
1481
|
+
error_code: z.ZodLiteral<"account_disconnected">;
|
|
1482
|
+
}, "strip", z.ZodTypeAny, {
|
|
1483
|
+
message: string;
|
|
1484
|
+
created_at: string;
|
|
1485
|
+
error_code: "account_disconnected";
|
|
1486
|
+
is_connected_account_error?: boolean | undefined;
|
|
1487
|
+
is_bridge_error?: boolean | undefined;
|
|
1488
|
+
}, {
|
|
1489
|
+
message: string;
|
|
1490
|
+
created_at: string;
|
|
1491
|
+
error_code: "account_disconnected";
|
|
1492
|
+
is_connected_account_error?: boolean | undefined;
|
|
1493
|
+
is_bridge_error?: boolean | undefined;
|
|
1494
|
+
}>, z.ZodObject<{
|
|
1495
|
+
created_at: z.ZodString;
|
|
1496
|
+
message: z.ZodString;
|
|
1497
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1498
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1499
|
+
} & {
|
|
1500
|
+
error_code: z.ZodLiteral<"bridge_disconnected">;
|
|
1501
|
+
}, "strip", z.ZodTypeAny, {
|
|
1502
|
+
message: string;
|
|
1503
|
+
created_at: string;
|
|
1504
|
+
error_code: "bridge_disconnected";
|
|
1505
|
+
is_connected_account_error?: boolean | undefined;
|
|
1506
|
+
is_bridge_error?: boolean | undefined;
|
|
1507
|
+
}, {
|
|
1508
|
+
message: string;
|
|
1509
|
+
created_at: string;
|
|
1510
|
+
error_code: "bridge_disconnected";
|
|
1511
|
+
is_connected_account_error?: boolean | undefined;
|
|
1512
|
+
is_bridge_error?: boolean | undefined;
|
|
1513
|
+
}>, z.ZodObject<{
|
|
1514
|
+
created_at: z.ZodString;
|
|
1515
|
+
message: z.ZodString;
|
|
1516
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1517
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1518
|
+
} & {
|
|
1519
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
1520
|
+
salto_ks_metadata: z.ZodObject<{
|
|
1521
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
1522
|
+
site_id: z.ZodString;
|
|
1523
|
+
site_name: z.ZodString;
|
|
1524
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
1525
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
1526
|
+
}, "strip", z.ZodTypeAny, {
|
|
1527
|
+
site_id: string;
|
|
1528
|
+
site_name: string;
|
|
1529
|
+
subscribed_site_user_count: number;
|
|
1530
|
+
site_user_subscription_limit: number;
|
|
1531
|
+
}, {
|
|
1532
|
+
site_id: string;
|
|
1533
|
+
site_name: string;
|
|
1534
|
+
subscribed_site_user_count: number;
|
|
1535
|
+
site_user_subscription_limit: number;
|
|
1536
|
+
}>, "many">;
|
|
1537
|
+
}, "strip", z.ZodTypeAny, {
|
|
1538
|
+
sites: {
|
|
1539
|
+
site_id: string;
|
|
1540
|
+
site_name: string;
|
|
1541
|
+
subscribed_site_user_count: number;
|
|
1542
|
+
site_user_subscription_limit: number;
|
|
1543
|
+
}[];
|
|
1544
|
+
}, {
|
|
1545
|
+
sites: {
|
|
1546
|
+
site_id: string;
|
|
1547
|
+
site_name: string;
|
|
1548
|
+
subscribed_site_user_count: number;
|
|
1549
|
+
site_user_subscription_limit: number;
|
|
1550
|
+
}[];
|
|
1551
|
+
}>;
|
|
1552
|
+
}, "strip", z.ZodTypeAny, {
|
|
1553
|
+
message: string;
|
|
1554
|
+
created_at: string;
|
|
1555
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1556
|
+
salto_ks_metadata: {
|
|
1557
|
+
sites: {
|
|
1558
|
+
site_id: string;
|
|
1559
|
+
site_name: string;
|
|
1560
|
+
subscribed_site_user_count: number;
|
|
1561
|
+
site_user_subscription_limit: number;
|
|
1562
|
+
}[];
|
|
1563
|
+
};
|
|
1564
|
+
is_connected_account_error?: boolean | undefined;
|
|
1565
|
+
is_bridge_error?: boolean | undefined;
|
|
1566
|
+
}, {
|
|
1567
|
+
message: string;
|
|
1568
|
+
created_at: string;
|
|
1569
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1570
|
+
salto_ks_metadata: {
|
|
1571
|
+
sites: {
|
|
1572
|
+
site_id: string;
|
|
1573
|
+
site_name: string;
|
|
1574
|
+
subscribed_site_user_count: number;
|
|
1575
|
+
site_user_subscription_limit: number;
|
|
1576
|
+
}[];
|
|
1577
|
+
};
|
|
1578
|
+
is_connected_account_error?: boolean | undefined;
|
|
1579
|
+
is_bridge_error?: boolean | undefined;
|
|
1580
|
+
}>]>, "many">;
|
|
1475
1581
|
}, "strip", z.ZodTypeAny, {
|
|
1476
1582
|
workspace_id: string;
|
|
1477
1583
|
created_at: string;
|
|
@@ -1479,6 +1585,33 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
1479
1585
|
event_id: string;
|
|
1480
1586
|
occurred_at: string;
|
|
1481
1587
|
event_type: "connected_account.disconnected";
|
|
1588
|
+
connected_account_errors: ({
|
|
1589
|
+
message: string;
|
|
1590
|
+
created_at: string;
|
|
1591
|
+
error_code: "account_disconnected";
|
|
1592
|
+
is_connected_account_error?: boolean | undefined;
|
|
1593
|
+
is_bridge_error?: boolean | undefined;
|
|
1594
|
+
} | {
|
|
1595
|
+
message: string;
|
|
1596
|
+
created_at: string;
|
|
1597
|
+
error_code: "bridge_disconnected";
|
|
1598
|
+
is_connected_account_error?: boolean | undefined;
|
|
1599
|
+
is_bridge_error?: boolean | undefined;
|
|
1600
|
+
} | {
|
|
1601
|
+
message: string;
|
|
1602
|
+
created_at: string;
|
|
1603
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1604
|
+
salto_ks_metadata: {
|
|
1605
|
+
sites: {
|
|
1606
|
+
site_id: string;
|
|
1607
|
+
site_name: string;
|
|
1608
|
+
subscribed_site_user_count: number;
|
|
1609
|
+
site_user_subscription_limit: number;
|
|
1610
|
+
}[];
|
|
1611
|
+
};
|
|
1612
|
+
is_connected_account_error?: boolean | undefined;
|
|
1613
|
+
is_bridge_error?: boolean | undefined;
|
|
1614
|
+
})[];
|
|
1482
1615
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
1483
1616
|
}, {
|
|
1484
1617
|
workspace_id: string;
|
|
@@ -1487,6 +1620,33 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
1487
1620
|
event_id: string;
|
|
1488
1621
|
occurred_at: string;
|
|
1489
1622
|
event_type: "connected_account.disconnected";
|
|
1623
|
+
connected_account_errors: ({
|
|
1624
|
+
message: string;
|
|
1625
|
+
created_at: string;
|
|
1626
|
+
error_code: "account_disconnected";
|
|
1627
|
+
is_connected_account_error?: boolean | undefined;
|
|
1628
|
+
is_bridge_error?: boolean | undefined;
|
|
1629
|
+
} | {
|
|
1630
|
+
message: string;
|
|
1631
|
+
created_at: string;
|
|
1632
|
+
error_code: "bridge_disconnected";
|
|
1633
|
+
is_connected_account_error?: boolean | undefined;
|
|
1634
|
+
is_bridge_error?: boolean | undefined;
|
|
1635
|
+
} | {
|
|
1636
|
+
message: string;
|
|
1637
|
+
created_at: string;
|
|
1638
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1639
|
+
salto_ks_metadata: {
|
|
1640
|
+
sites: {
|
|
1641
|
+
site_id: string;
|
|
1642
|
+
site_name: string;
|
|
1643
|
+
subscribed_site_user_count: number;
|
|
1644
|
+
site_user_subscription_limit: number;
|
|
1645
|
+
}[];
|
|
1646
|
+
};
|
|
1647
|
+
is_connected_account_error?: boolean | undefined;
|
|
1648
|
+
is_bridge_error?: boolean | undefined;
|
|
1649
|
+
})[];
|
|
1490
1650
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
1491
1651
|
}>, z.ZodObject<{
|
|
1492
1652
|
event_id: z.ZodString;
|