Skip to content

Implement missing Jules API types#541

Merged
arran4 merged 2 commits intomainfrom
jules-api-types-impl-5541557627152087561
Feb 21, 2026
Merged

Implement missing Jules API types#541
arran4 merged 2 commits intomainfrom
jules-api-types-impl-5541557627152087561

Conversation

@arran4
Copy link
Owner

@arran4 arran4 commented Feb 21, 2026

This PR implements missing data types from the Jules API reference (https://jules.google/docs/api/reference/types). Specifically, it adds response types for listing activities and request/response types for session actions (sending messages and approving plans). Verification tests are included.


PR created automatically by Jules for task 5541557627152087561 started by @arran4

Added the following types to match the Jules API specification:
- `ListActivitiesResponse` in `lib/models/activity.dart`
- `SendMessageRequest`, `SendMessageResponse`, `ApprovePlanRequest`, `ApprovePlanResponse` in `lib/models/session.dart`

Added unit tests in `test/models/new_types_test.dart` to verify serialization and deserialization.

Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions github-actions bot mentioned this pull request Feb 21, 2026
@arran4
Copy link
Owner Author

arran4 commented Feb 21, 2026

@jules can we think about how these are displayed and what information we need to extract from the map to make it easier to display that content.

@google-labs-jules
Copy link
Contributor

@jules can we think about how these are displayed and what information we need to extract from the map to make it easier to display that content.

Excellent point. I've updated the Activity model to explicitly include local state fields (isPending, isQueued, processingErrors, etc.) that were previously being stuffed into unmappedProps. This makes the display logic in ActivityItem and ActivityHelper much cleaner and type-safe.

- Added `ListActivitiesResponse` in `lib/models/activity.dart`.
- Added `SendMessageRequest`, `SendMessageResponse`, `ApprovePlanRequest`, `ApprovePlanResponse` in `lib/models/session.dart`.
- Refactored `Activity` model to include explicit fields for local state (`isPending`, `isQueued`, `processingErrors`, etc.) instead of relying on `unmappedProps`.
- Updated `VirtualActivity`, `ActivityItem`, and `ActivityHelper` to use these new fields.
- Added unit tests in `test/models/new_types_test.dart`.

Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
Copy link
Owner Author

@arran4 arran4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arran4 arran4 merged commit a8cbfda into main Feb 21, 2026
6 checks passed
@arran4 arran4 deleted the jules-api-types-impl-5541557627152087561 branch February 21, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant