@scalix-world/sdk 1.3.5 → 1.4.1
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/cjs/generated/index.d.ts +2 -2
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/index.js +51 -5
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +297 -3
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +599 -7
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +2178 -154
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/generated/index.d.ts +2 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/index.js +1 -1
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/sdk.gen.d.ts +297 -3
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +548 -2
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +2178 -154
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +6 -3
|
@@ -239,6 +239,22 @@ export const realtimeWebsocket = (options) => (options.client ?? client).get({
|
|
|
239
239
|
url: '/api/v1/tenants/{tenant_id}/realtime/ws',
|
|
240
240
|
...options
|
|
241
241
|
});
|
|
242
|
+
/**
|
|
243
|
+
* Branch a timeline.
|
|
244
|
+
*
|
|
245
|
+
* Restores the parent timeline's durable base backup + archived WAL into a
|
|
246
|
+
* NEW compute worker replayed to `branch_lsn` (`0` = latest), then routes the
|
|
247
|
+
* branch endpoint. The branch archives onto its own timeline from that point.
|
|
248
|
+
*/
|
|
249
|
+
export const branchTimeline = (options) => (options.client ?? client).post({
|
|
250
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
251
|
+
url: '/api/v1/tenants/{tenant_id}/timelines/{timeline_id}/branch',
|
|
252
|
+
...options,
|
|
253
|
+
headers: {
|
|
254
|
+
'Content-Type': 'application/json',
|
|
255
|
+
...options.headers
|
|
256
|
+
}
|
|
257
|
+
});
|
|
242
258
|
/**
|
|
243
259
|
* Batch upsert vectors.
|
|
244
260
|
*
|
|
@@ -1075,6 +1091,9 @@ export const listBuilds = (options) => (options?.client ?? client).get({
|
|
|
1075
1091
|
* Start a build.
|
|
1076
1092
|
*
|
|
1077
1093
|
* Starts a container image build and returns the build record.
|
|
1094
|
+
*
|
|
1095
|
+
* For a private repository, either install the Scalix GitHub App for the
|
|
1096
|
+
* project (builds then authenticate themselves) or pass `auth_token`.
|
|
1078
1097
|
*/
|
|
1079
1098
|
export const createBuild = (options) => (options.client ?? client).post({
|
|
1080
1099
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
@@ -1085,6 +1104,23 @@ export const createBuild = (options) => (options.client ?? client).post({
|
|
|
1085
1104
|
...options.headers
|
|
1086
1105
|
}
|
|
1087
1106
|
});
|
|
1107
|
+
/**
|
|
1108
|
+
* Upload source and build.
|
|
1109
|
+
*
|
|
1110
|
+
* Builds from an uploaded source tree instead of a URL, so the source never
|
|
1111
|
+
* has to be reachable from the internet. The request body IS the gzipped
|
|
1112
|
+
* tarball (`Content-Type: application/gzip`); metadata goes in the query
|
|
1113
|
+
* string. Multipart is not accepted.
|
|
1114
|
+
*/
|
|
1115
|
+
export const uploadBuild = (options) => (options.client ?? client).post({
|
|
1116
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1117
|
+
url: '/v1/build/upload',
|
|
1118
|
+
...options,
|
|
1119
|
+
headers: {
|
|
1120
|
+
'Content-Type': 'application/gzip',
|
|
1121
|
+
...options.headers
|
|
1122
|
+
}
|
|
1123
|
+
});
|
|
1088
1124
|
/**
|
|
1089
1125
|
* Get a build.
|
|
1090
1126
|
*
|
|
@@ -1315,6 +1351,138 @@ export const listDeploymentVersions = (options) => (options.client ?? client).ge
|
|
|
1315
1351
|
url: '/v1/compute/deployments/{id}/versions',
|
|
1316
1352
|
...options
|
|
1317
1353
|
});
|
|
1354
|
+
/**
|
|
1355
|
+
* List your Computers.
|
|
1356
|
+
*/
|
|
1357
|
+
export const computerList = (options) => (options?.client ?? client).get({
|
|
1358
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1359
|
+
url: '/v1/computers',
|
|
1360
|
+
...options
|
|
1361
|
+
});
|
|
1362
|
+
/**
|
|
1363
|
+
* Create a Computer.
|
|
1364
|
+
*
|
|
1365
|
+
* Boots a persistent Linux machine and returns once it is provisioning. The
|
|
1366
|
+
* root disk survives stop/start and is only reclaimed by DELETE. Billed per
|
|
1367
|
+
* start, per vCPU-hour and GB-hour while running, and per GB-month of disk
|
|
1368
|
+
* for as long as the Computer exists.
|
|
1369
|
+
*/
|
|
1370
|
+
export const computerCreate = (options) => (options.client ?? client).post({
|
|
1371
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1372
|
+
url: '/v1/computers',
|
|
1373
|
+
...options,
|
|
1374
|
+
headers: {
|
|
1375
|
+
'Content-Type': 'application/json',
|
|
1376
|
+
...options.headers
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
1379
|
+
/**
|
|
1380
|
+
* Get or create a Computer by name.
|
|
1381
|
+
*
|
|
1382
|
+
* Idempotent: the first call creates the machine (201), every identical
|
|
1383
|
+
* repeat returns the existing one (200). Resource changes on a repeat are
|
|
1384
|
+
* ignored — the existing machine wins. Use this instead of create when an
|
|
1385
|
+
* agent may retry.
|
|
1386
|
+
*/
|
|
1387
|
+
export const computerGetOrCreateByName = (options) => (options.client ?? client).put({
|
|
1388
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1389
|
+
url: '/v1/computers/by-name/{name}',
|
|
1390
|
+
...options,
|
|
1391
|
+
headers: {
|
|
1392
|
+
'Content-Type': 'application/json',
|
|
1393
|
+
...options.headers
|
|
1394
|
+
}
|
|
1395
|
+
});
|
|
1396
|
+
/**
|
|
1397
|
+
* Delete a Computer.
|
|
1398
|
+
*
|
|
1399
|
+
* The only operation that reclaims the root disk. Irreversible — stop the
|
|
1400
|
+
* Computer instead if you want the files back later.
|
|
1401
|
+
*/
|
|
1402
|
+
export const computerDelete = (options) => (options.client ?? client).delete({
|
|
1403
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1404
|
+
url: '/v1/computers/{id}',
|
|
1405
|
+
...options
|
|
1406
|
+
});
|
|
1407
|
+
/**
|
|
1408
|
+
* Get one Computer.
|
|
1409
|
+
*/
|
|
1410
|
+
export const computerGet = (options) => (options.client ?? client).get({
|
|
1411
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1412
|
+
url: '/v1/computers/{id}',
|
|
1413
|
+
...options
|
|
1414
|
+
});
|
|
1415
|
+
/**
|
|
1416
|
+
* Run a command inside a Computer.
|
|
1417
|
+
*/
|
|
1418
|
+
export const computerExec = (options) => (options.client ?? client).post({
|
|
1419
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1420
|
+
url: '/v1/computers/{id}/exec',
|
|
1421
|
+
...options,
|
|
1422
|
+
headers: {
|
|
1423
|
+
'Content-Type': 'application/json',
|
|
1424
|
+
...options.headers
|
|
1425
|
+
}
|
|
1426
|
+
});
|
|
1427
|
+
/**
|
|
1428
|
+
* Read one file out of a Computer.
|
|
1429
|
+
*/
|
|
1430
|
+
export const computerReadFile = (options) => (options.client ?? client).get({
|
|
1431
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1432
|
+
url: '/v1/computers/{id}/files',
|
|
1433
|
+
...options
|
|
1434
|
+
});
|
|
1435
|
+
/**
|
|
1436
|
+
* Write files into a Computer.
|
|
1437
|
+
*/
|
|
1438
|
+
export const computerWriteFiles = (options) => (options.client ?? client).put({
|
|
1439
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1440
|
+
url: '/v1/computers/{id}/files',
|
|
1441
|
+
...options,
|
|
1442
|
+
headers: {
|
|
1443
|
+
'Content-Type': 'application/json',
|
|
1444
|
+
...options.headers
|
|
1445
|
+
}
|
|
1446
|
+
});
|
|
1447
|
+
/**
|
|
1448
|
+
* Replace a Computer's authorised ssh keys.
|
|
1449
|
+
*
|
|
1450
|
+
* Sends the whole list every time, so removing a key is the same operation as
|
|
1451
|
+
* adding one. On a RUNNING machine the change applies immediately — a
|
|
1452
|
+
* revoked key stops working now, not at the next restart. On a stopped
|
|
1453
|
+
* machine it is stored and delivered when it next boots.
|
|
1454
|
+
*/
|
|
1455
|
+
export const computerSetSshKeys = (options) => (options.client ?? client).put({
|
|
1456
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1457
|
+
url: '/v1/computers/{id}/ssh-keys',
|
|
1458
|
+
...options,
|
|
1459
|
+
headers: {
|
|
1460
|
+
'Content-Type': 'application/json',
|
|
1461
|
+
...options.headers
|
|
1462
|
+
}
|
|
1463
|
+
});
|
|
1464
|
+
/**
|
|
1465
|
+
* Start a stopped Computer.
|
|
1466
|
+
*
|
|
1467
|
+
* Boots the same disk on the same host and reclaims the same address.
|
|
1468
|
+
*/
|
|
1469
|
+
export const computerStart = (options) => (options.client ?? client).post({
|
|
1470
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1471
|
+
url: '/v1/computers/{id}/start',
|
|
1472
|
+
...options
|
|
1473
|
+
});
|
|
1474
|
+
/**
|
|
1475
|
+
* Stop a Computer.
|
|
1476
|
+
*
|
|
1477
|
+
* Halts the machine. The root disk and the network address are kept, so a
|
|
1478
|
+
* later start comes back to the same files at the same address. Runtime
|
|
1479
|
+
* billing stops; disk billing continues at the parked rate.
|
|
1480
|
+
*/
|
|
1481
|
+
export const computerStop = (options) => (options.client ?? client).post({
|
|
1482
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1483
|
+
url: '/v1/computers/{id}/stop',
|
|
1484
|
+
...options
|
|
1485
|
+
});
|
|
1318
1486
|
/**
|
|
1319
1487
|
* List cron schedules.
|
|
1320
1488
|
*
|
|
@@ -1393,6 +1561,77 @@ export const triggerCronSchedule = (options) => (options.client ?? client).post(
|
|
|
1393
1561
|
url: '/v1/cron/schedules/{id}/trigger',
|
|
1394
1562
|
...options
|
|
1395
1563
|
});
|
|
1564
|
+
/**
|
|
1565
|
+
* List databases.
|
|
1566
|
+
*
|
|
1567
|
+
* Lists the project's databases. `include_deleted=true` also returns
|
|
1568
|
+
* soft-deleted databases still inside the recovery grace window.
|
|
1569
|
+
*/
|
|
1570
|
+
export const listDatabases = (options) => (options?.client ?? client).get({
|
|
1571
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1572
|
+
url: '/v1/databases',
|
|
1573
|
+
...options
|
|
1574
|
+
});
|
|
1575
|
+
/**
|
|
1576
|
+
* Create a database.
|
|
1577
|
+
*
|
|
1578
|
+
* Creates a ScalixNova database in the project on the requested PostgreSQL
|
|
1579
|
+
* major version (16 default, 17, or 18). The version is fixed at creation;
|
|
1580
|
+
* branches and point-in-time restores keep it.
|
|
1581
|
+
*/
|
|
1582
|
+
export const createDatabase = (options) => (options.client ?? client).post({
|
|
1583
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1584
|
+
url: '/v1/databases',
|
|
1585
|
+
...options,
|
|
1586
|
+
headers: {
|
|
1587
|
+
'Content-Type': 'application/json',
|
|
1588
|
+
...options.headers
|
|
1589
|
+
}
|
|
1590
|
+
});
|
|
1591
|
+
/**
|
|
1592
|
+
* Get or create the project's default database.
|
|
1593
|
+
*
|
|
1594
|
+
* Idempotent: returns the project's default database connection info,
|
|
1595
|
+
* creating the database (on the default PostgreSQL version) if none exists.
|
|
1596
|
+
*/
|
|
1597
|
+
export const provisionDatabase = (options) => (options?.client ?? client).post({
|
|
1598
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1599
|
+
url: '/v1/databases/provision',
|
|
1600
|
+
...options
|
|
1601
|
+
});
|
|
1602
|
+
/**
|
|
1603
|
+
* Delete a database.
|
|
1604
|
+
*
|
|
1605
|
+
* Soft-deletes the database: it is hidden from listings and restorable via
|
|
1606
|
+
* `POST /v1/databases/{id}/restore` until the grace window ends, after which
|
|
1607
|
+
* it is purged permanently.
|
|
1608
|
+
*/
|
|
1609
|
+
export const deleteDatabase = (options) => (options.client ?? client).delete({
|
|
1610
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1611
|
+
url: '/v1/databases/{id}',
|
|
1612
|
+
...options
|
|
1613
|
+
});
|
|
1614
|
+
/**
|
|
1615
|
+
* Get a database.
|
|
1616
|
+
*
|
|
1617
|
+
* Fetches one database by id, including its PostgreSQL version and isolation tier.
|
|
1618
|
+
*/
|
|
1619
|
+
export const getDatabase = (options) => (options.client ?? client).get({
|
|
1620
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1621
|
+
url: '/v1/databases/{id}',
|
|
1622
|
+
...options
|
|
1623
|
+
});
|
|
1624
|
+
/**
|
|
1625
|
+
* Restore a soft-deleted database.
|
|
1626
|
+
*
|
|
1627
|
+
* Undoes a delete within the recovery grace window; the database returns to
|
|
1628
|
+
* `active` with its data, version, and tier intact.
|
|
1629
|
+
*/
|
|
1630
|
+
export const restoreDatabase = (options) => (options.client ?? client).post({
|
|
1631
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1632
|
+
url: '/v1/databases/{id}/restore',
|
|
1633
|
+
...options
|
|
1634
|
+
});
|
|
1396
1635
|
/**
|
|
1397
1636
|
* List custom domains.
|
|
1398
1637
|
*
|
|
@@ -1463,6 +1702,213 @@ export const verifyDomain = (options) => (options.client ?? client).post({
|
|
|
1463
1702
|
url: '/v1/domains/{id}/verify',
|
|
1464
1703
|
...options
|
|
1465
1704
|
});
|
|
1705
|
+
/**
|
|
1706
|
+
* Get campaign analytics.
|
|
1707
|
+
*
|
|
1708
|
+
* Returns engagement metrics for a single template. Requires the `email:read`
|
|
1709
|
+
* scope.
|
|
1710
|
+
*/
|
|
1711
|
+
export const getEmailCampaignAnalytics = (options) => (options.client ?? client).get({
|
|
1712
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1713
|
+
url: '/v1/email/analytics/campaign/{template_name}',
|
|
1714
|
+
...options
|
|
1715
|
+
});
|
|
1716
|
+
/**
|
|
1717
|
+
* Get analytics summary.
|
|
1718
|
+
*
|
|
1719
|
+
* Returns aggregate open, click, bounce, and complaint rates for the org.
|
|
1720
|
+
* Requires the `email:read` scope.
|
|
1721
|
+
*/
|
|
1722
|
+
export const getEmailAnalyticsSummary = (options) => (options?.client ?? client).get({
|
|
1723
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1724
|
+
url: '/v1/email/analytics/summary',
|
|
1725
|
+
...options
|
|
1726
|
+
});
|
|
1727
|
+
/**
|
|
1728
|
+
* List sending domains.
|
|
1729
|
+
*
|
|
1730
|
+
* Returns the org's bring-your-own sending domains and their verification
|
|
1731
|
+
* state. Requires the `email:read` scope.
|
|
1732
|
+
*/
|
|
1733
|
+
export const listEmailDomains = (options) => (options?.client ?? client).get({
|
|
1734
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1735
|
+
url: '/v1/email/domains',
|
|
1736
|
+
...options
|
|
1737
|
+
});
|
|
1738
|
+
/**
|
|
1739
|
+
* Add a sending domain.
|
|
1740
|
+
*
|
|
1741
|
+
* Registers a domain and returns the DNS records required to verify it.
|
|
1742
|
+
* Requires the `email:send` scope.
|
|
1743
|
+
*/
|
|
1744
|
+
export const addEmailDomain = (options) => (options.client ?? client).post({
|
|
1745
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1746
|
+
url: '/v1/email/domains',
|
|
1747
|
+
...options,
|
|
1748
|
+
headers: {
|
|
1749
|
+
'Content-Type': 'application/json',
|
|
1750
|
+
...options.headers
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
/**
|
|
1754
|
+
* Delete a sending domain.
|
|
1755
|
+
*
|
|
1756
|
+
* Removes a sending domain from the org. Requires the `email:send` scope.
|
|
1757
|
+
*/
|
|
1758
|
+
export const deleteEmailDomain = (options) => (options.client ?? client).delete({
|
|
1759
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1760
|
+
url: '/v1/email/domains/{id}',
|
|
1761
|
+
...options
|
|
1762
|
+
});
|
|
1763
|
+
/**
|
|
1764
|
+
* Verify a sending domain.
|
|
1765
|
+
*
|
|
1766
|
+
* Re-checks the domain's DNS records and updates its verification state.
|
|
1767
|
+
* Verifying a domain proves ownership; it does not by itself enable delivery.
|
|
1768
|
+
* Requires the `email:send` scope.
|
|
1769
|
+
*/
|
|
1770
|
+
export const verifyEmailDomain = (options) => (options.client ?? client).post({
|
|
1771
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1772
|
+
url: '/v1/email/domains/{id}/verify',
|
|
1773
|
+
...options
|
|
1774
|
+
});
|
|
1775
|
+
/**
|
|
1776
|
+
* List delivery events.
|
|
1777
|
+
*
|
|
1778
|
+
* Returns recent per-message delivery events (delivered, bounced, opened,
|
|
1779
|
+
* clicked). Requires the `email:read` scope.
|
|
1780
|
+
*/
|
|
1781
|
+
export const listEmailEvents = (options) => (options?.client ?? client).get({
|
|
1782
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1783
|
+
url: '/v1/email/events',
|
|
1784
|
+
...options
|
|
1785
|
+
});
|
|
1786
|
+
/**
|
|
1787
|
+
* Send a raw email.
|
|
1788
|
+
*
|
|
1789
|
+
* Sends an HTML email without a stored template. Requires the `email:send`
|
|
1790
|
+
* scope.
|
|
1791
|
+
*/
|
|
1792
|
+
export const sendRawEmail = (options) => (options.client ?? client).post({
|
|
1793
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1794
|
+
url: '/v1/email/send/raw',
|
|
1795
|
+
...options,
|
|
1796
|
+
headers: {
|
|
1797
|
+
'Content-Type': 'application/json',
|
|
1798
|
+
...options.headers
|
|
1799
|
+
}
|
|
1800
|
+
});
|
|
1801
|
+
/**
|
|
1802
|
+
* Send a templated email.
|
|
1803
|
+
*
|
|
1804
|
+
* Renders `template` with `data` and sends it to `to`. Requires the
|
|
1805
|
+
* `email:send` scope.
|
|
1806
|
+
*/
|
|
1807
|
+
export const sendTransactionalEmail = (options) => (options.client ?? client).post({
|
|
1808
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1809
|
+
url: '/v1/email/send/tx',
|
|
1810
|
+
...options,
|
|
1811
|
+
headers: {
|
|
1812
|
+
'Content-Type': 'application/json',
|
|
1813
|
+
...options.headers
|
|
1814
|
+
}
|
|
1815
|
+
});
|
|
1816
|
+
/**
|
|
1817
|
+
* Get email settings.
|
|
1818
|
+
*
|
|
1819
|
+
* Returns the org's sender identity and delivery configuration, including
|
|
1820
|
+
* whether bring-your-own delivery is enabled. Requires the `email:read` scope.
|
|
1821
|
+
*/
|
|
1822
|
+
export const getEmailSettings = (options) => (options?.client ?? client).get({
|
|
1823
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1824
|
+
url: '/v1/email/settings',
|
|
1825
|
+
...options
|
|
1826
|
+
});
|
|
1827
|
+
/**
|
|
1828
|
+
* Update email settings.
|
|
1829
|
+
*
|
|
1830
|
+
* Updates the org's sender identity and delivery configuration. Requires the
|
|
1831
|
+
* `email:send` scope.
|
|
1832
|
+
*/
|
|
1833
|
+
export const updateEmailSettings = (options) => (options.client ?? client).put({
|
|
1834
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1835
|
+
url: '/v1/email/settings',
|
|
1836
|
+
...options,
|
|
1837
|
+
headers: {
|
|
1838
|
+
'Content-Type': 'application/json',
|
|
1839
|
+
...options.headers
|
|
1840
|
+
}
|
|
1841
|
+
});
|
|
1842
|
+
/**
|
|
1843
|
+
* Get email stats.
|
|
1844
|
+
*
|
|
1845
|
+
* Returns send counts and delivery health for the org. Requires the
|
|
1846
|
+
* `email:read` scope.
|
|
1847
|
+
*/
|
|
1848
|
+
export const getEmailStats = (options) => (options?.client ?? client).get({
|
|
1849
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1850
|
+
url: '/v1/email/stats',
|
|
1851
|
+
...options
|
|
1852
|
+
});
|
|
1853
|
+
/**
|
|
1854
|
+
* List suppressed addresses.
|
|
1855
|
+
*
|
|
1856
|
+
* Returns addresses excluded from sending after a hard bounce or complaint.
|
|
1857
|
+
* Requires the `email:read` scope.
|
|
1858
|
+
*/
|
|
1859
|
+
export const listEmailSuppression = (options) => (options?.client ?? client).get({
|
|
1860
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1861
|
+
url: '/v1/email/suppression',
|
|
1862
|
+
...options
|
|
1863
|
+
});
|
|
1864
|
+
/**
|
|
1865
|
+
* List email templates.
|
|
1866
|
+
*
|
|
1867
|
+
* Returns the org's stored templates. Requires the `email:read` scope.
|
|
1868
|
+
*/
|
|
1869
|
+
export const listEmailTemplates = (options) => (options?.client ?? client).get({
|
|
1870
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1871
|
+
url: '/v1/email/templates',
|
|
1872
|
+
...options
|
|
1873
|
+
});
|
|
1874
|
+
/**
|
|
1875
|
+
* Create an email template.
|
|
1876
|
+
*
|
|
1877
|
+
* Stores a new template for the org. Requires the `email:write` scope.
|
|
1878
|
+
*/
|
|
1879
|
+
export const createEmailTemplate = (options) => (options.client ?? client).post({
|
|
1880
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1881
|
+
url: '/v1/email/templates',
|
|
1882
|
+
...options,
|
|
1883
|
+
headers: {
|
|
1884
|
+
'Content-Type': 'application/json',
|
|
1885
|
+
...options.headers
|
|
1886
|
+
}
|
|
1887
|
+
});
|
|
1888
|
+
/**
|
|
1889
|
+
* Delete an email template.
|
|
1890
|
+
*
|
|
1891
|
+
* Removes a stored template. Requires the `email:write` scope.
|
|
1892
|
+
*/
|
|
1893
|
+
export const deleteEmailTemplate = (options) => (options.client ?? client).delete({
|
|
1894
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1895
|
+
url: '/v1/email/templates/{id}',
|
|
1896
|
+
...options
|
|
1897
|
+
});
|
|
1898
|
+
/**
|
|
1899
|
+
* Update an email template.
|
|
1900
|
+
*
|
|
1901
|
+
* Replaces a stored template. Requires the `email:write` scope.
|
|
1902
|
+
*/
|
|
1903
|
+
export const updateEmailTemplate = (options) => (options.client ?? client).put({
|
|
1904
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1905
|
+
url: '/v1/email/templates/{id}',
|
|
1906
|
+
...options,
|
|
1907
|
+
headers: {
|
|
1908
|
+
'Content-Type': 'application/json',
|
|
1909
|
+
...options.headers
|
|
1910
|
+
}
|
|
1911
|
+
});
|
|
1466
1912
|
/**
|
|
1467
1913
|
* List environment variables.
|
|
1468
1914
|
*
|
|
@@ -2175,6 +2621,102 @@ export const rollbackService = (options) => (options.client ?? client).post({
|
|
|
2175
2621
|
...options.headers
|
|
2176
2622
|
}
|
|
2177
2623
|
});
|
|
2624
|
+
/**
|
|
2625
|
+
* List your sandboxes.
|
|
2626
|
+
*/
|
|
2627
|
+
export const sandboxList = (options) => (options?.client ?? client).get({
|
|
2628
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
2629
|
+
url: '/v1/sandboxes',
|
|
2630
|
+
...options
|
|
2631
|
+
});
|
|
2632
|
+
/**
|
|
2633
|
+
* Create an ephemeral sandbox.
|
|
2634
|
+
*
|
|
2635
|
+
* Boots an isolated microVM. Ephemeral sandboxes are disposable: they stop
|
|
2636
|
+
* at their idle or hard timeout and nothing on the rootfs persists past
|
|
2637
|
+
* stop. Compute is billed per vCPU-hour and GB-hour of allocation while
|
|
2638
|
+
* running.
|
|
2639
|
+
*/
|
|
2640
|
+
export const sandboxCreate = (options) => (options.client ?? client).post({
|
|
2641
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
2642
|
+
url: '/v1/sandboxes',
|
|
2643
|
+
...options,
|
|
2644
|
+
headers: {
|
|
2645
|
+
'Content-Type': 'application/json',
|
|
2646
|
+
...options.headers
|
|
2647
|
+
}
|
|
2648
|
+
});
|
|
2649
|
+
/**
|
|
2650
|
+
* Delete a sandbox and tear down its microVM.
|
|
2651
|
+
*/
|
|
2652
|
+
export const sandboxDelete = (options) => (options.client ?? client).delete({
|
|
2653
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
2654
|
+
url: '/v1/sandboxes/{id}',
|
|
2655
|
+
...options
|
|
2656
|
+
});
|
|
2657
|
+
/**
|
|
2658
|
+
* Get a sandbox by id.
|
|
2659
|
+
*/
|
|
2660
|
+
export const sandboxGet = (options) => (options.client ?? client).get({
|
|
2661
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
2662
|
+
url: '/v1/sandboxes/{id}',
|
|
2663
|
+
...options
|
|
2664
|
+
});
|
|
2665
|
+
/**
|
|
2666
|
+
* Run a command inside a running sandbox (synchronous).
|
|
2667
|
+
*/
|
|
2668
|
+
export const sandboxRunCommand = (options) => (options.client ?? client).post({
|
|
2669
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
2670
|
+
url: '/v1/sandboxes/{id}/commands',
|
|
2671
|
+
...options,
|
|
2672
|
+
headers: {
|
|
2673
|
+
'Content-Type': 'application/json',
|
|
2674
|
+
...options.headers
|
|
2675
|
+
}
|
|
2676
|
+
});
|
|
2677
|
+
/**
|
|
2678
|
+
* Extend a sandbox's hard deadline.
|
|
2679
|
+
*/
|
|
2680
|
+
export const sandboxExtend = (options) => (options.client ?? client).post({
|
|
2681
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
2682
|
+
url: '/v1/sandboxes/{id}/extend',
|
|
2683
|
+
...options,
|
|
2684
|
+
headers: {
|
|
2685
|
+
'Content-Type': 'application/json',
|
|
2686
|
+
...options.headers
|
|
2687
|
+
}
|
|
2688
|
+
});
|
|
2689
|
+
/**
|
|
2690
|
+
* Write files into a sandbox.
|
|
2691
|
+
*/
|
|
2692
|
+
export const sandboxWriteFiles = (options) => (options.client ?? client).post({
|
|
2693
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
2694
|
+
url: '/v1/sandboxes/{id}/files',
|
|
2695
|
+
...options,
|
|
2696
|
+
headers: {
|
|
2697
|
+
'Content-Type': 'application/json',
|
|
2698
|
+
...options.headers
|
|
2699
|
+
}
|
|
2700
|
+
});
|
|
2701
|
+
/**
|
|
2702
|
+
* Read a file from a sandbox. The guest path follows `/files/`.
|
|
2703
|
+
*/
|
|
2704
|
+
export const sandboxReadFile = (options) => (options.client ?? client).get({
|
|
2705
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
2706
|
+
url: '/v1/sandboxes/{id}/files/{path}',
|
|
2707
|
+
...options
|
|
2708
|
+
});
|
|
2709
|
+
/**
|
|
2710
|
+
* Snapshot a sandbox - not available.
|
|
2711
|
+
*
|
|
2712
|
+
* Ephemeral sandboxes are disposable; state does not persist past stop.
|
|
2713
|
+
* This endpoint returns 501 until snapshots ship (demand-gated).
|
|
2714
|
+
*/
|
|
2715
|
+
export const sandboxSnapshot = (options) => (options.client ?? client).post({
|
|
2716
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
2717
|
+
url: '/v1/sandboxes/{id}/snapshot',
|
|
2718
|
+
...options
|
|
2719
|
+
});
|
|
2178
2720
|
/**
|
|
2179
2721
|
* Run a search.
|
|
2180
2722
|
*
|
|
@@ -2360,8 +2902,12 @@ export const listShieldEvents = (options) => (options?.client ?? client).get({
|
|
|
2360
2902
|
/**
|
|
2361
2903
|
* Generate robots.txt.
|
|
2362
2904
|
*
|
|
2363
|
-
* Returns a `robots.txt`
|
|
2364
|
-
*
|
|
2905
|
+
* Returns a `robots.txt` generated from the project's Shield crawler policies.
|
|
2906
|
+
*
|
|
2907
|
+
* This is what Shield serves for apps that have NO robots.txt of their own.
|
|
2908
|
+
* An app that ships one has it served verbatim with these crawler rules
|
|
2909
|
+
* appended instead, so this is not necessarily the file a crawler receives.
|
|
2910
|
+
* You do not need to copy this into your project.
|
|
2365
2911
|
*/
|
|
2366
2912
|
export const getShieldRobotsTxt = (options) => (options?.client ?? client).get({
|
|
2367
2913
|
security: [{ scheme: 'bearer', type: 'http' }],
|