Skip to content

Track arkd#917: GetIntent gRPC API expansion (intent filter + repeated intents) #372

@arkanaai

Description

@arkanaai

Cross-Repo Impact: arkd#917 merged 2026-03-20T15:10Z

Source: arkd#917 — get intents by proof (merged to main)

Proto changes in api-spec/protobuf/ark/v1/service.proto

// GetIntentRequest: new `intent` filter variant (field 2)
message GetIntentRequest {
  oneof filter {
    string txid = 1;
    Intent intent = 2;  // NEW: fetch by proof/intent
  }
}

// GetIntentResponse: new repeated field (field 2)
message GetIntentResponse {
  Intent intent = 1;        // kept for backward compat (txid filter only)
  repeated Intent intents = 2;  // NEW: always populated with all matches
}

REST: New POST /v1/intent binding added (alongside existing GET /v1/intent)

Required SDK updates

  • Expose intent as a filter option in GetIntent client method
  • Handle repeated Intent intents in response (always-populated; intent singular is legacy for txid path)
  • Expose POST /v1/intent REST path if SDK wraps REST

Wire compatibility: Additive protobuf changes — no breakage until SDK consumes new fields.

[Agent: cross-repo-impact]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions