Platform resources
Generated reference for ovok_sdk: platform resources.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.23+d339d81
AccountsResource
class AccountsResourceAccounts the signed-in user belongs to. Reached through ovok.accounts.
Every request throws an OvokException subclass when it fails.
Constructors
AccountsResource.new
AccountsResource(HttpClient _http)Built by Ovok; use ovok.accounts instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
AccountsResource.list
Future<List<JsonMap>> list()Lists the signed-in user's accounts. Calls GET accounts.
Returns Future<List<Map<String, dynamic>>>.
EmailResource
class EmailResourceThe project's email setup. Reached through ovok.email.
Every request throws an OvokException subclass when it fails.
Constructors
EmailResource.new
EmailResource(HttpClient http)Built by Ovok; use ovok.email instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
http | HttpClient | positional |
Properties
EmailResource.templates
final EmailTemplatesResource templatesThe project's email templates.
EmailTemplatesResource
class EmailTemplatesResourceThe project's email templates. Reached through ovok.email.templates.
Constructors
EmailTemplatesResource.new
EmailTemplatesResource(HttpClient _http)Built by Ovok; use ovok.email.templates instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
EmailTemplatesResource.list
Future<JsonMap> list()Lists the email templates. Calls GET v1/email/templates.
Returns Future<Map<String, dynamic>>.
I18nextResource
class I18nextResourceA language's strings as one i18next document.
Reached through ovok.localizations.i18next.
Constructors
I18nextResource.new
I18nextResource(HttpClient _http)Built by Ovok; use ovok.localizations.i18next instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
I18nextResource.retrieve
Future<JsonMap> retrieve(String language)Retrieves language as an i18next document.
Calls GET localization/i18next/{language}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
language | String | positional |
Returns Future<Map<String, dynamic>>.
I18nextResource.update
Future<void> update(String language, JsonMap document)Merges document into language.
Calls PATCH localization/i18next/{language}. The server queues the
write (202), so a read right after may not show it yet.
| Parameter | Type | Kind | Default |
|---|---|---|---|
language | String | positional | |
document | JsonMap | positional |
Returns Future<void>.
InviteFlowResource
class InviteFlowResourceOne invite kind: create sends it, accept redeems it at {path}/accept.
Reached through the fields of ovok.invites.
Constructors
InviteFlowResource.new
InviteFlowResource(HttpClient _http, String _path)Built by Ovok; use a field of ovok.invites instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional | |
_path | String | positional |
Methods
InviteFlowResource.create
Future<JsonMap> create(JsonMap body)Sends an invite. Calls POST {path}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
InviteFlowResource.accept
Future<JsonMap> accept(JsonMap body)Accepts an invite. Calls POST {path}/accept.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
InvitesResource
class InvitesResourceInvites between patients, practitioners and carers. Reached through ovok.invites.
Every request throws an OvokException subclass when it fails.
Constructors
InvitesResource.new
InvitesResource(HttpClient http, UserSession session)Built by Ovok; use ovok.invites instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
http | HttpClient | positional | |
session | UserSession | positional |
Properties
InvitesResource.recordShares
final InviteFlowResource recordSharesA patient shares their record with a practitioner, or some codes with a carer.
Routes under v1/invites/record-share.
InvitesResource.care
final InviteFlowResource careA practitioner invites a patient into their care.
Routes under v1/invites/care.
InvitesResource.practitioners
final InviteFlowResource practitionersPractitioner invites; use recordShares instead.
Routes under v1/invites/practitioner, which sunset on 2026-12-01.
InvitesResource.patients
final InviteFlowResource patientsPatient invites; use care instead.
Routes under v1/invites/patient, which sunset on 2026-12-01.
Methods
InvitesResource.accept
Future<JsonMap> accept(JsonMap body)Accepts a record share as a practitioner or a care invite as a patient.
Picks recordShares or care from the signed-in profile's type.
Throws OvokConfigException when no Patient or Practitioner is signed in.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
LocalesResource
class LocalesResourceLanguages the project offers. Reached through ovok.locales.
Every request throws an OvokException subclass when it fails.
Constructors
LocalesResource.new
LocalesResource(HttpClient _http)Built by Ovok; use ovok.locales instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
LocalesResource.retrieve
Future<JsonMap> retrieve()Retrieves the project's locales. Calls GET locales.
Returns Future<Map<String, dynamic>>.
LocalesResource.update
Future<JsonMap> update(JsonMap locales)Updates the project's locales. Calls PATCH locales.
| Parameter | Type | Kind | Default |
|---|---|---|---|
locales | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
LocalizationsResource
class LocalizationsResourceTranslated strings, by language and key. Reached through ovok.localizations.
Every request throws an OvokException subclass when it fails.
Constructors
LocalizationsResource.new
LocalizationsResource(HttpClient http)Built by Ovok; use ovok.localizations instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
http | HttpClient | positional |
Properties
LocalizationsResource.i18next
final I18nextResource i18nextWhole-language documents in i18next format.
Methods
LocalizationsResource.list
Future<JsonMap> list(String language, [QueryParams query = const {}])Lists the strings of language. Calls GET localization/{language}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
language | String | positional | |
query | QueryParams | optional positional | const {} |
Returns Future<Map<String, dynamic>>.
LocalizationsResource.retrieve
Future<JsonMap> retrieve(String language, String key)Retrieves one string. Calls GET localization/{language}/{key}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
language | String | positional | |
key | String | positional |
Returns Future<Map<String, dynamic>>.
LocalizationsResource.update
Future<JsonMap> update(
String language,
String key,
JsonMap body,
)Updates one string. Calls PUT localization/{language}/{key}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
language | String | positional | |
key | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
LocalizationsResource.delete
Future<void> delete(String language, String key)Deletes one string. Calls DELETE localization/{language}/{key}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
language | String | positional | |
key | String | positional |
Returns Future<void>.
ProjectFeaturesResource
class ProjectFeaturesResourceFeatures enabled on the current project. Reached through ovok.projects.features.
Constructors
ProjectFeaturesResource.new
ProjectFeaturesResource(HttpClient _http)Built by Ovok; use ovok.projects.features instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
ProjectFeaturesResource.retrieve
Future<JsonMap> retrieve()Retrieves the project's features. Calls GET v1/projects/me/features.
Returns Future<Map<String, dynamic>>.
ProjectFeaturesResource.update
Future<JsonMap> update(List<String> features)Sets the project's features. Calls PATCH v1/projects/me/features.
| Parameter | Type | Kind | Default |
|---|---|---|---|
features | List<String> | positional |
Returns Future<Map<String, dynamic>>.
ProjectMembersResource
class ProjectMembersResourceMemberships of the current project. Reached through ovok.projects.members.
Constructors
ProjectMembersResource.new
ProjectMembersResource(HttpClient _http)Built by Ovok; use ovok.projects.members instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
ProjectMembersResource.list
Future<Page<JsonMap>> list([QueryParams query = const {}])Lists the project's members. Calls GET v1/projects/me/members with query.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
ProjectMembersResource.invite
Future<JsonMap> invite(JsonMap body)Invites a member into the project. Calls POST v1/projects/me/members.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
ProjectMembersResource.update
Future<JsonMap> update(String membershipId, JsonMap body)Updates a membership.
Calls PATCH v1/projects/me/members/{membershipId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
membershipId | String | positional | |
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
ProjectMembersResource.remove
Future<JsonMap> remove(String membershipId)Removes a member from the project.
Calls DELETE v1/projects/me/members/{membershipId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
membershipId | String | positional |
Returns Future<Map<String, dynamic>>.
ProjectSettingsResource
class ProjectSettingsResourceSettings of the current project. Reached through ovok.projects.settings.
Constructors
ProjectSettingsResource.new
ProjectSettingsResource(HttpClient _http)Built by Ovok; use ovok.projects.settings instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
ProjectSettingsResource.retrieve
Future<JsonMap> retrieve()Retrieves the project's settings. Calls GET v1/project/settings.
Returns Future<Map<String, dynamic>>.
ProjectSettingsResource.update
Future<JsonMap> update(String key, bool enabled)Turns the on/off setting key on or off.
Calls PUT v1/project/settings/{key} with {enabled}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
key | String | positional | |
enabled | bool | positional |
Returns Future<Map<String, dynamic>>.
ProjectSettingsResource.updateText
Future<JsonMap> updateText(String key, String? value)Sets the text setting key to value; null clears it.
Calls PUT v1/project/settings/values/{key} with {value}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
key | String | positional | |
value | String? | positional |
Returns Future<Map<String, dynamic>>.
ProjectsResource
class ProjectsResourceProjects, their members, settings and features. Reached through ovok.projects.
Every request throws an OvokException subclass when it fails.
Constructors
ProjectsResource.new
ProjectsResource(HttpClient http)Built by Ovok; use ovok.projects instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
http | HttpClient | positional |
Properties
ProjectsResource.members
final ProjectMembersResource membersMembers of the current project.
ProjectsResource.settings
final ProjectSettingsResource settingsSettings of the current project.
ProjectsResource.features
final ProjectFeaturesResource featuresFeatures enabled on the current project.
Methods
ProjectsResource.list
Future<Page<JsonMap>> list([QueryParams query = const {}])Lists the projects the caller administers, wherever they are signed in.
Calls GET v1/projects with query; the Page fetches later pages.
| Parameter | Type | Kind | Default |
|---|---|---|---|
query | QueryParams | optional positional | const {} |
Returns Future<Page<Map<String, dynamic>>>.
SharingInvitesResource
class SharingInvitesResourceSharing invites. Reached through ovok.sharing.invites.
Constructors
SharingInvitesResource.new
SharingInvitesResource(HttpClient _http)Built by Ovok; use ovok.sharing.invites instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SharingInvitesResource.create
Future<JsonMap> create(JsonMap body)Creates a sharing invite. Calls POST v1/patient-sharing/invites.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SharingInvitesResource.redeem
Future<JsonMap> redeem(JsonMap body)Redeems a sharing invite.
Calls POST v1/patient-sharing/invites/redeem.
| Parameter | Type | Kind | Default |
|---|---|---|---|
body | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SharingResource
class SharingResourceA patient's record sharing. Reached through ovok.sharing.
Every request throws an OvokException subclass when it fails.
Constructors
SharingResource.new
SharingResource(HttpClient http)Built by Ovok; use ovok.sharing instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
http | HttpClient | positional |
Properties
SharingResource.invites
final SharingInvitesResource invitesSharing invites the patient sends and redeems.
SharingResource.shares
final SharingSharesResource sharesShares the patient has given and received.
SharingResource.settings
final SharingSettingsResource settingsThe patient's sharing settings.
SharingSettingsResource
class SharingSettingsResourceThe patient's sharing settings. Reached through ovok.sharing.settings.
Constructors
SharingSettingsResource.new
SharingSettingsResource(HttpClient _http)Built by Ovok; use ovok.sharing.settings instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SharingSettingsResource.retrieve
Future<JsonMap> retrieve()Retrieves the sharing settings. Calls GET v1/patient-sharing/settings.
Returns Future<Map<String, dynamic>>.
SharingSettingsResource.update
Future<JsonMap> update(JsonMap settings)Replaces the sharing settings. Calls PUT v1/patient-sharing/settings.
| Parameter | Type | Kind | Default |
|---|---|---|---|
settings | JsonMap | positional |
Returns Future<Map<String, dynamic>>.
SharingSharesResource
class SharingSharesResourceShares given and received. Reached through ovok.sharing.shares.
Constructors
SharingSharesResource.new
SharingSharesResource(HttpClient _http)Built by Ovok; use ovok.sharing.shares instead.
| Parameter | Type | Kind | Default |
|---|---|---|---|
_http | HttpClient | positional |
Methods
SharingSharesResource.list
Future<JsonMap> list()Lists the shares. Calls GET v1/patient-sharing/shares.
practitioners, relatedPersons and received are always lists, empty
when an older server leaves them out.
Returns Future<Map<String, dynamic>>.
SharingSharesResource.revoke
Future<void> revoke(String consentId)Revokes the share recorded by consentId.
Calls DELETE v1/patient-sharing/shares/{consentId}.
| Parameter | Type | Kind | Default |
|---|---|---|---|
consentId | String | positional |
Returns Future<void>.
Last updated on