ellipsis-dev 0.47.0__tar.gz → 0.49.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: ellipsis-dev
3
- Version: 0.47.0
3
+ Version: 0.49.0
4
4
  Summary: Python SDK for the Ellipsis agents platform: every /v1 operation, sync and async.
5
5
  Project-URL: Homepage, https://www.ellipsis.dev
6
6
  Project-URL: Documentation, https://www.ellipsis.dev/docs/api
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "ellipsis-dev"
7
- version = "0.47.0"
7
+ version = "0.49.0"
8
8
  description = "Python SDK for the Ellipsis agents platform: every /v1 operation, sync and async."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1933,13 +1933,15 @@ class _SyncSessions(SyncSessionsSugar):
1933
1933
  status: Union[List[models.SessionStatus], None] = None,
1934
1934
  label: Union[List[str], None] = None,
1935
1935
  annotation: Union[List[str], None] = None,
1936
+ event: Union[str, None] = None,
1936
1937
  ) -> SyncPage[models.Session, models.SessionsListResponse]:
1937
1938
  """List Sessions
1938
1939
 
1939
1940
  List cloud agent sessions, newest first.
1940
1941
 
1941
1942
  Optionally filtered by agent (id or name), source, service, handler, time
1942
- window, attributed author, repository, status, labels, and annotations.
1943
+ window, attributed author, repository, status, labels, annotations, and
1944
+ the trigger event.
1943
1945
 
1944
1946
  Required permissions: read:sessions.
1945
1947
  API key: Supported.
@@ -1965,6 +1967,7 @@ class _SyncSessions(SyncSessionsSugar):
1965
1967
  "status": status,
1966
1968
  "label": label,
1967
1969
  "annotation": annotation,
1970
+ "event": event,
1968
1971
  }
1969
1972
  )
1970
1973
  response = self._transport.request(
@@ -1989,6 +1992,7 @@ class _SyncSessions(SyncSessionsSugar):
1989
1992
  status=status,
1990
1993
  label=label,
1991
1994
  annotation=annotation,
1995
+ event=event,
1992
1996
  ),
1993
1997
  )
1994
1998
 
@@ -4862,13 +4866,15 @@ class _AsyncSessions(AsyncSessionsSugar):
4862
4866
  status: Union[List[models.SessionStatus], None] = None,
4863
4867
  label: Union[List[str], None] = None,
4864
4868
  annotation: Union[List[str], None] = None,
4869
+ event: Union[str, None] = None,
4865
4870
  ) -> AsyncPage[models.Session, models.SessionsListResponse]:
4866
4871
  """List Sessions
4867
4872
 
4868
4873
  List cloud agent sessions, newest first.
4869
4874
 
4870
4875
  Optionally filtered by agent (id or name), source, service, handler, time
4871
- window, attributed author, repository, status, labels, and annotations.
4876
+ window, attributed author, repository, status, labels, annotations, and
4877
+ the trigger event.
4872
4878
 
4873
4879
  Required permissions: read:sessions.
4874
4880
  API key: Supported.
@@ -4894,6 +4900,7 @@ class _AsyncSessions(AsyncSessionsSugar):
4894
4900
  "status": status,
4895
4901
  "label": label,
4896
4902
  "annotation": annotation,
4903
+ "event": event,
4897
4904
  }
4898
4905
  )
4899
4906
  response = await self._transport.request(
@@ -4918,6 +4925,7 @@ class _AsyncSessions(AsyncSessionsSugar):
4918
4925
  status=status,
4919
4926
  label=label,
4920
4927
  annotation=annotation,
4928
+ event=event,
4921
4929
  ),
4922
4930
  )
4923
4931
 
@@ -1045,6 +1045,7 @@ class Agent(EllipsisModel):
1045
1045
  description="The repository, path, and branch the agent syncs from. Null only transiently, before the creating pull request's file lands on the branch.",
1046
1046
  )
1047
1047
  updated_at: datetime = Field(description="When the agent was last updated.")
1048
+ url: str = Field(description="The agent's page in the dashboard.")
1048
1049
 
1049
1050
 
1050
1051
  class ConfigMetadata_Input(EllipsisModel):
@@ -3373,6 +3374,7 @@ class Environment(EllipsisModel):
3373
3374
  description="The repository, path, and branch the environment syncs from. Null for environments managed through the API.",
3374
3375
  )
3375
3376
  updated_at: datetime = Field(description="When the environment was last updated.")
3377
+ url: str = Field(description="The environment's page in the dashboard.")
3376
3378
 
3377
3379
 
3378
3380
  class EnvironmentOutputPayload(EllipsisModel):
@@ -3874,40 +3876,6 @@ class GetUsageOverTimeResponse(EllipsisModel):
3874
3876
  tokens: Tokens = Field(description="The tokens used in the period so far.")
3875
3877
 
3876
3878
 
3877
- class SessionEventActor(EllipsisModel):
3878
- """The event's initiator, when known; never inferred from resource ownership."""
3879
-
3880
- avatar_url: Union[str, None]
3881
- is_bot: Union[bool, None]
3882
- name: str
3883
-
3884
-
3885
- class GithubCheckRunEvent(EllipsisModel):
3886
- action: CheckRunAction
3887
- actor: Union[SessionEventActor, None]
3888
- branch: Union[str, None]
3889
- conclusion: Union[str, None]
3890
- head_sha: str
3891
- name: str
3892
- pull_request_number: Union[int, None]
3893
- repository: str
3894
- type: Literal["github.check_run"]
3895
- url: str
3896
-
3897
-
3898
- class GithubCheckSuiteEvent(EllipsisModel):
3899
- action: CheckSuiteAction
3900
- actor: Union[SessionEventActor, None]
3901
- app: Union[str, None]
3902
- branch: Union[str, None]
3903
- conclusion: Union[str, None]
3904
- head_sha: str
3905
- pull_request_number: Union[int, None]
3906
- repository: str
3907
- type: Literal["github.check_suite"]
3908
- url: str
3909
-
3910
-
3911
3879
  class GithubCloneTimelineEvent(EllipsisModel):
3912
3880
  """A repository cloned into the environment."""
3913
3881
 
@@ -4034,16 +4002,6 @@ class GithubHandler(EllipsisModel):
4034
4002
  )
4035
4003
 
4036
4004
 
4037
- class GithubIssueEvent(EllipsisModel):
4038
- action: IssueAction
4039
- actor: Union[SessionEventActor, None]
4040
- number: int
4041
- repository: str
4042
- title: str
4043
- type: Literal["github.issue"]
4044
- url: str
4045
-
4046
-
4047
4005
  class GithubIssueTimelineEvent(EllipsisModel):
4048
4006
  action: Literal["opened", "edited", "commented", "closed", "reopened"]
4049
4007
  at: datetime = Field(description="When the last request behind it ended.")
@@ -4117,17 +4075,6 @@ class GithubOtherTimelineEvent(EllipsisModel):
4117
4075
  type: Literal["github.other"]
4118
4076
 
4119
4077
 
4120
- class GithubPullRequestEvent(EllipsisModel):
4121
- action: Union[PullRequestAction, Literal["review_commented"]]
4122
- actor: Union[SessionEventActor, None]
4123
- branch: str
4124
- number: int
4125
- repository: str
4126
- title: str
4127
- type: Literal["github.pull_request"]
4128
- url: str
4129
-
4130
-
4131
4078
  class GithubPullRequestTimelineEvent(EllipsisModel):
4132
4079
  action: Literal[
4133
4080
  "opened",
@@ -4160,16 +4107,6 @@ class GithubPullRequestTimelineEvent(EllipsisModel):
4160
4107
  type: Literal["github.pull_request"]
4161
4108
 
4162
4109
 
4163
- class GithubPushEvent(EllipsisModel):
4164
- actor: Union[SessionEventActor, None]
4165
- after: str
4166
- before: str
4167
- branch: str
4168
- repository: str
4169
- type: Literal["github.push"]
4170
- url: str
4171
-
4172
-
4173
4110
  class GithubPushTimelineEvent(EllipsisModel):
4174
4111
  """A branch or tag pushed, created, or deleted, over git or through the API."""
4175
4112
 
@@ -4195,17 +4132,6 @@ class GithubRefusedTimelineEvent(EllipsisModel):
4195
4132
  type: Literal["github.refused"]
4196
4133
 
4197
4134
 
4198
- class GithubReleaseEvent(EllipsisModel):
4199
- action: ReleaseAction
4200
- actor: Union[SessionEventActor, None]
4201
- name: Union[str, None]
4202
- prerelease: bool
4203
- repository: str
4204
- tag: str
4205
- type: Literal["github.release"]
4206
- url: str
4207
-
4208
-
4209
4135
  class GithubReleaseTimelineEvent(EllipsisModel):
4210
4136
  action: Literal["created", "edited", "deleted"]
4211
4137
  at: datetime = Field(description="When the last request behind it ended.")
@@ -4260,19 +4186,6 @@ class GithubRepositorySnippet(EllipsisModel):
4260
4186
  owner: str = Field(description="The repository owner's login.")
4261
4187
 
4262
4188
 
4263
- class GithubStatusEvent(EllipsisModel):
4264
- action: StatusAction
4265
- actor: Union[SessionEventActor, None]
4266
- branch: Union[str, None]
4267
- context: str
4268
- head_sha: str
4269
- pull_request_number: Union[int, None]
4270
- repository: str
4271
- state: str
4272
- type: Literal["github.status"]
4273
- url: str
4274
-
4275
-
4276
4189
  class UserPlan(EllipsisModel):
4277
4190
  collaborators: int
4278
4191
  name: str
@@ -4331,20 +4244,6 @@ class GithubUser(EllipsisModel):
4331
4244
  user_view_type: Union[str, None] = None
4332
4245
 
4333
4246
 
4334
- class GithubWorkflowRunEvent(EllipsisModel):
4335
- action: WorkflowRunAction
4336
- actor: Union[SessionEventActor, None]
4337
- branch: Union[str, None]
4338
- conclusion: Union[str, None]
4339
- head_sha: str
4340
- name: str
4341
- pull_request_number: Union[int, None]
4342
- repository: str
4343
- run_number: int
4344
- type: Literal["github.workflow_run"]
4345
- url: str
4346
-
4347
-
4348
4247
  class GithubWorkflowTimelineEvent(EllipsisModel):
4349
4248
  """A GitHub Actions workflow run, or its logs read."""
4350
4249
 
@@ -4651,16 +4550,6 @@ class ImageAttachment(EllipsisModel):
4651
4550
  )
4652
4551
 
4653
4552
 
4654
- class LinearIssueEvent(EllipsisModel):
4655
- action: Union[LinearIssueAction, Literal["commented", "delegated"]]
4656
- actor: Union[SessionEventActor, None]
4657
- identifier: Union[str, None]
4658
- number: int
4659
- title: str
4660
- type: Literal["linear.issue"]
4661
- url: str
4662
-
4663
-
4664
4553
  class LinearTeamUpdate(EllipsisModel):
4665
4554
  id: str
4666
4555
  is_enabled: bool
@@ -5223,6 +5112,7 @@ class Review(EllipsisModel):
5223
5112
  description="running: reviewers are working. posted: one GitHub review was posted. empty: the review passed silently, so nothing was posted. failed: no reviewer finished or GitHub refused the review."
5224
5113
  )
5225
5114
  tokens: Tokens = Field(description="Tokens the reviewer sessions used together.")
5115
+ url: str = Field(description="The review's page in the dashboard.")
5226
5116
 
5227
5117
 
5228
5118
  class ReviewConfig(EllipsisModel):
@@ -5299,6 +5189,7 @@ class ReviewSummary(EllipsisModel):
5299
5189
  status: CodeReviewStatus = Field(
5300
5190
  description="running: reviewers are working. posted: one GitHub review was posted. empty: the review passed silently, so nothing was posted. failed: no reviewer finished or GitHub refused the review."
5301
5191
  )
5192
+ url: str = Field(description="The review's page in the dashboard.")
5302
5193
 
5303
5194
 
5304
5195
  class ReviewsListResponse(EllipsisModel):
@@ -5394,16 +5285,6 @@ class SendSessionMessageRequest(EllipsisModel):
5394
5285
  )
5395
5286
 
5396
5287
 
5397
- class SentryAlertEvent(EllipsisModel):
5398
- action: SentryAction
5399
- actor: Union[SessionEventActor, None]
5400
- organization_slug: str
5401
- project_slug: Union[str, None]
5402
- title: Union[str, None]
5403
- type: Literal["sentry.alert"]
5404
- url: Union[str, None]
5405
-
5406
-
5407
5288
  class SentryOrganizationsListResponse(EllipsisModel):
5408
5289
  """The connected Sentry organizations; empty if none are connected."""
5409
5290
 
@@ -5653,23 +5534,21 @@ class SessionSummary(EllipsisModel):
5653
5534
  )
5654
5535
 
5655
5536
 
5656
- class SlackChannelCreatedEvent(EllipsisModel):
5657
- actor: Union[SessionEventActor, None]
5658
- channel_id: str
5659
- channel_name: Union[str, None]
5660
- type: Literal["slack.channel_created"]
5661
- url: str
5537
+ WebhookIntegration = Literal["github", "linear", "slack", "sentry"]
5662
5538
 
5663
5539
 
5664
- class SlackMessageEvent(EllipsisModel):
5665
- action: Literal["message", "app_mention"]
5666
- actor: Union[SessionEventActor, None]
5667
- channel_id: str
5668
- channel_name: Union[str, None]
5669
- message_ts: str
5670
- thread_ts: Union[str, None]
5671
- type: Literal["slack.message"]
5672
- url: str
5540
+ class WebhookEnvelope(EllipsisModel):
5541
+ """The webhook that started the session, as the integration sent it."""
5542
+
5543
+ body: dict[str, Any] = Field(
5544
+ description="The request body, unchanged except that Slack's verification token is left out."
5545
+ )
5546
+ headers: dict[str, str] = Field(
5547
+ description="The integration's own request headers, lowercased. Signature headers are left out."
5548
+ )
5549
+ integration: WebhookIntegration = Field(
5550
+ description="The integration that sent the webhook."
5551
+ )
5673
5552
 
5674
5553
 
5675
5554
  class Session(EllipsisModel):
@@ -5711,24 +5590,8 @@ class Session(EllipsisModel):
5711
5590
  error: Union[SessionError, None] = Field(
5712
5591
  description="Why the last message failed, was stopped, or was cancelled; null otherwise."
5713
5592
  )
5714
- event: Union[
5715
- Union[
5716
- GithubPullRequestEvent,
5717
- GithubIssueEvent,
5718
- GithubPushEvent,
5719
- GithubCheckRunEvent,
5720
- GithubCheckSuiteEvent,
5721
- GithubWorkflowRunEvent,
5722
- GithubStatusEvent,
5723
- GithubReleaseEvent,
5724
- LinearIssueEvent,
5725
- SlackMessageEvent,
5726
- SlackChannelCreatedEvent,
5727
- SentryAlertEvent,
5728
- ],
5729
- None,
5730
- ] = Field(
5731
- description="The typed external event that started the session; null for direct and scheduled starts."
5593
+ event: Union[WebhookEnvelope, None] = Field(
5594
+ description="The webhook that started the session, as the integration sent it. Null for api, cli, web, and cron starts."
5732
5595
  )
5733
5596
  gemini: Union[GeminiConfig_Output, None] = Field(
5734
5597
  description="Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini."
@@ -5769,6 +5632,7 @@ class Session(EllipsisModel):
5769
5632
  )
5770
5633
  tokens: Tokens = Field(description="The tokens the session has used so far.")
5771
5634
  updated_at: datetime = Field(description="When the session was last updated.")
5635
+ url: str = Field(description="The session's page in the dashboard.")
5772
5636
  wait_ms: Union[int, None] = Field(
5773
5637
  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."
5774
5638
  )
@@ -6568,15 +6432,12 @@ __all__ = [
6568
6432
  "GithubAccountSelector_Output",
6569
6433
  "GithubAccountSnippet",
6570
6434
  "GithubAccountType",
6571
- "GithubCheckRunEvent",
6572
- "GithubCheckSuiteEvent",
6573
6435
  "GithubCloneTimelineEvent",
6574
6436
  "GithubCommitTimelineEvent",
6575
6437
  "GithubConfig",
6576
6438
  "GithubConfigEllipsis",
6577
6439
  "GithubHandler",
6578
6440
  "GithubIntegrationSummary",
6579
- "GithubIssueEvent",
6580
6441
  "GithubIssueTimelineEvent",
6581
6442
  "GithubMember",
6582
6443
  "GithubMembersListResponse",
@@ -6586,21 +6447,16 @@ __all__ = [
6586
6447
  "GithubOtherTimelineEvent",
6587
6448
  "GithubPermissions_Input",
6588
6449
  "GithubPermissions_Output",
6589
- "GithubPullRequestEvent",
6590
6450
  "GithubPullRequestTimelineEvent",
6591
- "GithubPushEvent",
6592
6451
  "GithubPushTimelineEvent",
6593
6452
  "GithubRefusedTimelineEvent",
6594
- "GithubReleaseEvent",
6595
6453
  "GithubReleaseTimelineEvent",
6596
6454
  "GithubRepositoriesListResponse",
6597
6455
  "GithubRepository",
6598
6456
  "GithubRepositorySnippet",
6599
6457
  "GithubRoutes",
6600
6458
  "GithubSourceDetails",
6601
- "GithubStatusEvent",
6602
6459
  "GithubUser",
6603
- "GithubWorkflowRunEvent",
6604
6460
  "GithubWorkflowTimelineEvent",
6605
6461
  "HTTPValidationError",
6606
6462
  "Handler",
@@ -6627,7 +6483,6 @@ __all__ = [
6627
6483
  "LinearIssueAction",
6628
6484
  "LinearIssueChanged_Input",
6629
6485
  "LinearIssueChanged_Output",
6630
- "LinearIssueEvent",
6631
6486
  "LinearLabelsChange_Input",
6632
6487
  "LinearLabelsChange_Output",
6633
6488
  "LinearRoutes",
@@ -6758,7 +6613,6 @@ __all__ = [
6758
6613
  "SecretsListResponse",
6759
6614
  "SendSessionMessageRequest",
6760
6615
  "SentryAction",
6761
- "SentryAlertEvent",
6762
6616
  "SentryConfig",
6763
6617
  "SentryConfigEllipsis",
6764
6618
  "SentryHandler",
@@ -6782,7 +6636,6 @@ __all__ = [
6782
6636
  "SessionConversationConfig_Output",
6783
6637
  "SessionEnvironment",
6784
6638
  "SessionError",
6785
- "SessionEventActor",
6786
6639
  "SessionGit",
6787
6640
  "SessionGitCommit",
6788
6641
  "SessionGitFile",
@@ -6812,7 +6665,6 @@ __all__ = [
6812
6665
  "SkillRef_Input",
6813
6666
  "SkillRef_Output",
6814
6667
  "SlackChannel",
6815
- "SlackChannelCreatedEvent",
6816
6668
  "SlackChannelsListResponse",
6817
6669
  "SlackConfig",
6818
6670
  "SlackConfigEllipsis",
@@ -6820,7 +6672,6 @@ __all__ = [
6820
6672
  "SlackIntegrationSummary",
6821
6673
  "SlackMember",
6822
6674
  "SlackMembersListResponse",
6823
- "SlackMessageEvent",
6824
6675
  "SlackRoutes",
6825
6676
  "StartAgentSessionRequest",
6826
6677
  "StartCliAuthResponse",
@@ -6862,7 +6713,9 @@ __all__ = [
6862
6713
  "WebhookDeliveryDetail",
6863
6714
  "WebhookDeliveryResponse",
6864
6715
  "WebhookDeliveryStatus",
6716
+ "WebhookEnvelope",
6865
6717
  "WebhookEventType",
6718
+ "WebhookIntegration",
6866
6719
  "WebhookPingData",
6867
6720
  "WebhookPingEvent",
6868
6721
  "WebhookResponse",
File without changes
File without changes