@ellipsis-dev/sdk 0.37.0 → 0.38.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 +136 -341
- package/dist/index.js +53 -349
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-BXbnHOQe.d.ts → types-D4cLMGUn.d.ts} +761 -2890
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +360 -25
- package/schema/frames.schema.json +360 -25
- package/schema/openapi.v1.json +2179 -5901
- package/schema/trigger_fields.schema.json +6 -1
package/dist/index.js
CHANGED
|
@@ -308,6 +308,33 @@ var EllipsisAccountApiKeys = class {
|
|
|
308
308
|
return await this.transport.request("DELETE", path);
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
|
+
var EllipsisAccountApiRequests = class {
|
|
312
|
+
constructor(transport) {
|
|
313
|
+
this.transport = transport;
|
|
314
|
+
}
|
|
315
|
+
transport;
|
|
316
|
+
/**
|
|
317
|
+
* List Api Requests
|
|
318
|
+
*
|
|
319
|
+
* List requests made to the API with API keys, user tokens, and session tokens, newest first.
|
|
320
|
+
*
|
|
321
|
+
* Required permissions: read:account.
|
|
322
|
+
* API key: Supported.
|
|
323
|
+
* CLI user token: Supported.
|
|
324
|
+
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
325
|
+
* Higher permission levels include lower levels: read < write < delete.
|
|
326
|
+
*/
|
|
327
|
+
async list(options = {}) {
|
|
328
|
+
const path = "/v1/account/api-requests";
|
|
329
|
+
const query = buildQuery({ start: options.start, end: options.end, operation: options.operation, status_code: options.status_code, credential_type: options.credential_type, credential_id: options.credential_id, limit: options.limit, cursor: options.cursor });
|
|
330
|
+
const response = await this.transport.request("GET", path, { query });
|
|
331
|
+
return new Page(
|
|
332
|
+
response,
|
|
333
|
+
"api_requests",
|
|
334
|
+
(cursor) => this.list({ ...options, cursor })
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
311
338
|
var EllipsisAccountBillingAutoRecharge = class {
|
|
312
339
|
constructor(transport) {
|
|
313
340
|
this.transport = transport;
|
|
@@ -331,28 +358,6 @@ var EllipsisAccountBillingAutoRecharge = class {
|
|
|
331
358
|
const path = "/v1/account/billing/auto-recharge";
|
|
332
359
|
return await this.transport.request("GET", path);
|
|
333
360
|
}
|
|
334
|
-
/**
|
|
335
|
-
* Update Auto Recharge
|
|
336
|
-
*
|
|
337
|
-
* Set your automatic credit recharge policy.
|
|
338
|
-
*
|
|
339
|
-
* Requires a human account administrator; API keys and session tokens
|
|
340
|
-
* cannot change this policy. Supply enabled explicitly. Saving amounts
|
|
341
|
-
* with enabled=false keeps recharge off; enabling requires a saved card.
|
|
342
|
-
* A recharge buys `amount` of credit and charges the platform fee in
|
|
343
|
-
* addition. Amounts and thresholds are millicents in whole cents.
|
|
344
|
-
*
|
|
345
|
-
* Required permissions: write:account.
|
|
346
|
-
* API key: Requires a CLI user token belonging to an account administrator.
|
|
347
|
-
* CLI user token: Requires an account administrator.
|
|
348
|
-
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
349
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
350
|
-
*/
|
|
351
|
-
async set(options) {
|
|
352
|
-
const path = "/v1/account/billing/auto-recharge";
|
|
353
|
-
const body = buildBody({ amount: options.amount, enabled: options.enabled, threshold: options.threshold });
|
|
354
|
-
return await this.transport.request("PUT", path, { body });
|
|
355
|
-
}
|
|
356
361
|
};
|
|
357
362
|
var EllipsisAccountBilling = class {
|
|
358
363
|
constructor(transport) {
|
|
@@ -361,64 +366,6 @@ var EllipsisAccountBilling = class {
|
|
|
361
366
|
}
|
|
362
367
|
transport;
|
|
363
368
|
autoRecharge;
|
|
364
|
-
/**
|
|
365
|
-
* Create Card Setup Session
|
|
366
|
-
*
|
|
367
|
-
* Save a card through Stripe's hosted setup flow.
|
|
368
|
-
*
|
|
369
|
-
* Requires a human account administrator. Open the returned URL to
|
|
370
|
-
* finish setup and return to Billing. Saving a card does not enable
|
|
371
|
-
* auto-recharge or buy credit.
|
|
372
|
-
*
|
|
373
|
-
* Required permissions: write:account.
|
|
374
|
-
* API key: Requires a CLI user token belonging to an account administrator.
|
|
375
|
-
* CLI user token: Requires an account administrator.
|
|
376
|
-
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
377
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
378
|
-
*/
|
|
379
|
-
async cardSetup() {
|
|
380
|
-
const path = "/v1/account/billing/card-setup";
|
|
381
|
-
return await this.transport.request("POST", path);
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Create Credit Checkout Session
|
|
385
|
-
*
|
|
386
|
-
* Buy prepaid credit through Stripe's hosted checkout.
|
|
387
|
-
*
|
|
388
|
-
* Requires a human account administrator. Open the returned URL to
|
|
389
|
-
* complete payment. Credit is granted only after payment succeeds;
|
|
390
|
-
* the platform fee is charged in addition to `amount`. Returning
|
|
391
|
-
* to Billing carries the checkout session ID for receipt lookup.
|
|
392
|
-
*
|
|
393
|
-
* Required permissions: write:account.
|
|
394
|
-
* API key: Requires a CLI user token belonging to an account administrator.
|
|
395
|
-
* CLI user token: Requires an account administrator.
|
|
396
|
-
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
397
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
398
|
-
*/
|
|
399
|
-
async checkout(options) {
|
|
400
|
-
const path = "/v1/account/billing/checkout";
|
|
401
|
-
const body = buildBody({ amount: options.amount });
|
|
402
|
-
return await this.transport.request("POST", path, { body });
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* Claim Signup Credit
|
|
406
|
-
*
|
|
407
|
-
* The "Claim $100" button. Runs the same idempotent billing
|
|
408
|
-
* bootstrap that otherwise fires lazily at the first session (Stripe
|
|
409
|
-
* customer + usage subscription + the signup grant). A repeat call is
|
|
410
|
-
* a no-op that returns the current state.
|
|
411
|
-
*
|
|
412
|
-
* Required permissions: write:account.
|
|
413
|
-
* API key: Supported.
|
|
414
|
-
* CLI user token: Supported.
|
|
415
|
-
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
416
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
417
|
-
*/
|
|
418
|
-
async claimSignupCredit() {
|
|
419
|
-
const path = "/v1/account/billing/claim-signup-credit";
|
|
420
|
-
return await this.transport.request("POST", path);
|
|
421
|
-
}
|
|
422
369
|
/**
|
|
423
370
|
* Get Fee Schedule
|
|
424
371
|
*
|
|
@@ -536,75 +483,6 @@ var EllipsisAccountModels = class {
|
|
|
536
483
|
return await this.transport.request("GET", path);
|
|
537
484
|
}
|
|
538
485
|
};
|
|
539
|
-
var EllipsisAccountNotifications = class {
|
|
540
|
-
constructor(transport) {
|
|
541
|
-
this.transport = transport;
|
|
542
|
-
}
|
|
543
|
-
transport;
|
|
544
|
-
/**
|
|
545
|
-
* Send Test Notification Email
|
|
546
|
-
*
|
|
547
|
-
* Send the alert email template to one address with sample data,
|
|
548
|
-
* so a typo'd finance alias is caught by a human instead of failing
|
|
549
|
-
* silently when a real alert fires.
|
|
550
|
-
*
|
|
551
|
-
* Required permissions: write:account.
|
|
552
|
-
* API key: Supported.
|
|
553
|
-
* CLI user token: Supported.
|
|
554
|
-
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
555
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
556
|
-
*/
|
|
557
|
-
async testEmail(options) {
|
|
558
|
-
const path = "/v1/account/notifications/test-email";
|
|
559
|
-
const body = buildBody({ email: options.email });
|
|
560
|
-
return await this.transport.request("POST", path, { body });
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
var EllipsisAccountOnboarding = class {
|
|
564
|
-
constructor(transport) {
|
|
565
|
-
this.transport = transport;
|
|
566
|
-
}
|
|
567
|
-
transport;
|
|
568
|
-
/**
|
|
569
|
-
* Get Account Onboarding
|
|
570
|
-
*
|
|
571
|
-
* Read the account's saved onboarding answers, or null before setup.
|
|
572
|
-
*
|
|
573
|
-
* Required permissions: read:account.
|
|
574
|
-
* API key: Supported.
|
|
575
|
-
* CLI user token: Supported.
|
|
576
|
-
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
577
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
578
|
-
*/
|
|
579
|
-
async get() {
|
|
580
|
-
const path = "/v1/account/onboarding";
|
|
581
|
-
return await this.transport.request("GET", path);
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* Update Account Onboarding
|
|
585
|
-
*
|
|
586
|
-
* Save supplied onboarding answers, preserving omitted answers.
|
|
587
|
-
*
|
|
588
|
-
* Organizations can save their work email before selecting use cases.
|
|
589
|
-
* Saving use cases requires a valid organization work email and at
|
|
590
|
-
* least one choice. When Other is the only choice, describe it.
|
|
591
|
-
* Personal accounts save a null work email. This does not change the
|
|
592
|
-
* billing contact email. Session tokens cannot update answers.
|
|
593
|
-
* Supplying an organization work email requires a human user and sends
|
|
594
|
-
* a Slack Connect invitation. Slack failures do not undo saved answers.
|
|
595
|
-
*
|
|
596
|
-
* Required permissions: write:account.
|
|
597
|
-
* API key: Supported.
|
|
598
|
-
* CLI user token: Supported.
|
|
599
|
-
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
600
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
601
|
-
*/
|
|
602
|
-
async update(options = {}) {
|
|
603
|
-
const path = "/v1/account/onboarding";
|
|
604
|
-
const body = buildBody({ finished: options.finished, other_use_case: options.other_use_case, use_cases: options.use_cases, work_email: options.work_email });
|
|
605
|
-
return await this.transport.request("PATCH", path, { body });
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
486
|
var EllipsisAccountSettings = class {
|
|
609
487
|
constructor(transport) {
|
|
610
488
|
this.transport = transport;
|
|
@@ -673,18 +551,16 @@ var EllipsisAccount = class {
|
|
|
673
551
|
constructor(transport) {
|
|
674
552
|
this.transport = transport;
|
|
675
553
|
this.apiKeys = new EllipsisAccountApiKeys(transport);
|
|
554
|
+
this.apiRequests = new EllipsisAccountApiRequests(transport);
|
|
676
555
|
this.billing = new EllipsisAccountBilling(transport);
|
|
677
556
|
this.models = new EllipsisAccountModels(transport);
|
|
678
|
-
this.notifications = new EllipsisAccountNotifications(transport);
|
|
679
|
-
this.onboarding = new EllipsisAccountOnboarding(transport);
|
|
680
557
|
this.settings = new EllipsisAccountSettings(transport);
|
|
681
558
|
}
|
|
682
559
|
transport;
|
|
683
560
|
apiKeys;
|
|
561
|
+
apiRequests;
|
|
684
562
|
billing;
|
|
685
563
|
models;
|
|
686
|
-
notifications;
|
|
687
|
-
onboarding;
|
|
688
564
|
settings;
|
|
689
565
|
/**
|
|
690
566
|
* Get Customer Activity
|
|
@@ -900,13 +776,14 @@ var EllipsisAgents = class {
|
|
|
900
776
|
/**
|
|
901
777
|
* Get Agent Metrics
|
|
902
778
|
*
|
|
903
|
-
* Return an agent's session distribution
|
|
904
|
-
* by id or by name.
|
|
779
|
+
* Return an agent's session distribution, trailing spend, and
|
|
780
|
+
* usage over a window, by id or by name.
|
|
905
781
|
*
|
|
906
782
|
* `samples` carries one entry per finished session (duration, cost,
|
|
907
783
|
* tokens) for distributions; `spend_windows` carries what the
|
|
908
784
|
* agent's sessions cost over the last 1, 7, and 28 days against
|
|
909
|
-
* its budget for each window
|
|
785
|
+
* its budget for each window; `buckets` splits start to end by
|
|
786
|
+
* `interval`, chosen from the window's length.
|
|
910
787
|
*
|
|
911
788
|
* Required permissions: read:configs.
|
|
912
789
|
* API key: Supported.
|
|
@@ -915,9 +792,10 @@ var EllipsisAgents = class {
|
|
|
915
792
|
* Higher permission levels include lower levels: read < write < delete.
|
|
916
793
|
* Grant match patterns can further restrict access to individual resources.
|
|
917
794
|
*/
|
|
918
|
-
async metrics(id) {
|
|
795
|
+
async metrics(id, options) {
|
|
919
796
|
const path = `/v1/agents/${enc(id)}/metrics`;
|
|
920
|
-
|
|
797
|
+
const query = buildQuery({ start: options.start, end: options.end });
|
|
798
|
+
return await this.transport.request("GET", path, { query });
|
|
921
799
|
}
|
|
922
800
|
/**
|
|
923
801
|
* Start Agent Session
|
|
@@ -1071,80 +949,6 @@ var EllipsisAlerts = class {
|
|
|
1071
949
|
);
|
|
1072
950
|
}
|
|
1073
951
|
};
|
|
1074
|
-
var EllipsisAnalytics = class {
|
|
1075
|
-
constructor(transport) {
|
|
1076
|
-
this.transport = transport;
|
|
1077
|
-
}
|
|
1078
|
-
transport;
|
|
1079
|
-
/**
|
|
1080
|
-
* Get Analytics Metrics
|
|
1081
|
-
*
|
|
1082
|
-
* Return PR and review analytics metrics.
|
|
1083
|
-
*
|
|
1084
|
-
* The same data as the analytics dashboard.
|
|
1085
|
-
*
|
|
1086
|
-
* Windowing: pass explicit start/end, or days (default: the last
|
|
1087
|
-
* 30 days). `interval` names the width of each entry in `series`,
|
|
1088
|
-
* chosen from the window's length. account_type in all|user|bot
|
|
1089
|
-
* scopes the authors (bot = the apps/agents). Available to all
|
|
1090
|
-
* credential types: the responses expose the organization's own
|
|
1091
|
-
* GitHub PR/review activity, no secrets.
|
|
1092
|
-
*
|
|
1093
|
-
* Required permissions: read:account.
|
|
1094
|
-
* API key: Supported.
|
|
1095
|
-
* CLI user token: Supported.
|
|
1096
|
-
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1097
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1098
|
-
*/
|
|
1099
|
-
async metrics(options = {}) {
|
|
1100
|
-
const path = "/v1/analytics/metrics";
|
|
1101
|
-
const query = buildQuery({ days: options.days, start: options.start, end: options.end, repo: options.repo, author: options.author, account_type: options.account_type, status: options.status });
|
|
1102
|
-
return await this.transport.request("GET", path, { query });
|
|
1103
|
-
}
|
|
1104
|
-
/**
|
|
1105
|
-
* Get Analytics Pull Requests
|
|
1106
|
-
*
|
|
1107
|
-
* Return pull-request analytics.
|
|
1108
|
-
*
|
|
1109
|
-
* Windowing: pass explicit start/end, or days (default: the last
|
|
1110
|
-
* 30 days). `interval` names the width of each entry in `series`,
|
|
1111
|
-
* chosen from the window's length. account_type in all|user|bot
|
|
1112
|
-
* scopes the authors.
|
|
1113
|
-
*
|
|
1114
|
-
* Required permissions: read:account.
|
|
1115
|
-
* API key: Supported.
|
|
1116
|
-
* CLI user token: Supported.
|
|
1117
|
-
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1118
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1119
|
-
*/
|
|
1120
|
-
async pullRequests(options = {}) {
|
|
1121
|
-
const path = "/v1/analytics/pull-requests";
|
|
1122
|
-
const query = buildQuery({ days: options.days, start: options.start, end: options.end, repo: options.repo, author: options.author, account_type: options.account_type, status: options.status });
|
|
1123
|
-
return await this.transport.request("GET", path, { query });
|
|
1124
|
-
}
|
|
1125
|
-
/**
|
|
1126
|
-
* Get Analytics Reviews
|
|
1127
|
-
*
|
|
1128
|
-
* Return pull request review analytics.
|
|
1129
|
-
*
|
|
1130
|
-
* account_type scopes reviewers (bot|user|all) — e.g. "what apps
|
|
1131
|
-
* review the most PRs?" is the reviewer facets here with
|
|
1132
|
-
* account_type=bot. Windowing: pass explicit start/end, or days
|
|
1133
|
-
* (default: the last 30 days). `interval` names the width of each
|
|
1134
|
-
* entry in `series`, chosen from the window's length.
|
|
1135
|
-
*
|
|
1136
|
-
* Required permissions: read:account.
|
|
1137
|
-
* API key: Supported.
|
|
1138
|
-
* CLI user token: Supported.
|
|
1139
|
-
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1140
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1141
|
-
*/
|
|
1142
|
-
async reviews(options = {}) {
|
|
1143
|
-
const path = "/v1/analytics/reviews";
|
|
1144
|
-
const query = buildQuery({ days: options.days, start: options.start, end: options.end, repo: options.repo, author: options.author, account_type: options.account_type, review_state: options.review_state });
|
|
1145
|
-
return await this.transport.request("GET", path, { query });
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
952
|
var EllipsisAuthCli = class {
|
|
1149
953
|
constructor(transport) {
|
|
1150
954
|
this.transport = transport;
|
|
@@ -1320,8 +1124,8 @@ var EllipsisHandlers = class {
|
|
|
1320
1124
|
*
|
|
1321
1125
|
* Return session counts and accumulated spend for a saved handler.
|
|
1322
1126
|
*
|
|
1323
|
-
* Filters only by session creation time.
|
|
1324
|
-
*
|
|
1127
|
+
* Filters only by session creation time. `buckets` splits the window
|
|
1128
|
+
* by `interval`, chosen from the window's length. Counts use the current turn and conversation state, so an open
|
|
1325
1129
|
* conversation awaiting another message remains active. Spend includes the selected sessions' full
|
|
1326
1130
|
* accumulated cost, including activity after the creation-time window.
|
|
1327
1131
|
* Only sessions carrying this exact saved handler id are counted;
|
|
@@ -1342,7 +1146,7 @@ var EllipsisHandlers = class {
|
|
|
1342
1146
|
* Higher permission levels include lower levels: read < write < delete.
|
|
1343
1147
|
* Grant match patterns can further restrict access to individual resources.
|
|
1344
1148
|
*/
|
|
1345
|
-
async metrics(id, options
|
|
1149
|
+
async metrics(id, options) {
|
|
1346
1150
|
const path = `/v1/handlers/${enc(id)}/metrics`;
|
|
1347
1151
|
const query = buildQuery({ start: options.start, end: options.end });
|
|
1348
1152
|
return await this.transport.request("GET", path, { query });
|
|
@@ -1507,19 +1311,6 @@ var EllipsisIntegrationsSlack = class {
|
|
|
1507
1311
|
const path = "/v1/integrations/slack/channels";
|
|
1508
1312
|
return await this.transport.request("GET", path);
|
|
1509
1313
|
}
|
|
1510
|
-
/**
|
|
1511
|
-
* Create Operations Channel
|
|
1512
|
-
*
|
|
1513
|
-
* Required permissions: write:integrations.
|
|
1514
|
-
* API key: Supported.
|
|
1515
|
-
* CLI user token: Supported.
|
|
1516
|
-
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
1517
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1518
|
-
*/
|
|
1519
|
-
async createOperationsChannel() {
|
|
1520
|
-
const path = "/v1/integrations/slack/operations-channel";
|
|
1521
|
-
return await this.transport.request("POST", path);
|
|
1522
|
-
}
|
|
1523
1314
|
/**
|
|
1524
1315
|
* Delete Slack Integration
|
|
1525
1316
|
*
|
|
@@ -1835,29 +1626,6 @@ var EllipsisSessions = class {
|
|
|
1835
1626
|
const path = `/v1/sessions/${enc(id)}/git`;
|
|
1836
1627
|
return await this.transport.request("GET", path);
|
|
1837
1628
|
}
|
|
1838
|
-
/**
|
|
1839
|
-
* Ingest Session Transcript
|
|
1840
|
-
*
|
|
1841
|
-
* Append transcript lines to a session's record.
|
|
1842
|
-
*
|
|
1843
|
-
* The transcript tailer running inside the session's environment, for
|
|
1844
|
-
* interactive sessions.
|
|
1845
|
-
*
|
|
1846
|
-
* A session token may only push its own session's transcript.
|
|
1847
|
-
* Idempotent by transcript line uuid; tolerant of malformed lines.
|
|
1848
|
-
*
|
|
1849
|
-
* Required permissions: write:sessions.
|
|
1850
|
-
* API key: Supported.
|
|
1851
|
-
* CLI user token: Supported.
|
|
1852
|
-
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration. Only the token's own session.
|
|
1853
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1854
|
-
* Grant match patterns can further restrict access to individual resources.
|
|
1855
|
-
*/
|
|
1856
|
-
async ingestTranscript(id, options) {
|
|
1857
|
-
const path = `/v1/sessions/${enc(id)}/transcript`;
|
|
1858
|
-
const body = buildBody({ lines: options.lines, offset: options.offset });
|
|
1859
|
-
return await this.transport.request("POST", path, { body });
|
|
1860
|
-
}
|
|
1861
1629
|
/**
|
|
1862
1630
|
* List Sessions
|
|
1863
1631
|
*
|
|
@@ -1930,28 +1698,13 @@ var EllipsisSessions = class {
|
|
|
1930
1698
|
(cursor) => this.records(id, { ...options, cursor })
|
|
1931
1699
|
);
|
|
1932
1700
|
}
|
|
1933
|
-
/**
|
|
1934
|
-
* Search Sessions
|
|
1935
|
-
*
|
|
1936
|
-
* Required permissions: read:sessions.
|
|
1937
|
-
* API key: Supported.
|
|
1938
|
-
* CLI user token: Supported.
|
|
1939
|
-
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
1940
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
1941
|
-
* Grant match patterns can further restrict access to individual resources.
|
|
1942
|
-
*/
|
|
1943
|
-
async search(options = {}) {
|
|
1944
|
-
const path = "/v1/sessions/search";
|
|
1945
|
-
const query = buildQuery({ q: options.q, scope: options.scope, source: options.source, service: options.service, handler: options.handler, author_id: options.author_id, agent_id: options.agent_id, session_ids: options.session_ids, repo: options.repo, status: options.status, start: options.start, end: options.end, limit: options.limit });
|
|
1946
|
-
return await this.transport.request("GET", path, { query });
|
|
1947
|
-
}
|
|
1948
1701
|
/**
|
|
1949
1702
|
* Send Session Message
|
|
1950
1703
|
*
|
|
1951
1704
|
* Send a message to a session.
|
|
1952
1705
|
*
|
|
1953
|
-
* 409 for mention, non-interactive, closed, and
|
|
1954
|
-
* sessions. Returns the created message; a retried send with the
|
|
1706
|
+
* 409 for mention, non-interactive, closed, archived, and
|
|
1707
|
+
* out-of-budget sessions. Returns the created message; a retried send with the
|
|
1955
1708
|
* same idempotency_key returns the original one. The message is
|
|
1956
1709
|
* answered once the session's status is `idle` or `closed`.
|
|
1957
1710
|
*
|
|
@@ -2053,8 +1806,18 @@ var EllipsisSessions = class {
|
|
|
2053
1806
|
* Set archived to true to record the current server time and the
|
|
2054
1807
|
* authenticated GitHub user. API-key requests record no user.
|
|
2055
1808
|
* Repeated archive requests preserve the original time and user.
|
|
2056
|
-
*
|
|
2057
|
-
*
|
|
1809
|
+
* Archiving stops the message in progress. An archived session takes
|
|
1810
|
+
* no messages (409 `session_archived`), and a reply on the Slack
|
|
1811
|
+
* thread, pull request, issue, or Linear issue it answers starts a
|
|
1812
|
+
* new session. A session is also archived when it closes and after
|
|
1813
|
+
* the account's `archive_inactive_sessions_days` without a message.
|
|
1814
|
+
* When the account sets session log retention, the session's
|
|
1815
|
+
* records, messages, and prompt are deleted that many days after it
|
|
1816
|
+
* was archived (`archived.deletes_at`). The session itself stays.
|
|
1817
|
+
*
|
|
1818
|
+
* Set archived to false to clear both fields and let the session
|
|
1819
|
+
* take messages again. 409 `session_superseded` when a newer session
|
|
1820
|
+
* now answers the same thread.
|
|
2058
1821
|
*
|
|
2059
1822
|
* Changes are delivered to session and session-list streams.
|
|
2060
1823
|
*
|
|
@@ -2082,61 +1845,6 @@ var EllipsisSessions = class {
|
|
|
2082
1845
|
return new SessionHandle(this, response.session);
|
|
2083
1846
|
}
|
|
2084
1847
|
};
|
|
2085
|
-
var EllipsisSupportSlack = class {
|
|
2086
|
-
constructor(transport) {
|
|
2087
|
-
this.transport = transport;
|
|
2088
|
-
}
|
|
2089
|
-
transport;
|
|
2090
|
-
/**
|
|
2091
|
-
* Request Slack Help
|
|
2092
|
-
*
|
|
2093
|
-
* Required permissions: write:account.
|
|
2094
|
-
* API key: Requires a CLI user token.
|
|
2095
|
-
* CLI user token: Supported.
|
|
2096
|
-
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2097
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
2098
|
-
*/
|
|
2099
|
-
async create(options) {
|
|
2100
|
-
const path = "/v1/support/slack";
|
|
2101
|
-
const body = buildBody({ emails: options.emails, resend: options.resend });
|
|
2102
|
-
return await this.transport.request("POST", path, { body });
|
|
2103
|
-
}
|
|
2104
|
-
/**
|
|
2105
|
-
* Get Slack Help
|
|
2106
|
-
*
|
|
2107
|
-
* Required permissions: read:account.
|
|
2108
|
-
* API key: Supported.
|
|
2109
|
-
* CLI user token: Supported.
|
|
2110
|
-
* Session token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.
|
|
2111
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
2112
|
-
*/
|
|
2113
|
-
async get() {
|
|
2114
|
-
const path = "/v1/support/slack";
|
|
2115
|
-
await this.transport.request("GET", path);
|
|
2116
|
-
}
|
|
2117
|
-
/**
|
|
2118
|
-
* Invite To Slack Help
|
|
2119
|
-
*
|
|
2120
|
-
* Required permissions: write:account.
|
|
2121
|
-
* API key: Requires a CLI user token.
|
|
2122
|
-
* CLI user token: Supported.
|
|
2123
|
-
* Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
|
|
2124
|
-
* Higher permission levels include lower levels: read < write < delete.
|
|
2125
|
-
*/
|
|
2126
|
-
async invite(options) {
|
|
2127
|
-
const path = "/v1/support/slack/invites";
|
|
2128
|
-
const body = buildBody({ emails: options.emails, resend: options.resend });
|
|
2129
|
-
return await this.transport.request("POST", path, { body });
|
|
2130
|
-
}
|
|
2131
|
-
};
|
|
2132
|
-
var EllipsisSupport = class {
|
|
2133
|
-
constructor(transport) {
|
|
2134
|
-
this.transport = transport;
|
|
2135
|
-
this.slack = new EllipsisSupportSlack(transport);
|
|
2136
|
-
}
|
|
2137
|
-
transport;
|
|
2138
|
-
slack;
|
|
2139
|
-
};
|
|
2140
1848
|
var EllipsisUserTokens = class {
|
|
2141
1849
|
constructor(transport) {
|
|
2142
1850
|
this.transport = transport;
|
|
@@ -2488,7 +2196,6 @@ var Ellipsis = class {
|
|
|
2488
2196
|
account;
|
|
2489
2197
|
agents;
|
|
2490
2198
|
alerts;
|
|
2491
|
-
analytics;
|
|
2492
2199
|
auth;
|
|
2493
2200
|
environments;
|
|
2494
2201
|
handlers;
|
|
@@ -2496,7 +2203,6 @@ var Ellipsis = class {
|
|
|
2496
2203
|
reviews;
|
|
2497
2204
|
secrets;
|
|
2498
2205
|
sessions;
|
|
2499
|
-
support;
|
|
2500
2206
|
user;
|
|
2501
2207
|
vmExecutions;
|
|
2502
2208
|
vmImages;
|
|
@@ -2507,7 +2213,6 @@ var Ellipsis = class {
|
|
|
2507
2213
|
this.account = new EllipsisAccount(this.transport);
|
|
2508
2214
|
this.agents = new EllipsisAgents(this.transport);
|
|
2509
2215
|
this.alerts = new EllipsisAlerts(this.transport);
|
|
2510
|
-
this.analytics = new EllipsisAnalytics(this.transport);
|
|
2511
2216
|
this.auth = new EllipsisAuth(this.transport);
|
|
2512
2217
|
this.environments = new EllipsisEnvironments(this.transport);
|
|
2513
2218
|
this.handlers = new EllipsisHandlers(this.transport);
|
|
@@ -2515,7 +2220,6 @@ var Ellipsis = class {
|
|
|
2515
2220
|
this.reviews = new EllipsisReviews(this.transport);
|
|
2516
2221
|
this.secrets = new EllipsisSecrets(this.transport);
|
|
2517
2222
|
this.sessions = new EllipsisSessions(this.transport);
|
|
2518
|
-
this.support = new EllipsisSupport(this.transport);
|
|
2519
2223
|
this.user = new EllipsisUser(this.transport);
|
|
2520
2224
|
this.vmExecutions = new EllipsisVmExecutions(this.transport);
|
|
2521
2225
|
this.vmImages = new EllipsisVmImages(this.transport);
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as CodexAgentMessage,
|
|
1
|
+
import { s as CodexAgentMessage, cT as SessionRecord, N as CodexFileChangeItem, L as CodexEvent, _ as CodexMcpToolCallItem, ch as SdkRecord, cu as Session, d6 as StreamFrame } from '../types-D4cLMGUn.js';
|
|
2
2
|
|
|
3
3
|
type WorkPhase = 'queued' | 'preparing' | 'starting' | 'working';
|
|
4
4
|
interface MessageTiming {
|
package/dist/stream/index.d.ts
CHANGED