@ellipsis-dev/sdk 0.37.0 → 0.43.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ellipsis-dev/sdk",
3
- "version": "0.37.0",
3
+ "version": "0.43.0",
4
4
  "description": "TypeScript SDK for the Ellipsis agents platform: /v1 REST types + client, the session stream WebSocket client, and the session transcript store.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -2075,11 +2075,82 @@
2075
2075
  },
2076
2076
  "LinearIssueAction": {
2077
2077
  "enum": [
2078
- "opened"
2078
+ "opened",
2079
+ "updated"
2079
2080
  ],
2080
2081
  "title": "LinearIssueAction",
2081
2082
  "type": "string"
2082
2083
  },
2084
+ "LinearIssueChanged": {
2085
+ "additionalProperties": false,
2086
+ "description": "The fields an `updated` event watches. Every listed field must change in\nthe same edit.",
2087
+ "properties": {
2088
+ "assignee": {
2089
+ "anyOf": [
2090
+ {
2091
+ "$ref": "#/$defs/LinearValueChange"
2092
+ },
2093
+ {
2094
+ "type": "null"
2095
+ }
2096
+ ],
2097
+ "default": null
2098
+ },
2099
+ "labels": {
2100
+ "anyOf": [
2101
+ {
2102
+ "$ref": "#/$defs/LinearLabelsChange"
2103
+ },
2104
+ {
2105
+ "type": "null"
2106
+ }
2107
+ ],
2108
+ "default": null
2109
+ },
2110
+ "priority": {
2111
+ "anyOf": [
2112
+ {
2113
+ "$ref": "#/$defs/LinearValueChange"
2114
+ },
2115
+ {
2116
+ "type": "null"
2117
+ }
2118
+ ],
2119
+ "default": null
2120
+ },
2121
+ "project": {
2122
+ "anyOf": [
2123
+ {
2124
+ "$ref": "#/$defs/LinearValueChange"
2125
+ },
2126
+ {
2127
+ "type": "null"
2128
+ }
2129
+ ],
2130
+ "default": null
2131
+ },
2132
+ "state": {
2133
+ "anyOf": [
2134
+ {
2135
+ "$ref": "#/$defs/LinearValueChange"
2136
+ },
2137
+ {
2138
+ "type": "null"
2139
+ }
2140
+ ],
2141
+ "default": null
2142
+ }
2143
+ },
2144
+ "required": [
2145
+ "assignee",
2146
+ "labels",
2147
+ "priority",
2148
+ "project",
2149
+ "state"
2150
+ ],
2151
+ "title": "LinearIssueChanged",
2152
+ "type": "object"
2153
+ },
2083
2154
  "LinearIssueEvent": {
2084
2155
  "properties": {
2085
2156
  "action": {
@@ -2151,6 +2222,115 @@
2151
2222
  "title": "LinearIssueEvent",
2152
2223
  "type": "object"
2153
2224
  },
2225
+ "LinearLabelsChange": {
2226
+ "additionalProperties": false,
2227
+ "description": "A change to the issue's labels. `added` matches when a listed label was\nadded and `removed` when a listed label was removed. `{}` is any label\nchange.",
2228
+ "properties": {
2229
+ "added": {
2230
+ "anyOf": [
2231
+ {
2232
+ "$ref": "#/$defs/LinearValueFilter"
2233
+ },
2234
+ {
2235
+ "type": "null"
2236
+ }
2237
+ ],
2238
+ "default": null
2239
+ },
2240
+ "removed": {
2241
+ "anyOf": [
2242
+ {
2243
+ "$ref": "#/$defs/LinearValueFilter"
2244
+ },
2245
+ {
2246
+ "type": "null"
2247
+ }
2248
+ ],
2249
+ "default": null
2250
+ }
2251
+ },
2252
+ "required": [
2253
+ "added",
2254
+ "removed"
2255
+ ],
2256
+ "title": "LinearLabelsChange",
2257
+ "type": "object"
2258
+ },
2259
+ "LinearValueChange": {
2260
+ "additionalProperties": false,
2261
+ "description": "A change to one issue field. `from` matches the value before the change\nand `to` the value after it. Leaving either out matches any value, so `{}`\nis any change to the field.",
2262
+ "properties": {
2263
+ "from": {
2264
+ "anyOf": [
2265
+ {
2266
+ "$ref": "#/$defs/LinearValueFilter"
2267
+ },
2268
+ {
2269
+ "type": "null"
2270
+ }
2271
+ ],
2272
+ "default": null
2273
+ },
2274
+ "to": {
2275
+ "anyOf": [
2276
+ {
2277
+ "$ref": "#/$defs/LinearValueFilter"
2278
+ },
2279
+ {
2280
+ "type": "null"
2281
+ }
2282
+ ],
2283
+ "default": null
2284
+ }
2285
+ },
2286
+ "required": [
2287
+ "from",
2288
+ "to"
2289
+ ],
2290
+ "title": "LinearValueChange",
2291
+ "type": "object"
2292
+ },
2293
+ "LinearValueFilter": {
2294
+ "anyOf": [
2295
+ {
2296
+ "additionalProperties": false,
2297
+ "description": "Linear names to match, include minus exclude. A bare list or a bare\nstring is shorthand for `include`. It matches when one of the issue's\nvalues is included (or nothing is) and none is excluded. `none` names an\nunset assignee or project, and `any` names any set assignee.",
2298
+ "properties": {
2299
+ "exclude": {
2300
+ "default": [],
2301
+ "items": {
2302
+ "type": "string"
2303
+ },
2304
+ "title": "Exclude",
2305
+ "type": "array"
2306
+ },
2307
+ "include": {
2308
+ "default": [],
2309
+ "items": {
2310
+ "type": "string"
2311
+ },
2312
+ "title": "Include",
2313
+ "type": "array"
2314
+ }
2315
+ },
2316
+ "required": [
2317
+ "exclude",
2318
+ "include"
2319
+ ],
2320
+ "title": "LinearValueFilter",
2321
+ "type": "object"
2322
+ },
2323
+ {
2324
+ "items": {
2325
+ "type": "string"
2326
+ },
2327
+ "type": "array"
2328
+ },
2329
+ {
2330
+ "type": "string"
2331
+ }
2332
+ ]
2333
+ },
2154
2334
  "LlmCost": {
2155
2335
  "description": "What LLM tokens cost, in total and by model.",
2156
2336
  "properties": {
@@ -2481,7 +2661,8 @@
2481
2661
  "non_interactive",
2482
2662
  "harness_single_turn",
2483
2663
  "budget_exhausted",
2484
- "closed"
2664
+ "closed",
2665
+ "archived"
2485
2666
  ],
2486
2667
  "title": "PromptBlockedReason",
2487
2668
  "type": "string"
@@ -2522,9 +2703,6 @@
2522
2703
  "type": "array"
2523
2704
  },
2524
2705
  "on": {
2525
- "default": [
2526
- "failed"
2527
- ],
2528
2706
  "items": {
2529
2707
  "$ref": "#/$defs/CheckRunAction"
2530
2708
  },
@@ -2569,9 +2747,6 @@
2569
2747
  "$ref": "#/$defs/GithubAccountSelector"
2570
2748
  },
2571
2749
  "on": {
2572
- "default": [
2573
- "failed"
2574
- ],
2575
2750
  "items": {
2576
2751
  "$ref": "#/$defs/CheckSuiteAction"
2577
2752
  },
@@ -2628,24 +2803,106 @@
2628
2803
  },
2629
2804
  "ReactLinearIssue": {
2630
2805
  "additionalProperties": false,
2806
+ "description": "A Linear issue being created (`opened`) or changed (`updated`). An\n`updated` event fires only when every field under `changed` changed in\none edit. `team`, `state`, `labels`, `project`, `assignee`, and\n`priority` filter on the issue as it is after the event. `state` matches\na status name or a status type. `for` is the person who created or\nchanged the issue.",
2631
2807
  "properties": {
2808
+ "assignee": {
2809
+ "anyOf": [
2810
+ {
2811
+ "$ref": "#/$defs/LinearValueFilter"
2812
+ },
2813
+ {
2814
+ "type": "null"
2815
+ }
2816
+ ],
2817
+ "default": null
2818
+ },
2819
+ "changed": {
2820
+ "anyOf": [
2821
+ {
2822
+ "$ref": "#/$defs/LinearIssueChanged"
2823
+ },
2824
+ {
2825
+ "type": "null"
2826
+ }
2827
+ ],
2828
+ "default": null
2829
+ },
2632
2830
  "for": {
2633
2831
  "$ref": "#/$defs/GithubAccountSelector"
2634
2832
  },
2635
- "on": {
2636
- "default": [
2637
- "opened"
2833
+ "labels": {
2834
+ "anyOf": [
2835
+ {
2836
+ "$ref": "#/$defs/LinearValueFilter"
2837
+ },
2838
+ {
2839
+ "type": "null"
2840
+ }
2638
2841
  ],
2842
+ "default": null
2843
+ },
2844
+ "on": {
2639
2845
  "items": {
2640
2846
  "$ref": "#/$defs/LinearIssueAction"
2641
2847
  },
2642
2848
  "title": "On",
2643
2849
  "type": "array"
2850
+ },
2851
+ "priority": {
2852
+ "anyOf": [
2853
+ {
2854
+ "$ref": "#/$defs/LinearValueFilter"
2855
+ },
2856
+ {
2857
+ "type": "null"
2858
+ }
2859
+ ],
2860
+ "default": null
2861
+ },
2862
+ "project": {
2863
+ "anyOf": [
2864
+ {
2865
+ "$ref": "#/$defs/LinearValueFilter"
2866
+ },
2867
+ {
2868
+ "type": "null"
2869
+ }
2870
+ ],
2871
+ "default": null
2872
+ },
2873
+ "state": {
2874
+ "anyOf": [
2875
+ {
2876
+ "$ref": "#/$defs/LinearValueFilter"
2877
+ },
2878
+ {
2879
+ "type": "null"
2880
+ }
2881
+ ],
2882
+ "default": null
2883
+ },
2884
+ "team": {
2885
+ "anyOf": [
2886
+ {
2887
+ "$ref": "#/$defs/LinearValueFilter"
2888
+ },
2889
+ {
2890
+ "type": "null"
2891
+ }
2892
+ ],
2893
+ "default": null
2644
2894
  }
2645
2895
  },
2646
2896
  "required": [
2897
+ "assignee",
2898
+ "changed",
2647
2899
  "for",
2648
- "on"
2900
+ "labels",
2901
+ "on",
2902
+ "priority",
2903
+ "project",
2904
+ "state",
2905
+ "team"
2649
2906
  ],
2650
2907
  "title": "ReactLinearIssue",
2651
2908
  "type": "object"
@@ -2767,9 +3024,6 @@
2767
3024
  "$ref": "#/$defs/GithubAccountSelector"
2768
3025
  },
2769
3026
  "on": {
2770
- "default": [
2771
- "published"
2772
- ],
2773
3027
  "items": {
2774
3028
  "$ref": "#/$defs/ReleaseAction"
2775
3029
  },
@@ -2866,9 +3120,6 @@
2866
3120
  "type": "array"
2867
3121
  },
2868
3122
  "on": {
2869
- "default": [
2870
- "failed"
2871
- ],
2872
3123
  "items": {
2873
3124
  "$ref": "#/$defs/StatusAction"
2874
3125
  },
@@ -3068,9 +3319,6 @@
3068
3319
  "type": "array"
3069
3320
  },
3070
3321
  "on": {
3071
- "default": [
3072
- "failed"
3073
- ],
3074
3322
  "items": {
3075
3323
  "$ref": "#/$defs/WorkflowRunAction"
3076
3324
  },
@@ -3560,7 +3808,7 @@
3560
3808
  }
3561
3809
  ],
3562
3810
  "default": null,
3563
- "description": "When and by whom the session was archived; null when unarchived. Archiving does not stop or close a session."
3811
+ "description": "When and by whom the session was archived, or null when it isn't. A session is archived when it closes, after the account's archive_inactive_sessions_days without a message, or by PUT /v1/sessions/{id}. An archived session takes no messages, and a reply on the Slack thread, pull request, issue, or Linear issue it answers starts a new session."
3564
3812
  },
3565
3813
  "attribution": {
3566
3814
  "$ref": "#/$defs/SessionAttribution",
@@ -3596,6 +3844,20 @@
3596
3844
  "default": null,
3597
3845
  "description": "Codex input and native options. Set exactly one of claude_code, codex, or gemini."
3598
3846
  },
3847
+ "content_deleted_at": {
3848
+ "anyOf": [
3849
+ {
3850
+ "format": "date-time",
3851
+ "type": "string"
3852
+ },
3853
+ {
3854
+ "type": "null"
3855
+ }
3856
+ ],
3857
+ "default": null,
3858
+ "description": "When session log retention deleted the session's records, messages, and prompt, or null. The session's status, cost, tokens, and summary stay.",
3859
+ "title": "Content Deleted At"
3860
+ },
3599
3861
  "conversation": {
3600
3862
  "$ref": "#/$defs/SessionConversation",
3601
3863
  "description": "Whether the session can take more messages, and whether an agent is warm to answer one."
@@ -3771,6 +4033,18 @@
3771
4033
  "$ref": "#/$defs/PermissionsConfig",
3772
4034
  "description": "What the session may touch, per minted credential."
3773
4035
  },
4036
+ "review": {
4037
+ "anyOf": [
4038
+ {
4039
+ "$ref": "#/$defs/SessionReview"
4040
+ },
4041
+ {
4042
+ "type": "null"
4043
+ }
4044
+ ],
4045
+ "default": null,
4046
+ "description": "The code review this session ran for; null unless the source is `code_review`."
4047
+ },
3774
4048
  "skills": {
3775
4049
  "description": "Skills installed for this session.",
3776
4050
  "items": {
@@ -3808,6 +4082,19 @@
3808
4082
  "format": "date-time",
3809
4083
  "title": "Updated At",
3810
4084
  "type": "string"
4085
+ },
4086
+ "wait_ms": {
4087
+ "anyOf": [
4088
+ {
4089
+ "type": "integer"
4090
+ },
4091
+ {
4092
+ "type": "null"
4093
+ }
4094
+ ],
4095
+ "default": null,
4096
+ "description": "Milliseconds from when the session was created to when it started, including any time it waited because your account already had its limit of sessions alive. Null until the session starts, and for sessions created before this field was added.",
4097
+ "title": "Wait Ms"
3811
4098
  }
3812
4099
  },
3813
4100
  "required": [
@@ -3817,6 +4104,7 @@
3817
4104
  "budget",
3818
4105
  "claude_code",
3819
4106
  "codex",
4107
+ "content_deleted_at",
3820
4108
  "conversation",
3821
4109
  "cost",
3822
4110
  "created_at",
@@ -3831,12 +4119,14 @@
3831
4119
  "output",
3832
4120
  "parent",
3833
4121
  "permissions",
4122
+ "review",
3834
4123
  "skills",
3835
4124
  "source",
3836
4125
  "status",
3837
4126
  "summary",
3838
4127
  "tokens",
3839
- "updated_at"
4128
+ "updated_at",
4129
+ "wait_ms"
3840
4130
  ],
3841
4131
  "title": "Session",
3842
4132
  "type": "object"
@@ -3889,11 +4179,26 @@
3889
4179
  ],
3890
4180
  "default": null,
3891
4181
  "description": "The GitHub user who archived the session; null if unknown or unavailable."
4182
+ },
4183
+ "deletes_at": {
4184
+ "anyOf": [
4185
+ {
4186
+ "format": "date-time",
4187
+ "type": "string"
4188
+ },
4189
+ {
4190
+ "type": "null"
4191
+ }
4192
+ ],
4193
+ "default": null,
4194
+ "description": "When the session's records and messages are deleted, from the account's current session log retention. It moves when the retention changes. Null when the account keeps them or they're already deleted.",
4195
+ "title": "Deletes At"
3892
4196
  }
3893
4197
  },
3894
4198
  "required": [
3895
4199
  "at",
3896
- "by"
4200
+ "by",
4201
+ "deletes_at"
3897
4202
  ],
3898
4203
  "title": "SessionArchived",
3899
4204
  "type": "object"
@@ -4725,6 +5030,21 @@
4725
5030
  "title": "SessionPrompting",
4726
5031
  "type": "object"
4727
5032
  },
5033
+ "SessionReview": {
5034
+ "description": "The code review a reviewer session ran for.",
5035
+ "properties": {
5036
+ "id": {
5037
+ "description": "Identifier of the code review.",
5038
+ "title": "Id",
5039
+ "type": "string"
5040
+ }
5041
+ },
5042
+ "required": [
5043
+ "id"
5044
+ ],
5045
+ "title": "SessionReview",
5046
+ "type": "object"
5047
+ },
4728
5048
  "SessionSource": {
4729
5049
  "description": "Where a session came from: the credential that started it (web app,\nAPI key, CLI) or the trigger that fired (react, mention, cron, code\nreview). Never taken from a request body.",
4730
5050
  "enum": [
@@ -4772,15 +5092,30 @@
4772
5092
  "description": "One-line description of what the session is doing.",
4773
5093
  "title": "Description",
4774
5094
  "type": "string"
5095
+ },
5096
+ "source": {
5097
+ "$ref": "#/$defs/SessionSummarySource",
5098
+ "description": "Where this summary came from. `prompt` is the first line of the prompt the session started with, `generated` is written by Ellipsis as the session runs, and `user` was set by a person and is never replaced by a generated one."
4775
5099
  }
4776
5100
  },
4777
5101
  "required": [
4778
5102
  "created_at",
4779
- "description"
5103
+ "description",
5104
+ "source"
4780
5105
  ],
4781
5106
  "title": "SessionSummary",
4782
5107
  "type": "object"
4783
5108
  },
5109
+ "SessionSummarySource": {
5110
+ "description": "Where a session's summary came from.",
5111
+ "enum": [
5112
+ "prompt",
5113
+ "generated",
5114
+ "user"
5115
+ ],
5116
+ "title": "SessionSummarySource",
5117
+ "type": "string"
5118
+ },
4784
5119
  "SettingsRef": {
4785
5120
  "additionalProperties": false,
4786
5121
  "description": "A Claude Code settings.json read from a repository and applied to the\nsession. It adds permission rules and other Claude Code settings; rules the\nplatform sets stay in force. Supported models list `settings` in\n`/v1/account/models`.",