@ellipsis-dev/sdk 0.32.0 → 0.33.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/index.d.ts +273 -125
- package/dist/index.js +103 -103
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-DjY1VcOe.d.ts → types-CtvhpMyt.d.ts} +1014 -598
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +826 -122
- package/schema/frames.schema.json +889 -191
- package/schema/openapi.v1.json +1501 -726
- package/schema/trigger_fields.schema.json +348 -7
package/dist/index.js
CHANGED
|
@@ -300,8 +300,8 @@ var EllipsisAccountApiKeys = class {
|
|
|
300
300
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
301
301
|
* Higher permission levels include lower levels: read < write < delete.
|
|
302
302
|
*/
|
|
303
|
-
async revoke(
|
|
304
|
-
const path = `/v1/account/api-keys/${enc(
|
|
303
|
+
async revoke(id) {
|
|
304
|
+
const path = `/v1/account/api-keys/${enc(id)}`;
|
|
305
305
|
return await this.transport.request("DELETE", path);
|
|
306
306
|
}
|
|
307
307
|
};
|
|
@@ -336,8 +336,8 @@ var EllipsisAccountBillingAutoRecharge = class {
|
|
|
336
336
|
* Requires a human account administrator; API keys and session tokens
|
|
337
337
|
* cannot change this policy. Supply enabled explicitly. Saving amounts
|
|
338
338
|
* with enabled=false keeps recharge off; enabling requires a saved card.
|
|
339
|
-
* A recharge buys
|
|
340
|
-
*
|
|
339
|
+
* A recharge buys `amount` of credit and charges the platform fee in
|
|
340
|
+
* addition. Amounts and thresholds are millicents in whole cents.
|
|
341
341
|
*
|
|
342
342
|
* Required permissions: write:account.
|
|
343
343
|
* API key: Requires a CLI user token belonging to an account administrator.
|
|
@@ -347,7 +347,7 @@ var EllipsisAccountBillingAutoRecharge = class {
|
|
|
347
347
|
*/
|
|
348
348
|
async set(options) {
|
|
349
349
|
const path = "/v1/account/billing/auto-recharge";
|
|
350
|
-
const body = buildBody({
|
|
350
|
+
const body = buildBody({ amount: options.amount, enabled: options.enabled, threshold: options.threshold });
|
|
351
351
|
return await this.transport.request("PUT", path, { body });
|
|
352
352
|
}
|
|
353
353
|
};
|
|
@@ -384,7 +384,7 @@ var EllipsisAccountBilling = class {
|
|
|
384
384
|
*
|
|
385
385
|
* Requires a human account administrator. Open the returned URL to
|
|
386
386
|
* complete payment. Credit is granted only after payment succeeds;
|
|
387
|
-
* the platform fee is charged in addition to
|
|
387
|
+
* the platform fee is charged in addition to `amount`. Returning
|
|
388
388
|
* to Billing carries the checkout session ID for receipt lookup.
|
|
389
389
|
*
|
|
390
390
|
* Required permissions: write:account.
|
|
@@ -395,7 +395,7 @@ var EllipsisAccountBilling = class {
|
|
|
395
395
|
*/
|
|
396
396
|
async checkout(options) {
|
|
397
397
|
const path = "/v1/account/billing/checkout";
|
|
398
|
-
const body = buildBody({
|
|
398
|
+
const body = buildBody({ amount: options.amount });
|
|
399
399
|
return await this.transport.request("POST", path, { body });
|
|
400
400
|
}
|
|
401
401
|
/**
|
|
@@ -419,7 +419,7 @@ var EllipsisAccountBilling = class {
|
|
|
419
419
|
/**
|
|
420
420
|
* Get Fee Schedule
|
|
421
421
|
*
|
|
422
|
-
* Get the account's rate card, in
|
|
422
|
+
* Get the account's rate card, in millicents.
|
|
423
423
|
*
|
|
424
424
|
* Required permissions: read:account.
|
|
425
425
|
* API key: Supported.
|
|
@@ -463,8 +463,8 @@ var EllipsisAccountBilling = class {
|
|
|
463
463
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
464
464
|
* Higher permission levels include lower levels: read < write < delete.
|
|
465
465
|
*/
|
|
466
|
-
async purchase(
|
|
467
|
-
const path = `/v1/account/billing/purchases/${enc(
|
|
466
|
+
async purchase(id) {
|
|
467
|
+
const path = `/v1/account/billing/purchases/${enc(id)}`;
|
|
468
468
|
return await this.transport.request("GET", path);
|
|
469
469
|
}
|
|
470
470
|
/**
|
|
@@ -472,7 +472,7 @@ var EllipsisAccountBilling = class {
|
|
|
472
472
|
*
|
|
473
473
|
* Get credit purchase bounds and the platform fee.
|
|
474
474
|
*
|
|
475
|
-
* All amounts are
|
|
475
|
+
* All amounts are in millicents. The fee is added to the credit
|
|
476
476
|
* amount; it does not reduce the credit granted.
|
|
477
477
|
*
|
|
478
478
|
* Required permissions: read:account.
|
|
@@ -631,7 +631,7 @@ var EllipsisAccountSettings = class {
|
|
|
631
631
|
*
|
|
632
632
|
* Set the organization settings.
|
|
633
633
|
*
|
|
634
|
-
* `budget_ceiling.session` is in
|
|
634
|
+
* `budget_ceiling.session` is in millicents, at most the platform
|
|
635
635
|
* ceiling, and null clears it.
|
|
636
636
|
* Refused for session tokens (potentially prompt-injected code must
|
|
637
637
|
* not raise the organization's ceiling).
|
|
@@ -775,13 +775,13 @@ var EllipsisAccount = class {
|
|
|
775
775
|
/**
|
|
776
776
|
* Get Usage
|
|
777
777
|
*
|
|
778
|
-
* Get usage for a calendar month,
|
|
778
|
+
* Get usage for a calendar month, split by billing source.
|
|
779
779
|
*
|
|
780
|
-
* Omit period_start for the current UTC month
|
|
781
|
-
*
|
|
782
|
-
*
|
|
783
|
-
* subscription
|
|
784
|
-
* Pending and unresolved requests
|
|
780
|
+
* Omit period_start for the current UTC month. Pass a period from
|
|
781
|
+
* billing_periods to view history. Platform usage is charged to
|
|
782
|
+
* Ellipsis credit. Tokens paid by a developer's Claude or Codex
|
|
783
|
+
* subscription show their cost at Ellipsis rates and charge no
|
|
784
|
+
* credit. Pending and unresolved requests are missing measurements.
|
|
785
785
|
*
|
|
786
786
|
* Required permissions: read:account.
|
|
787
787
|
* API key: Supported.
|
|
@@ -805,7 +805,7 @@ var EllipsisAgents = class {
|
|
|
805
805
|
*
|
|
806
806
|
* Create an agent, managed through the API: no file, live
|
|
807
807
|
* immediately. To put its definition in a repository instead, create
|
|
808
|
-
* it here and then POST /v1/agents/{
|
|
808
|
+
* it here and then POST /v1/agents/{id}/link.
|
|
809
809
|
*
|
|
810
810
|
* 409 when another live agent already holds the name.
|
|
811
811
|
*
|
|
@@ -837,8 +837,8 @@ var EllipsisAgents = class {
|
|
|
837
837
|
* Higher permission levels include lower levels: read < write < delete.
|
|
838
838
|
* Grant match patterns can further restrict access to individual resources.
|
|
839
839
|
*/
|
|
840
|
-
async delete(
|
|
841
|
-
const path = `/v1/agents/${enc(
|
|
840
|
+
async delete(id) {
|
|
841
|
+
const path = `/v1/agents/${enc(id)}`;
|
|
842
842
|
await this.transport.request("DELETE", path);
|
|
843
843
|
}
|
|
844
844
|
/**
|
|
@@ -853,8 +853,8 @@ var EllipsisAgents = class {
|
|
|
853
853
|
* Higher permission levels include lower levels: read < write < delete.
|
|
854
854
|
* Grant match patterns can further restrict access to individual resources.
|
|
855
855
|
*/
|
|
856
|
-
async get(
|
|
857
|
-
const path = `/v1/agents/${enc(
|
|
856
|
+
async get(id) {
|
|
857
|
+
const path = `/v1/agents/${enc(id)}`;
|
|
858
858
|
return await this.transport.request("GET", path);
|
|
859
859
|
}
|
|
860
860
|
/**
|
|
@@ -874,8 +874,8 @@ var EllipsisAgents = class {
|
|
|
874
874
|
* Higher permission levels include lower levels: read < write < delete.
|
|
875
875
|
* Grant match patterns can further restrict access to individual resources.
|
|
876
876
|
*/
|
|
877
|
-
async link(
|
|
878
|
-
const path = `/v1/agents/${enc(
|
|
877
|
+
async link(id, options) {
|
|
878
|
+
const path = `/v1/agents/${enc(id)}/link`;
|
|
879
879
|
const body = buildBody({ path: options.path, repository: options.repository });
|
|
880
880
|
return await this.transport.request("POST", path, { body });
|
|
881
881
|
}
|
|
@@ -913,8 +913,8 @@ var EllipsisAgents = class {
|
|
|
913
913
|
* Higher permission levels include lower levels: read < write < delete.
|
|
914
914
|
* Grant match patterns can further restrict access to individual resources.
|
|
915
915
|
*/
|
|
916
|
-
async metrics(
|
|
917
|
-
const path = `/v1/agents/${enc(
|
|
916
|
+
async metrics(id) {
|
|
917
|
+
const path = `/v1/agents/${enc(id)}/metrics`;
|
|
918
918
|
return await this.transport.request("GET", path);
|
|
919
919
|
}
|
|
920
920
|
/**
|
|
@@ -941,8 +941,8 @@ var EllipsisAgents = class {
|
|
|
941
941
|
* Higher permission levels include lower levels: read < write < delete.
|
|
942
942
|
* Grant match patterns can further restrict access to individual resources.
|
|
943
943
|
*/
|
|
944
|
-
async start(
|
|
945
|
-
const path = `/v1/agents/${enc(
|
|
944
|
+
async start(id, options = {}) {
|
|
945
|
+
const path = `/v1/agents/${enc(id)}/sessions`;
|
|
946
946
|
const body = buildBody({ budget: options.budget, claude_code: options.claude_code, codex: options.codex, conversation: options.conversation, environment: options.environment, force_rebuild: options.force_rebuild, images: options.images, input: options.input, metadata: options.metadata, output: options.output, permissions: options.permissions, skills: options.skills });
|
|
947
947
|
return await this.transport.request("POST", path, { body });
|
|
948
948
|
}
|
|
@@ -976,8 +976,8 @@ var EllipsisAgents = class {
|
|
|
976
976
|
* Higher permission levels include lower levels: read < write < delete.
|
|
977
977
|
* Grant match patterns can further restrict access to individual resources.
|
|
978
978
|
*/
|
|
979
|
-
async unlink(
|
|
980
|
-
const path = `/v1/agents/${enc(
|
|
979
|
+
async unlink(id) {
|
|
980
|
+
const path = `/v1/agents/${enc(id)}/unlink`;
|
|
981
981
|
return await this.transport.request("POST", path);
|
|
982
982
|
}
|
|
983
983
|
/**
|
|
@@ -997,8 +997,8 @@ var EllipsisAgents = class {
|
|
|
997
997
|
* Higher permission levels include lower levels: read < write < delete.
|
|
998
998
|
* Grant match patterns can further restrict access to individual resources.
|
|
999
999
|
*/
|
|
1000
|
-
async update(
|
|
1001
|
-
const path = `/v1/agents/${enc(
|
|
1000
|
+
async update(id, options) {
|
|
1001
|
+
const path = `/v1/agents/${enc(id)}`;
|
|
1002
1002
|
const body = buildBody({ agent: options.agent });
|
|
1003
1003
|
return await this.transport.request("PUT", path, { body });
|
|
1004
1004
|
}
|
|
@@ -1021,8 +1021,8 @@ var EllipsisAlerts = class {
|
|
|
1021
1021
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1022
1022
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1023
1023
|
*/
|
|
1024
|
-
async dismiss(
|
|
1025
|
-
const path = `/v1/alerts/${enc(
|
|
1024
|
+
async dismiss(id) {
|
|
1025
|
+
const path = `/v1/alerts/${enc(id)}/dismiss`;
|
|
1026
1026
|
return await this.transport.request("POST", path);
|
|
1027
1027
|
}
|
|
1028
1028
|
/**
|
|
@@ -1038,8 +1038,8 @@ var EllipsisAlerts = class {
|
|
|
1038
1038
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1039
1039
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1040
1040
|
*/
|
|
1041
|
-
async get(
|
|
1042
|
-
const path = `/v1/alerts/${enc(
|
|
1041
|
+
async get(id) {
|
|
1042
|
+
const path = `/v1/alerts/${enc(id)}`;
|
|
1043
1043
|
return await this.transport.request("GET", path);
|
|
1044
1044
|
}
|
|
1045
1045
|
/**
|
|
@@ -1224,8 +1224,8 @@ var EllipsisEnvironments = class {
|
|
|
1224
1224
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1225
1225
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1226
1226
|
*/
|
|
1227
|
-
async delete(
|
|
1228
|
-
const path = `/v1/environments/${enc(
|
|
1227
|
+
async delete(id) {
|
|
1228
|
+
const path = `/v1/environments/${enc(id)}`;
|
|
1229
1229
|
await this.transport.request("DELETE", path);
|
|
1230
1230
|
}
|
|
1231
1231
|
/**
|
|
@@ -1239,8 +1239,8 @@ var EllipsisEnvironments = class {
|
|
|
1239
1239
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1240
1240
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1241
1241
|
*/
|
|
1242
|
-
async get(
|
|
1243
|
-
const path = `/v1/environments/${enc(
|
|
1242
|
+
async get(id) {
|
|
1243
|
+
const path = `/v1/environments/${enc(id)}`;
|
|
1244
1244
|
return await this.transport.request("GET", path);
|
|
1245
1245
|
}
|
|
1246
1246
|
/**
|
|
@@ -1274,8 +1274,8 @@ var EllipsisEnvironments = class {
|
|
|
1274
1274
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1275
1275
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1276
1276
|
*/
|
|
1277
|
-
async update(
|
|
1278
|
-
const path = `/v1/environments/${enc(
|
|
1277
|
+
async update(id, options) {
|
|
1278
|
+
const path = `/v1/environments/${enc(id)}`;
|
|
1279
1279
|
const body = buildBody({ environment: options.environment });
|
|
1280
1280
|
return await this.transport.request("PUT", path, { body });
|
|
1281
1281
|
}
|
|
@@ -1335,8 +1335,8 @@ var EllipsisHandlers = class {
|
|
|
1335
1335
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1336
1336
|
* Grant match patterns can further restrict access to individual resources.
|
|
1337
1337
|
*/
|
|
1338
|
-
async metrics(
|
|
1339
|
-
const path = `/v1/handlers/${enc(
|
|
1338
|
+
async metrics(id, options = {}) {
|
|
1339
|
+
const path = `/v1/handlers/${enc(id)}/metrics`;
|
|
1340
1340
|
const query = buildQuery({ start: options.start, end: options.end });
|
|
1341
1341
|
return await this.transport.request("GET", path, { query });
|
|
1342
1342
|
}
|
|
@@ -1459,8 +1459,8 @@ var EllipsisIntegrationsSentry = class {
|
|
|
1459
1459
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1460
1460
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1461
1461
|
*/
|
|
1462
|
-
async delete(
|
|
1463
|
-
const path = `/v1/integrations/sentry/${enc(
|
|
1462
|
+
async delete(id) {
|
|
1463
|
+
const path = `/v1/integrations/sentry/${enc(id)}`;
|
|
1464
1464
|
return await this.transport.request("DELETE", path);
|
|
1465
1465
|
}
|
|
1466
1466
|
/**
|
|
@@ -1618,8 +1618,8 @@ var EllipsisReviews = class {
|
|
|
1618
1618
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1619
1619
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1620
1620
|
*/
|
|
1621
|
-
async get(
|
|
1622
|
-
const path = `/v1/reviews/${enc(
|
|
1621
|
+
async get(id) {
|
|
1622
|
+
const path = `/v1/reviews/${enc(id)}`;
|
|
1623
1623
|
return await this.transport.request("GET", path);
|
|
1624
1624
|
}
|
|
1625
1625
|
/**
|
|
@@ -1730,8 +1730,8 @@ var EllipsisSessionsTurns = class {
|
|
|
1730
1730
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1731
1731
|
* Grant match patterns can further restrict access to individual resources.
|
|
1732
1732
|
*/
|
|
1733
|
-
async get(session_id,
|
|
1734
|
-
const path = `/v1/sessions/${enc(session_id)}/turns/${enc(
|
|
1733
|
+
async get(session_id, id) {
|
|
1734
|
+
const path = `/v1/sessions/${enc(session_id)}/turns/${enc(id)}`;
|
|
1735
1735
|
return await this.transport.request("GET", path);
|
|
1736
1736
|
}
|
|
1737
1737
|
/**
|
|
@@ -1750,8 +1750,8 @@ var EllipsisSessionsTurns = class {
|
|
|
1750
1750
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1751
1751
|
* Grant match patterns can further restrict access to individual resources.
|
|
1752
1752
|
*/
|
|
1753
|
-
async list(
|
|
1754
|
-
const path = `/v1/sessions/${enc(
|
|
1753
|
+
async list(id) {
|
|
1754
|
+
const path = `/v1/sessions/${enc(id)}/turns`;
|
|
1755
1755
|
return await this.transport.request("GET", path);
|
|
1756
1756
|
}
|
|
1757
1757
|
};
|
|
@@ -1782,8 +1782,8 @@ var EllipsisSessions = class {
|
|
|
1782
1782
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1783
1783
|
* Grant match patterns can further restrict access to individual resources.
|
|
1784
1784
|
*/
|
|
1785
|
-
async analytics(
|
|
1786
|
-
const path = `/v1/sessions/${enc(
|
|
1785
|
+
async analytics(id) {
|
|
1786
|
+
const path = `/v1/sessions/${enc(id)}/analytics`;
|
|
1787
1787
|
return await this.transport.request("GET", path);
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
@@ -1804,8 +1804,8 @@ var EllipsisSessions = class {
|
|
|
1804
1804
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1805
1805
|
* Grant match patterns can further restrict access to individual resources.
|
|
1806
1806
|
*/
|
|
1807
|
-
async diff(
|
|
1808
|
-
const path = `/v1/sessions/${enc(
|
|
1807
|
+
async diff(id) {
|
|
1808
|
+
const path = `/v1/sessions/${enc(id)}/diff`;
|
|
1809
1809
|
return await this.transport.request("GET", path);
|
|
1810
1810
|
}
|
|
1811
1811
|
/**
|
|
@@ -1829,8 +1829,8 @@ var EllipsisSessions = class {
|
|
|
1829
1829
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1830
1830
|
* Grant match patterns can further restrict access to individual resources.
|
|
1831
1831
|
*/
|
|
1832
|
-
async download(
|
|
1833
|
-
const path = `/v1/sessions/${enc(
|
|
1832
|
+
async download(id) {
|
|
1833
|
+
const path = `/v1/sessions/${enc(id)}/download`;
|
|
1834
1834
|
return await this.transport.request("GET", path);
|
|
1835
1835
|
}
|
|
1836
1836
|
/**
|
|
@@ -1852,8 +1852,8 @@ var EllipsisSessions = class {
|
|
|
1852
1852
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1853
1853
|
* Grant match patterns can further restrict access to individual resources.
|
|
1854
1854
|
*/
|
|
1855
|
-
async get(
|
|
1856
|
-
const path = `/v1/sessions/${enc(
|
|
1855
|
+
async get(id) {
|
|
1856
|
+
const path = `/v1/sessions/${enc(id)}`;
|
|
1857
1857
|
return await this.transport.request("GET", path);
|
|
1858
1858
|
}
|
|
1859
1859
|
/**
|
|
@@ -1871,8 +1871,8 @@ var EllipsisSessions = class {
|
|
|
1871
1871
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1872
1872
|
* Grant match patterns can further restrict access to individual resources.
|
|
1873
1873
|
*/
|
|
1874
|
-
async git(
|
|
1875
|
-
const path = `/v1/sessions/${enc(
|
|
1874
|
+
async git(id) {
|
|
1875
|
+
const path = `/v1/sessions/${enc(id)}/git`;
|
|
1876
1876
|
return await this.transport.request("GET", path);
|
|
1877
1877
|
}
|
|
1878
1878
|
/**
|
|
@@ -1893,8 +1893,8 @@ var EllipsisSessions = class {
|
|
|
1893
1893
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1894
1894
|
* Grant match patterns can further restrict access to individual resources.
|
|
1895
1895
|
*/
|
|
1896
|
-
async ingestTranscript(
|
|
1897
|
-
const path = `/v1/sessions/${enc(
|
|
1896
|
+
async ingestTranscript(id, options) {
|
|
1897
|
+
const path = `/v1/sessions/${enc(id)}/transcript`;
|
|
1898
1898
|
const body = buildBody({ lines: options.lines, offset: options.offset });
|
|
1899
1899
|
return await this.transport.request("POST", path, { body });
|
|
1900
1900
|
}
|
|
@@ -1939,8 +1939,8 @@ var EllipsisSessions = class {
|
|
|
1939
1939
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1940
1940
|
* Grant match patterns can further restrict access to individual resources.
|
|
1941
1941
|
*/
|
|
1942
|
-
async metrics(
|
|
1943
|
-
const path = `/v1/sessions/${enc(
|
|
1942
|
+
async metrics(id) {
|
|
1943
|
+
const path = `/v1/sessions/${enc(id)}/metrics`;
|
|
1944
1944
|
return await this.transport.request("GET", path);
|
|
1945
1945
|
}
|
|
1946
1946
|
/**
|
|
@@ -1961,14 +1961,14 @@ var EllipsisSessions = class {
|
|
|
1961
1961
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1962
1962
|
* Grant match patterns can further restrict access to individual resources.
|
|
1963
1963
|
*/
|
|
1964
|
-
async records(
|
|
1965
|
-
const path = `/v1/sessions/${enc(
|
|
1964
|
+
async records(id, options = {}) {
|
|
1965
|
+
const path = `/v1/sessions/${enc(id)}/records`;
|
|
1966
1966
|
const query = buildQuery({ cursor: options.cursor, limit: options.limit });
|
|
1967
1967
|
const response = await this.transport.request("GET", path, { query });
|
|
1968
1968
|
return new Page(
|
|
1969
1969
|
response,
|
|
1970
1970
|
"records",
|
|
1971
|
-
(cursor) => this.records(
|
|
1971
|
+
(cursor) => this.records(id, { ...options, cursor })
|
|
1972
1972
|
);
|
|
1973
1973
|
}
|
|
1974
1974
|
/**
|
|
@@ -2002,8 +2002,8 @@ var EllipsisSessions = class {
|
|
|
2002
2002
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2003
2003
|
* Grant match patterns can further restrict access to individual resources.
|
|
2004
2004
|
*/
|
|
2005
|
-
async sendMessage(
|
|
2006
|
-
const path = `/v1/sessions/${enc(
|
|
2005
|
+
async sendMessage(id, options) {
|
|
2006
|
+
const path = `/v1/sessions/${enc(id)}/messages`;
|
|
2007
2007
|
const body = buildBody({ idempotency_key: options.idempotency_key, images: options.images, message: options.message });
|
|
2008
2008
|
return await this.transport.request("POST", path, { body });
|
|
2009
2009
|
}
|
|
@@ -2017,8 +2017,8 @@ var EllipsisSessions = class {
|
|
|
2017
2017
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2018
2018
|
* Grant match patterns can further restrict access to individual resources.
|
|
2019
2019
|
*/
|
|
2020
|
-
async sessionStreamTicket(
|
|
2021
|
-
const path = `/v1/sessions/${enc(
|
|
2020
|
+
async sessionStreamTicket(id) {
|
|
2021
|
+
const path = `/v1/sessions/${enc(id)}/stream-ticket`;
|
|
2022
2022
|
return await this.transport.request("GET", path);
|
|
2023
2023
|
}
|
|
2024
2024
|
/**
|
|
@@ -2037,7 +2037,7 @@ var EllipsisSessions = class {
|
|
|
2037
2037
|
* turn, waiting for one. 400 when `conversation.interactive` is false
|
|
2038
2038
|
* and there is no prompt, or when `budget.session` exceeds the
|
|
2039
2039
|
* organization's per-session ceiling. To start a session from a saved
|
|
2040
|
-
* agent, use POST /v1/agents/{
|
|
2040
|
+
* agent, use POST /v1/agents/{id}/sessions.
|
|
2041
2041
|
*
|
|
2042
2042
|
* Required permissions: write:sessions.
|
|
2043
2043
|
* API key: Supported.
|
|
@@ -2067,8 +2067,8 @@ var EllipsisSessions = class {
|
|
|
2067
2067
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2068
2068
|
* Grant match patterns can further restrict access to individual resources.
|
|
2069
2069
|
*/
|
|
2070
|
-
async stop(
|
|
2071
|
-
const path = `/v1/sessions/${enc(
|
|
2070
|
+
async stop(id) {
|
|
2071
|
+
const path = `/v1/sessions/${enc(id)}/stop`;
|
|
2072
2072
|
return await this.transport.request("POST", path);
|
|
2073
2073
|
}
|
|
2074
2074
|
/**
|
|
@@ -2105,8 +2105,8 @@ var EllipsisSessions = class {
|
|
|
2105
2105
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2106
2106
|
* Grant match patterns can further restrict access to individual resources.
|
|
2107
2107
|
*/
|
|
2108
|
-
async update(
|
|
2109
|
-
const path = `/v1/sessions/${enc(
|
|
2108
|
+
async update(id, options) {
|
|
2109
|
+
const path = `/v1/sessions/${enc(id)}`;
|
|
2110
2110
|
const body = buildBody({ archived: options.archived });
|
|
2111
2111
|
return await this.transport.request("PUT", path, { body });
|
|
2112
2112
|
}
|
|
@@ -2193,8 +2193,8 @@ var EllipsisTemplates = class {
|
|
|
2193
2193
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2194
2194
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2195
2195
|
*/
|
|
2196
|
-
async get(
|
|
2197
|
-
const path = `/v1/templates/${enc(
|
|
2196
|
+
async get(id) {
|
|
2197
|
+
const path = `/v1/templates/${enc(id)}`;
|
|
2198
2198
|
return await this.transport.request("GET", path);
|
|
2199
2199
|
}
|
|
2200
2200
|
/**
|
|
@@ -2369,8 +2369,8 @@ var EllipsisUserTokens = class {
|
|
|
2369
2369
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2370
2370
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2371
2371
|
*/
|
|
2372
|
-
async revoke(
|
|
2373
|
-
const path = `/v1/user/tokens/${enc(
|
|
2372
|
+
async revoke(id) {
|
|
2373
|
+
const path = `/v1/user/tokens/${enc(id)}`;
|
|
2374
2374
|
return await this.transport.request("DELETE", path);
|
|
2375
2375
|
}
|
|
2376
2376
|
};
|
|
@@ -2398,8 +2398,8 @@ var EllipsisVmExecutions = class {
|
|
|
2398
2398
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own sandbox.
|
|
2399
2399
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2400
2400
|
*/
|
|
2401
|
-
async get(
|
|
2402
|
-
const path = `/v1/vm-executions/${enc(
|
|
2401
|
+
async get(id) {
|
|
2402
|
+
const path = `/v1/vm-executions/${enc(id)}`;
|
|
2403
2403
|
return await this.transport.request("GET", path);
|
|
2404
2404
|
}
|
|
2405
2405
|
/**
|
|
@@ -2424,8 +2424,8 @@ var EllipsisVmExecutions = class {
|
|
|
2424
2424
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own sandbox.
|
|
2425
2425
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2426
2426
|
*/
|
|
2427
|
-
async streamTicket(
|
|
2428
|
-
const path = `/v1/vm-executions/${enc(
|
|
2427
|
+
async streamTicket(id) {
|
|
2428
|
+
const path = `/v1/vm-executions/${enc(id)}/stream-ticket`;
|
|
2429
2429
|
return await this.transport.request("GET", path);
|
|
2430
2430
|
}
|
|
2431
2431
|
};
|
|
@@ -2445,8 +2445,8 @@ var EllipsisVmImages = class {
|
|
|
2445
2445
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2446
2446
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2447
2447
|
*/
|
|
2448
|
-
async get(
|
|
2449
|
-
const path = `/v1/vm-images/${enc(
|
|
2448
|
+
async get(id) {
|
|
2449
|
+
const path = `/v1/vm-images/${enc(id)}`;
|
|
2450
2450
|
return await this.transport.request("GET", path);
|
|
2451
2451
|
}
|
|
2452
2452
|
/**
|
|
@@ -2484,8 +2484,8 @@ var EllipsisVms = class {
|
|
|
2484
2484
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own VM.
|
|
2485
2485
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2486
2486
|
*/
|
|
2487
|
-
async get(
|
|
2488
|
-
const path = `/v1/vms/${enc(
|
|
2487
|
+
async get(id) {
|
|
2488
|
+
const path = `/v1/vms/${enc(id)}`;
|
|
2489
2489
|
return await this.transport.request("GET", path);
|
|
2490
2490
|
}
|
|
2491
2491
|
/**
|
|
@@ -2519,8 +2519,8 @@ var EllipsisVms = class {
|
|
|
2519
2519
|
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own VM.
|
|
2520
2520
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2521
2521
|
*/
|
|
2522
|
-
async metrics(
|
|
2523
|
-
const path = `/v1/vms/${enc(
|
|
2522
|
+
async metrics(id, options = {}) {
|
|
2523
|
+
const path = `/v1/vms/${enc(id)}/metrics`;
|
|
2524
2524
|
const query = buildQuery({ start: options.start, end: options.end });
|
|
2525
2525
|
return await this.transport.request("GET", path, { query });
|
|
2526
2526
|
}
|
|
@@ -2544,8 +2544,8 @@ var EllipsisWebhooksDeliveries = class {
|
|
|
2544
2544
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2545
2545
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2546
2546
|
*/
|
|
2547
|
-
async get(
|
|
2548
|
-
const path = `/v1/webhooks/deliveries/${enc(
|
|
2547
|
+
async get(id) {
|
|
2548
|
+
const path = `/v1/webhooks/deliveries/${enc(id)}`;
|
|
2549
2549
|
return await this.transport.request("GET", path);
|
|
2550
2550
|
}
|
|
2551
2551
|
/**
|
|
@@ -2615,8 +2615,8 @@ var EllipsisWebhooks = class {
|
|
|
2615
2615
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2616
2616
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2617
2617
|
*/
|
|
2618
|
-
async delete(
|
|
2619
|
-
const path = `/v1/webhooks/${enc(
|
|
2618
|
+
async delete(id) {
|
|
2619
|
+
const path = `/v1/webhooks/${enc(id)}`;
|
|
2620
2620
|
await this.transport.request("DELETE", path);
|
|
2621
2621
|
}
|
|
2622
2622
|
/**
|
|
@@ -2630,8 +2630,8 @@ var EllipsisWebhooks = class {
|
|
|
2630
2630
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2631
2631
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2632
2632
|
*/
|
|
2633
|
-
async get(
|
|
2634
|
-
const path = `/v1/webhooks/${enc(
|
|
2633
|
+
async get(id) {
|
|
2634
|
+
const path = `/v1/webhooks/${enc(id)}`;
|
|
2635
2635
|
return await this.transport.request("GET", path);
|
|
2636
2636
|
}
|
|
2637
2637
|
/**
|
|
@@ -2665,8 +2665,8 @@ var EllipsisWebhooks = class {
|
|
|
2665
2665
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2666
2666
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2667
2667
|
*/
|
|
2668
|
-
async ping(
|
|
2669
|
-
const path = `/v1/webhooks/${enc(
|
|
2668
|
+
async ping(id) {
|
|
2669
|
+
const path = `/v1/webhooks/${enc(id)}/ping`;
|
|
2670
2670
|
await this.transport.request("POST", path);
|
|
2671
2671
|
}
|
|
2672
2672
|
/**
|
|
@@ -2684,8 +2684,8 @@ var EllipsisWebhooks = class {
|
|
|
2684
2684
|
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2685
2685
|
* Higher permission levels include lower levels: read < write < delete.
|
|
2686
2686
|
*/
|
|
2687
|
-
async update(
|
|
2688
|
-
const path = `/v1/webhooks/${enc(
|
|
2687
|
+
async update(id, options) {
|
|
2688
|
+
const path = `/v1/webhooks/${enc(id)}`;
|
|
2689
2689
|
const body = buildBody({ description: options.description, events: options.events, url: options.url });
|
|
2690
2690
|
return await this.transport.request("PUT", path, { body });
|
|
2691
2691
|
}
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as CodexAgentMessage, cA as SessionRecord, M as CodexFileChangeItem, K as CodexEvent, Z as CodexMcpToolCallItem, bZ as SdkRecord, ca as Session, ct as SessionMessage, cS as StreamFrame } from '../types-CtvhpMyt.js';
|
|
2
2
|
|
|
3
3
|
type WorkPhase = 'queued' | 'preparing' | 'starting' | 'working';
|
|
4
4
|
interface TurnTiming {
|
package/dist/stream/index.d.ts
CHANGED