Skip to content

SK-3006: Add FlowDB reveal/collect support, typed callbacks, updated samples and README - #188

Merged
saileshwar-skyflow merged 12 commits into
release/26.7.0from
saileshwar/SK-3006-flowdb-collect-composable
Jul 29, 2026
Merged

SK-3006: Add FlowDB reveal/collect support, typed callbacks, updated samples and README#188
saileshwar-skyflow merged 12 commits into
release/26.7.0from
saileshwar/SK-3006-flowdb-collect-composable

Conversation

@saileshwar-skyflow

@saileshwar-skyflow saileshwar-skyflow commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add typed RevealCallback / RevealResponse and CollectCallback / CollectResponse replacing old untyped Callback
  • Add CollectOptions with upsert (UpsertOptions / UpdateType) and additionalFields (AdditionalFields / AdditionalFieldsRecord)
  • Rename internal SkyflowErrorSkyflowInternalError; expose public SkyflowError data class (grpcCode, httpCode, message, httpStatus, details)
  • Update all sample activities to use typed callbacks with error: SkyflowError in onFailure
  • Remove obsolete sample activities: UpsertFeature, UpdateCollectActivity, UpdateComposableActivity
  • Add ResponseTest.kt unit tests for new response types

saileshwar-skyflow and others added 2 commits July 24, 2026 01:22
- Add FlowDBAPIClient, FlowDBCollectAPICallback, FlowDBCollectRequestBody,
  FlowDBMixedAPICallback for v2 insert/update/upsert API
- Add FlowDBRevealApiCallback, FlowDBRevealRequestBody, FlowDBRevealRequestRecord
  for v2 detokenize API (reads "response" array, handles per-token httpCode)
- Add UpdateType and UpsertOptions for upsert and update-by-skyflowID support
- Update RevealElementInput: redaction changed from RedactionType enum to String
  to support custom vault redaction names
- Update RevealValueCallback: fix key naming (records/errors), handle missing
  token field in error records gracefully
- Update Client, CollectContainer, ComposableContainer, Configuration to wire
  FlowDB API client and support new collect/reveal options
- Update collect/reveal containers and element inputs for FlowDB contract
- Update tests to reflect FlowDB API changes; remove obsolete connection tests
- Add typed RevealCallback/RevealResponse for reveal operations
- Add typed CollectCallback/CollectResponse for collect operations
- Add CollectOptions with upsert (UpsertOptions/UpdateType) and additionalFields (AdditionalFields/AdditionalFieldsRecord)
- Rename internal SkyflowError to SkyflowInternalError; add public SkyflowError data class
- Update samples: CollectActivity (insert/upsert/additionalFields), RevealActivity (reveal/reveal-with-options), ComposableActivity, InputFormattingCollect/Reveal, CardBrandChoiceActivity all use typed callbacks
- Remove obsolete sample activities: UpsertFeature, UpdateCollectActivity, UpdateComposableActivity
- Update activity_collect.xml, activity_reveal.xml, activity_main.xml layouts
- Add ResponseTest.kt unit tests for new response types
- Update README with typed callback sections (Android + iOS snippets)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@saileshwar-skyflow saileshwar-skyflow changed the title SK-3006: Add FlowDB reveal support, typed callbacks, updated samples and README SK-3006: Add FlowDB reveal/collect support, typed callbacks, updated samples and README Jul 29, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove "Inserting data into the vault" section (skyflowClient.insert)
- Remove "Retrieving data from the vault" section (detokenize/getById/get)
- Remove old end-to-end examples using InsertCallback and JSONObject/JSONArray options
- Update Step 4 collect/update in both Elements and Composable sections to use typed CollectCallback and new CollectOptions/AdditionalFields API
- Add iOS (Swift) snippets alongside Android (Kotlin) in all Step 4 blocks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
saileshwar-skyflow and others added 8 commits July 29, 2026 20:44
- Remove `redaction` from RevealElementInput docs (field was deleted from SDK)
- Remove stale notes about invokeConnection() and RedactionType defaults
- Step 4 reveal: replace old untyped Skyflow.Callback with typed RevealCallback (Android + iOS)
- End-to-end reveal example: remove redaction from elements, use typed RevealCallback
- Update sample response to new flat records format with httpCode per record
- Fix skyflowID → skyflowId in CollectElementInput parameter docs
- Fix collect() method signature references: Skyflow.Callback → CollectCallback
- Remove deleted `tokens` option from CollectOptions descriptions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Android README should only contain Android (Kotlin) examples.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
These headings were added to pair with iOS Swift blocks that have
since been removed. Not needed in a single-platform README.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The server returns "" for tableName on partial-error records. The SDK
backfills tableName from the original request using a pre-built ordered
list, so CollectRecord.tableName is never empty in the callback.

Updated the README partial error response sample to show tableName
populated as delivered to the callback.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- dispatchResponse: store token data under "tokens" key (not "fields")
- CollectResponse.fromJson: read from "tokens" key to match
- README: replace "fields" with "tokens" in sample response, add path
  field to token objects, merge success/partial-error into one sample
  showing both as CollectRecord in the same records list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@saileshwar-skyflow
saileshwar-skyflow merged commit 23803cb into release/26.7.0 Jul 29, 2026
3 checks passed
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.

4 participants