├── .editorconfig ├── .github ├── ISSUE_TEMPLATE │ ├── bug-report.yml │ ├── new-release-checklist.md │ └── sdk-change.md ├── MAINTAINERS.md ├── renovate.json └── workflows │ ├── buf-push.yml │ ├── build-connect-dart.yaml │ ├── build-connect-dotnet.yaml │ ├── build-connect-typescript.yaml │ ├── build-dart.yml │ ├── build-docs.yml │ ├── build-dotnet.yml │ ├── build-golang.yml │ ├── build-java.yml │ ├── build-proto.yml │ ├── build-python.yml │ ├── build-rust.yml │ ├── build-typescript.yml │ ├── connect │ ├── build-dart.ps1 │ ├── build-dotnet.ps1 │ ├── build-typescript.ps1 │ ├── release-dotnet.ps1 │ ├── release-typescript.ps1 │ └── set-connect-version.ps1 │ ├── pr-validate-connect.yaml │ ├── pr-validate.yml │ ├── release-connect-dotnet.yml │ ├── release-connect-typescript.yml │ ├── release-dart.yml │ ├── release-docs.yml │ ├── release-dotnet.yml │ ├── release-golang.yaml │ ├── release-installers.yml │ ├── release-java.yml │ ├── release-python.yml │ ├── release-rust.yml │ ├── release-typescript.yml │ ├── renovate.yaml │ ├── test-docs.yml │ ├── test-infrastructure.yml │ └── update-wix.ps1 ├── .gitignore ├── .gitmodules ├── .npmrc ├── .prettierignore ├── LICENSE ├── README.md ├── SECURITY.md ├── android └── README.md ├── cli ├── .cargo │ └── _config.toml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── MAINTAINERS.md ├── README.md ├── build.rs ├── rustfmt.toml ├── src │ ├── cli.yaml │ ├── error.rs │ ├── lib.rs │ ├── macros.rs │ ├── main.rs │ ├── parser │ │ ├── config.rs │ │ ├── mod.rs │ │ ├── provider.rs │ │ ├── template.rs │ │ ├── trustregistry.rs │ │ ├── vc.rs │ │ └── wallet.rs │ ├── proto │ │ ├── google │ │ │ ├── mod.rs │ │ │ └── protobuf │ │ │ │ └── mod.rs │ │ ├── mod.rs │ │ ├── sdk │ │ │ ├── mod.rs │ │ │ └── options │ │ │ │ ├── mod.rs │ │ │ │ └── v1 │ │ │ │ └── mod.rs │ │ └── services │ │ │ ├── account │ │ │ ├── mod.rs │ │ │ └── v1 │ │ │ │ └── mod.rs │ │ │ ├── common │ │ │ ├── mod.rs │ │ │ └── v1 │ │ │ │ └── mod.rs │ │ │ ├── mod.rs │ │ │ ├── provider │ │ │ ├── mod.rs │ │ │ └── v1 │ │ │ │ └── mod.rs │ │ │ ├── trustregistry │ │ │ ├── mod.rs │ │ │ └── v1 │ │ │ │ └── mod.rs │ │ │ ├── universalwallet │ │ │ ├── mod.rs │ │ │ └── v1 │ │ │ │ └── mod.rs │ │ │ └── verifiablecredentials │ │ │ ├── mod.rs │ │ │ ├── templates │ │ │ ├── mod.rs │ │ │ └── v1 │ │ │ │ └── mod.rs │ │ │ └── v1 │ │ │ ├── mod.rs │ │ │ └── verifiablecredentials.rs │ ├── services │ │ ├── config.rs │ │ ├── mod.rs │ │ ├── provider.rs │ │ ├── template.rs │ │ ├── trustregistry.rs │ │ ├── vc.rs │ │ └── wallet.rs │ └── utils │ │ └── mod.rs ├── test │ ├── .gitignore │ ├── README.md │ ├── Run-Demo.ps1 │ ├── state-id-template.json │ └── state-id-values.json └── wix │ ├── License.rtf │ └── main.wxs ├── connect ├── config-csharp.yaml ├── config-dart.yaml ├── config-typescript-fetch.yaml ├── dart │ ├── .gitignore │ ├── .openapi-generator-ignore │ ├── .openapi-generator │ │ ├── FILES │ │ └── VERSION │ ├── .travis.yml │ ├── README.md │ ├── analysis_options.yaml │ ├── doc │ │ ├── Address.md │ │ ├── Attachments.md │ │ ├── AttachmentsApi.md │ │ ├── CancelSessionResponse.md │ │ ├── CreateSessionRequest.md │ │ ├── CreateSessionResponse.md │ │ ├── DisclosedFields.md │ │ ├── DisclosedFieldsRequest.md │ │ ├── DocumentData.md │ │ ├── ExchangeResultsKeyRequest.md │ │ ├── ExchangeResultsKeyResponse.md │ │ ├── FailureMessage.md │ │ ├── GetSessionResponse.md │ │ ├── IdentityData.md │ │ ├── IdentityLookupResponse.md │ │ ├── Integration.md │ │ ├── ListProvidersResponse.md │ │ ├── ListSessionsResponse.md │ │ ├── NetworkApi.md │ │ ├── OrderDirection.md │ │ ├── PersonData.md │ │ ├── Session.md │ │ ├── SessionFailCode.md │ │ ├── SessionOrdering.md │ │ ├── SessionState.md │ │ ├── SessionsApi.md │ │ ├── ValidationResult.md │ │ ├── Verification.md │ │ └── VerificationFailCode.md │ ├── git_push.sh │ ├── lib │ │ ├── api.dart │ │ ├── api │ │ │ ├── attachments_api.dart │ │ │ ├── network_api.dart │ │ │ └── sessions_api.dart │ │ ├── api_client.dart │ │ ├── api_exception.dart │ │ ├── api_helper.dart │ │ ├── auth │ │ │ ├── api_key_auth.dart │ │ │ ├── authentication.dart │ │ │ ├── http_basic_auth.dart │ │ │ ├── http_bearer_auth.dart │ │ │ └── oauth.dart │ │ └── model │ │ │ ├── address.dart │ │ │ ├── attachments.dart │ │ │ ├── cancel_session_response.dart │ │ │ ├── create_session_request.dart │ │ │ ├── create_session_response.dart │ │ │ ├── disclosed_fields.dart │ │ │ ├── disclosed_fields_request.dart │ │ │ ├── document_data.dart │ │ │ ├── exchange_results_key_request.dart │ │ │ ├── exchange_results_key_response.dart │ │ │ ├── failure_message.dart │ │ │ ├── get_session_response.dart │ │ │ ├── identity_data.dart │ │ │ ├── identity_lookup_response.dart │ │ │ ├── integration.dart │ │ │ ├── list_providers_response.dart │ │ │ ├── list_sessions_response.dart │ │ │ ├── order_direction.dart │ │ │ ├── person_data.dart │ │ │ ├── session.dart │ │ │ ├── session_fail_code.dart │ │ │ ├── session_ordering.dart │ │ │ ├── session_state.dart │ │ │ ├── validation_result.dart │ │ │ ├── verification.dart │ │ │ └── verification_fail_code.dart │ ├── pubspec.lock │ ├── pubspec.yaml │ └── test │ │ ├── address_test.dart │ │ ├── attachments_api_test.dart │ │ ├── attachments_test.dart │ │ ├── cancel_session_response_test.dart │ │ ├── create_session_request_test.dart │ │ ├── create_session_response_test.dart │ │ ├── disclosed_fields_request_test.dart │ │ ├── disclosed_fields_test.dart │ │ ├── document_data_test.dart │ │ ├── exchange_results_key_request_test.dart │ │ ├── exchange_results_key_response_test.dart │ │ ├── failure_message_test.dart │ │ ├── get_session_response_test.dart │ │ ├── identity_data_test.dart │ │ ├── identity_lookup_response_test.dart │ │ ├── integration_test.dart │ │ ├── list_providers_response_test.dart │ │ ├── list_sessions_response_test.dart │ │ ├── network_api_test.dart │ │ ├── order_direction_test.dart │ │ ├── person_data_test.dart │ │ ├── session_fail_code_test.dart │ │ ├── session_ordering_test.dart │ │ ├── session_state_test.dart │ │ ├── session_test.dart │ │ ├── sessions_api_test.dart │ │ ├── validation_result_test.dart │ │ ├── verification_fail_code_test.dart │ │ └── verification_test.dart ├── dotnet │ ├── .gitignore │ ├── .openapi-generator-ignore │ ├── .openapi-generator │ │ ├── FILES │ │ └── VERSION │ ├── README.md │ ├── Trinsic.Connect.sln │ ├── api │ │ └── openapi.yaml │ ├── appveyor.yml │ ├── docs │ │ ├── Address.md │ │ ├── Attachments.md │ │ ├── AttachmentsApi.md │ │ ├── CancelSessionResponse.md │ │ ├── CreateSessionRequest.md │ │ ├── CreateSessionResponse.md │ │ ├── DisclosedFields.md │ │ ├── DisclosedFieldsRequest.md │ │ ├── DocumentData.md │ │ ├── ExchangeResultsKeyRequest.md │ │ ├── ExchangeResultsKeyResponse.md │ │ ├── FailureMessage.md │ │ ├── GetSessionResponse.md │ │ ├── IdentityData.md │ │ ├── IdentityLookupResponse.md │ │ ├── Integration.md │ │ ├── ListProvidersResponse.md │ │ ├── ListSessionsResponse.md │ │ ├── NetworkApi.md │ │ ├── OrderDirection.md │ │ ├── PersonData.md │ │ ├── Session.md │ │ ├── SessionFailCode.md │ │ ├── SessionOrdering.md │ │ ├── SessionState.md │ │ ├── SessionsApi.md │ │ ├── ValidationResult.md │ │ ├── Verification.md │ │ └── VerificationFailCode.md │ ├── git_push.sh │ └── src │ │ ├── Trinsic.Connect.Test │ │ ├── Api │ │ │ ├── AttachmentsApiTests.cs │ │ │ ├── NetworkApiTests.cs │ │ │ └── SessionsApiTests.cs │ │ ├── Model │ │ │ ├── AddressTests.cs │ │ │ ├── AttachmentsTests.cs │ │ │ ├── CancelSessionResponseTests.cs │ │ │ ├── CreateSessionRequestTests.cs │ │ │ ├── CreateSessionResponseTests.cs │ │ │ ├── DisclosedFieldsRequestTests.cs │ │ │ ├── DisclosedFieldsTests.cs │ │ │ ├── DocumentDataTests.cs │ │ │ ├── ExchangeResultsKeyRequestTests.cs │ │ │ ├── ExchangeResultsKeyResponseTests.cs │ │ │ ├── FailureMessageTests.cs │ │ │ ├── GetSessionResponseTests.cs │ │ │ ├── IdentityDataTests.cs │ │ │ ├── IdentityLookupResponseTests.cs │ │ │ ├── IntegrationTests.cs │ │ │ ├── ListProvidersResponseTests.cs │ │ │ ├── ListSessionsResponseTests.cs │ │ │ ├── OrderDirectionTests.cs │ │ │ ├── PersonDataTests.cs │ │ │ ├── SessionFailCodeTests.cs │ │ │ ├── SessionOrderingTests.cs │ │ │ ├── SessionStateTests.cs │ │ │ ├── SessionTests.cs │ │ │ ├── ValidationResultTests.cs │ │ │ ├── VerificationFailCodeTests.cs │ │ │ └── VerificationTests.cs │ │ └── Trinsic.Connect.Test.csproj │ │ └── Trinsic.Connect │ │ ├── Api │ │ ├── AttachmentsApi.cs │ │ ├── NetworkApi.cs │ │ └── SessionsApi.cs │ │ ├── Client │ │ ├── ApiClient.cs │ │ ├── ApiException.cs │ │ ├── ApiResponse.cs │ │ ├── ClientUtils.cs │ │ ├── Configuration.cs │ │ ├── ExceptionFactory.cs │ │ ├── FileParameter.cs │ │ ├── GlobalConfiguration.cs │ │ ├── IApiAccessor.cs │ │ ├── IAsynchronousClient.cs │ │ ├── IReadableConfiguration.cs │ │ ├── ISynchronousClient.cs │ │ ├── Multimap.cs │ │ ├── OpenAPIDateConverter.cs │ │ ├── RequestOptions.cs │ │ ├── RetryConfiguration.cs │ │ └── WebRequestPathBuilder.cs │ │ ├── Model │ │ ├── AbstractOpenAPISchema.cs │ │ ├── Address.cs │ │ ├── Attachments.cs │ │ ├── CancelSessionResponse.cs │ │ ├── CreateSessionRequest.cs │ │ ├── CreateSessionResponse.cs │ │ ├── DisclosedFields.cs │ │ ├── DisclosedFieldsRequest.cs │ │ ├── DocumentData.cs │ │ ├── ExchangeResultsKeyRequest.cs │ │ ├── ExchangeResultsKeyResponse.cs │ │ ├── FailureMessage.cs │ │ ├── GetSessionResponse.cs │ │ ├── IdentityData.cs │ │ ├── IdentityLookupResponse.cs │ │ ├── Integration.cs │ │ ├── ListProvidersResponse.cs │ │ ├── ListSessionsResponse.cs │ │ ├── OrderDirection.cs │ │ ├── PersonData.cs │ │ ├── Session.cs │ │ ├── SessionFailCode.cs │ │ ├── SessionOrdering.cs │ │ ├── SessionState.cs │ │ ├── ValidationResult.cs │ │ ├── Verification.cs │ │ └── VerificationFailCode.cs │ │ ├── README.md │ │ └── Trinsic.Connect.csproj ├── make-swagger.ps1 ├── swagger_api.json └── typescript │ ├── .gitignore │ ├── .npmignore │ ├── .openapi-generator-ignore │ ├── .openapi-generator │ ├── FILES │ └── VERSION │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── src │ ├── ConnectClient.ts │ ├── apis │ │ ├── AttachmentsApi.ts │ │ ├── NetworkApi.ts │ │ ├── SessionsApi.ts │ │ └── index.ts │ ├── index.ts │ ├── models │ │ ├── Address.ts │ │ ├── Attachments.ts │ │ ├── CancelSessionResponse.ts │ │ ├── CreateSessionRequest.ts │ │ ├── CreateSessionResponse.ts │ │ ├── DisclosedFields.ts │ │ ├── DisclosedFieldsRequest.ts │ │ ├── DocumentData.ts │ │ ├── ExchangeResultsKeyRequest.ts │ │ ├── ExchangeResultsKeyResponse.ts │ │ ├── FailureMessage.ts │ │ ├── GetSessionResponse.ts │ │ ├── IdentityData.ts │ │ ├── IdentityLookupResponse.ts │ │ ├── Integration.ts │ │ ├── ListProvidersResponse.ts │ │ ├── ListSessionsResponse.ts │ │ ├── OrderDirection.ts │ │ ├── PersonData.ts │ │ ├── Session.ts │ │ ├── SessionFailCode.ts │ │ ├── SessionOrdering.ts │ │ ├── SessionState.ts │ │ ├── ValidationResult.ts │ │ ├── Verification.ts │ │ ├── VerificationFailCode.ts │ │ └── index.ts │ └── runtime.ts │ └── tsconfig.json ├── dart ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── analysis_options.yaml ├── example │ ├── ecosystem_example.dart │ ├── templates_demo.dart │ ├── trustregistry_demo.dart │ └── vaccine_example.dart ├── lib │ ├── src │ │ ├── access_management_service.dart │ │ ├── connect_service.dart │ │ ├── credential_service.dart │ │ ├── file_management_service.dart │ │ ├── proto │ │ │ ├── google │ │ │ │ └── protobuf │ │ │ │ │ ├── any.pb.dart │ │ │ │ │ ├── any.pbenum.dart │ │ │ │ │ ├── any.pbjson.dart │ │ │ │ │ ├── any.pbserver.dart │ │ │ │ │ ├── api.pb.dart │ │ │ │ │ ├── api.pbenum.dart │ │ │ │ │ ├── api.pbjson.dart │ │ │ │ │ ├── api.pbserver.dart │ │ │ │ │ ├── compiler │ │ │ │ │ ├── plugin.pb.dart │ │ │ │ │ ├── plugin.pbenum.dart │ │ │ │ │ ├── plugin.pbjson.dart │ │ │ │ │ └── plugin.pbserver.dart │ │ │ │ │ ├── descriptor.pb.dart │ │ │ │ │ ├── descriptor.pbenum.dart │ │ │ │ │ ├── descriptor.pbjson.dart │ │ │ │ │ ├── descriptor.pbserver.dart │ │ │ │ │ ├── duration.pb.dart │ │ │ │ │ ├── duration.pbenum.dart │ │ │ │ │ ├── duration.pbjson.dart │ │ │ │ │ ├── duration.pbserver.dart │ │ │ │ │ ├── empty.pb.dart │ │ │ │ │ ├── empty.pbenum.dart │ │ │ │ │ ├── empty.pbjson.dart │ │ │ │ │ ├── empty.pbserver.dart │ │ │ │ │ ├── field_mask.pb.dart │ │ │ │ │ ├── field_mask.pbenum.dart │ │ │ │ │ ├── field_mask.pbjson.dart │ │ │ │ │ ├── field_mask.pbserver.dart │ │ │ │ │ ├── source_context.pb.dart │ │ │ │ │ ├── source_context.pbenum.dart │ │ │ │ │ ├── source_context.pbjson.dart │ │ │ │ │ ├── source_context.pbserver.dart │ │ │ │ │ ├── struct.pb.dart │ │ │ │ │ ├── struct.pbenum.dart │ │ │ │ │ ├── struct.pbjson.dart │ │ │ │ │ ├── struct.pbserver.dart │ │ │ │ │ ├── timestamp.pb.dart │ │ │ │ │ ├── timestamp.pbenum.dart │ │ │ │ │ ├── timestamp.pbjson.dart │ │ │ │ │ ├── timestamp.pbserver.dart │ │ │ │ │ ├── type.pb.dart │ │ │ │ │ ├── type.pbenum.dart │ │ │ │ │ ├── type.pbjson.dart │ │ │ │ │ ├── type.pbserver.dart │ │ │ │ │ ├── wrappers.pb.dart │ │ │ │ │ ├── wrappers.pbenum.dart │ │ │ │ │ ├── wrappers.pbjson.dart │ │ │ │ │ └── wrappers.pbserver.dart │ │ │ ├── sdk │ │ │ │ └── options │ │ │ │ │ └── v1 │ │ │ │ │ ├── options.pb.dart │ │ │ │ │ ├── options.pbenum.dart │ │ │ │ │ └── options.pbjson.dart │ │ │ └── services │ │ │ │ ├── account │ │ │ │ └── v1 │ │ │ │ │ ├── account.pb.dart │ │ │ │ │ ├── account.pbenum.dart │ │ │ │ │ └── account.pbjson.dart │ │ │ │ ├── common │ │ │ │ └── v1 │ │ │ │ │ ├── common.pb.dart │ │ │ │ │ ├── common.pbenum.dart │ │ │ │ │ └── common.pbjson.dart │ │ │ │ ├── connect │ │ │ │ └── v1 │ │ │ │ │ ├── connect.pb.dart │ │ │ │ │ ├── connect.pbenum.dart │ │ │ │ │ ├── connect.pbgrpc.dart │ │ │ │ │ └── connect.pbjson.dart │ │ │ │ ├── file-management │ │ │ │ └── v1 │ │ │ │ │ ├── file-management.pb.dart │ │ │ │ │ ├── file-management.pbenum.dart │ │ │ │ │ ├── file-management.pbgrpc.dart │ │ │ │ │ └── file-management.pbjson.dart │ │ │ │ ├── google │ │ │ │ └── api │ │ │ │ │ ├── annotations.pb.dart │ │ │ │ │ ├── annotations.pbenum.dart │ │ │ │ │ ├── annotations.pbjson.dart │ │ │ │ │ ├── http.pb.dart │ │ │ │ │ ├── http.pbenum.dart │ │ │ │ │ └── http.pbjson.dart │ │ │ │ ├── options │ │ │ │ ├── field-options.pb.dart │ │ │ │ ├── field-options.pbenum.dart │ │ │ │ └── field-options.pbjson.dart │ │ │ │ ├── provider │ │ │ │ └── v1 │ │ │ │ │ ├── access-management.pb.dart │ │ │ │ │ ├── access-management.pbenum.dart │ │ │ │ │ ├── access-management.pbgrpc.dart │ │ │ │ │ ├── access-management.pbjson.dart │ │ │ │ │ ├── provider.pb.dart │ │ │ │ │ ├── provider.pbenum.dart │ │ │ │ │ ├── provider.pbgrpc.dart │ │ │ │ │ └── provider.pbjson.dart │ │ │ │ ├── trust-registry │ │ │ │ └── v1 │ │ │ │ │ ├── trust-registry.pb.dart │ │ │ │ │ ├── trust-registry.pbenum.dart │ │ │ │ │ ├── trust-registry.pbgrpc.dart │ │ │ │ │ └── trust-registry.pbjson.dart │ │ │ │ ├── universal-wallet │ │ │ │ └── v1 │ │ │ │ │ ├── universal-wallet.pb.dart │ │ │ │ │ ├── universal-wallet.pbenum.dart │ │ │ │ │ ├── universal-wallet.pbgrpc.dart │ │ │ │ │ └── universal-wallet.pbjson.dart │ │ │ │ └── verifiable-credentials │ │ │ │ ├── templates │ │ │ │ └── v1 │ │ │ │ │ ├── templates.pb.dart │ │ │ │ │ ├── templates.pbenum.dart │ │ │ │ │ ├── templates.pbgrpc.dart │ │ │ │ │ └── templates.pbjson.dart │ │ │ │ └── v1 │ │ │ │ ├── verifiable-credentials.pb.dart │ │ │ │ ├── verifiable-credentials.pbenum.dart │ │ │ │ ├── verifiable-credentials.pbgrpc.dart │ │ │ │ └── verifiable-credentials.pbjson.dart │ │ ├── provider_service.dart │ │ ├── service_base.dart │ │ ├── template_service.dart │ │ ├── trinsic_service.dart │ │ ├── trinsic_util.dart │ │ ├── trustregistry_service.dart │ │ └── wallet_service.dart │ ├── trinsic.dart │ └── trinsic_dart.dart ├── pubspec.yaml └── test │ └── dart_test.dart ├── devops ├── README.md ├── VersionParse.ps1 ├── build_sdks.py ├── generate_proto_files.py ├── requirements.txt ├── resources │ └── markdown.tmpl └── testdata │ ├── credential-template-frame.jsonld │ ├── vaccination-certificate-frame.jsonld │ └── vaccination-certificate-unsigned.jsonld ├── docs ├── CNAME ├── README.md ├── _static │ ├── bad-form.png │ ├── extra.css │ ├── images │ │ ├── 1-api-token.png │ │ ├── 2-trinsic-config.png │ │ ├── 3-trinsic-debug.png │ │ ├── buf-api-calls.png │ │ ├── buf-authorization.png │ │ ├── buf-info.png │ │ ├── buf-issue.png │ │ ├── buf-list.png │ │ ├── buf-search.png │ │ ├── connect-auth-token.png │ │ ├── connect-verifications-page.png │ │ ├── credential-details.png │ │ ├── flow-chapi-issuance.png │ │ ├── flow-chapi-verification.png │ │ ├── flow-oidc-verification.png │ │ ├── person-welcome.png │ │ ├── postman-api-calls.png │ │ ├── postman-authorization.png │ │ ├── postman-grpc.png │ │ ├── postman-info.png │ │ ├── postman-issue.png │ │ ├── postman-list.png │ │ ├── postman-search.png │ │ ├── trinsic-connect-flow.png │ │ ├── trust-triangle.png │ │ └── trusttriangle.png │ ├── javascripts │ │ ├── config.js │ │ ├── proto_functionality.js │ │ └── tab_sync.js │ ├── logo-title.svg │ ├── logo.png │ ├── named-triangle.png │ ├── proto.json │ ├── stack.png │ ├── trust-ecosystem-interop.jpg │ ├── trust-ecosystem.png │ └── trust-triangle.png ├── android │ └── index.md ├── cli │ ├── config.md │ ├── demo.md │ └── index.md ├── dart │ └── index.md ├── dotnet │ └── index.md ├── examples │ ├── cross-eco-issuance.md │ ├── idv-browser.md │ ├── idv-swift.md │ ├── index.md │ ├── issue-direct-send.md │ ├── issue-send-chapi.md │ ├── verify-cred-oidc.md │ └── verify-cred-swift.md ├── go │ └── index.md ├── guide │ ├── getting-started-trinsic-connect.md │ ├── issuance.md │ ├── platform-walkthrough.md │ └── verification.md ├── index.md ├── ios │ └── index.md ├── java │ └── index.md ├── learn │ ├── concepts │ │ ├── credential-templates.md │ │ ├── credentials.md │ │ ├── dids.md │ │ ├── ecosystems.md │ │ ├── json-ld.md │ │ ├── trust-registries.md │ │ ├── verifications.md │ │ └── wallets.md │ ├── index.md │ ├── platform │ │ ├── security.md │ │ └── standards.md │ └── resources │ │ ├── interactive-api.md │ │ ├── migrate-account.md │ │ └── migrate.md ├── node │ └── index.md ├── overrides │ └── main.html ├── platform │ ├── authentication.md │ ├── domain-verification.md │ └── ecosystem-branding.md ├── python │ └── index.md ├── reference │ ├── index.md │ ├── other │ │ └── openid.md │ ├── proto │ │ └── index.md │ └── services │ │ ├── account-service.md │ │ ├── connect-service.md │ │ ├── credential-service.md │ │ ├── file-management-service.md │ │ ├── provider-service.md │ │ ├── template-service.md │ │ ├── trust-registry-service.md │ │ └── wallet-service.md ├── requirements.txt ├── roadmap.md ├── support.md ├── walkthroughs │ └── vaccination.md └── web │ └── index.md ├── dotnet ├── .editorconfig ├── Directory.Build.props ├── README.md ├── Tests │ ├── FileManagementServiceTests.cs │ ├── HostTests.cs │ ├── Samples │ │ └── VaccineWalkthroughTests.cs │ ├── Tests.cs │ └── Tests.csproj ├── Trinsic │ ├── AccessManagementService.cs │ ├── ConnectService.cs │ ├── CredentialService.cs │ ├── Extensions │ │ ├── Base64Url.cs │ │ ├── MessageExtensions.cs │ │ ├── ServiceCollectionExtensions.cs │ │ └── ServiceOptionsExtensions.cs │ ├── FileManagementService.cs │ ├── ITrinsicService.cs │ ├── ProviderService.cs │ ├── ServiceBase.cs │ ├── TemplateService.cs │ ├── Trinsic.csproj │ ├── Trinsic.xml │ ├── TrinsicService.cs │ ├── TrustRegistryService.cs │ └── WalletService.cs ├── TrinsicSdk.sln └── global.json ├── examples ├── cross-eco-issuance │ ├── README.md │ ├── index.ts │ ├── package-lock.json │ └── package.json ├── ecosystem-transfer │ ├── main.py │ └── requirements.txt ├── idv-browser │ ├── README.md │ ├── index.html │ ├── index.js │ ├── package-lock.json │ └── package.json ├── issue-direct-send │ ├── README.md │ ├── index.js │ ├── package-lock.json │ └── package.json ├── issue-send-chapi │ ├── README.md │ ├── index.html │ ├── index.js │ ├── package-lock.json │ └── package.json └── verify-cred-oidc │ ├── README.md │ ├── index.html │ ├── index.js │ ├── package-lock.json │ └── package.json ├── go ├── README.md ├── examples │ └── vaccine_test.go ├── go.mod ├── go.sum ├── proto │ ├── google.golang.org │ │ └── genproto │ │ │ └── googleapis │ │ │ └── api │ │ │ └── annotations │ │ │ ├── annotations.pb.go │ │ │ └── http.pb.go │ ├── sdk │ │ └── options │ │ │ └── v1 │ │ │ └── options │ │ │ └── options.pb.go │ └── services │ │ ├── account │ │ └── v1 │ │ │ └── account │ │ │ └── account.pb.go │ │ ├── common │ │ └── v1 │ │ │ └── common │ │ │ └── common.pb.go │ │ ├── connect │ │ └── v1 │ │ │ └── connect │ │ │ ├── connect.pb.go │ │ │ └── connect_grpc.pb.go │ │ ├── filemanagement │ │ └── v1 │ │ │ └── filemanagement │ │ │ ├── file-management.pb.go │ │ │ └── file-management_grpc.pb.go │ │ ├── options │ │ └── field-options.pb.go │ │ ├── provider │ │ └── v1 │ │ │ └── provider │ │ │ ├── access-management.pb.go │ │ │ ├── access-management_grpc.pb.go │ │ │ ├── provider.pb.go │ │ │ └── provider_grpc.pb.go │ │ ├── trustregistry │ │ └── v1 │ │ │ └── trustregistry │ │ │ ├── trust-registry.pb.go │ │ │ └── trust-registry_grpc.pb.go │ │ ├── universalwallet │ │ └── v1 │ │ │ └── wallet │ │ │ ├── universal-wallet.pb.go │ │ │ └── universal-wallet_grpc.pb.go │ │ └── verifiablecredentials │ │ ├── templates │ │ └── v1 │ │ │ └── template │ │ │ ├── templates.pb.go │ │ │ └── templates_grpc.pb.go │ │ └── v1 │ │ └── credential │ │ ├── verifiable-credentials.pb.go │ │ └── verifiable-credentials_grpc.pb.go └── services │ ├── README.md │ ├── access_management_service.go │ ├── connect_service.go │ ├── credential_service.go │ ├── credential_service_test.go │ ├── file_management_service.go │ ├── file_management_service_test.go │ ├── loadcerts.go │ ├── loadcerts_windows.go │ ├── provider_service.go │ ├── provider_service_test.go │ ├── service_base.go │ ├── service_base_test.go │ ├── services.go │ ├── services_test.go │ ├── template_service.go │ ├── template_service_test.go │ ├── trinsic_service.go │ ├── trustregistry_service.go │ ├── wallet_service.go │ └── wallet_service_test.go ├── java ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle └── src │ ├── main │ └── java │ │ ├── com │ │ └── google │ │ │ └── api │ │ │ ├── AnnotationsProto.java │ │ │ ├── CustomHttpPattern.java │ │ │ ├── CustomHttpPatternOrBuilder.java │ │ │ ├── Http.java │ │ │ ├── HttpOrBuilder.java │ │ │ ├── HttpProto.java │ │ │ ├── HttpRule.java │ │ │ └── HttpRuleOrBuilder.java │ │ └── trinsic │ │ ├── GrpcException.java │ │ ├── TrinsicUtilities.java │ │ ├── sdk │ │ └── options │ │ │ └── v1 │ │ │ └── Options.java │ │ ├── services │ │ ├── AccessManagementService.java │ │ ├── AccessManagementServiceKt.kt │ │ ├── ConnectService.java │ │ ├── ConnectServiceKt.kt │ │ ├── CredentialService.java │ │ ├── CredentialServiceKt.kt │ │ ├── FileManagementService.java │ │ ├── FileManagementServiceKt.kt │ │ ├── ProviderService.java │ │ ├── ProviderServiceKt.kt │ │ ├── ServiceBase.java │ │ ├── TemplateService.java │ │ ├── TemplateServiceKt.kt │ │ ├── TrinsicService.java │ │ ├── TrinsicServiceKt.kt │ │ ├── TrustRegistryService.java │ │ ├── TrustRegistryServiceKt.kt │ │ ├── WalletService.java │ │ ├── WalletServiceKt.kt │ │ ├── account │ │ │ └── v1 │ │ │ │ ├── Account.java │ │ │ │ ├── AccountDetails.java │ │ │ │ ├── AccountDetailsOrBuilder.java │ │ │ │ ├── AccountProfile.java │ │ │ │ ├── AccountProfileOrBuilder.java │ │ │ │ ├── ConfirmationMethod.java │ │ │ │ ├── TokenProtection.java │ │ │ │ ├── TokenProtectionOrBuilder.java │ │ │ │ ├── WalletAuthToken.java │ │ │ │ └── WalletAuthTokenOrBuilder.java │ │ ├── common │ │ │ └── v1 │ │ │ │ ├── Common.java │ │ │ │ ├── Nonce.java │ │ │ │ ├── NonceOrBuilder.java │ │ │ │ ├── OrderDirection.java │ │ │ │ ├── ResponseStatus.java │ │ │ │ ├── SupportedDidMethod.java │ │ │ │ ├── TrinsicClientOptions.java │ │ │ │ └── TrinsicClientOptionsOrBuilder.java │ │ ├── connect │ │ │ └── v1 │ │ │ │ ├── CancelSessionRequest.java │ │ │ │ ├── CancelSessionRequestOrBuilder.java │ │ │ │ ├── CancelSessionResponse.java │ │ │ │ ├── CancelSessionResponseOrBuilder.java │ │ │ │ ├── ConnectGrpc.java │ │ │ │ ├── ConnectOuterClass.java │ │ │ │ ├── ConnectOuterClassGrpcKt.kt │ │ │ │ ├── CreateSessionRequest.java │ │ │ │ ├── CreateSessionRequestOrBuilder.java │ │ │ │ ├── CreateSessionResponse.java │ │ │ │ ├── CreateSessionResponseOrBuilder.java │ │ │ │ ├── CredentialRequestData.java │ │ │ │ ├── CredentialRequestDataOrBuilder.java │ │ │ │ ├── DemoRelyingParty.java │ │ │ │ ├── DemoRelyingPartyOrBuilder.java │ │ │ │ ├── GetSessionRequest.java │ │ │ │ ├── GetSessionRequestOrBuilder.java │ │ │ │ ├── GetSessionResponse.java │ │ │ │ ├── GetSessionResponseOrBuilder.java │ │ │ │ ├── GovernmentIDFields.java │ │ │ │ ├── GovernmentIDFieldsOrBuilder.java │ │ │ │ ├── GovernmentIDOptions.java │ │ │ │ ├── GovernmentIDOptionsOrBuilder.java │ │ │ │ ├── HasValidCredentialRequest.java │ │ │ │ ├── HasValidCredentialRequestOrBuilder.java │ │ │ │ ├── HasValidCredentialResponse.java │ │ │ │ ├── HasValidCredentialResponseOrBuilder.java │ │ │ │ ├── IDVSession.java │ │ │ │ ├── IDVSessionOrBuilder.java │ │ │ │ ├── IDVSessionState.java │ │ │ │ ├── ListSessionsRequest.java │ │ │ │ ├── ListSessionsRequestOrBuilder.java │ │ │ │ ├── ListSessionsResponse.java │ │ │ │ ├── ListSessionsResponseOrBuilder.java │ │ │ │ ├── NormalizedGovernmentIdData.java │ │ │ │ ├── NormalizedGovernmentIdDataOrBuilder.java │ │ │ │ ├── RequestedVerification.java │ │ │ │ ├── RequestedVerificationOrBuilder.java │ │ │ │ ├── SessionFailCode.java │ │ │ │ ├── SessionOrdering.java │ │ │ │ ├── Verification.java │ │ │ │ ├── VerificationFailCode.java │ │ │ │ ├── VerificationOrBuilder.java │ │ │ │ ├── VerificationState.java │ │ │ │ └── VerificationType.java │ │ ├── filemanagement │ │ │ └── v1 │ │ │ │ ├── DeleteFileRequest.java │ │ │ │ ├── DeleteFileRequestOrBuilder.java │ │ │ │ ├── DeleteFileResponse.java │ │ │ │ ├── DeleteFileResponseOrBuilder.java │ │ │ │ ├── File.java │ │ │ │ ├── FileManagementGrpc.java │ │ │ │ ├── FileManagementOuterClass.java │ │ │ │ ├── FileManagementOuterClassGrpcKt.kt │ │ │ │ ├── FileOrBuilder.java │ │ │ │ ├── GetFileRequest.java │ │ │ │ ├── GetFileRequestOrBuilder.java │ │ │ │ ├── GetFileResponse.java │ │ │ │ ├── GetFileResponseOrBuilder.java │ │ │ │ ├── GetStorageStatsRequest.java │ │ │ │ ├── GetStorageStatsRequestOrBuilder.java │ │ │ │ ├── GetStorageStatsResponse.java │ │ │ │ ├── GetStorageStatsResponseOrBuilder.java │ │ │ │ ├── ListFilesRequest.java │ │ │ │ ├── ListFilesRequestOrBuilder.java │ │ │ │ ├── ListFilesResponse.java │ │ │ │ ├── ListFilesResponseOrBuilder.java │ │ │ │ ├── StorageStats.java │ │ │ │ ├── StorageStatsOrBuilder.java │ │ │ │ ├── UploadFileRequest.java │ │ │ │ ├── UploadFileRequestOrBuilder.java │ │ │ │ ├── UploadFileResponse.java │ │ │ │ └── UploadFileResponseOrBuilder.java │ │ ├── protobuf │ │ │ └── options │ │ │ │ ├── AnnotationOption.java │ │ │ │ ├── AnnotationOptionOrBuilder.java │ │ │ │ ├── FieldOptions.java │ │ │ │ ├── SdkTemplateOption.java │ │ │ │ └── SdkTemplateOptionOrBuilder.java │ │ ├── provider │ │ │ └── v1 │ │ │ │ ├── AccessManagementGrpc.java │ │ │ │ ├── AccessManagementOuterClass.java │ │ │ │ ├── AccessManagementOuterClassGrpcKt.kt │ │ │ │ ├── AddRoleAssignmentRequest.java │ │ │ │ ├── AddRoleAssignmentRequestOrBuilder.java │ │ │ │ ├── AddRoleAssignmentResponse.java │ │ │ │ ├── AddRoleAssignmentResponseOrBuilder.java │ │ │ │ ├── CreateEcosystemRequest.java │ │ │ │ ├── CreateEcosystemRequestOrBuilder.java │ │ │ │ ├── CreateEcosystemResponse.java │ │ │ │ ├── CreateEcosystemResponseOrBuilder.java │ │ │ │ ├── Ecosystem.java │ │ │ │ ├── EcosystemInfoRequest.java │ │ │ │ ├── EcosystemInfoRequestOrBuilder.java │ │ │ │ ├── EcosystemInfoResponse.java │ │ │ │ ├── EcosystemInfoResponseOrBuilder.java │ │ │ │ ├── EcosystemOrBuilder.java │ │ │ │ ├── GetOberonKeyRequest.java │ │ │ │ ├── GetOberonKeyRequestOrBuilder.java │ │ │ │ ├── GetOberonKeyResponse.java │ │ │ │ ├── GetOberonKeyResponseOrBuilder.java │ │ │ │ ├── IdentityProvider.java │ │ │ │ ├── IndyOptions.java │ │ │ │ ├── IndyOptionsOrBuilder.java │ │ │ │ ├── IonOptions.java │ │ │ │ ├── IonOptionsOrBuilder.java │ │ │ │ ├── ListAvailableRolesRequest.java │ │ │ │ ├── ListAvailableRolesRequestOrBuilder.java │ │ │ │ ├── ListAvailableRolesResponse.java │ │ │ │ ├── ListAvailableRolesResponseOrBuilder.java │ │ │ │ ├── ListRoleAssignmentsRequest.java │ │ │ │ ├── ListRoleAssignmentsRequestOrBuilder.java │ │ │ │ ├── ListRoleAssignmentsResponse.java │ │ │ │ ├── ListRoleAssignmentsResponseOrBuilder.java │ │ │ │ ├── ProviderGrpc.java │ │ │ │ ├── ProviderOuterClass.java │ │ │ │ ├── ProviderOuterClassGrpcKt.kt │ │ │ │ ├── RemoveRoleAssignmentRequest.java │ │ │ │ ├── RemoveRoleAssignmentRequestOrBuilder.java │ │ │ │ ├── RemoveRoleAssignmentResponse.java │ │ │ │ ├── RemoveRoleAssignmentResponseOrBuilder.java │ │ │ │ ├── SearchWalletConfigurationResponse.java │ │ │ │ ├── SearchWalletConfigurationResponseOrBuilder.java │ │ │ │ ├── SearchWalletConfigurationsRequest.java │ │ │ │ ├── SearchWalletConfigurationsRequestOrBuilder.java │ │ │ │ ├── UpgradeDidRequest.java │ │ │ │ ├── UpgradeDidRequestOrBuilder.java │ │ │ │ ├── UpgradeDidResponse.java │ │ │ │ ├── UpgradeDidResponseOrBuilder.java │ │ │ │ ├── WalletConfiguration.java │ │ │ │ ├── WalletConfigurationOrBuilder.java │ │ │ │ ├── WalletExternalIdentity.java │ │ │ │ └── WalletExternalIdentityOrBuilder.java │ │ ├── trustregistry │ │ │ └── v1 │ │ │ │ ├── AuthorizedMember.java │ │ │ │ ├── AuthorizedMemberOrBuilder.java │ │ │ │ ├── AuthorizedMemberSchema.java │ │ │ │ ├── AuthorizedMemberSchemaOrBuilder.java │ │ │ │ ├── GetMemberAuthorizationStatusRequest.java │ │ │ │ ├── GetMemberAuthorizationStatusRequestOrBuilder.java │ │ │ │ ├── GetMemberAuthorizationStatusResponse.java │ │ │ │ ├── GetMemberAuthorizationStatusResponseOrBuilder.java │ │ │ │ ├── GetMemberRequest.java │ │ │ │ ├── GetMemberRequestOrBuilder.java │ │ │ │ ├── GetMemberResponse.java │ │ │ │ ├── GetMemberResponseOrBuilder.java │ │ │ │ ├── ListAuthorizedMembersRequest.java │ │ │ │ ├── ListAuthorizedMembersRequestOrBuilder.java │ │ │ │ ├── ListAuthorizedMembersResponse.java │ │ │ │ ├── ListAuthorizedMembersResponseOrBuilder.java │ │ │ │ ├── RegisterMemberRequest.java │ │ │ │ ├── RegisterMemberRequestOrBuilder.java │ │ │ │ ├── RegisterMemberResponse.java │ │ │ │ ├── RegisterMemberResponseOrBuilder.java │ │ │ │ ├── RegistrationStatus.java │ │ │ │ ├── TrustRegistryGrpc.java │ │ │ │ ├── TrustRegistryOuterClass.java │ │ │ │ ├── TrustRegistryOuterClassGrpcKt.kt │ │ │ │ ├── UnregisterMemberRequest.java │ │ │ │ ├── UnregisterMemberRequestOrBuilder.java │ │ │ │ ├── UnregisterMemberResponse.java │ │ │ │ └── UnregisterMemberResponseOrBuilder.java │ │ ├── universalwallet │ │ │ └── v1 │ │ │ │ ├── AddExternalIdentityConfirmRequest.java │ │ │ │ ├── AddExternalIdentityConfirmRequestOrBuilder.java │ │ │ │ ├── AddExternalIdentityConfirmResponse.java │ │ │ │ ├── AddExternalIdentityConfirmResponseOrBuilder.java │ │ │ │ ├── AddExternalIdentityInitRequest.java │ │ │ │ ├── AddExternalIdentityInitRequestOrBuilder.java │ │ │ │ ├── AddExternalIdentityInitResponse.java │ │ │ │ ├── AddExternalIdentityInitResponseOrBuilder.java │ │ │ │ ├── AuthenticateConfirmRequest.java │ │ │ │ ├── AuthenticateConfirmRequestOrBuilder.java │ │ │ │ ├── AuthenticateConfirmResponse.java │ │ │ │ ├── AuthenticateConfirmResponseOrBuilder.java │ │ │ │ ├── AuthenticateInitRequest.java │ │ │ │ ├── AuthenticateInitRequestOrBuilder.java │ │ │ │ ├── AuthenticateInitResponse.java │ │ │ │ ├── AuthenticateInitResponseOrBuilder.java │ │ │ │ ├── AuthenticateResendCodeRequest.java │ │ │ │ ├── AuthenticateResendCodeRequestOrBuilder.java │ │ │ │ ├── AuthenticateResendCodeResponse.java │ │ │ │ ├── AuthenticateResendCodeResponseOrBuilder.java │ │ │ │ ├── CreateWalletRequest.java │ │ │ │ ├── CreateWalletRequestOrBuilder.java │ │ │ │ ├── CreateWalletResponse.java │ │ │ │ ├── CreateWalletResponseOrBuilder.java │ │ │ │ ├── DeleteItemRequest.java │ │ │ │ ├── DeleteItemRequestOrBuilder.java │ │ │ │ ├── DeleteItemResponse.java │ │ │ │ ├── DeleteItemResponseOrBuilder.java │ │ │ │ ├── DeleteWalletRequest.java │ │ │ │ ├── DeleteWalletRequestOrBuilder.java │ │ │ │ ├── DeleteWalletResponse.java │ │ │ │ ├── DeleteWalletResponseOrBuilder.java │ │ │ │ ├── GenerateAuthTokenRequest.java │ │ │ │ ├── GenerateAuthTokenRequestOrBuilder.java │ │ │ │ ├── GenerateAuthTokenResponse.java │ │ │ │ ├── GenerateAuthTokenResponseOrBuilder.java │ │ │ │ ├── GetItemRequest.java │ │ │ │ ├── GetItemRequestOrBuilder.java │ │ │ │ ├── GetItemResponse.java │ │ │ │ ├── GetItemResponseOrBuilder.java │ │ │ │ ├── GetMyInfoRequest.java │ │ │ │ ├── GetMyInfoRequestOrBuilder.java │ │ │ │ ├── GetMyInfoResponse.java │ │ │ │ ├── GetMyInfoResponseOrBuilder.java │ │ │ │ ├── GetWalletFromExternalIdentityRequest.java │ │ │ │ ├── GetWalletFromExternalIdentityRequestOrBuilder.java │ │ │ │ ├── GetWalletFromExternalIdentityResponse.java │ │ │ │ ├── GetWalletFromExternalIdentityResponseOrBuilder.java │ │ │ │ ├── GetWalletInfoRequest.java │ │ │ │ ├── GetWalletInfoRequestOrBuilder.java │ │ │ │ ├── GetWalletInfoResponse.java │ │ │ │ ├── GetWalletInfoResponseOrBuilder.java │ │ │ │ ├── InsertItemRequest.java │ │ │ │ ├── InsertItemRequestOrBuilder.java │ │ │ │ ├── InsertItemResponse.java │ │ │ │ ├── InsertItemResponseOrBuilder.java │ │ │ │ ├── ListByVerificationTemplateRequest.java │ │ │ │ ├── ListByVerificationTemplateRequestOrBuilder.java │ │ │ │ ├── ListByVerificationTemplateResponse.java │ │ │ │ ├── ListByVerificationTemplateResponseOrBuilder.java │ │ │ │ ├── ListWalletsRequest.java │ │ │ │ ├── ListWalletsRequestOrBuilder.java │ │ │ │ ├── ListWalletsResponse.java │ │ │ │ ├── ListWalletsResponseOrBuilder.java │ │ │ │ ├── RemoveExternalIdentityRequest.java │ │ │ │ ├── RemoveExternalIdentityRequestOrBuilder.java │ │ │ │ ├── RemoveExternalIdentityResponse.java │ │ │ │ ├── RemoveExternalIdentityResponseOrBuilder.java │ │ │ │ ├── RevokeAuthTokenRequest.java │ │ │ │ ├── RevokeAuthTokenRequestOrBuilder.java │ │ │ │ ├── RevokeAuthTokenResponse.java │ │ │ │ ├── RevokeAuthTokenResponseOrBuilder.java │ │ │ │ ├── SearchRequest.java │ │ │ │ ├── SearchRequestOrBuilder.java │ │ │ │ ├── SearchResponse.java │ │ │ │ ├── SearchResponseOrBuilder.java │ │ │ │ ├── UniversalWalletGrpc.java │ │ │ │ ├── UniversalWalletOuterClass.java │ │ │ │ ├── UniversalWalletOuterClassGrpcKt.kt │ │ │ │ ├── UpdateItemRequest.java │ │ │ │ ├── UpdateItemRequestOrBuilder.java │ │ │ │ ├── UpdateItemResponse.java │ │ │ │ └── UpdateItemResponseOrBuilder.java │ │ └── verifiablecredentials │ │ │ ├── templates │ │ │ └── v1 │ │ │ │ ├── AppleWalletOptions.java │ │ │ │ ├── AppleWalletOptionsOrBuilder.java │ │ │ │ ├── CreateCredentialTemplateRequest.java │ │ │ │ ├── CreateCredentialTemplateRequestOrBuilder.java │ │ │ │ ├── CreateCredentialTemplateResponse.java │ │ │ │ ├── CreateCredentialTemplateResponseOrBuilder.java │ │ │ │ ├── CreateVerificationTemplateRequest.java │ │ │ │ ├── CreateVerificationTemplateRequestOrBuilder.java │ │ │ │ ├── CreateVerificationTemplateResponse.java │ │ │ │ ├── CreateVerificationTemplateResponseOrBuilder.java │ │ │ │ ├── CredentialTemplatesGrpc.java │ │ │ │ ├── DeleteCredentialTemplateRequest.java │ │ │ │ ├── DeleteCredentialTemplateRequestOrBuilder.java │ │ │ │ ├── DeleteCredentialTemplateResponse.java │ │ │ │ ├── DeleteCredentialTemplateResponseOrBuilder.java │ │ │ │ ├── DeleteVerificationTemplateRequest.java │ │ │ │ ├── DeleteVerificationTemplateRequestOrBuilder.java │ │ │ │ ├── DeleteVerificationTemplateResponse.java │ │ │ │ ├── DeleteVerificationTemplateResponseOrBuilder.java │ │ │ │ ├── FieldOrdering.java │ │ │ │ ├── FieldOrderingOrBuilder.java │ │ │ │ ├── FieldType.java │ │ │ │ ├── GetCredentialTemplateRequest.java │ │ │ │ ├── GetCredentialTemplateRequestOrBuilder.java │ │ │ │ ├── GetCredentialTemplateResponse.java │ │ │ │ ├── GetCredentialTemplateResponseOrBuilder.java │ │ │ │ ├── GetVerificationTemplateRequest.java │ │ │ │ ├── GetVerificationTemplateRequestOrBuilder.java │ │ │ │ ├── GetVerificationTemplateResponse.java │ │ │ │ ├── GetVerificationTemplateResponseOrBuilder.java │ │ │ │ ├── ListCredentialTemplatesRequest.java │ │ │ │ ├── ListCredentialTemplatesRequestOrBuilder.java │ │ │ │ ├── ListCredentialTemplatesResponse.java │ │ │ │ ├── ListCredentialTemplatesResponseOrBuilder.java │ │ │ │ ├── ListVerificationTemplatesRequest.java │ │ │ │ ├── ListVerificationTemplatesRequestOrBuilder.java │ │ │ │ ├── ListVerificationTemplatesResponse.java │ │ │ │ ├── ListVerificationTemplatesResponseOrBuilder.java │ │ │ │ ├── SearchCredentialTemplatesRequest.java │ │ │ │ ├── SearchCredentialTemplatesRequestOrBuilder.java │ │ │ │ ├── SearchCredentialTemplatesResponse.java │ │ │ │ ├── SearchCredentialTemplatesResponseOrBuilder.java │ │ │ │ ├── TemplateData.java │ │ │ │ ├── TemplateDataOrBuilder.java │ │ │ │ ├── TemplateField.java │ │ │ │ ├── TemplateFieldOrBuilder.java │ │ │ │ ├── TemplateFieldPatch.java │ │ │ │ ├── TemplateFieldPatchOrBuilder.java │ │ │ │ ├── Templates.java │ │ │ │ ├── TemplatesGrpcKt.kt │ │ │ │ ├── UpdateCredentialTemplateRequest.java │ │ │ │ ├── UpdateCredentialTemplateRequestOrBuilder.java │ │ │ │ ├── UpdateCredentialTemplateResponse.java │ │ │ │ ├── UpdateCredentialTemplateResponseOrBuilder.java │ │ │ │ ├── UpdateVerificationTemplateRequest.java │ │ │ │ ├── UpdateVerificationTemplateRequestOrBuilder.java │ │ │ │ ├── UpdateVerificationTemplateResponse.java │ │ │ │ ├── UpdateVerificationTemplateResponseOrBuilder.java │ │ │ │ ├── UriFieldData.java │ │ │ │ ├── UriFieldDataOrBuilder.java │ │ │ │ ├── UriRenderMethod.java │ │ │ │ ├── VerificationShareType.java │ │ │ │ ├── VerificationTemplateData.java │ │ │ │ ├── VerificationTemplateDataOrBuilder.java │ │ │ │ ├── VerificationTemplateField.java │ │ │ │ ├── VerificationTemplateFieldOrBuilder.java │ │ │ │ ├── VerificationTemplateFieldPatch.java │ │ │ │ └── VerificationTemplateFieldPatchOrBuilder.java │ │ │ └── v1 │ │ │ ├── AcceptCredentialRequest.java │ │ │ ├── AcceptCredentialRequestOrBuilder.java │ │ │ ├── AcceptCredentialResponse.java │ │ │ ├── AcceptCredentialResponseOrBuilder.java │ │ │ ├── CheckStatusRequest.java │ │ │ ├── CheckStatusRequestOrBuilder.java │ │ │ ├── CheckStatusResponse.java │ │ │ ├── CheckStatusResponseOrBuilder.java │ │ │ ├── CreateCredentialOfferRequest.java │ │ │ ├── CreateCredentialOfferRequestOrBuilder.java │ │ │ ├── CreateCredentialOfferResponse.java │ │ │ ├── CreateCredentialOfferResponseOrBuilder.java │ │ │ ├── CreateProofRequest.java │ │ │ ├── CreateProofRequestOrBuilder.java │ │ │ ├── CreateProofResponse.java │ │ │ ├── CreateProofResponseOrBuilder.java │ │ │ ├── IssueFromTemplateRequest.java │ │ │ ├── IssueFromTemplateRequestOrBuilder.java │ │ │ ├── IssueFromTemplateResponse.java │ │ │ ├── IssueFromTemplateResponseOrBuilder.java │ │ │ ├── RejectCredentialRequest.java │ │ │ ├── RejectCredentialRequestOrBuilder.java │ │ │ ├── RejectCredentialResponse.java │ │ │ ├── RejectCredentialResponseOrBuilder.java │ │ │ ├── RevealTemplateAttributes.java │ │ │ ├── RevealTemplateAttributesOrBuilder.java │ │ │ ├── SendRequest.java │ │ │ ├── SendRequestOrBuilder.java │ │ │ ├── SendResponse.java │ │ │ ├── SendResponseOrBuilder.java │ │ │ ├── SignatureType.java │ │ │ ├── UpdateStatusRequest.java │ │ │ ├── UpdateStatusRequestOrBuilder.java │ │ │ ├── UpdateStatusResponse.java │ │ │ ├── UpdateStatusResponseOrBuilder.java │ │ │ ├── ValidationMessage.java │ │ │ ├── ValidationMessageOrBuilder.java │ │ │ ├── VerifiableCredentialGrpc.java │ │ │ ├── VerifiableCredentials.java │ │ │ ├── VerifiableCredentialsGrpcKt.kt │ │ │ ├── VerifyProofRequest.java │ │ │ ├── VerifyProofRequestOrBuilder.java │ │ │ ├── VerifyProofResponse.java │ │ │ └── VerifyProofResponseOrBuilder.java │ │ └── storage │ │ ├── ITokenProvider.java │ │ └── MemoryTokenProvider.java │ └── test │ └── java │ └── trinsic │ ├── CredentialsDemo.java │ ├── EcosystemsDemo.java │ ├── EcosystemsDemoKt.kt │ ├── FileManagementDemo.java │ ├── GrpcExceptionTest.java │ ├── KotlinTestKt.kt │ ├── ProviderServiceTest.java │ ├── TemplatesDemo.java │ ├── TrinsicServicesTest.java │ ├── TrustRegistryDemo.java │ ├── TrustRegistryDemoKt.kt │ ├── VaccineDemo.java │ ├── VaccineDemoKt.kt │ └── WalletsDemo.java ├── libs └── README.md ├── mkdocs.yml ├── mkdocs_macros_main.py ├── package-lock.json ├── package.json ├── proto ├── README.md ├── buf.lock ├── buf.md ├── buf.yaml ├── sdk │ └── options │ │ └── v1 │ │ └── options.proto └── services │ ├── account │ └── v1 │ │ └── account.proto │ ├── common │ └── v1 │ │ └── common.proto │ ├── connect │ └── v1 │ │ └── connect.proto │ ├── file-management │ └── v1 │ │ └── file-management.proto │ ├── google │ └── api │ │ ├── annotations.proto │ │ └── http.proto │ ├── options │ └── field-options.proto │ ├── provider │ └── v1 │ │ ├── access-management.proto │ │ └── provider.proto │ ├── trust-registry │ └── v1 │ │ └── trust-registry.proto │ ├── universal-wallet │ └── v1 │ │ └── universal-wallet.proto │ └── verifiable-credentials │ ├── templates │ └── v1 │ │ └── templates.proto │ └── v1 │ └── verifiable-credentials.proto ├── python ├── README.md ├── pyproject.toml ├── requirements.txt ├── samples │ ├── account_demo.py │ ├── credential_demo.py │ ├── ecosystem_demo.py │ ├── file_management_demo.py │ ├── login_confirm_demo.py │ ├── provider_demo.py │ ├── templates_demo.py │ ├── trustregistry_demo.py │ ├── vaccine_demo.py │ └── wallet_demo.py ├── setup.cfg ├── tests │ ├── __init__.py │ └── test_trinsic_services.py └── trinsic │ ├── __init__.py │ ├── __main__.py │ ├── access_management_service.py │ ├── connect_service.py │ ├── credential_service.py │ ├── file_management_service.py │ ├── proto │ ├── __init__.py │ ├── google │ │ ├── __init__.py │ │ └── api │ │ │ └── __init__.py │ ├── sdk │ │ ├── __init__.py │ │ └── options │ │ │ ├── __init__.py │ │ │ └── v1 │ │ │ └── __init__.py │ └── services │ │ ├── __init__.py │ │ ├── account │ │ ├── __init__.py │ │ └── v1 │ │ │ └── __init__.py │ │ ├── common │ │ ├── __init__.py │ │ └── v1 │ │ │ └── __init__.py │ │ ├── connect │ │ ├── __init__.py │ │ └── v1 │ │ │ └── __init__.py │ │ ├── filemanagement │ │ ├── __init__.py │ │ └── v1 │ │ │ └── __init__.py │ │ ├── options │ │ └── __init__.py │ │ ├── provider │ │ ├── __init__.py │ │ └── v1 │ │ │ └── __init__.py │ │ ├── trustregistry │ │ ├── __init__.py │ │ └── v1 │ │ │ └── __init__.py │ │ ├── universalwallet │ │ ├── __init__.py │ │ └── v1 │ │ │ └── __init__.py │ │ └── verifiablecredentials │ │ ├── __init__.py │ │ ├── templates │ │ ├── __init__.py │ │ └── v1 │ │ │ └── __init__.py │ │ └── v1 │ │ └── __init__.py │ ├── provider_service.py │ ├── service_base.py │ ├── template_service.py │ ├── trinsic_service.py │ ├── trinsic_util.py │ ├── trustregistry_service.py │ └── wallet_service.py └── web ├── .config ├── babel.config.js ├── jest.config.cjs ├── karma.conf.cjs ├── karma.grpc-web.conf.cjs └── package.json ├── .gitignore ├── .npmrc ├── Generate-Proto.ps1 ├── README.md ├── index.ts ├── package-lock.json ├── package.json ├── spec └── support │ └── jasmine-browser.json ├── src ├── AccessManagementService.ts ├── ConnectClient.ts ├── ConnectService.ts ├── CredentialService.ts ├── FetchReactNativeTransport.ts ├── FileManagementService.ts ├── ProviderService.ts ├── ServiceBase.ts ├── TemplateService.ts ├── TrinsicService.ts ├── TrustRegistryService.ts ├── Version.ts ├── WalletService.ts ├── XHRTransport.ts ├── index.ts ├── proto │ ├── google │ │ ├── index.d.ts │ │ └── protobuf │ │ │ ├── descriptor.ts │ │ │ └── empty.ts │ ├── index.d.ts │ ├── index.ts │ ├── sdk │ │ ├── index.d.ts │ │ └── options │ │ │ └── v1 │ │ │ └── options.ts │ └── services │ │ ├── account │ │ └── v1 │ │ │ └── account.ts │ │ ├── common │ │ └── v1 │ │ │ └── common.ts │ │ ├── connect │ │ └── v1 │ │ │ └── connect.ts │ │ ├── debug │ │ └── v1 │ │ │ └── debug.ts │ │ ├── event │ │ └── v1 │ │ │ └── event.ts │ │ ├── file-management │ │ └── v1 │ │ │ └── file-management.ts │ │ ├── google │ │ └── api │ │ │ ├── annotations.ts │ │ │ └── http.ts │ │ ├── index.d.ts │ │ ├── options │ │ ├── field-options.ts │ │ └── options.ts │ │ ├── provider │ │ └── v1 │ │ │ ├── access-management.ts │ │ │ └── provider.ts │ │ ├── trust-registry │ │ └── v1 │ │ │ └── trust-registry.ts │ │ ├── universal-wallet │ │ └── v1 │ │ │ └── universal-wallet.ts │ │ └── verifiable-credentials │ │ ├── templates │ │ └── v1 │ │ │ └── templates.ts │ │ └── v1 │ │ └── verifiable-credentials.ts └── providers.ts ├── test ├── CredentialService.test.ts ├── CredentialTemplateShared.ts ├── CredentialTemplates.test.ts ├── FileManagementService.test._ts ├── ProviderService.test.ts ├── TrustRegistry.test.ts ├── VaccineDemo.test.ts ├── VaccineDemoShared.ts ├── WalletService.test.ts ├── data │ ├── credential-template-frame.json │ ├── vaccination-certificate-frame.json │ └── vaccination-certificate-unsigned.json ├── env.ts └── helpers │ └── jasmine-helper.ts ├── tsconfig.json ├── vite.config.ts └── webpack.config.js /.github/ISSUE_TEMPLATE/bug-report.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug Report 3 | description: Reporting bugs found in production, staging, other environments for trinsic services v2 4 | title: Bug Report 5 | labels: 'bug' 6 | assignees: chiarapaskulin fundthmcalculus 7 | body: 8 | - type: textarea 9 | id: repro-steps 10 | attributes: 11 | label: Reproduction steps 12 | value: | 13 | 1. Step 1 14 | 2. Step 2 15 | 3. ... 16 | - type: textarea 17 | id: repro-code 18 | attributes: 19 | label: Reproduction Code 20 | value: 21 | --- 22 | 23 | # Description / Reproduction steps 24 | 25 | Describe the bug you experienced, and the steps to reproduce it, if any. 26 | - [ ] Step 1 27 | - [ ] Step 2 ... 28 | 29 | # Sample Code 30 | 31 | Sample code is always helpful, but bear in mind this is a public repository (don't post any sensitive information!). 32 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/sdk-change.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: SDK Change 3 | about: Changes to the SDK language bindings, as well as any relevant documentation 4 | title: '' 5 | labels: '' 6 | assignees: fundthmcalculus geel9 7 | 8 | --- 9 | 10 | *** TODO: Describe changes *** 11 | 12 | Languages: 13 | - [ ] CLI 14 | - [ ] Docs 15 | - [ ] .NET 16 | - [ ] Dart 17 | - [ ] Go 18 | - [ ] Java 19 | - [ ] Python 20 | - [ ] Swift 21 | - [ ] Typescript 22 | -------------------------------------------------------------------------------- /.github/MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | # Workflow Guidelines 2 | 3 | ## Workflow Structure 4 | 5 | ## Release Process 6 | -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "branchPrefix": "mewmba/renovate/", 4 | "gitAuthor": "mewmba Renovate Bot ", 5 | "repositories": ["trinsic-id/sdk"], 6 | "additionalBranchPrefix": "{{manager}}-", 7 | "groupName": "all {{manager}} dependencies", 8 | "groupSlug": "all", 9 | "assignees": ["fundthmcalculus"], 10 | "reviewers": ["fundthmcalculus"], 11 | "prHourlyLimit": 0, 12 | "packageRules": [ 13 | { 14 | "matchManagers": ["npm"], 15 | "groupName": "all NPM dependencies", 16 | "groupSlug": "all", 17 | "assignees": ["lucasamonrc"], 18 | "reviewers": ["lucasamonrc"] 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /.github/workflows/buf-push.yml: -------------------------------------------------------------------------------- 1 | name: Push to buf.build 2 | on: 3 | push: 4 | branches: 5 | - main 6 | paths: 7 | - "proto/**" 8 | workflow_dispatch: 9 | 10 | jobs: 11 | push: 12 | runs-on: ubuntu-latest 13 | environment: 14 | name: buf.build 15 | steps: 16 | - uses: actions/checkout@v3 17 | - uses: bufbuild/buf-setup-action@v1.32.2 18 | - uses: bufbuild/buf-push-action@v1 19 | with: 20 | input: 'proto' 21 | buf_token: ${{ secrets.BUF_BUILD_TOKEN }} -------------------------------------------------------------------------------- /.github/workflows/build-connect-dart.yaml: -------------------------------------------------------------------------------- 1 | name: "Connect SDK / Dart" 2 | 3 | on: 4 | workflow_call: 5 | workflow_dispatch: 6 | pull_request: 7 | paths: 8 | - 'connect/swagger**' 9 | - '.github/workflows/build-connect-dart.yaml' 10 | - "devops/**" 11 | 12 | jobs: 13 | build_test: 14 | name: Build 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v4 18 | - name: Set up Dart 19 | uses: dart-lang/setup-dart@v1 20 | 21 | - name: Build Connect Dart SDK 22 | run: ./.github/workflows/connect/build-dart.ps1 23 | shell: pwsh 24 | 25 | - name: Commit changes 26 | uses: stefanzweifel/git-auto-commit-action@v4 27 | -------------------------------------------------------------------------------- /.github/workflows/build-connect-dotnet.yaml: -------------------------------------------------------------------------------- 1 | name: "Connect SDK / Dotnet" 2 | 3 | on: 4 | workflow_call: 5 | workflow_dispatch: 6 | pull_request: 7 | paths: 8 | - 'connect/swagger**' 9 | - '.github/workflows/build-connect-dotnet.yaml' 10 | - "devops/**" 11 | 12 | jobs: 13 | build_test: 14 | name: Build 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v4 18 | - uses: actions/setup-dotnet@v2 19 | with: 20 | dotnet-version: '8.0.x' 21 | 22 | - name: Build Connect Dotnet SDK 23 | run: ./.github/workflows/connect/build-dotnet.ps1 24 | shell: pwsh 25 | 26 | - name: Commit changes 27 | uses: stefanzweifel/git-auto-commit-action@v4 28 | -------------------------------------------------------------------------------- /.github/workflows/build-connect-typescript.yaml: -------------------------------------------------------------------------------- 1 | name: "Connect SDK / Typescript" 2 | 3 | on: 4 | workflow_call: 5 | workflow_dispatch: 6 | pull_request: 7 | paths: 8 | - 'connect/swagger**' 9 | - '.github/workflows/build-connect-typescript.yaml' 10 | - "devops/**" 11 | 12 | jobs: 13 | build_test: 14 | name: Build 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v4 18 | - uses: actions/setup-node@v3 19 | name: Setup Node v20 20 | with: 21 | node-version: 20 22 | cache: 'npm' 23 | 24 | - name: Build Connect TypeScript SDK 25 | run: ./.github/workflows/connect/build-typescript.ps1 26 | shell: pwsh 27 | 28 | - name: Commit changes 29 | uses: stefanzweifel/git-auto-commit-action@v4 30 | -------------------------------------------------------------------------------- /.github/workflows/build-docs.yml: -------------------------------------------------------------------------------- 1 | name: Build/Test Documentation 2 | 3 | on: 4 | workflow_call: 5 | pull_request: 6 | # We don't have path dependencies because we code-inject the samples, and we want to ensure those are all in the right places. 7 | paths-ignore: 8 | - 'connect/**' 9 | - '.github/workflows/build-connect-*.yaml' 10 | - '.github/workflows/release-connect-*.yml' 11 | - '.github/workflows/pr-validate-connect.yaml' 12 | - '.github/workflows/connect/**' 13 | workflow_dispatch: 14 | jobs: 15 | build: 16 | runs-on: ubuntu-latest 17 | steps: 18 | - uses: actions/checkout@v3 19 | with: 20 | fetch-depth: 0 21 | - uses: actions/setup-python@v4 22 | with: 23 | python-version: '3.10' 24 | cache: 'pip' 25 | - run: | 26 | pip install -r ./docs/requirements.txt 27 | pip install -r ./python/requirements.txt 28 | pip install git+https://${{ secrets.MKDOCS_INSIDERS_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git 29 | - run: mkdocs build 30 | 31 | -------------------------------------------------------------------------------- /.github/workflows/connect/build-dart.ps1: -------------------------------------------------------------------------------- 1 | Set-Location $PSScriptRoot/../../../ 2 | &./connect/make-swagger.ps1 -language "dart" -swaggerFile "connect/swagger_api.json" -outputFolder 'connect/dart' 3 | Set-Location $PSScriptRoot/../../../connect/dart 4 | # Run the build script 5 | dart format . 6 | dart pub get 7 | dart analyze 8 | -------------------------------------------------------------------------------- /.github/workflows/connect/build-dotnet.ps1: -------------------------------------------------------------------------------- 1 | # Regenerate the swagger too 2 | Set-Location $PSScriptRoot/../../../ 3 | &./connect/make-swagger.ps1 -language "csharp" -swaggerFile "connect/swagger_api.json" -outputFolder 'connect/dotnet' 4 | Set-Location $PSScriptRoot/../../../connect/dotnet 5 | # Run the build script 6 | dotnet format 7 | dotnet build 8 | -------------------------------------------------------------------------------- /.github/workflows/connect/build-typescript.ps1: -------------------------------------------------------------------------------- 1 | # Regenerate the swagger too 2 | Set-Location $PSScriptRoot/../../../ 3 | &./connect/make-swagger.ps1 -language "typescript-fetch" -swaggerFile "connect/swagger_api.json" -outputFolder 'connect/typescript' 4 | Set-Location $PSScriptRoot/../../../connect/typescript 5 | 6 | # Export the hand-coded ConnectClient 7 | Add-Content -Path "src/index.ts" -Value 'export * from "./ConnectClient";' 8 | 9 | npm install "micromodal@0.4.10" "oidc-client-ts@2.2.5" --save-exact 10 | 11 | # Set repository.url to the correct value 12 | $packageJson = Get-Content -Path "package.json" -Raw | ConvertFrom-Json 13 | $packageJson.repository.url = "https://github.com/trinsic-id/sdk" 14 | $packageJson.author = "Trinsic" 15 | $packageJson | ConvertTo-Json -Depth 100 | Set-Content -Path "package.json" 16 | 17 | 18 | # Run the build script - don't use CI in case we updated package version 19 | npm install 20 | npx --yes prettier --write . 21 | npm run build 22 | -------------------------------------------------------------------------------- /.github/workflows/connect/release-dotnet.ps1: -------------------------------------------------------------------------------- 1 | # Optional nuget api key 2 | param( 3 | [string]$ApiKey = "" 4 | ) 5 | 6 | # Change folder /sdk/connect/dotnet/Trinsic.Connect 7 | Set-Location $PSScriptRoot/../../../connect/dotnet/src/Trinsic.Connect 8 | # Copy in the README.md 9 | Copy-Item -Path ../../README.md -Destination . -Force 10 | # Publish 11 | $publishFolder = "./publish" 12 | dotnet pack -c Release -o $publishFolder 13 | # Push if the api key is set 14 | if ($ApiKey -eq "") 15 | { 16 | Write-Host "No NuGet API key set, skipping push" 17 | exit -1 18 | } 19 | foreach ($item in get-childitem $publishFolder -recurse | select-object FullName | where { $_.FullName.EndsWith(".nupkg") }) 20 | { 21 | nuget push $item.FullName -ApiKey "$ApiKey" -Source https://api.nuget.org/v3/index.json -SkipDuplicate 22 | } 23 | -------------------------------------------------------------------------------- /.github/workflows/connect/release-typescript.ps1: -------------------------------------------------------------------------------- 1 | # Ensure the NODE_AUTH_TOKEN is set in the environment variables of the repository. 2 | # ${{ secrets.NPM_TOKEN }} is the secret name for the NPM_TOKEN 3 | param( 4 | [string]$NpmToken = $env:NPM_TOKEN, 5 | [string]$NodeAuthToken = $env:NODE_AUTH_TOKEN 6 | ) 7 | 8 | Set-Location $PSScriptRoot/../../../connect/typescript 9 | 10 | # Set env vars 11 | $env:NODE_AUTH_TOKEN = $NodeAuthToken 12 | $env:NPM_TOKEN = $NpmToken 13 | 14 | npm set //registry.npmjs.org/:_authToken $NpmToken 15 | npm ci 16 | npm run build 17 | npm publish --no-git-tag-version --yes --no-verify-access 18 | -------------------------------------------------------------------------------- /.github/workflows/release-golang.yaml: -------------------------------------------------------------------------------- 1 | name: "Golang (release)" 2 | 3 | on: 4 | workflow_dispatch: 5 | inputs: 6 | packageVersion: 7 | description: 'Version to build' 8 | required: true 9 | default: '' 10 | release: 11 | types: [published, prereleased] 12 | 13 | jobs: 14 | publish_go_tag: 15 | name: Tag golang 16 | runs-on: ubuntu-latest 17 | steps: 18 | - uses: actions/checkout@v3 19 | - uses: trinsic-id/set-version@v0.1 20 | id: setversion 21 | with: 22 | githubToken: ${{ secrets.API_GITHUB_TOKEN }} 23 | overrideVersion: ${{ github.event.inputs.packageVersion }} 24 | - name: Create tag 25 | run: | 26 | git tag "go/v${{ steps.setversion.outputs.packageVersion }}" 27 | git push origin "go/v${{ steps.setversion.outputs.packageVersion }}" 28 | -------------------------------------------------------------------------------- /.github/workflows/renovate.yaml: -------------------------------------------------------------------------------- 1 | name: "Renovate Bot" 2 | on: 3 | workflow_dispatch: 4 | schedule: 5 | - cron: "0 9 * * 1" # "At 09:00 on Monday." 6 | 7 | pull_request: 8 | paths: 9 | - ".github/workflows/renovate.yaml" 10 | - ".github/renovate.json" 11 | 12 | jobs: 13 | renovate_runner: 14 | runs-on: ubuntu-latest 15 | steps: 16 | - uses: actions/checkout@v4 17 | - name: Self-hosted Renovate 18 | uses: renovatebot/github-action@v40.1.12 19 | env: 20 | LOG_LEVEL: debug 21 | with: 22 | configurationFile: .github/renovate.json 23 | token: ${{ secrets.MEWMBA_RENOVATE_TOKEN }} -------------------------------------------------------------------------------- /.github/workflows/update-wix.ps1: -------------------------------------------------------------------------------- 1 | Param([string]$ReleaseVersion = "1.9.0", [string]$Version = "1.9.0", [string]$GithubPAT = "") 2 | 3 | $Version = $Version.Replace("v","") 4 | $ReleaseVersion = $ReleaseVersion.Replace("v","") 5 | Write-Host "Updating winget msi to $Version" 6 | 7 | $DownloadUrl = "https://github.com/trinsic-id/sdk/releases/download/v$ReleaseVersion/trinsic-$Version-x86_64.msi" 8 | $WingetCreate = "wingetcreate.exe" 9 | iwr https://aka.ms/wingetcreate/latest -OutFile $WingetCreate 10 | 11 | .\wingetcreate.exe update "trinsic.cli" -s -v $Version -u $DownloadUrl -t $GithubPAT 12 | Remove-Item $WingetCreate 13 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "swift"] 2 | path = swift 3 | url = https://github.com/trinsic-id/sdk-swift 4 | branch = main -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save-exact=true -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | logs/ 3 | protobuf/ 4 | proto/ 5 | libs/ 6 | lib/ 7 | [Dd]ebug/ 8 | [Dd]ebugPublic/ 9 | [Rr]elease/ 10 | [Rr]eleases/ 11 | obj/ 12 | helm/ 13 | 14 | wwwroot/**/*.js 15 | wwwroot/**/*.ts 16 | wwwroot/**/*.ts 17 | wwwroot/**/*.css 18 | docs/**/*.html 19 | .vscode 20 | .github -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | We support only the latest release of the okapi binaries, which is dependent on upstream vulnerabilities being patched. Prior to `1.4.0`, there is an upstream vulnerability in the oberon library. 6 | 7 | | Version | Supported | 8 | | ------- | ------------------ | 9 | | 1.5.0 | :white_check_mark: | 10 | | 1.4.0 | :white_check_mark: | 11 | | < 1.4.0 | :x: | 12 | 13 | ## Reporting a Vulnerability 14 | 15 | Open an issue detailing the security concerns, or email `sec` + `ur` + `ity` [at] `trinsic.id` 16 | -------------------------------------------------------------------------------- /android/README.md: -------------------------------------------------------------------------------- 1 | Go here for the android okapi/trinsic services example application: 2 | https://github.com/trinsic-id/sdk-examples/tree/main/android -------------------------------------------------------------------------------- /cli/.cargo/_config.toml: -------------------------------------------------------------------------------- 1 | [source.crates-io] 2 | replace-with = "vendored-sources" 3 | 4 | [source."https://github.com/decentralized-identity/did-key.rs"] 5 | git = "https://github.com/decentralized-identity/did-key.rs" 6 | branch = "main" 7 | replace-with = "vendored-sources" 8 | 9 | [source."https://github.com/mikelodder7/oberon"] 10 | git = "https://github.com/mikelodder7/oberon" 11 | branch = "main" 12 | replace-with = "vendored-sources" 13 | 14 | [source."https://github.com/trinsic-id/okapi"] 15 | git = "https://github.com/trinsic-id/okapi" 16 | branch = "main" 17 | replace-with = "vendored-sources" 18 | 19 | [source.vendored-sources] 20 | directory = "vendor" -------------------------------------------------------------------------------- /cli/.gitignore: -------------------------------------------------------------------------------- 1 | !src/proto/**/debug 2 | *.nupkg -------------------------------------------------------------------------------- /cli/MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | # Trinsic CLI Maintainers 2 | 3 | Before checking in your code, please always run `cargo fmt` and `cargo clippy`. 4 | 5 | ## Tooling 6 | 7 | - [clap](https://github.com/clap-rs/clap) - command line argument parser for Rust 8 | - [tonic](https://github.com/hyperium/tonic) - gRPC framework 9 | - [prost](https://github.com/danburkert/prost) - protocol buffer implementation -------------------------------------------------------------------------------- /cli/README.md: -------------------------------------------------------------------------------- 1 | # Trinsic CLI 2 | 3 | ## Installation 4 | 5 | ### Using Homebrew for MacOS and Linux 6 | 7 | ``` 8 | brew tap trinsic-id/tap 9 | brew install trinsic-cli 10 | ``` 11 | 12 | ### Install from source using Cargo 13 | 14 | Requires [Rustup](https://www.rust-lang.org/tools/install) nightly toolchain 15 | - Install rust 16 | - run `rustup default nightly` 17 | 18 | ```bash 19 | cargo +nightly install --git https://github.com/trinsic-id/sdk trinsic 20 | ``` 21 | 22 | ### Using Chocolatey for Windows 23 | 24 | ``` 25 | choco install trinsic-cli 26 | ``` 27 | 28 | ## Usage 29 | 30 | ``` 31 | trinsic --help 32 | ``` 33 | -------------------------------------------------------------------------------- /cli/rustfmt.toml: -------------------------------------------------------------------------------- 1 | max_width = 150 2 | reorder_imports = true 3 | # indent_style = "Block" 4 | # binop_separator = "Back" 5 | use_try_shorthand = true -------------------------------------------------------------------------------- /cli/src/proto/google/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod protobuf; 2 | -------------------------------------------------------------------------------- /cli/src/proto/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod google; 2 | pub mod sdk; 3 | pub mod services; 4 | -------------------------------------------------------------------------------- /cli/src/proto/sdk/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod options; 2 | -------------------------------------------------------------------------------- /cli/src/proto/sdk/options/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod v1; 2 | -------------------------------------------------------------------------------- /cli/src/proto/sdk/options/v1/mod.rs: -------------------------------------------------------------------------------- 1 | /// Configuration for Trinsic SDK Services 2 | #[derive(::serde::Serialize, ::serde::Deserialize)] 3 | #[allow(clippy::derive_partial_eq_without_eq)] 4 | #[derive(Clone, PartialEq, ::prost::Message)] 5 | pub struct TrinsicOptions { 6 | /// Trinsic API endpoint. Defaults to `prod.trinsic.cloud` 7 | #[prost(string, tag = "1")] 8 | pub server_endpoint: ::prost::alloc::string::String, 9 | /// Trinsic API port; defaults to `443` 10 | #[prost(int32, tag = "2")] 11 | pub server_port: i32, 12 | /// Whether TLS is enabled between SDK and Trinsic API; defaults to `true` 13 | #[prost(bool, tag = "3")] 14 | pub server_use_tls: bool, 15 | /// Authentication token for SDK calls; defaults to empty string (unauthenticated) 16 | /// 17 | /// Default ecosystem ID to use for various SDK calls; defaults to `default` 18 | /// string default_ecosystem = 5; 19 | #[prost(string, tag = "4")] 20 | pub auth_token: ::prost::alloc::string::String, 21 | } 22 | -------------------------------------------------------------------------------- /cli/src/proto/services/account/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod v1; 2 | -------------------------------------------------------------------------------- /cli/src/proto/services/common/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod v1; 2 | -------------------------------------------------------------------------------- /cli/src/proto/services/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod account; 2 | pub mod common; 3 | pub mod provider; 4 | pub mod trustregistry; 5 | pub mod universalwallet; 6 | pub mod verifiablecredentials; 7 | 8 | pub mod google { 9 | pub mod protobuf { 10 | pub use crate::proto::google::protobuf::*; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cli/src/proto/services/provider/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod v1; 2 | -------------------------------------------------------------------------------- /cli/src/proto/services/trustregistry/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod v1; 2 | -------------------------------------------------------------------------------- /cli/src/proto/services/universalwallet/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod v1; 2 | -------------------------------------------------------------------------------- /cli/src/proto/services/verifiablecredentials/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod templates; 2 | pub mod v1; 3 | -------------------------------------------------------------------------------- /cli/src/proto/services/verifiablecredentials/templates/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod v1; 2 | -------------------------------------------------------------------------------- /cli/test/.gitignore: -------------------------------------------------------------------------------- 1 | state-id-signed-document.json 2 | state-id-proof.json 3 | -------------------------------------------------------------------------------- /cli/test/README.md: -------------------------------------------------------------------------------- 1 | # CLI Integration Tests 2 | 3 | The test can be run against different environments and CLI installations 4 | 5 | To run the demo against production using default installation of Trinsic CLI 6 | ``` 7 | ./test/Run-Demo.ps1 8 | ``` 9 | 10 | To pass custom CLI path or environment 11 | ``` 12 | ./test/Run-Demo.ps1 -Environment Development -CommandPath ./target/debug/trinsic 13 | ``` -------------------------------------------------------------------------------- /cli/test/state-id-values.json: -------------------------------------------------------------------------------- 1 | { 2 | "lastName": "Doe", 3 | "givenName": "John", 4 | "birthDate": "1998-08-28", 5 | "expiryDate": "2025-01-01T00:00:00.000Z", 6 | "issueDate": "2020-01-01T00:00:00.000Z", 7 | "issuingAuthority": "CO", 8 | "issuingCountry": "US", 9 | "documentNumber": "542426814" 10 | } -------------------------------------------------------------------------------- /connect/config-csharp.yaml: -------------------------------------------------------------------------------- 1 | additionalProperties: 2 | # https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/csharp.md 3 | packageVersion: 0.0.8 4 | packageName: Trinsic.Connect 5 | packageTitle: Trinsic Connect SDK 6 | packageCompany: trinsic.id 7 | packageAuthors: Trinsic 8 | packageDescription: Trinsic Connect SDK 9 | packageRepositoryUrl: https://github.com/trinsic-id/sdk.git 10 | packageGuid: "{EAE0C21A-20C5-476C-B681-16260B12BF24}" # This prevents `openapi-generator-cli` from generating a new GUID each time 11 | netCoreProjectFile: true 12 | optionalProjectFile: true 13 | library: httpclient 14 | validatable: false 15 | optionalAssemblyInfo: true 16 | targetFramework: net8.0 17 | disallowAdditionalPropertiesIfNotPresent: false 18 | -------------------------------------------------------------------------------- /connect/config-dart.yaml: -------------------------------------------------------------------------------- 1 | additionalProperties: 2 | pubAuthor: Trinsic 3 | pubAuthorEmail: engineering@trinsic.id 4 | pubName: TrinsicConnect 5 | # pubShortDescription: 6 | pubVersion: 0.0.1 7 | disallowAdditionalPropertiesIfNotPresent: false 8 | -------------------------------------------------------------------------------- /connect/config-typescript-fetch.yaml: -------------------------------------------------------------------------------- 1 | # This space intentionally left blank 2 | # https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/typescript-fetch.md 3 | additionalProperties: 4 | npmName: "@trinsic/connect" 5 | npmVersion: "0.0.4" 6 | npmAuthor: "Trinsic" 7 | disallowAdditionalPropertiesIfNotPresent: false 8 | -------------------------------------------------------------------------------- /connect/dart/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://dart.dev/guides/libraries/private-files 2 | 3 | .dart_tool/ 4 | .packages 5 | build/ 6 | pubspec.lock # Except for application packages 7 | 8 | doc/api/ 9 | 10 | # IntelliJ 11 | *.iml 12 | *.ipr 13 | *.iws 14 | .idea/ 15 | 16 | # Mac 17 | .DS_Store 18 | -------------------------------------------------------------------------------- /connect/dart/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 7.8.0-SNAPSHOT 2 | -------------------------------------------------------------------------------- /connect/dart/.travis.yml: -------------------------------------------------------------------------------- 1 | # 2 | # AUTO-GENERATED FILE, DO NOT MODIFY! 3 | # 4 | # https://docs.travis-ci.com/user/languages/dart/ 5 | # 6 | language: dart 7 | dart: 8 | # Install a specific stable release 9 | - "2.12" 10 | install: 11 | - pub get 12 | 13 | script: 14 | - pub run test 15 | -------------------------------------------------------------------------------- /connect/dart/analysis_options.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/connect/dart/analysis_options.yaml -------------------------------------------------------------------------------- /connect/dart/doc/Address.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.Address 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **line1** | **String** | | [optional] 12 | **line2** | **String** | | [optional] 13 | **line3** | **String** | | [optional] 14 | **city** | **String** | | [optional] 15 | **state** | **String** | | [optional] 16 | **postalCode** | **String** | | [optional] 17 | **country** | **String** | | [optional] 18 | **fullAddress** | **String** | The full address as a single string | [optional] 19 | 20 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 21 | 22 | 23 | -------------------------------------------------------------------------------- /connect/dart/doc/Attachments.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.Attachments 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **selfie** | **String** | Key to access the selfie image (if relevant) for this verification | [optional] 12 | **documentFront** | **String** | Key to access the document front image (if relevant) for this verification | [optional] 13 | **documentBack** | **String** | Key to access the document back image (if relevant) for this verification | [optional] 14 | **documentPortrait** | **String** | Key to access the document portrait image (if relevant and available) for this verification. Specifically, this is a cropped version of the document front image which includes only the portrait on the document. | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /connect/dart/doc/CancelSessionResponse.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.CancelSessionResponse 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **session** | [**Session**](Session.md) | | 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /connect/dart/doc/DisclosedFields.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.DisclosedFields 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **idNumber** | **bool** | | 12 | **givenName** | **bool** | | 13 | **familyName** | **bool** | | 14 | **address** | **bool** | | 15 | **dateOfBirth** | **bool** | | 16 | **country** | **bool** | | 17 | **issueDate** | **bool** | | 18 | **expirationDate** | **bool** | | 19 | **documentFront** | **bool** | | 20 | **documentBack** | **bool** | | 21 | **documentPortrait** | **bool** | | 22 | **selfie** | **bool** | | 23 | 24 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 25 | 26 | 27 | -------------------------------------------------------------------------------- /connect/dart/doc/DisclosedFieldsRequest.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.DisclosedFieldsRequest 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **idNumber** | **bool** | | [optional] 12 | **givenName** | **bool** | | [optional] 13 | **familyName** | **bool** | | [optional] 14 | **address** | **bool** | | [optional] 15 | **dateOfBirth** | **bool** | | [optional] 16 | **country** | **bool** | | [optional] 17 | **issueDate** | **bool** | | [optional] 18 | **expirationDate** | **bool** | | [optional] 19 | **documentFront** | **bool** | | [optional] 20 | **documentBack** | **bool** | | [optional] 21 | **documentPortrait** | **bool** | | [optional] 22 | **selfie** | **bool** | | [optional] 23 | 24 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 25 | 26 | 27 | -------------------------------------------------------------------------------- /connect/dart/doc/DocumentData.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.DocumentData 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **type** | **String** | | [optional] 12 | **number** | **String** | | [optional] 13 | **issueDate** | **String** | | [optional] 14 | **expirationDate** | **String** | | [optional] 15 | **issuingCountry** | **String** | | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /connect/dart/doc/ExchangeResultsKeyRequest.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.ExchangeResultsKeyRequest 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **resultsAccessKey** | **String** | The Results Access Key to exchange | 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /connect/dart/doc/ExchangeResultsKeyResponse.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.ExchangeResultsKeyResponse 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **session** | [**Session**](Session.md) | | 12 | **identityData** | [**IdentityData**](IdentityData.md) | | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /connect/dart/doc/FailureMessage.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.FailureMessage 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **message** | **String** | | 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /connect/dart/doc/GetSessionResponse.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.GetSessionResponse 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **session** | [**Session**](Session.md) | | 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /connect/dart/doc/IdentityData.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.IdentityData 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **originatingProviderId** | **String** | The ID of the integration from which this data originated (eg \"yoti\", \"clear\") | [optional] 12 | **person** | [**PersonData**](PersonData.md) | Identity data of the individual who was verified | [optional] 13 | **document** | [**DocumentData**](DocumentData.md) | Identity data of the document involved in verification, if relevant | [optional] 14 | **attachments** | [**Attachments**](Attachments.md) | Access keys for attachments (eg document/selfie images) | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /connect/dart/doc/IdentityLookupResponse.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.IdentityLookupResponse 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **identityInNetwork** | **bool** | Whether the given phone number is known to have an identity in the network. | 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /connect/dart/doc/Integration.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.Integration 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **id** | **String** | The ID of the integration | 12 | **name** | **String** | The friendly, human-readable name of the integration | 13 | **logoUrl** | **String** | A URL pointing to the integration's logo | 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /connect/dart/doc/ListProvidersResponse.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.ListProvidersResponse 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **integrations** | [**List**](Integration.md) | The list of integrations available to your account | [default to const []] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /connect/dart/doc/ListSessionsResponse.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.ListSessionsResponse 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **sessions** | [**List**](Session.md) | | [default to const []] 12 | **total** | **int** | The total number of sessions tied to your account | 13 | **more** | **bool** | Whether there are additional pages of sessions to retrieve | 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /connect/dart/doc/OrderDirection.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.OrderDirection 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /connect/dart/doc/SessionFailCode.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.SessionFailCode 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /connect/dart/doc/SessionOrdering.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.SessionOrdering 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /connect/dart/doc/SessionState.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.SessionState 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /connect/dart/doc/ValidationResult.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.ValidationResult 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **memberNames** | **List** | | [readonly] [default to const []] 12 | **errorMessage** | **String** | | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /connect/dart/doc/Verification.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.Verification 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | **provider** | **String** | The identity provider that was used to perform the Verification, if any | [optional] 12 | **failCode** | [**VerificationFailCode**](VerificationFailCode.md) | If the Verification is in state `VerificationFailed`, this field contains the reason for failure | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /connect/dart/doc/VerificationFailCode.md: -------------------------------------------------------------------------------- 1 | # TrinsicConnect.model.VerificationFailCode 2 | 3 | ## Load the model package 4 | ```dart 5 | import 'package:TrinsicConnect/api.dart'; 6 | ``` 7 | 8 | ## Properties 9 | Name | Type | Description | Notes 10 | ------------ | ------------- | ------------- | ------------- 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /connect/dart/lib/api_exception.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | part of openapi.api; 12 | 13 | class ApiException implements Exception { 14 | ApiException(this.code, this.message); 15 | 16 | ApiException.withInner( 17 | this.code, this.message, this.innerException, this.stackTrace); 18 | 19 | int code = 0; 20 | String? message; 21 | Exception? innerException; 22 | StackTrace? stackTrace; 23 | 24 | @override 25 | String toString() { 26 | if (message == null) { 27 | return 'ApiException'; 28 | } 29 | if (innerException == null) { 30 | return 'ApiException $code: $message'; 31 | } 32 | return 'ApiException $code: $message (Inner exception: $innerException)\n\n$stackTrace'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /connect/dart/lib/auth/authentication.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | part of openapi.api; 12 | 13 | // ignore: one_member_abstracts 14 | abstract class Authentication { 15 | /// Apply authentication settings to header and query params. 16 | Future applyToParams( 17 | List queryParams, Map headerParams); 18 | } 19 | -------------------------------------------------------------------------------- /connect/dart/lib/auth/http_basic_auth.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | part of openapi.api; 12 | 13 | class HttpBasicAuth implements Authentication { 14 | HttpBasicAuth({this.username = '', this.password = ''}); 15 | 16 | String username; 17 | String password; 18 | 19 | @override 20 | Future applyToParams( 21 | List queryParams, 22 | Map headerParams, 23 | ) async { 24 | if (username.isNotEmpty && password.isNotEmpty) { 25 | final credentials = '$username:$password'; 26 | headerParams['Authorization'] = 27 | 'Basic ${base64.encode(utf8.encode(credentials))}'; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /connect/dart/lib/auth/oauth.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | part of openapi.api; 12 | 13 | class OAuth implements Authentication { 14 | OAuth({this.accessToken = ''}); 15 | 16 | String accessToken; 17 | 18 | @override 19 | Future applyToParams( 20 | List queryParams, 21 | Map headerParams, 22 | ) async { 23 | if (accessToken.isNotEmpty) { 24 | headerParams['Authorization'] = 'Bearer $accessToken'; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /connect/dart/pubspec.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # AUTO-GENERATED FILE, DO NOT MODIFY! 3 | # 4 | 5 | name: 'TrinsicConnect' 6 | version: '0.0.1' 7 | description: 'OpenAPI API client' 8 | homepage: 'homepage' 9 | environment: 10 | sdk: '>=2.12.0 <4.0.0' 11 | dependencies: 12 | collection: '>=1.17.0 <2.0.0' 13 | http: '>=0.13.0 <2.0.0' 14 | intl: any 15 | meta: '>=1.1.8 <2.0.0' 16 | dev_dependencies: 17 | test: '>=1.21.6 <1.22.0' 18 | -------------------------------------------------------------------------------- /connect/dart/test/attachments_api_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | /// tests for AttachmentsApi 15 | void main() { 16 | // final instance = AttachmentsApi(); 17 | 18 | group('tests for AttachmentsApi', () { 19 | // Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the linked resource. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. 20 | // 21 | //Future getAttachment({ String attachmentAccessKey }) async 22 | test('test getAttachment', () async { 23 | // TODO 24 | }); 25 | }); 26 | } 27 | -------------------------------------------------------------------------------- /connect/dart/test/cancel_session_response_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for CancelSessionResponse 15 | void main() { 16 | // final instance = CancelSessionResponse(); 17 | 18 | group('test CancelSessionResponse', () { 19 | // Session session 20 | test('to test the property `session`', () async { 21 | // TODO 22 | }); 23 | }); 24 | } 25 | -------------------------------------------------------------------------------- /connect/dart/test/exchange_results_key_request_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for ExchangeResultsKeyRequest 15 | void main() { 16 | // final instance = ExchangeResultsKeyRequest(); 17 | 18 | group('test ExchangeResultsKeyRequest', () { 19 | // The Results Access Key to exchange 20 | // String resultsAccessKey 21 | test('to test the property `resultsAccessKey`', () async { 22 | // TODO 23 | }); 24 | }); 25 | } 26 | -------------------------------------------------------------------------------- /connect/dart/test/exchange_results_key_response_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for ExchangeResultsKeyResponse 15 | void main() { 16 | // final instance = ExchangeResultsKeyResponse(); 17 | 18 | group('test ExchangeResultsKeyResponse', () { 19 | // Session session 20 | test('to test the property `session`', () async { 21 | // TODO 22 | }); 23 | 24 | // IdentityData identityData 25 | test('to test the property `identityData`', () async { 26 | // TODO 27 | }); 28 | }); 29 | } 30 | -------------------------------------------------------------------------------- /connect/dart/test/failure_message_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for FailureMessage 15 | void main() { 16 | // final instance = FailureMessage(); 17 | 18 | group('test FailureMessage', () { 19 | // String message 20 | test('to test the property `message`', () async { 21 | // TODO 22 | }); 23 | }); 24 | } 25 | -------------------------------------------------------------------------------- /connect/dart/test/get_session_response_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for GetSessionResponse 15 | void main() { 16 | // final instance = GetSessionResponse(); 17 | 18 | group('test GetSessionResponse', () { 19 | // Session session 20 | test('to test the property `session`', () async { 21 | // TODO 22 | }); 23 | }); 24 | } 25 | -------------------------------------------------------------------------------- /connect/dart/test/identity_lookup_response_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for IdentityLookupResponse 15 | void main() { 16 | // final instance = IdentityLookupResponse(); 17 | 18 | group('test IdentityLookupResponse', () { 19 | // Whether the given phone number is known to have an identity in the network. 20 | // bool identityInNetwork 21 | test('to test the property `identityInNetwork`', () async { 22 | // TODO 23 | }); 24 | }); 25 | } 26 | -------------------------------------------------------------------------------- /connect/dart/test/integration_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for Integration 15 | void main() { 16 | // final instance = Integration(); 17 | 18 | group('test Integration', () { 19 | // The ID of the integration 20 | // String id 21 | test('to test the property `id`', () async { 22 | // TODO 23 | }); 24 | 25 | // The friendly, human-readable name of the integration 26 | // String name 27 | test('to test the property `name`', () async { 28 | // TODO 29 | }); 30 | 31 | // A URL pointing to the integration's logo 32 | // String logoUrl 33 | test('to test the property `logoUrl`', () async { 34 | // TODO 35 | }); 36 | }); 37 | } 38 | -------------------------------------------------------------------------------- /connect/dart/test/list_providers_response_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for ListProvidersResponse 15 | void main() { 16 | // final instance = ListProvidersResponse(); 17 | 18 | group('test ListProvidersResponse', () { 19 | // The list of integrations available to your account 20 | // List integrations (default value: const []) 21 | test('to test the property `integrations`', () async { 22 | // TODO 23 | }); 24 | }); 25 | } 26 | -------------------------------------------------------------------------------- /connect/dart/test/list_sessions_response_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for ListSessionsResponse 15 | void main() { 16 | // final instance = ListSessionsResponse(); 17 | 18 | group('test ListSessionsResponse', () { 19 | // List sessions (default value: const []) 20 | test('to test the property `sessions`', () async { 21 | // TODO 22 | }); 23 | 24 | // The total number of sessions tied to your account 25 | // int total 26 | test('to test the property `total`', () async { 27 | // TODO 28 | }); 29 | 30 | // Whether there are additional pages of sessions to retrieve 31 | // bool more 32 | test('to test the property `more`', () async { 33 | // TODO 34 | }); 35 | }); 36 | } 37 | -------------------------------------------------------------------------------- /connect/dart/test/network_api_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | /// tests for NetworkApi 15 | void main() { 16 | // final instance = NetworkApi(); 17 | 18 | group('tests for NetworkApi', () { 19 | // Query the availability of an identity in the Trinsic Network by phone number 20 | // 21 | //Future identityLookup(String phoneNumber) async 22 | test('test identityLookup', () async { 23 | // TODO 24 | }); 25 | 26 | // List all identity providers available for use 27 | // 28 | //Future listProviders() async 29 | test('test listProviders', () async { 30 | // TODO 31 | }); 32 | }); 33 | } 34 | -------------------------------------------------------------------------------- /connect/dart/test/order_direction_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for OrderDirection 15 | void main() { 16 | group('test OrderDirection', () {}); 17 | } 18 | -------------------------------------------------------------------------------- /connect/dart/test/session_fail_code_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for SessionFailCode 15 | void main() { 16 | group('test SessionFailCode', () {}); 17 | } 18 | -------------------------------------------------------------------------------- /connect/dart/test/session_ordering_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for SessionOrdering 15 | void main() { 16 | group('test SessionOrdering', () {}); 17 | } 18 | -------------------------------------------------------------------------------- /connect/dart/test/session_state_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for SessionState 15 | void main() { 16 | group('test SessionState', () {}); 17 | } 18 | -------------------------------------------------------------------------------- /connect/dart/test/validation_result_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for ValidationResult 15 | void main() { 16 | // final instance = ValidationResult(); 17 | 18 | group('test ValidationResult', () { 19 | // List memberNames (default value: const []) 20 | test('to test the property `memberNames`', () async { 21 | // TODO 22 | }); 23 | 24 | // String errorMessage 25 | test('to test the property `errorMessage`', () async { 26 | // TODO 27 | }); 28 | }); 29 | } 30 | -------------------------------------------------------------------------------- /connect/dart/test/verification_fail_code_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for VerificationFailCode 15 | void main() { 16 | group('test VerificationFailCode', () {}); 17 | } 18 | -------------------------------------------------------------------------------- /connect/dart/test/verification_test.dart: -------------------------------------------------------------------------------- 1 | // 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! 3 | // 4 | // @dart=2.18 5 | 6 | // ignore_for_file: unused_element, unused_import 7 | // ignore_for_file: always_put_required_named_parameters_first 8 | // ignore_for_file: constant_identifier_names 9 | // ignore_for_file: lines_longer_than_80_chars 10 | 11 | import 'package:TrinsicConnect/api.dart'; 12 | import 'package:test/test.dart'; 13 | 14 | // tests for Verification 15 | void main() { 16 | // final instance = Verification(); 17 | 18 | group('test Verification', () { 19 | // The identity provider that was used to perform the Verification, if any 20 | // String provider 21 | test('to test the property `provider`', () async { 22 | // TODO 23 | }); 24 | 25 | // If the Verification is in state `VerificationFailed`, this field contains the reason for failure 26 | // VerificationFailCode failCode 27 | test('to test the property `failCode`', () async { 28 | // TODO 29 | }); 30 | }); 31 | } 32 | -------------------------------------------------------------------------------- /connect/dotnet/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 7.8.0-SNAPSHOT 2 | -------------------------------------------------------------------------------- /connect/dotnet/appveyor.yml: -------------------------------------------------------------------------------- 1 | # auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator) 2 | # 3 | image: Visual Studio 2019 4 | clone_depth: 1 5 | build_script: 6 | - dotnet build -c Release 7 | - dotnet test -c Release 8 | after_build: 9 | - dotnet pack .\src\Trinsic.Connect\Trinsic.Connect.csproj -o ../../output -c Release --no-build 10 | -------------------------------------------------------------------------------- /connect/dotnet/docs/Address.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.Address 2 | Address information for an individual 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **Line1** | **string** | | [optional] 9 | **Line2** | **string** | | [optional] 10 | **Line3** | **string** | | [optional] 11 | **City** | **string** | | [optional] 12 | **State** | **string** | | [optional] 13 | **PostalCode** | **string** | | [optional] 14 | **Country** | **string** | | [optional] 15 | **FullAddress** | **string** | The full address as a single string | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | -------------------------------------------------------------------------------- /connect/dotnet/docs/Attachments.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.Attachments 2 | Attachment Access Keys for attachments (eg document / selfie images) 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **Selfie** | **string** | Key to access the selfie image (if relevant) for this verification | [optional] 9 | **DocumentFront** | **string** | Key to access the document front image (if relevant) for this verification | [optional] 10 | **DocumentBack** | **string** | Key to access the document back image (if relevant) for this verification | [optional] 11 | **DocumentPortrait** | **string** | Key to access the document portrait image (if relevant and available) for this verification. Specifically, this is a cropped version of the document front image which includes only the portrait on the document. | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | -------------------------------------------------------------------------------- /connect/dotnet/docs/CancelSessionResponse.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.CancelSessionResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Session** | [**Session**](Session.md) | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | -------------------------------------------------------------------------------- /connect/dotnet/docs/DisclosedFields.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.DisclosedFields 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **IdNumber** | **bool** | | 8 | **GivenName** | **bool** | | 9 | **FamilyName** | **bool** | | 10 | **Address** | **bool** | | 11 | **DateOfBirth** | **bool** | | 12 | **Country** | **bool** | | 13 | **IssueDate** | **bool** | | 14 | **ExpirationDate** | **bool** | | 15 | **DocumentFront** | **bool** | | 16 | **DocumentBack** | **bool** | | 17 | **DocumentPortrait** | **bool** | | 18 | **Selfie** | **bool** | | 19 | 20 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 21 | 22 | -------------------------------------------------------------------------------- /connect/dotnet/docs/DisclosedFieldsRequest.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.DisclosedFieldsRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **IdNumber** | **bool** | | [optional] 8 | **GivenName** | **bool** | | [optional] 9 | **FamilyName** | **bool** | | [optional] 10 | **Address** | **bool** | | [optional] 11 | **DateOfBirth** | **bool** | | [optional] 12 | **Country** | **bool** | | [optional] 13 | **IssueDate** | **bool** | | [optional] 14 | **ExpirationDate** | **bool** | | [optional] 15 | **DocumentFront** | **bool** | | [optional] 16 | **DocumentBack** | **bool** | | [optional] 17 | **DocumentPortrait** | **bool** | | [optional] 18 | **Selfie** | **bool** | | [optional] 19 | 20 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 21 | 22 | -------------------------------------------------------------------------------- /connect/dotnet/docs/DocumentData.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.DocumentData 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Type** | **string** | | [optional] 8 | **Number** | **string** | | [optional] 9 | **IssueDate** | **string** | | [optional] 10 | **ExpirationDate** | **string** | | [optional] 11 | **IssuingCountry** | **string** | | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | -------------------------------------------------------------------------------- /connect/dotnet/docs/ExchangeResultsKeyRequest.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.ExchangeResultsKeyRequest 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **ResultsAccessKey** | **string** | The Results Access Key to exchange | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | -------------------------------------------------------------------------------- /connect/dotnet/docs/ExchangeResultsKeyResponse.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.ExchangeResultsKeyResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Session** | [**Session**](Session.md) | | 8 | **IdentityData** | [**IdentityData**](IdentityData.md) | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | -------------------------------------------------------------------------------- /connect/dotnet/docs/FailureMessage.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.FailureMessage 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Message** | **string** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | -------------------------------------------------------------------------------- /connect/dotnet/docs/GetSessionResponse.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.GetSessionResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Session** | [**Session**](Session.md) | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | -------------------------------------------------------------------------------- /connect/dotnet/docs/IdentityData.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.IdentityData 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **OriginatingProviderId** | **string** | The ID of the integration from which this data originated (eg \"yoti\", \"clear\") | [optional] 8 | **Person** | [**PersonData**](PersonData.md) | Identity data of the individual who was verified | [optional] 9 | **Document** | [**DocumentData**](DocumentData.md) | Identity data of the document involved in verification, if relevant | [optional] 10 | **Attachments** | [**Attachments**](Attachments.md) | Access keys for attachments (eg document/selfie images) | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | -------------------------------------------------------------------------------- /connect/dotnet/docs/IdentityLookupResponse.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.IdentityLookupResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **IdentityInNetwork** | **bool** | Whether the given phone number is known to have an identity in the network. | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | -------------------------------------------------------------------------------- /connect/dotnet/docs/Integration.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.Integration 2 | An Integration that can be specified when creating a `VerificationSession` 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **Id** | **string** | The ID of the integration | 9 | **Name** | **string** | The friendly, human-readable name of the integration | 10 | **LogoUrl** | **string** | A URL pointing to the integration's logo | 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | -------------------------------------------------------------------------------- /connect/dotnet/docs/ListProvidersResponse.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.ListProvidersResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Integrations** | [**List<Integration>**](Integration.md) | The list of integrations available to your account | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | -------------------------------------------------------------------------------- /connect/dotnet/docs/ListSessionsResponse.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.ListSessionsResponse 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Sessions** | [**List<Session>**](Session.md) | | 8 | **Total** | **int** | The total number of sessions tied to your account | 9 | **More** | **bool** | Whether there are additional pages of sessions to retrieve | 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | -------------------------------------------------------------------------------- /connect/dotnet/docs/OrderDirection.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.OrderDirection 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | -------------------------------------------------------------------------------- /connect/dotnet/docs/Session.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.Session 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **Id** | **string** | | 8 | **State** | **SessionState** | The state of the session | 9 | **FailCode** | **SessionFailCode** | If the session is in state `IdvFailed`, this field contains the reason for failure. | [optional] 10 | **Verification** | [**Verification**](Verification.md) | The underlying verification for this Session | 11 | **DisclosedFields** | [**DisclosedFields**](DisclosedFields.md) | The fields that were requested to be disclosed when the Session was created | 12 | **Created** | **long** | The unix timestamp, in seconds, when this session was created | 13 | **Updated** | **long** | The unix timestamp, in seconds, when this session's state last changed | 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | -------------------------------------------------------------------------------- /connect/dotnet/docs/SessionFailCode.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.SessionFailCode 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | -------------------------------------------------------------------------------- /connect/dotnet/docs/SessionOrdering.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.SessionOrdering 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | -------------------------------------------------------------------------------- /connect/dotnet/docs/SessionState.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.SessionState 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | -------------------------------------------------------------------------------- /connect/dotnet/docs/ValidationResult.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.ValidationResult 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **MemberNames** | **List<string>** | | [readonly] 8 | **ErrorMessage** | **string** | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | -------------------------------------------------------------------------------- /connect/dotnet/docs/Verification.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.Verification 2 | A Verification contained within a Session 3 | 4 | ## Properties 5 | 6 | Name | Type | Description | Notes 7 | ------------ | ------------- | ------------- | ------------- 8 | **Provider** | **string** | The identity provider that was used to perform the Verification, if any | [optional] 9 | **FailCode** | **VerificationFailCode** | If the Verification is in state `VerificationFailed`, this field contains the reason for failure | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | -------------------------------------------------------------------------------- /connect/dotnet/docs/VerificationFailCode.md: -------------------------------------------------------------------------------- 1 | # Trinsic.Connect.Model.VerificationFailCode 2 | 3 | ## Properties 4 | 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | -------------------------------------------------------------------------------- /connect/dotnet/src/Trinsic.Connect.Test/Trinsic.Connect.Test.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Trinsic.Connect.Test 5 | Trinsic.Connect.Test 6 | net8.0 7 | false 8 | annotations 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /connect/dotnet/src/Trinsic.Connect/Client/ExceptionFactory.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Connect API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | using System; 11 | 12 | namespace Trinsic.Connect.Client; 13 | 14 | /// 15 | /// A delegate to ExceptionFactory method 16 | /// 17 | /// Method name 18 | /// Response 19 | /// Exceptions 20 | public delegate Exception ExceptionFactory(string methodName, IApiResponse response); 21 | -------------------------------------------------------------------------------- /connect/dotnet/src/Trinsic.Connect/Client/OpenAPIDateConverter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Connect API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | using Newtonsoft.Json.Converters; 11 | 12 | namespace Trinsic.Connect.Client; 13 | 14 | /// 15 | /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 16 | /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types 17 | /// 18 | public class OpenAPIDateConverter : IsoDateTimeConverter 19 | { 20 | /// 21 | /// Initializes a new instance of the class. 22 | /// 23 | public OpenAPIDateConverter() 24 | { 25 | // full-date = date-fullyear "-" date-month "-" date-mday 26 | DateTimeFormat = "yyyy-MM-dd"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /connect/dotnet/src/Trinsic.Connect/Client/RetryConfiguration.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Connect API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | using System.Net.Http; 11 | using Polly; 12 | 13 | namespace Trinsic.Connect.Client; 14 | 15 | /// 16 | /// Configuration class to set the polly retry policies to be applied to the requests. 17 | /// 18 | public static class RetryConfiguration 19 | { 20 | /// 21 | /// Retry policy 22 | /// 23 | public static Policy RetryPolicy { get; set; } 24 | 25 | /// 26 | /// Async retry policy 27 | /// 28 | public static AsyncPolicy AsyncRetryPolicy { get; set; } 29 | } 30 | -------------------------------------------------------------------------------- /connect/dotnet/src/Trinsic.Connect/Model/OrderDirection.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Connect API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | using System.Runtime.Serialization; 11 | using Newtonsoft.Json; 12 | using Newtonsoft.Json.Converters; 13 | 14 | namespace Trinsic.Connect.Model; 15 | 16 | /// 17 | /// Defines OrderDirection 18 | /// 19 | [JsonConverter(typeof(StringEnumConverter))] 20 | public enum OrderDirection 21 | { 22 | /// 23 | /// Enum Ascending for value: Ascending 24 | /// 25 | [EnumMember(Value = "Ascending")] 26 | Ascending = 1, 27 | 28 | /// 29 | /// Enum Descending for value: Descending 30 | /// 31 | [EnumMember(Value = "Descending")] 32 | Descending = 2 33 | } 34 | -------------------------------------------------------------------------------- /connect/dotnet/src/Trinsic.Connect/Model/SessionOrdering.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Connect API 3 | * 4 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 | * 6 | * The version of the OpenAPI document: v1 7 | * Generated by: https://github.com/openapitools/openapi-generator.git 8 | */ 9 | 10 | using System.Runtime.Serialization; 11 | using Newtonsoft.Json; 12 | using Newtonsoft.Json.Converters; 13 | 14 | namespace Trinsic.Connect.Model; 15 | 16 | /// 17 | /// Defines SessionOrdering 18 | /// 19 | [JsonConverter(typeof(StringEnumConverter))] 20 | public enum SessionOrdering 21 | { 22 | /// 23 | /// Enum Created for value: Created 24 | /// 25 | [EnumMember(Value = "Created")] 26 | Created = 1, 27 | 28 | /// 29 | /// Enum Updated for value: Updated 30 | /// 31 | [EnumMember(Value = "Updated")] 32 | Updated = 2, 33 | 34 | /// 35 | /// Enum State for value: State 36 | /// 37 | [EnumMember(Value = "State")] 38 | State = 3 39 | } 40 | -------------------------------------------------------------------------------- /connect/typescript/.gitignore: -------------------------------------------------------------------------------- 1 | wwwroot/*.js 2 | node_modules 3 | typings 4 | dist 5 | -------------------------------------------------------------------------------- /connect/typescript/.npmignore: -------------------------------------------------------------------------------- 1 | README.md -------------------------------------------------------------------------------- /connect/typescript/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 7.8.0-SNAPSHOT 2 | -------------------------------------------------------------------------------- /connect/typescript/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@trinsic/connect", 3 | "version": "0.0.4", 4 | "description": "OpenAPI client for @trinsic/connect", 5 | "author": "Trinsic", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/trinsic-id/sdk" 9 | }, 10 | "main": "./dist/index.js", 11 | "typings": "./dist/index.d.ts", 12 | "scripts": { 13 | "build": "tsc", 14 | "prepare": "npm run build" 15 | }, 16 | "devDependencies": { 17 | "typescript": "^4.0 || ^5.0" 18 | }, 19 | "dependencies": { 20 | "micromodal": "0.4.10", 21 | "oidc-client-ts": "2.2.5" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /connect/typescript/src/apis/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | export * from "./AttachmentsApi"; 4 | export * from "./NetworkApi"; 5 | export * from "./SessionsApi"; 6 | -------------------------------------------------------------------------------- /connect/typescript/src/index.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | export * from "./runtime"; 4 | export * from "./apis/index"; 5 | export * from "./models/index"; 6 | export * from "./ConnectClient"; 7 | -------------------------------------------------------------------------------- /connect/typescript/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "declaration": true, 4 | "target": "es5", 5 | "module": "commonjs", 6 | "moduleResolution": "node", 7 | "outDir": "dist", 8 | "lib": ["es6", "dom"], 9 | "typeRoots": ["node_modules/@types"] 10 | }, 11 | "exclude": ["dist", "node_modules"] 12 | } 13 | -------------------------------------------------------------------------------- /dart/.gitignore: -------------------------------------------------------------------------------- 1 | # Files and directories created by pub. 2 | .dart_tool/ 3 | .packages 4 | 5 | # Conventional directory for build outputs. 6 | build/ 7 | 8 | # Omit committing pubspec.lock for library packages; see 9 | # https://dart.dev/guides/libraries/private-files#pubspeclock. 10 | pubspec.lock 11 | -------------------------------------------------------------------------------- /dart/README.md: -------------------------------------------------------------------------------- 1 | Dart bindings for Trinsic SDK https://docs.trinsic.id/ 2 | 3 | 4 | ## Usage 5 | 6 | * Examples are in the `/example` folder 7 | 8 | ```dart 9 | var trinsic = TrinsicService(trinsicConfig(), null); 10 | ``` 11 | 12 | ## Additional information 13 | 14 | General documentation here: https://docs.trinsic.id/ -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/any.pbenum.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/any.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields 7 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/any.pbjson.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/any.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | import 'dart:core' as $core; 9 | import 'dart:convert' as $convert; 10 | import 'dart:typed_data' as $typed_data; 11 | 12 | @$core.Deprecated('Use anyDescriptor instead') 13 | const Any$json = { 14 | '1': 'Any', 15 | '2': [ 16 | {'1': 'type_url', '3': 1, '4': 1, '5': 9, '10': 'typeUrl'}, 17 | {'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'}, 18 | ], 19 | }; 20 | 21 | /// Descriptor for `Any`. Decode as a `google.protobuf.DescriptorProto`. 22 | final $typed_data.Uint8List anyDescriptor = $convert.base64Decode( 23 | 'CgNBbnkSGQoIdHlwZV91cmwYASABKAlSB3R5cGVVcmwSFAoFdmFsdWUYAiABKAxSBXZhbHVl'); 24 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/any.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/any.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'any.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/api.pbenum.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/api.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields 7 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/api.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/api.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'api.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/compiler/plugin.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/compiler/plugin.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'plugin.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/descriptor.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/descriptor.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'descriptor.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/duration.pbenum.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/duration.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields 7 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/duration.pbjson.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/duration.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | import 'dart:core' as $core; 9 | import 'dart:convert' as $convert; 10 | import 'dart:typed_data' as $typed_data; 11 | 12 | @$core.Deprecated('Use durationDescriptor instead') 13 | const Duration$json = { 14 | '1': 'Duration', 15 | '2': [ 16 | {'1': 'seconds', '3': 1, '4': 1, '5': 3, '10': 'seconds'}, 17 | {'1': 'nanos', '3': 2, '4': 1, '5': 5, '10': 'nanos'}, 18 | ], 19 | }; 20 | 21 | /// Descriptor for `Duration`. Decode as a `google.protobuf.DescriptorProto`. 22 | final $typed_data.Uint8List durationDescriptor = $convert.base64Decode( 23 | 'CghEdXJhdGlvbhIYCgdzZWNvbmRzGAEgASgDUgdzZWNvbmRzEhQKBW5hbm9zGAIgASgFUgVuYW5vcw=='); 24 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/duration.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/duration.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'duration.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/empty.pbenum.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/empty.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields 7 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/empty.pbjson.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/empty.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | import 'dart:core' as $core; 9 | import 'dart:convert' as $convert; 10 | import 'dart:typed_data' as $typed_data; 11 | 12 | @$core.Deprecated('Use emptyDescriptor instead') 13 | const Empty$json = { 14 | '1': 'Empty', 15 | }; 16 | 17 | /// Descriptor for `Empty`. Decode as a `google.protobuf.DescriptorProto`. 18 | final $typed_data.Uint8List emptyDescriptor = 19 | $convert.base64Decode('CgVFbXB0eQ=='); 20 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/empty.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/empty.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'empty.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/field_mask.pbenum.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/field_mask.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields 7 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/field_mask.pbjson.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/field_mask.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | import 'dart:core' as $core; 9 | import 'dart:convert' as $convert; 10 | import 'dart:typed_data' as $typed_data; 11 | 12 | @$core.Deprecated('Use fieldMaskDescriptor instead') 13 | const FieldMask$json = { 14 | '1': 'FieldMask', 15 | '2': [ 16 | {'1': 'paths', '3': 1, '4': 3, '5': 9, '10': 'paths'}, 17 | ], 18 | }; 19 | 20 | /// Descriptor for `FieldMask`. Decode as a `google.protobuf.DescriptorProto`. 21 | final $typed_data.Uint8List fieldMaskDescriptor = 22 | $convert.base64Decode('CglGaWVsZE1hc2sSFAoFcGF0aHMYASADKAlSBXBhdGhz'); 23 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/field_mask.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/field_mask.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'field_mask.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/source_context.pbenum.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/source_context.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields 7 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/source_context.pbjson.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/source_context.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | import 'dart:core' as $core; 9 | import 'dart:convert' as $convert; 10 | import 'dart:typed_data' as $typed_data; 11 | 12 | @$core.Deprecated('Use sourceContextDescriptor instead') 13 | const SourceContext$json = { 14 | '1': 'SourceContext', 15 | '2': [ 16 | {'1': 'file_name', '3': 1, '4': 1, '5': 9, '10': 'fileName'}, 17 | ], 18 | }; 19 | 20 | /// Descriptor for `SourceContext`. Decode as a `google.protobuf.DescriptorProto`. 21 | final $typed_data.Uint8List sourceContextDescriptor = $convert.base64Decode( 22 | 'Cg1Tb3VyY2VDb250ZXh0EhsKCWZpbGVfbmFtZRgBIAEoCVIIZmlsZU5hbWU='); 23 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/source_context.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/source_context.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'source_context.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/struct.pbenum.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/struct.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields 7 | 8 | // ignore_for_file: UNDEFINED_SHOWN_NAME 9 | import 'dart:core' as $core; 10 | import 'package:protobuf/protobuf.dart' as $pb; 11 | 12 | class NullValue extends $pb.ProtobufEnum { 13 | static const NullValue NULL_VALUE = NullValue._( 14 | 0, 15 | $core.bool.fromEnvironment('protobuf.omit_enum_names') 16 | ? '' 17 | : 'NULL_VALUE'); 18 | 19 | static const $core.List values = [ 20 | NULL_VALUE, 21 | ]; 22 | 23 | static final $core.Map<$core.int, NullValue> _byValue = 24 | $pb.ProtobufEnum.initByValue(values); 25 | static NullValue? valueOf($core.int value) => _byValue[value]; 26 | 27 | const NullValue._($core.int v, $core.String n) : super(v, n); 28 | } 29 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/struct.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/struct.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'struct.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/timestamp.pbenum.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/timestamp.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields 7 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/timestamp.pbjson.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/timestamp.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | import 'dart:core' as $core; 9 | import 'dart:convert' as $convert; 10 | import 'dart:typed_data' as $typed_data; 11 | 12 | @$core.Deprecated('Use timestampDescriptor instead') 13 | const Timestamp$json = { 14 | '1': 'Timestamp', 15 | '2': [ 16 | {'1': 'seconds', '3': 1, '4': 1, '5': 3, '10': 'seconds'}, 17 | {'1': 'nanos', '3': 2, '4': 1, '5': 5, '10': 'nanos'}, 18 | ], 19 | }; 20 | 21 | /// Descriptor for `Timestamp`. Decode as a `google.protobuf.DescriptorProto`. 22 | final $typed_data.Uint8List timestampDescriptor = $convert.base64Decode( 23 | 'CglUaW1lc3RhbXASGAoHc2Vjb25kcxgBIAEoA1IHc2Vjb25kcxIUCgVuYW5vcxgCIAEoBVIFbmFub3M='); 24 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/timestamp.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/timestamp.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'timestamp.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/type.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/type.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'type.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/wrappers.pbenum.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/wrappers.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields 7 | -------------------------------------------------------------------------------- /dart/lib/src/proto/google/protobuf/wrappers.pbserver.dart: -------------------------------------------------------------------------------- 1 | /// 2 | // Generated code. Do not modify. 3 | // source: google/protobuf/wrappers.proto 4 | // 5 | // @dart = 2.12 6 | // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package 7 | 8 | export 'wrappers.pb.dart'; 9 | -------------------------------------------------------------------------------- /dart/lib/src/proto/sdk/options/v1/options.pbenum.dart: -------------------------------------------------------------------------------- 1 | // 2 | // Generated code. Do not modify. 3 | // source: sdk/options/v1/options.proto 4 | // 5 | // @dart = 2.12 6 | 7 | // ignore_for_file: annotate_overrides, camel_case_types, comment_references 8 | // ignore_for_file: constant_identifier_names, library_prefixes 9 | // ignore_for_file: non_constant_identifier_names, prefer_final_fields 10 | // ignore_for_file: unnecessary_import, unnecessary_this, unused_import 11 | -------------------------------------------------------------------------------- /dart/lib/src/proto/services/file-management/v1/file-management.pbenum.dart: -------------------------------------------------------------------------------- 1 | // 2 | // Generated code. Do not modify. 3 | // source: services/file-management/v1/file-management.proto 4 | // 5 | // @dart = 2.12 6 | 7 | // ignore_for_file: annotate_overrides, camel_case_types, comment_references 8 | // ignore_for_file: constant_identifier_names, library_prefixes 9 | // ignore_for_file: non_constant_identifier_names, prefer_final_fields 10 | // ignore_for_file: unnecessary_import, unnecessary_this, unused_import 11 | -------------------------------------------------------------------------------- /dart/lib/src/proto/services/google/api/annotations.pbenum.dart: -------------------------------------------------------------------------------- 1 | // 2 | // Generated code. Do not modify. 3 | // source: services/google/api/annotations.proto 4 | // 5 | // @dart = 2.12 6 | 7 | // ignore_for_file: annotate_overrides, camel_case_types, comment_references 8 | // ignore_for_file: constant_identifier_names, library_prefixes 9 | // ignore_for_file: non_constant_identifier_names, prefer_final_fields 10 | // ignore_for_file: unnecessary_import, unnecessary_this, unused_import 11 | -------------------------------------------------------------------------------- /dart/lib/src/proto/services/google/api/annotations.pbjson.dart: -------------------------------------------------------------------------------- 1 | // 2 | // Generated code. Do not modify. 3 | // source: services/google/api/annotations.proto 4 | // 5 | // @dart = 2.12 6 | 7 | // ignore_for_file: annotate_overrides, camel_case_types, comment_references 8 | // ignore_for_file: constant_identifier_names, library_prefixes 9 | // ignore_for_file: non_constant_identifier_names, prefer_final_fields 10 | // ignore_for_file: unnecessary_import, unnecessary_this, unused_import 11 | 12 | import 'dart:convert' as $convert; 13 | import 'dart:core' as $core; 14 | import 'dart:typed_data' as $typed_data; 15 | -------------------------------------------------------------------------------- /dart/lib/src/proto/services/google/api/http.pbenum.dart: -------------------------------------------------------------------------------- 1 | // 2 | // Generated code. Do not modify. 3 | // source: services/google/api/http.proto 4 | // 5 | // @dart = 2.12 6 | 7 | // ignore_for_file: annotate_overrides, camel_case_types, comment_references 8 | // ignore_for_file: constant_identifier_names, library_prefixes 9 | // ignore_for_file: non_constant_identifier_names, prefer_final_fields 10 | // ignore_for_file: unnecessary_import, unnecessary_this, unused_import 11 | -------------------------------------------------------------------------------- /dart/lib/src/proto/services/options/field-options.pbenum.dart: -------------------------------------------------------------------------------- 1 | // 2 | // Generated code. Do not modify. 3 | // source: services/options/field-options.proto 4 | // 5 | // @dart = 2.12 6 | 7 | // ignore_for_file: annotate_overrides, camel_case_types, comment_references 8 | // ignore_for_file: constant_identifier_names, library_prefixes 9 | // ignore_for_file: non_constant_identifier_names, prefer_final_fields 10 | // ignore_for_file: unnecessary_import, unnecessary_this, unused_import 11 | -------------------------------------------------------------------------------- /dart/lib/src/proto/services/provider/v1/access-management.pbenum.dart: -------------------------------------------------------------------------------- 1 | // 2 | // Generated code. Do not modify. 3 | // source: services/provider/v1/access-management.proto 4 | // 5 | // @dart = 2.12 6 | 7 | // ignore_for_file: annotate_overrides, camel_case_types, comment_references 8 | // ignore_for_file: constant_identifier_names, library_prefixes 9 | // ignore_for_file: non_constant_identifier_names, prefer_final_fields 10 | // ignore_for_file: unnecessary_import, unnecessary_this, unused_import 11 | -------------------------------------------------------------------------------- /dart/lib/src/proto/services/universal-wallet/v1/universal-wallet.pbenum.dart: -------------------------------------------------------------------------------- 1 | // 2 | // Generated code. Do not modify. 3 | // source: services/universal-wallet/v1/universal-wallet.proto 4 | // 5 | // @dart = 2.12 6 | 7 | // ignore_for_file: annotate_overrides, camel_case_types, comment_references 8 | // ignore_for_file: constant_identifier_names, library_prefixes 9 | // ignore_for_file: non_constant_identifier_names, prefer_final_fields 10 | // ignore_for_file: unnecessary_import, unnecessary_this, unused_import 11 | -------------------------------------------------------------------------------- /dart/lib/src/trinsic_util.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:trinsic_dart/src/proto/sdk/options/v1/options.pb.dart'; 4 | 5 | TrinsicOptions trinsicConfig({String authToken = ""}) { 6 | String endpoint = "prod.trinsic.cloud"; 7 | String port = "443"; 8 | String useTls = "true"; 9 | try { 10 | endpoint = 11 | Platform.environment["TEST_SERVER_ENDPOINT"] ?? "prod.trinsic.cloud"; 12 | port = Platform.environment["TEST_SERVER_PORT"] ?? "443"; 13 | useTls = Platform.environment["TEST_SERVER_USE_TLS"] ?? "true"; 14 | } on Error { 15 | // unsupported operation happens in flutter, ignore it. 16 | } 17 | 18 | var trinsicOptions = TrinsicOptions(); 19 | trinsicOptions.authToken = authToken; 20 | trinsicOptions.serverEndpoint = endpoint; 21 | trinsicOptions.serverPort = int.parse(port); 22 | trinsicOptions.serverUseTls = useTls.toLowerCase() != "false"; 23 | return trinsicOptions; 24 | } 25 | 26 | String getSdkVersion() { 27 | const sdkVersion = "1.11.0"; 28 | return sdkVersion; 29 | } 30 | -------------------------------------------------------------------------------- /dart/lib/trinsic.dart: -------------------------------------------------------------------------------- 1 | library trinsic_dart; 2 | 3 | // Duplicate to allow for a nice export alias. 4 | export 'trinsic_dart.dart'; 5 | -------------------------------------------------------------------------------- /dart/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: trinsic_dart 2 | description: Dart wrapper for the trinsic services SDK 3 | version: "1.13.0" 4 | homepage: https://trinsic.id 5 | 6 | environment: 7 | sdk: '>=3.0.0 <4.0.0' 8 | 9 | 10 | dependencies: 11 | protobuf: ^3.0.0 12 | grpc: ^3.2.3 13 | uuid: ^3.0.7 14 | fixnum: ^1.1.0 15 | 16 | dev_dependencies: 17 | lints: 2.1.1 18 | test: 1.25.5 19 | path: any 20 | coverage: 1.8.0 21 | -------------------------------------------------------------------------------- /dart/test/dart_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | 3 | import '../example/ecosystem_example.dart'; 4 | import '../example/templates_demo.dart'; 5 | import '../example/vaccine_example.dart'; 6 | 7 | void main() { 8 | group('Dart Examples', () { 9 | setUp(() { 10 | // Additional setup goes here. 11 | }); 12 | 13 | test('Vaccine Demo', () async { 14 | await runVaccineDemo(); 15 | }); 16 | test('Ecosystem Demo', () async { 17 | await runEcosystemDemo(); 18 | }); 19 | test('Templates Demo', () async { 20 | await runTemplatesDemo(); 21 | }); 22 | test('Trust Registry Demo', () async { 23 | // Runs locally, fails on github actions for unknown reasons 24 | // await runTrustRegistryDemo(); 25 | }); 26 | }); 27 | } 28 | -------------------------------------------------------------------------------- /devops/requirements.txt: -------------------------------------------------------------------------------- 1 | git+https://github.com/danielgtaylor/python-betterproto.git@3ca092a72494f9225bcb124aab2d0675f9e8c125#egg=betterproto[compiler] 2 | grpcio-tools 3 | requests 4 | markupsafe==2.1.5 5 | -------------------------------------------------------------------------------- /devops/testdata/credential-template-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | "https://www.w3.org/2018/credentials/v1", 4 | "https://w3id.org/bbs/v1", 5 | "https://staging-schema.trinsic.cloud/__default/my-first-credential-template/context" 6 | ], 7 | "type": [ "VerifiableCredential", "MyFirstCredentialTemplate" ], 8 | "@explicit": true, 9 | "issuer": {}, 10 | "credentialSubject": { 11 | "name": {}, 12 | "numberOfBags": {}, 13 | "dateOfBirth": {}, 14 | "vaccinated": {} 15 | } 16 | } -------------------------------------------------------------------------------- /devops/testdata/vaccination-certificate-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | "https://www.w3.org/2018/credentials/v1", 4 | "https://w3id.org/vaccination/v1", 5 | "https://w3id.org/security/bbs/v1" 6 | ], 7 | "type": [ 8 | "VerifiableCredential", 9 | "VaccinationCertificate" 10 | ], 11 | "@explicit": true, 12 | "issuer": {}, 13 | "credentialSubject": { 14 | "@explicit": true, 15 | "@type": "VaccinationEvent", 16 | "batchNumber": {}, 17 | "countryOfVaccination": {} 18 | } 19 | } -------------------------------------------------------------------------------- /devops/testdata/vaccination-certificate-unsigned.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | "https://www.w3.org/2018/credentials/v1", 4 | "https://w3id.org/vaccination/v1", 5 | "https://w3id.org/security/bbs/v1" 6 | ], 7 | "id": "urn:uvci:af5vshde843jf831j128fj", 8 | "type": [ 9 | "VaccinationCertificate", 10 | "VerifiableCredential" 11 | ], 12 | "description": "COVID-19 Vaccination Certificate", 13 | "name": "COVID-19 Vaccination Certificate", 14 | "expirationDate": "2029-12-03T12:19:52Z", 15 | "issuanceDate": "2019-12-03T12:19:52Z", 16 | "issuer": "did:key:zUC724vuGvHpnCGFG1qqpXb81SiBLu3KLSqVzenwEZNPoY35i2Bscb8DLaVwHvRFs6F2NkNNXRcPWvqnPDUd9ukdjLkjZd3u9zzL4wDZDUpkPAatLDGLEYVo8kkAzuAKJQMr7N2", 17 | "credentialSubject": { 18 | "id": "urn:uuid:c53e70f8-ce9a-4576-8744-e5f85c20a743", 19 | "type": "VaccinationEvent", 20 | "batchNumber": "1183738569", 21 | "countryOfVaccination": "US" 22 | } 23 | } -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | docs.trinsic.id 2 | -------------------------------------------------------------------------------- /docs/_static/bad-form.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/bad-form.png -------------------------------------------------------------------------------- /docs/_static/images/1-api-token.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/1-api-token.png -------------------------------------------------------------------------------- /docs/_static/images/2-trinsic-config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/2-trinsic-config.png -------------------------------------------------------------------------------- /docs/_static/images/3-trinsic-debug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/3-trinsic-debug.png -------------------------------------------------------------------------------- /docs/_static/images/buf-api-calls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/buf-api-calls.png -------------------------------------------------------------------------------- /docs/_static/images/buf-authorization.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/buf-authorization.png -------------------------------------------------------------------------------- /docs/_static/images/buf-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/buf-info.png -------------------------------------------------------------------------------- /docs/_static/images/buf-issue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/buf-issue.png -------------------------------------------------------------------------------- /docs/_static/images/buf-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/buf-list.png -------------------------------------------------------------------------------- /docs/_static/images/buf-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/buf-search.png -------------------------------------------------------------------------------- /docs/_static/images/connect-auth-token.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/connect-auth-token.png -------------------------------------------------------------------------------- /docs/_static/images/connect-verifications-page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/connect-verifications-page.png -------------------------------------------------------------------------------- /docs/_static/images/credential-details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/credential-details.png -------------------------------------------------------------------------------- /docs/_static/images/flow-chapi-issuance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/flow-chapi-issuance.png -------------------------------------------------------------------------------- /docs/_static/images/flow-chapi-verification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/flow-chapi-verification.png -------------------------------------------------------------------------------- /docs/_static/images/flow-oidc-verification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/flow-oidc-verification.png -------------------------------------------------------------------------------- /docs/_static/images/person-welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/person-welcome.png -------------------------------------------------------------------------------- /docs/_static/images/postman-api-calls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/postman-api-calls.png -------------------------------------------------------------------------------- /docs/_static/images/postman-authorization.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/postman-authorization.png -------------------------------------------------------------------------------- /docs/_static/images/postman-grpc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/postman-grpc.png -------------------------------------------------------------------------------- /docs/_static/images/postman-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/postman-info.png -------------------------------------------------------------------------------- /docs/_static/images/postman-issue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/postman-issue.png -------------------------------------------------------------------------------- /docs/_static/images/postman-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/postman-list.png -------------------------------------------------------------------------------- /docs/_static/images/postman-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/postman-search.png -------------------------------------------------------------------------------- /docs/_static/images/trinsic-connect-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/trinsic-connect-flow.png -------------------------------------------------------------------------------- /docs/_static/images/trust-triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/trust-triangle.png -------------------------------------------------------------------------------- /docs/_static/images/trusttriangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/images/trusttriangle.png -------------------------------------------------------------------------------- /docs/_static/javascripts/config.js: -------------------------------------------------------------------------------- 1 | document$.subscribe(() => { 2 | hljs.highlightAll(); 3 | }); -------------------------------------------------------------------------------- /docs/_static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/logo.png -------------------------------------------------------------------------------- /docs/_static/named-triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/named-triangle.png -------------------------------------------------------------------------------- /docs/_static/stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/stack.png -------------------------------------------------------------------------------- /docs/_static/trust-ecosystem-interop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/trust-ecosystem-interop.jpg -------------------------------------------------------------------------------- /docs/_static/trust-ecosystem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/trust-ecosystem.png -------------------------------------------------------------------------------- /docs/_static/trust-triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/docs/_static/trust-triangle.png -------------------------------------------------------------------------------- /docs/cli/demo.md: -------------------------------------------------------------------------------- 1 | --- 2 | hide: 3 | - navigation 4 | - toc 5 | --- 6 | # Trinsic CLI Demo 7 | 8 | ### Steps to Run 9 | - Click the green Run button 10 | - Follow [walkthrough](../walkthroughs/vaccination.md) 11 | - Note: If you resize this window, make sure to reload the page. If not, the CLI will have display problems. 12 | -------------------------------------------------------------------------------- /docs/examples/idv-swift.md: -------------------------------------------------------------------------------- 1 | --- 2 | hide: 3 | - navigation 4 | --- 5 | 6 | # Request Identity Document Verification in iOS and MacOS 7 | -------------------------------------------------------------------------------- /docs/examples/verify-cred-swift.md: -------------------------------------------------------------------------------- 1 | --- 2 | hide: 3 | - navigation 4 | --- 5 | 6 | # Request Verifiable Credential on iOS 7 | 8 | -------------------------------------------------------------------------------- /docs/guide/verification.md: -------------------------------------------------------------------------------- 1 | --- 2 | hide: 3 | - feedback 4 | --- 5 | 6 | # Verifications 7 | 8 | This page is coming soon 9 | -------------------------------------------------------------------------------- /docs/ios/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | hide: 3 | - toc 4 | --- 5 | 6 | # iOS SDK 7 | 8 | Several languages can be used with iOS applications. See the individual language documentation for installation instructions 9 | 10 | - [Swift](#2-swift-sdk) 11 | - [Flutter](/dart/) 12 | - [React Native](/web/) 13 | 14 | ## Swift SDK 15 | 16 | The latest package is available for Swift Package Manager and can be added in your dependency section in `Package.swift` as follows: 17 | 18 | ```swift 19 | dependencies: [ 20 | .package(name: "Trinsic", url: "https://github.com/trinsic-id/sdk-swift", branch: "main") 21 | ], 22 | ``` 23 | 24 | You can find more details, source code, and tests for the Swift SDK at [trinsic-id/sdk-swift](https://github.com/trinsic-id/sdk-swift). 25 | -------------------------------------------------------------------------------- /docs/learn/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | hide: 3 | - toc 4 | - feedback 5 | --- 6 | 7 | # Introduction 8 | 9 | ## Build the future of identity 10 | 11 | Trinsic is a cloud-native, web5-native infrastructure for building IDtech products across a variety of use cases, industries, and geographies. Products built on Trinsic inherit features such as user-centricity, interoperability, and decentralization out of the box. We strive to make these concepts easy to understand and use. 12 |
13 |
14 | We’re glad you’re here. 15 | We’ve been focused on providing an exceptional developer experience for decentralized identity since our beginnings in 2019. 16 | Today, we power many of the most successful decentralized identity products. 17 | As you explore our documentation, we’d love your feedback through our Slack community, the chat bubble on the page, or email. 18 | And if you want to complain (or say nice things) to the CEO, feel free to email me (Riley at trinsic.id). 19 | -------------------------------------------------------------------------------- /docs/python/index.md: -------------------------------------------------------------------------------- 1 | # The Trinsic Python SDK 2 | 3 | The Trinsic Python SDK makes it easy to interact with the Trinsic API from any Python application. The most recent version of the library can be found on PyPi. You can find the SDKs source on [Github](https://github.com/trinsic-id/sdk/tree/main/python). Sample applications are located [on Github](https://github.com/trinsic-id/sdk/tree/main/python/samples) 4 | 5 | ## Installation and Configuration 6 | * Recommended: [Create a virtual environment](https://docs.python.org/3/library/venv.html#creating-virtual-environments) 7 | * Install the trinsic package 8 | ```bash 9 | pip install trinsic-sdk 10 | ``` 11 | * Test installation by running the following shell command: 12 | ```bash 13 | # May be "python" or "python3" depending on your install 14 | python -m trinsic 15 | ``` 16 | 17 | * The output should look something like this: 18 | ```bash 19 | Package successfully installed. Sample profile below 20 | ``` 21 | 22 | -------------------------------------------------------------------------------- /docs/requirements.txt: -------------------------------------------------------------------------------- 1 | mkdocs 2 | git+https://github.com/squidfunk/mkdocs-material@master#egg=mkdocs-material 3 | git+https://github.com/trinsic-id/mkdocs-codeinclude-plugin@master#egg=mkdocs-codeinclude-plugin 4 | mkdocs-macros-plugin 5 | git+https://github.com/trinsic-id/mkdocs-git-authors-plugin@sort-order#egg=mkdocs-git-authors-plugin 6 | mkdocstrings 7 | mkdocstrings-python-legacy 8 | mkdocs-autorefs 9 | markdown-fenced-code-tabs 10 | mkdocs-badges 11 | mkdocs-glightbox 12 | -------------------------------------------------------------------------------- /docs/roadmap.md: -------------------------------------------------------------------------------- 1 | # Roadmap 2 | 3 | ## SDKs 4 | ### Available SDKs 5 | - [:material-microsoft: .NET](dotnet/index.md) 6 | - [:material-nodejs: Node](node/index.md) 7 | - [:material-language-python: Python](python/index.md) 8 | - [:material-language-javascript: Web](web/index.md) 9 | - [:material-language-java: Java](java/index.md) 10 | - [:material-menu: Go](go/index.md) 11 | - [:material-android: Android](android/index.md) 12 | - [:material-apple: iOS](ios/index.md) 13 | -------------------------------------------------------------------------------- /docs/support.md: -------------------------------------------------------------------------------- 1 | # Have a Question? 2 | 3 | Normally, the best way to ask quick questions is through the [Trinsic Community slack channel](https://join.slack.com/t/trinsiccommunity/shared_invite/zt-pcsdy7kn-h4vtdPEpqQUlmirU8FFzSQ). 4 | 5 | If you have a bug to report, please report it on the Github issues on our SDK. Contributions and additions to this docs site are always welcome. 6 | 7 | Finally, if you're interested in getting in touch with the team for any other reason, contact us at [support@trinsic.id](mailto:support@trinsic.id). We treat any feedback as gold. 8 | -------------------------------------------------------------------------------- /dotnet/README.md: -------------------------------------------------------------------------------- 1 | # Trinsic SDK for .NET 2 | 3 | ## Installation 4 | 5 | Install latest package from nuget.org 6 | 7 | ``` 8 | dotnet add package Trinsic 9 | ``` 10 | 11 | If using this package in Blazor WebAssembly, use 12 | 13 | ``` 14 | dotnet add package Trinsic.Web 15 | ``` 16 | 17 | ## Usage 18 | 19 | See [documentation here](https://docs.trinsic.id/) -------------------------------------------------------------------------------- /dotnet/Trinsic/Extensions/MessageExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace Google.Protobuf; 2 | 3 | public static class ProtoMessageExtensions 4 | { 5 | /// 6 | /// Converts a message from one type into another. The two types must be compatible 7 | /// and generated from the same .proto file, but may have different namespaces. 8 | /// 9 | /// 10 | /// 11 | /// 12 | public static T As(this IMessage message) 13 | where T : IMessage, new() { 14 | var target = new T(); 15 | target.MergeFrom(message.ToByteString()); 16 | 17 | return target; 18 | } 19 | } -------------------------------------------------------------------------------- /dotnet/Trinsic/Extensions/ServiceOptionsExtensions.cs: -------------------------------------------------------------------------------- 1 | using Trinsic.Sdk.Options.V1; 2 | 3 | namespace Trinsic.Services.Common.V1; 4 | 5 | public static class ServiceOptionsExtensions 6 | { 7 | public static string FormatUrl(this TrinsicOptions options) { 8 | return $"{(options.ServerUseTls ? "https" : "http")}://{options.ServerEndpoint}:{options.ServerPort}"; 9 | } 10 | 11 | public static TrinsicOptions CloneWithAuthToken(this TrinsicOptions options, string authToken) { 12 | var cloned = options.Clone(); 13 | cloned.AuthToken = authToken; 14 | return cloned; 15 | } 16 | } -------------------------------------------------------------------------------- /dotnet/Trinsic/ITrinsicService.cs: -------------------------------------------------------------------------------- 1 | namespace Trinsic; 2 | 3 | /// 4 | /// Trinsic Service Interface 5 | /// 6 | public interface ITrinsicService 7 | { 8 | /// 9 | /// Access Management Service 10 | /// 11 | AccessManagementService AccessManagement { get; } 12 | /// 13 | /// Credential Service 14 | /// 15 | CredentialService Credential { get; } 16 | /// 17 | /// File Management Service 18 | /// 19 | FileManagementService FileManagement { get; } 20 | /// 21 | /// Template Service 22 | /// 23 | TemplateService Template { get; } 24 | /// 25 | /// Provider Service 26 | /// 27 | ProviderService Provider { get; } 28 | /// 29 | /// Trust Registry Service 30 | /// 31 | TrustRegistryService TrustRegistry { get; } 32 | /// 33 | /// Wallet Service 34 | /// 35 | WalletService Wallet { get; } 36 | } -------------------------------------------------------------------------------- /dotnet/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "sdk": { 3 | "version": "6.0.100", 4 | "rollForward": "latestFeature", 5 | "allowPrerelease": false 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /examples/cross-eco-issuance/README.md: -------------------------------------------------------------------------------- 1 | # Cross Ecosystem Issuance 2 | 3 | This repo is example code for the documentation article found at [https://docs.trinsic.id/examples/cross-eco-issuance/](https://docs.trinsic.id/examples/cross-eco-issuance/) 4 | -------------------------------------------------------------------------------- /examples/cross-eco-issuance/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "typescript": "^5.3.2" 4 | }, 5 | "name": "trinsic-demo", 6 | "version": "1.0.0", 7 | "main": "index.js", 8 | "scripts": { 9 | "test": "echo \"Error: no test specified\" && exit 1" 10 | }, 11 | "author": "", 12 | "license": "ISC", 13 | "description": "", 14 | "dependencies": { 15 | "@trinsic/trinsic": "^1.13.0" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/ecosystem-transfer/requirements.txt: -------------------------------------------------------------------------------- 1 | trinsic-sdk==1.14.0 2 | -------------------------------------------------------------------------------- /examples/idv-browser/README.md: -------------------------------------------------------------------------------- 1 | # Request Identity Document Verfication in browser 2 | 3 | This repo is example code for the documentation article found at [https://docs.trinsic.id/examples/idv-browser/](https://docs.trinsic.id/examples/idv-browser/) 4 | 5 | To configure and run this demo: 6 | 7 | - Update the `authToken` in the `index.js` with your authToken 8 | - Run `npm install` to install required dependencies 9 | - Run `npm start` and access the demo at `http://localhost:3000` 10 | -------------------------------------------------------------------------------- /examples/idv-browser/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "04-identity-verification", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "type": "module", 7 | "scripts": { 8 | "start": "node index.js" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@trinsic/trinsic": "^1.11.3-pre.14", 14 | "express": "^4.19.2" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/issue-direct-send/README.md: -------------------------------------------------------------------------------- 1 | # Issue directly and send 2 | 3 | This repo is example code for the documentation article found at [https://docs.trinsic.id/examples/issue-direct-send/](https://docs.trinsic.id/examples/issue-direct-send/) -------------------------------------------------------------------------------- /examples/issue-direct-send/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "1-node-issue-send", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "type": "module", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@trinsic/trinsic": "^1.11.4" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/issue-send-chapi/README.md: -------------------------------------------------------------------------------- 1 | # Issue using CHAPI 2 | 3 | This repo is example code for the documentation article found at [https://docs.trinsic.id/examples/issue-send-chapi/](https://docs.trinsic.id/examples/issue-send-chapi/) 4 | 5 | To configure and run this demo: 6 | 7 | - Update the `authToken`` in the `index.js` with your authToken 8 | - Optinally, update the `recommendedHandlerOrigins` in `index.html` to recommend your ecosystem in the list of wallets 9 | - Run `npm start` and access the demo at `http://localhost:3000` -------------------------------------------------------------------------------- /examples/issue-send-chapi/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "02-issue-chapi", 3 | "version": "1.0.0", 4 | "description": "", 5 | "type": "module", 6 | "main": "index.js", 7 | "scripts": { 8 | "start": "node index.js" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@trinsic/trinsic": "^1.11.4", 14 | "express": "^4.19.2" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/verify-cred-oidc/README.md: -------------------------------------------------------------------------------- 1 | # Request Verifiable Credential in browser using OIDC 2 | 3 | This repo is example code for the documentation article found at [https://docs.trinsic.id/examples/verify-cred-oidc/](https://docs.trinsic.id/examples/verify-cred-oidc/) 4 | 5 | To configure and run this demo: 6 | 7 | - Update the `authToken` in the `index.js` with your auth token 8 | - Update the `index.html` file to add your `ecosystem` and `schema` in the `requestVerifiableCredential` method 9 | - Run `npm install` to install required dependencies 10 | - Run `npm start` and access the demo at `http://localhost:3000` 11 | -------------------------------------------------------------------------------- /examples/verify-cred-oidc/index.js: -------------------------------------------------------------------------------- 1 | import express from 'express'; 2 | import path from 'path'; 3 | import { TrinsicService } from "@trinsic/trinsic"; 4 | 5 | const app = express(); 6 | app.use(express.json()); 7 | 8 | const trinsic = new TrinsicService({ 9 | authToken: "", 10 | }); 11 | 12 | app.post('/api/verify', async (req, res) => { 13 | const verifyRequest = req.body; 14 | 15 | const verifyResponse = await trinsic.credential().verifyProof({ 16 | proofDocumentJson: JSON.stringify(verifyRequest), 17 | }); 18 | 19 | res.json(verifyResponse); 20 | }); 21 | 22 | // Serve static files from the 'public' folder 23 | app.use(express.static(process.cwd())); 24 | 25 | // Catch-all to return index.html for any other request 26 | app.get('*', (req, res) => { 27 | res.sendFile(path.join(process.cwd(), 'index.html')); 28 | }); 29 | 30 | // Start the server 31 | const PORT = process.env.PORT || 3000; 32 | app.listen(PORT, () => { 33 | console.log(`Server is running on port ${PORT}`); 34 | console.log(`Access the demo page at http://localhost:${PORT}`); 35 | }); 36 | -------------------------------------------------------------------------------- /examples/verify-cred-oidc/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "03-request-vp", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "type": "module", 7 | "scripts": { 8 | "start": "node index.js" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@trinsic/trinsic": "^1.11.4", 14 | "express": "^4.19.2" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /go/README.md: -------------------------------------------------------------------------------- 1 | # Trinsic SDK for Go 2 | 3 | ## Usage 4 | 5 | ``` 6 | go get github.com/trinsic-id/sdk/go 7 | ``` 8 | 9 | ## Dependencies 10 | 11 | This SDK depends on Okapi library which is distributed as a C-callable library. 12 | The bindings use `cgo` to call into this native functionality. You must have the Okapi static library in 13 | your library search path, including the C headers. You can use the below instructions to install them for your platform. 14 | 15 | ### Homebrew (MacOS and Linux) 16 | 17 | We maintain a Homebrew Tap with bottles for MacOS and Linux. To install run: 18 | 19 | ``` 20 | brew install trinsic-id/tap/okapi 21 | ``` 22 | 23 | ### `dpkg` for Linux 24 | 25 | You can find .deb packages for your platform with [each release](https://github.com/trinsic-id/okapi/releases). These can be installed using `dpkg`. 26 | Choose the package for your architecture. 27 | The packages will install the required libraries and header files. 28 | 29 | ``` 30 | wget https://github.com/trinsic-id/okapi/releases/download/v1.1.0/okapi_1.1.0_amd64.deb 31 | 32 | dpkg -i okapi_1.1.0_amd64.deb 33 | ``` 34 | -------------------------------------------------------------------------------- /go/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/trinsic-id/sdk/go 2 | 3 | go 1.17 4 | 5 | require ( 6 | github.com/stretchr/testify v1.8.0 7 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 8 | google.golang.org/grpc v1.48.0 9 | google.golang.org/protobuf v1.28.1 10 | ) 11 | 12 | require ( 13 | github.com/davecgh/go-spew v1.1.1 // indirect 14 | github.com/golang/protobuf v1.5.2 // indirect 15 | github.com/pmezard/go-difflib v1.0.0 // indirect 16 | golang.org/x/net v0.23.0 // indirect 17 | golang.org/x/sys v0.18.0 // indirect 18 | golang.org/x/text v0.14.0 // indirect 19 | gopkg.in/yaml.v3 v3.0.1 // indirect 20 | ) 21 | -------------------------------------------------------------------------------- /go/services/README.md: -------------------------------------------------------------------------------- 1 | 1. To find the latest binary packages, go to the [output of the action](https://github.com/trinsic-id/okapi/actions/workflows/build-libs.yml) 2 | 2. Click on the latest successful run, scroll down 3 | 3. Download appropriate output file 4 | 4. Unpack `okapi.h` and appropriate binaries into the `/sdk/go/services`directory 5 | 5. Set the following environment variables so that okapi will compile: 6 | 1. `CGO_LDFLAGS=-L[path to repo]/go/services` 7 | 2. `CGO_CFLAGS=-I[path to repo]/go/services` -------------------------------------------------------------------------------- /go/services/loadcerts.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package services 5 | 6 | import "crypto/x509" 7 | 8 | func loadWindowsCerts() []*x509.Certificate { 9 | var certs []*x509.Certificate 10 | return certs 11 | } 12 | -------------------------------------------------------------------------------- /java/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/java/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /java/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /java/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'services' 2 | 3 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/GrpcException.java: -------------------------------------------------------------------------------- 1 | package trinsic; 2 | 3 | public class GrpcException extends RuntimeException { 4 | public Object response; 5 | 6 | public GrpcException(Object response) { 7 | this.response = response; 8 | } 9 | 10 | public static void assertSuccessfulResponse(int responseValue, Object response) { 11 | if (responseValue != 0) throw new GrpcException(response); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/common/v1/NonceOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/common/v1/common.proto 3 | 4 | package trinsic.services.common.v1; 5 | 6 | public interface NonceOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.common.v1.Nonce) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * UTC unix millisecond timestamp the request was made
16 |    * 
17 | * 18 | * int64 timestamp = 1; 19 | * 20 | * @return The timestamp. 21 | */ 22 | long getTimestamp(); 23 | 24 | /** 25 | * 26 | * 27 | *
28 |    * blake3256 hash of the request body
29 |    * 
30 | * 31 | * bytes request_hash = 2; 32 | * 33 | * @return The requestHash. 34 | */ 35 | com.google.protobuf.ByteString getRequestHash(); 36 | } 37 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/connect/v1/CancelSessionRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/connect/v1/connect.proto 3 | 4 | package trinsic.services.connect.v1; 5 | 6 | public interface CancelSessionRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.connect.v1.CancelSessionRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * The ID of the IDVSession to cancel
16 |    * 
17 | * 18 | * string idv_session_id = 1; 19 | * 20 | * @return The idvSessionId. 21 | */ 22 | java.lang.String getIdvSessionId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * The ID of the IDVSession to cancel
28 |    * 
29 | * 30 | * string idv_session_id = 1; 31 | * 32 | * @return The bytes for idvSessionId. 33 | */ 34 | com.google.protobuf.ByteString getIdvSessionIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/connect/v1/CredentialRequestDataOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/connect/v1/connect.proto 3 | 4 | package trinsic.services.connect.v1; 5 | 6 | public interface CredentialRequestDataOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.connect.v1.CredentialRequestData) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * The type of verification for which the credential can be used
16 |    * 
17 | * 18 | * .services.connect.v1.VerificationType type = 1; 19 | * 20 | * @return The enum numeric value on the wire for type. 21 | */ 22 | int getTypeValue(); 23 | /** 24 | * 25 | * 26 | *
27 |    * The type of verification for which the credential can be used
28 |    * 
29 | * 30 | * .services.connect.v1.VerificationType type = 1; 31 | * 32 | * @return The type. 33 | */ 34 | trinsic.services.connect.v1.VerificationType getType(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/connect/v1/GetSessionRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/connect/v1/connect.proto 3 | 4 | package trinsic.services.connect.v1; 5 | 6 | public interface GetSessionRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.connect.v1.GetSessionRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * The ID of the IDVSession to get
16 |    * 
17 | * 18 | * string idv_session_id = 1; 19 | * 20 | * @return The idvSessionId. 21 | */ 22 | java.lang.String getIdvSessionId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * The ID of the IDVSession to get
28 |    * 
29 | * 30 | * string idv_session_id = 1; 31 | * 32 | * @return The bytes for idvSessionId. 33 | */ 34 | com.google.protobuf.ByteString getIdvSessionIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/connect/v1/HasValidCredentialResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/connect/v1/connect.proto 3 | 4 | package trinsic.services.connect.v1; 5 | 6 | public interface HasValidCredentialResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.connect.v1.HasValidCredentialResponse) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * Whether the identity has a valid credential
16 |    * 
17 | * 18 | * bool has_valid_credential = 1; 19 | * 20 | * @return The hasValidCredential. 21 | */ 22 | boolean getHasValidCredential(); 23 | } 24 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/filemanagement/v1/DeleteFileRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/file-management/v1/file-management.proto 3 | 4 | package trinsic.services.filemanagement.v1; 5 | 6 | public interface DeleteFileRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.filemanagement.v1.DeleteFileRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * ID of file to delete
16 |    * 
17 | * 18 | * string id = 1; 19 | * 20 | * @return The id. 21 | */ 22 | java.lang.String getId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * ID of file to delete
28 |    * 
29 | * 30 | * string id = 1; 31 | * 32 | * @return The bytes for id. 33 | */ 34 | com.google.protobuf.ByteString getIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/filemanagement/v1/DeleteFileResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/file-management/v1/file-management.proto 3 | 4 | package trinsic.services.filemanagement.v1; 5 | 6 | public interface DeleteFileResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.filemanagement.v1.DeleteFileResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/filemanagement/v1/GetFileRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/file-management/v1/file-management.proto 3 | 4 | package trinsic.services.filemanagement.v1; 5 | 6 | public interface GetFileRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.filemanagement.v1.GetFileRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * ID of file to fetch
16 |    * 
17 | * 18 | * string id = 1; 19 | * 20 | * @return The id. 21 | */ 22 | java.lang.String getId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * ID of file to fetch
28 |    * 
29 | * 30 | * string id = 1; 31 | * 32 | * @return The bytes for id. 33 | */ 34 | com.google.protobuf.ByteString getIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/filemanagement/v1/GetStorageStatsRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/file-management/v1/file-management.proto 3 | 4 | package trinsic.services.filemanagement.v1; 5 | 6 | public interface GetStorageStatsRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.filemanagement.v1.GetStorageStatsRequest) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/filemanagement/v1/StorageStatsOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/file-management/v1/file-management.proto 3 | 4 | package trinsic.services.filemanagement.v1; 5 | 6 | public interface StorageStatsOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.filemanagement.v1.StorageStats) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * Number of files uploaded by this account
16 |    * 
17 | * 18 | * uint32 num_files = 1; 19 | * 20 | * @return The numFiles. 21 | */ 22 | int getNumFiles(); 23 | 24 | /** 25 | * 26 | * 27 | *
28 |    * Sum total size of all files, in bytes
29 |    * 
30 | * 31 | * uint64 total_size = 2; 32 | * 33 | * @return The totalSize. 34 | */ 35 | long getTotalSize(); 36 | } 37 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/provider/v1/AddRoleAssignmentResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/provider/v1/access-management.proto 3 | 4 | package trinsic.services.provider.v1; 5 | 6 | public interface AddRoleAssignmentResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.provider.v1.AddRoleAssignmentResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/provider/v1/EcosystemInfoRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/provider/v1/provider.proto 3 | 4 | package trinsic.services.provider.v1; 5 | 6 | public interface EcosystemInfoRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.provider.v1.EcosystemInfoRequest) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/provider/v1/GetOberonKeyRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/provider/v1/provider.proto 3 | 4 | package trinsic.services.provider.v1; 5 | 6 | public interface GetOberonKeyRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.provider.v1.GetOberonKeyRequest) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/provider/v1/GetOberonKeyResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/provider/v1/provider.proto 3 | 4 | package trinsic.services.provider.v1; 5 | 6 | public interface GetOberonKeyResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.provider.v1.GetOberonKeyResponse) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * Oberon Public Key as RAW base64-url encoded string
16 |    * 
17 | * 18 | * string key = 1; 19 | * 20 | * @return The key. 21 | */ 22 | java.lang.String getKey(); 23 | /** 24 | * 25 | * 26 | *
27 |    * Oberon Public Key as RAW base64-url encoded string
28 |    * 
29 | * 30 | * string key = 1; 31 | * 32 | * @return The bytes for key. 33 | */ 34 | com.google.protobuf.ByteString getKeyBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/provider/v1/IndyOptionsOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/provider/v1/provider.proto 3 | 4 | package trinsic.services.provider.v1; 5 | 6 | public interface IndyOptionsOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.provider.v1.IndyOptions) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * SOV network on which DID should be published
16 |    * 
17 | * 18 | * .services.provider.v1.IndyOptions.IndyNetwork network = 1; 19 | * 20 | * @return The enum numeric value on the wire for network. 21 | */ 22 | int getNetworkValue(); 23 | /** 24 | * 25 | * 26 | *
27 |    * SOV network on which DID should be published
28 |    * 
29 | * 30 | * .services.provider.v1.IndyOptions.IndyNetwork network = 1; 31 | * 32 | * @return The network. 33 | */ 34 | trinsic.services.provider.v1.IndyOptions.IndyNetwork getNetwork(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/provider/v1/IonOptionsOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/provider/v1/provider.proto 3 | 4 | package trinsic.services.provider.v1; 5 | 6 | public interface IonOptionsOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.provider.v1.IonOptions) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * ION network on which DID should be published
16 |    * 
17 | * 18 | * .services.provider.v1.IonOptions.IonNetwork network = 1; 19 | * 20 | * @return The enum numeric value on the wire for network. 21 | */ 22 | int getNetworkValue(); 23 | /** 24 | * 25 | * 26 | *
27 |    * ION network on which DID should be published
28 |    * 
29 | * 30 | * .services.provider.v1.IonOptions.IonNetwork network = 1; 31 | * 32 | * @return The network. 33 | */ 34 | trinsic.services.provider.v1.IonOptions.IonNetwork getNetwork(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/provider/v1/ListAvailableRolesRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/provider/v1/access-management.proto 3 | 4 | package trinsic.services.provider.v1; 5 | 6 | public interface ListAvailableRolesRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.provider.v1.ListAvailableRolesRequest) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/provider/v1/RemoveRoleAssignmentResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/provider/v1/access-management.proto 3 | 4 | package trinsic.services.provider.v1; 5 | 6 | public interface RemoveRoleAssignmentResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.provider.v1.RemoveRoleAssignmentResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/provider/v1/UpgradeDidResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/provider/v1/provider.proto 3 | 4 | package trinsic.services.provider.v1; 5 | 6 | public interface UpgradeDidResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.provider.v1.UpgradeDidResponse) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * New DID of wallet
16 |    * 
17 | * 18 | * string did = 1; 19 | * 20 | * @return The did. 21 | */ 22 | java.lang.String getDid(); 23 | /** 24 | * 25 | * 26 | *
27 |    * New DID of wallet
28 |    * 
29 | * 30 | * string did = 1; 31 | * 32 | * @return The bytes for did. 33 | */ 34 | com.google.protobuf.ByteString getDidBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/trustregistry/v1/RegisterMemberResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/trust-registry/v1/trust-registry.proto 3 | 4 | package trinsic.services.trustregistry.v1; 5 | 6 | public interface RegisterMemberResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.trustregistry.v1.RegisterMemberResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/trustregistry/v1/UnregisterMemberResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/trust-registry/v1/trust-registry.proto 3 | 4 | package trinsic.services.trustregistry.v1; 5 | 6 | public interface UnregisterMemberResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.trustregistry.v1.UnregisterMemberResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/AddExternalIdentityConfirmResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface AddExternalIdentityConfirmResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.AddExternalIdentityConfirmResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/AuthenticateConfirmResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface AuthenticateConfirmResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.AuthenticateConfirmResponse) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * Auth token for the wallet
16 |    * 
17 | * 18 | * string auth_token = 1; 19 | * 20 | * @return The authToken. 21 | */ 22 | java.lang.String getAuthToken(); 23 | /** 24 | * 25 | * 26 | *
27 |    * Auth token for the wallet
28 |    * 
29 | * 30 | * string auth_token = 1; 31 | * 32 | * @return The bytes for authToken. 33 | */ 34 | com.google.protobuf.ByteString getAuthTokenBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/AuthenticateResendCodeRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface AuthenticateResendCodeRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.AuthenticateResendCodeRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * Challenge for the code you want resent.
16 |    * 
17 | * 18 | * string challenge = 1; 19 | * 20 | * @return The challenge. 21 | */ 22 | java.lang.String getChallenge(); 23 | /** 24 | * 25 | * 26 | *
27 |    * Challenge for the code you want resent.
28 |    * 
29 | * 30 | * string challenge = 1; 31 | * 32 | * @return The bytes for challenge. 33 | */ 34 | com.google.protobuf.ByteString getChallengeBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/AuthenticateResendCodeResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface AuthenticateResendCodeResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.AuthenticateResendCodeResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/DeleteItemRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface DeleteItemRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.DeleteItemRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * ID of item to delete
16 |    * 
17 | * 18 | * string item_id = 1; 19 | * 20 | * @return The itemId. 21 | */ 22 | java.lang.String getItemId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * ID of item to delete
28 |    * 
29 | * 30 | * string item_id = 1; 31 | * 32 | * @return The bytes for itemId. 33 | */ 34 | com.google.protobuf.ByteString getItemIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/DeleteItemResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface DeleteItemResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.DeleteItemResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/DeleteWalletResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface DeleteWalletResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.DeleteWalletResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/GetItemRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface GetItemRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.GetItemRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * ID of item in wallet
16 |    * 
17 | * 18 | * string item_id = 1; 19 | * 20 | * @return The itemId. 21 | */ 22 | java.lang.String getItemId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * ID of item in wallet
28 |    * 
29 | * 30 | * string item_id = 1; 31 | * 32 | * @return The bytes for itemId. 33 | */ 34 | com.google.protobuf.ByteString getItemIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/GetMyInfoRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface GetMyInfoRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.GetMyInfoRequest) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/GetWalletInfoRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface GetWalletInfoRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.GetWalletInfoRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * Wallet ID of the wallet to retrieve
16 |    * 
17 | * 18 | * string wallet_id = 1; 19 | * 20 | * @return The walletId. 21 | */ 22 | java.lang.String getWalletId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * Wallet ID of the wallet to retrieve
28 |    * 
29 | * 30 | * string wallet_id = 1; 31 | * 32 | * @return The bytes for walletId. 33 | */ 34 | com.google.protobuf.ByteString getWalletIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/InsertItemResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface InsertItemResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.InsertItemResponse) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * ID of item inserted into wallet
16 |    * 
17 | * 18 | * string item_id = 2; 19 | * 20 | * @return The itemId. 21 | */ 22 | java.lang.String getItemId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * ID of item inserted into wallet
28 |    * 
29 | * 30 | * string item_id = 2; 31 | * 32 | * @return The bytes for itemId. 33 | */ 34 | com.google.protobuf.ByteString getItemIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/ListWalletsRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface ListWalletsRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.ListWalletsRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * string filter = 1; 13 | * 14 | * @return The filter. 15 | */ 16 | java.lang.String getFilter(); 17 | /** 18 | * string filter = 1; 19 | * 20 | * @return The bytes for filter. 21 | */ 22 | com.google.protobuf.ByteString getFilterBytes(); 23 | } 24 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/RemoveExternalIdentityResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface RemoveExternalIdentityResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.RemoveExternalIdentityResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/RevokeAuthTokenResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface RevokeAuthTokenResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.RevokeAuthTokenResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/universalwallet/v1/UpdateItemResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/universal-wallet/v1/universal-wallet.proto 3 | 4 | package trinsic.services.universalwallet.v1; 5 | 6 | public interface UpdateItemResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.universalwallet.v1.UpdateItemResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/templates/v1/DeleteCredentialTemplateRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/templates/v1/templates.proto 3 | 4 | package trinsic.services.verifiablecredentials.templates.v1; 5 | 6 | public interface DeleteCredentialTemplateRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.templates.v1.DeleteCredentialTemplateRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * ID of template to delete
16 |    * 
17 | * 18 | * string id = 1; 19 | * 20 | * @return The id. 21 | */ 22 | java.lang.String getId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * ID of template to delete
28 |    * 
29 | * 30 | * string id = 1; 31 | * 32 | * @return The bytes for id. 33 | */ 34 | com.google.protobuf.ByteString getIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/templates/v1/DeleteCredentialTemplateResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/templates/v1/templates.proto 3 | 4 | package trinsic.services.verifiablecredentials.templates.v1; 5 | 6 | public interface DeleteCredentialTemplateResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.templates.v1.DeleteCredentialTemplateResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/templates/v1/DeleteVerificationTemplateRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/templates/v1/templates.proto 3 | 4 | package trinsic.services.verifiablecredentials.templates.v1; 5 | 6 | public interface DeleteVerificationTemplateRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.templates.v1.DeleteVerificationTemplateRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * string verification_template_id = 1; 13 | * 14 | * @return The verificationTemplateId. 15 | */ 16 | java.lang.String getVerificationTemplateId(); 17 | /** 18 | * string verification_template_id = 1; 19 | * 20 | * @return The bytes for verificationTemplateId. 21 | */ 22 | com.google.protobuf.ByteString getVerificationTemplateIdBytes(); 23 | } 24 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/templates/v1/DeleteVerificationTemplateResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/templates/v1/templates.proto 3 | 4 | package trinsic.services.verifiablecredentials.templates.v1; 5 | 6 | public interface DeleteVerificationTemplateResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.templates.v1.DeleteVerificationTemplateResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/templates/v1/GetCredentialTemplateRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/templates/v1/templates.proto 3 | 4 | package trinsic.services.verifiablecredentials.templates.v1; 5 | 6 | public interface GetCredentialTemplateRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.templates.v1.GetCredentialTemplateRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * ID of template to fetch
16 |    * 
17 | * 18 | * string id = 1; 19 | * 20 | * @return The id. 21 | */ 22 | java.lang.String getId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * ID of template to fetch
28 |    * 
29 | * 30 | * string id = 1; 31 | * 32 | * @return The bytes for id. 33 | */ 34 | com.google.protobuf.ByteString getIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/templates/v1/GetVerificationTemplateRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/templates/v1/templates.proto 3 | 4 | package trinsic.services.verifiablecredentials.templates.v1; 5 | 6 | public interface GetVerificationTemplateRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.templates.v1.GetVerificationTemplateRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * ID of template to fetch
16 |    * 
17 | * 18 | * string id = 1; 19 | * 20 | * @return The id. 21 | */ 22 | java.lang.String getId(); 23 | /** 24 | * 25 | * 26 | *
27 |    * ID of template to fetch
28 |    * 
29 | * 30 | * string id = 1; 31 | * 32 | * @return The bytes for id. 33 | */ 34 | com.google.protobuf.ByteString getIdBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/v1/CheckStatusResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/v1/verifiable-credentials.proto 3 | 4 | package trinsic.services.verifiablecredentials.v1; 5 | 6 | public interface CheckStatusResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.v1.CheckStatusResponse) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * The credential's revocation status
16 |    * 
17 | * 18 | * bool revoked = 1; 19 | * 20 | * @return The revoked. 21 | */ 22 | boolean getRevoked(); 23 | } 24 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/v1/RejectCredentialResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/v1/verifiable-credentials.proto 3 | 4 | package trinsic.services.verifiablecredentials.v1; 5 | 6 | public interface RejectCredentialResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.v1.RejectCredentialResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/v1/SendResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/v1/verifiable-credentials.proto 3 | 4 | package trinsic.services.verifiablecredentials.v1; 5 | 6 | public interface SendResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.v1.SendResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/v1/UpdateStatusResponseOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/v1/verifiable-credentials.proto 3 | 4 | package trinsic.services.verifiablecredentials.v1; 5 | 6 | public interface UpdateStatusResponseOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.v1.UpdateStatusResponse) 9 | com.google.protobuf.MessageOrBuilder {} 10 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/services/verifiablecredentials/v1/VerifyProofRequestOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: services/verifiable-credentials/v1/verifiable-credentials.proto 3 | 4 | package trinsic.services.verifiablecredentials.v1; 5 | 6 | public interface VerifyProofRequestOrBuilder 7 | extends 8 | // @@protoc_insertion_point(interface_extends:services.verifiablecredentials.v1.VerifyProofRequest) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * 13 | * 14 | *
15 |    * JSON-LD proof document string to verify
16 |    * 
17 | * 18 | * string proof_document_json = 1; 19 | * 20 | * @return The proofDocumentJson. 21 | */ 22 | java.lang.String getProofDocumentJson(); 23 | /** 24 | * 25 | * 26 | *
27 |    * JSON-LD proof document string to verify
28 |    * 
29 | * 30 | * string proof_document_json = 1; 31 | * 32 | * @return The bytes for proofDocumentJson. 33 | */ 34 | com.google.protobuf.ByteString getProofDocumentJsonBytes(); 35 | } 36 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/storage/ITokenProvider.java: -------------------------------------------------------------------------------- 1 | package trinsic.storage; 2 | 3 | import com.google.common.util.concurrent.ListenableFuture; 4 | 5 | public interface ITokenProvider { 6 | ListenableFuture get(String name); 7 | 8 | ListenableFuture save(String accountProfile, String name); 9 | 10 | ListenableFuture save(String accountProfile); 11 | } 12 | -------------------------------------------------------------------------------- /java/src/main/java/trinsic/storage/MemoryTokenProvider.java: -------------------------------------------------------------------------------- 1 | package trinsic.storage; 2 | 3 | import com.google.common.util.concurrent.ListenableFuture; 4 | import java.util.HashMap; 5 | import trinsic.TrinsicUtilities; 6 | 7 | public class MemoryTokenProvider implements ITokenProvider { 8 | HashMap tokens = new HashMap<>(); 9 | 10 | @Override 11 | public ListenableFuture get(String name) { 12 | return TrinsicUtilities.GetListenableFutureValue(tokens.get(name)); 13 | } 14 | 15 | @Override 16 | public ListenableFuture save(String accountProfile, String name) { 17 | tokens.put(name, accountProfile); 18 | return get(name); 19 | } 20 | 21 | @Override 22 | public ListenableFuture save(String accountProfile) { 23 | return save(accountProfile, "default"); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /java/src/test/java/trinsic/GrpcExceptionTest.java: -------------------------------------------------------------------------------- 1 | package trinsic; 2 | 3 | import org.junit.jupiter.api.Assertions; 4 | import org.junit.jupiter.api.Test; 5 | 6 | class GrpcExceptionTest { 7 | 8 | @Test 9 | void assertSuccessfulResponse() { 10 | Assertions.assertDoesNotThrow( 11 | () -> GrpcException.assertSuccessfulResponse(0, "This should fail")); 12 | Assertions.assertThrows( 13 | GrpcException.class, () -> GrpcException.assertSuccessfulResponse(1, "This should fail")); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /java/src/test/java/trinsic/KotlinTestKt.kt: -------------------------------------------------------------------------------- 1 | import kotlinx.coroutines.runBlocking 2 | import org.junit.jupiter.api.Test 3 | 4 | class KotlinTestKt { 5 | @Test 6 | fun ecosystemDemo() { 7 | runBlocking { runEcosystemsDemo() } 8 | } 9 | @Test 10 | fun trustRegistryDemo() { 11 | runBlocking { runTrustRegistryDemo() } 12 | } 13 | @Test 14 | fun vaccineDemo() { 15 | runBlocking { runVaccineDemo() } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /libs/README.md: -------------------------------------------------------------------------------- 1 | 1. To find the latest binary packages, go to the [output of the action](https://github.com/trinsic-id/okapi/actions/workflows/build-libs.yml) 2 | 2. Click on the latest successful run, scroll down 3 | 3. Download appropriate output file -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "trinsic", 3 | "version": "1.0.0", 4 | "description": "Trinsic SDK for interaction with Trinsic Core and Ecosystems backend services", 5 | "author": "Trinsic", 6 | "license": "Apache-2.0", 7 | "devDependencies": { 8 | "groovydoc-to-markdown": "1.0.1" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /proto/README.md: -------------------------------------------------------------------------------- 1 | # Trinsic Services Protobuf Files 2 | 3 | These files are synched with Buf repo at https://buf.build/trinsic/services. 4 | 5 | ***Do not edit/add files directly here. Any work on protobuf files must be performed on [trinsic-id/server](https://github.com/trinsic-id/server/tree/main/proto)*** Any work there will be reflected here. 6 | 7 | ## Working with Buf repo 8 | 9 | Requires Buf CLI. See intallation instructions - https://docs.buf.build/installation 10 | 11 | To update remote repository from local changes: 12 | 13 | ``` 14 | buf push 15 | ``` 16 | 17 | To pull remote changes to local repository: 18 | 19 | ``` 20 | buf mod update 21 | ``` 22 | -------------------------------------------------------------------------------- /proto/buf.lock: -------------------------------------------------------------------------------- 1 | # Generated by buf. DO NOT EDIT. 2 | version: v1 3 | deps: 4 | - remote: buf.build 5 | owner: trinsic 6 | repository: okapi 7 | branch: main 8 | commit: 08b1dba9ef624646a2a13c39dd8c4167 9 | digest: b1-9g9bOPedETzZWhCV5mSymRYA3AqWWROyUVPXgl-iesI= 10 | create_time: 2021-10-22T16:38:09.825264Z 11 | - remote: buf.build 12 | owner: trinsic 13 | repository: services 14 | branch: main 15 | commit: 5cf6174654e2477da2f2a0ca0e797af7 16 | digest: b1-BkdWKz8j2qJ6vImFEdhd9cNTGhDugPyYbASNkI7ZKWk= 17 | create_time: 2021-12-09T17:58:14.051785Z 18 | -------------------------------------------------------------------------------- /proto/buf.md: -------------------------------------------------------------------------------- 1 | # Service SDK Documentation 2 | 3 | TODO -------------------------------------------------------------------------------- /proto/buf.yaml: -------------------------------------------------------------------------------- 1 | version: v1 2 | deps: 3 | - buf.build/trinsic/services 4 | lint: 5 | use: 6 | - DEFAULT 7 | breaking: 8 | use: 9 | - FILE 10 | name: buf.build/trinsic/sdk 11 | build: 12 | excludes: 13 | - pbmse 14 | - services 15 | -------------------------------------------------------------------------------- /proto/sdk/options/v1/options.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package sdk.options.v1; 4 | 5 | option go_package = "sdk/options/v1/options"; 6 | option java_package = "trinsic.sdk.options.v1"; 7 | option csharp_namespace = "Trinsic.Sdk.Options.V1"; 8 | 9 | // Configuration for Trinsic SDK Services 10 | message TrinsicOptions { 11 | // Trinsic API endpoint. Defaults to `prod.trinsic.cloud` 12 | string server_endpoint = 1; 13 | // Trinsic API port; defaults to `443` 14 | int32 server_port = 2; 15 | // Whether TLS is enabled between SDK and Trinsic API; defaults to `true` 16 | bool server_use_tls = 3; 17 | // Authentication token for SDK calls; defaults to empty string (unauthenticated) 18 | string auth_token = 4; 19 | // Default ecosystem ID to use for various SDK calls; defaults to `default` 20 | // string default_ecosystem = 5; 21 | } 22 | 23 | -------------------------------------------------------------------------------- /python/README.md: -------------------------------------------------------------------------------- 1 | # Python SDK 2 | 3 | ## Installation 4 | 5 | ```bash 6 | pip install trinsic-sdk 7 | python -m trinsic 8 | ``` 9 | 10 | Installs and verifies the installation. You should receive a console 11 | message: `Package successfully installed. Sample profile below` and a long base64 string output. This base64 string is 12 | the encoded `AccountProfile`. For more information, see the documentation link below 13 | 14 | ## Documentation 15 | 16 | See [documentation here](https://docs.trinsic.id/) -------------------------------------------------------------------------------- /python/pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | requires = [ 3 | "setuptools>=42", 4 | "wheel" 5 | ] 6 | build-backend = "setuptools.build_meta" -------------------------------------------------------------------------------- /python/requirements.txt: -------------------------------------------------------------------------------- 1 | git+https://github.com/danielgtaylor/python-betterproto.git@3ca092a72494f9225bcb124aab2d0675f9e8c125#egg=betterproto 2 | grpclib==0.4.7 3 | grpcio-tools==1.63.0 4 | deprecation==2.1.0 5 | -------------------------------------------------------------------------------- /python/samples/ecosystem_demo.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | 3 | from trinsic.proto.services.provider.v1 import ( 4 | CreateEcosystemRequest, 5 | ) 6 | from trinsic.trinsic_service import TrinsicService 7 | from trinsic.trinsic_util import trinsic_config, set_eventloop_policy 8 | 9 | 10 | async def ecosystem_demo(): 11 | trinsic_service = TrinsicService(server_config=trinsic_config()) 12 | # createEcosystem() { 13 | actual_create = await trinsic_service.provider.create_ecosystem( 14 | request=CreateEcosystemRequest(description="My ecosystem") 15 | ) 16 | # } 17 | assert actual_create.ecosystem is not None 18 | assert actual_create.ecosystem.id is not None 19 | assert actual_create.ecosystem.id.startswith("urn:trinsic:ecosystems:") 20 | print(f"ecosystem id={actual_create.ecosystem.id}") 21 | 22 | # listEcosystems() { 23 | # } 24 | 25 | 26 | if __name__ == "__main__": 27 | set_eventloop_policy() 28 | asyncio.run(ecosystem_demo()) 29 | -------------------------------------------------------------------------------- /python/samples/provider_demo.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | from trinsic.trinsic_util import set_eventloop_policy 3 | 4 | 5 | async def provider_demo(): 6 | return 7 | 8 | 9 | if __name__ == "__main__": 10 | set_eventloop_policy() 11 | asyncio.run(provider_demo()) 12 | -------------------------------------------------------------------------------- /python/setup.cfg: -------------------------------------------------------------------------------- 1 | [metadata] 2 | name = trinsic-sdk 3 | version = 1.11.0 4 | author = Scott Phillips 5 | author_email = scott.phillips@trinsic.id 6 | description = Trinsic Services SDK bindings 7 | long_description = file: ./README.md 8 | long_description_content_type = text/markdown 9 | url = https://github.com/trinsic-id/okapi/ 10 | project_urls = 11 | Bug Tracker = https://github.com/trinsic-id/okapi/issues 12 | classifiers = 13 | Programming Language :: Python :: 3 14 | License :: OSI Approved :: Apache Software License 15 | Operating System :: OS Independent 16 | 17 | [options] 18 | include_package_data = True 19 | packages = find: 20 | python_requires = >=3.8 21 | install_requires = 22 | grpclib>=0.4.3rc2 23 | betterproto>=2.0.0b4 24 | deprecation>=2.1.0 25 | 26 | [options.packages.find] 27 | exclude = tests 28 | -------------------------------------------------------------------------------- /python/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/tests/__init__.py -------------------------------------------------------------------------------- /python/trinsic/__init__.py: -------------------------------------------------------------------------------- 1 | def __version__(): 2 | sdk_version = "1.11.0" 3 | return sdk_version 4 | -------------------------------------------------------------------------------- /python/trinsic/__main__.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | from trinsic.trinsic_util import set_eventloop_policy 3 | 4 | from trinsic.provider_service import ProviderService 5 | 6 | 7 | async def demo(): 8 | service = ProviderService() 9 | response = await service.get_oberon_key() 10 | assert response is not None 11 | print("Package successfully installed. Sample Oberon Key below") 12 | print(response) 13 | 14 | 15 | if __name__ == "__main__": 16 | set_eventloop_policy() 17 | asyncio.run(demo()) 18 | -------------------------------------------------------------------------------- /python/trinsic/proto/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/google/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/google/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/sdk/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/sdk/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/sdk/options/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/sdk/options/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/sdk/options/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # Generated by the protocol buffer compiler. DO NOT EDIT! 2 | # sources: sdk/options/v1/options.proto 3 | # plugin: python-betterproto 4 | from dataclasses import dataclass 5 | 6 | import betterproto 7 | from betterproto.grpc.grpclib_server import ServiceBase 8 | 9 | 10 | @dataclass(eq=False, repr=False) 11 | class TrinsicOptions(betterproto.Message): 12 | """Configuration for Trinsic SDK Services""" 13 | 14 | server_endpoint: str = betterproto.string_field(1) 15 | """Trinsic API endpoint. Defaults to `prod.trinsic.cloud`""" 16 | 17 | server_port: int = betterproto.int32_field(2) 18 | """Trinsic API port; defaults to `443`""" 19 | 20 | server_use_tls: bool = betterproto.bool_field(3) 21 | """ 22 | Whether TLS is enabled between SDK and Trinsic API; defaults to `true` 23 | """ 24 | 25 | auth_token: str = betterproto.string_field(4) 26 | """ 27 | Authentication token for SDK calls; defaults to empty string 28 | (unauthenticated) 29 | """ 30 | -------------------------------------------------------------------------------- /python/trinsic/proto/services/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/services/account/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/account/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/services/common/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/common/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/services/connect/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/connect/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/services/filemanagement/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/filemanagement/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/services/provider/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/provider/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/services/trustregistry/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/trustregistry/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/services/universalwallet/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/universalwallet/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/services/verifiablecredentials/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/verifiablecredentials/__init__.py -------------------------------------------------------------------------------- /python/trinsic/proto/services/verifiablecredentials/templates/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/python/trinsic/proto/services/verifiablecredentials/templates/__init__.py -------------------------------------------------------------------------------- /web/.config/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | test: { 4 | plugins: [ 5 | "@babel/plugin-transform-modules-commonjs", 6 | "babel-plugin-dynamic-import-node", 7 | ], 8 | }, 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /web/.config/jest.config.cjs: -------------------------------------------------------------------------------- 1 | // sync object 2 | module.exports = { 3 | verbose: true, 4 | collectCoverage: true, 5 | collectCoverageFrom: ["**/src/**/*.ts", "!**/node_modules/**"], 6 | testMatch: ["**/test/*.test.ts"], 7 | globals: { 8 | "ts-jest": { 9 | useESM: true, 10 | }, 11 | }, 12 | transform: { 13 | "^.+\\.jsx?$": "babel-jest", 14 | }, 15 | transformIgnorePatterns: [], 16 | preset: "ts-jest", 17 | testEnvironment: "node", 18 | roots: ["../test"], 19 | }; 20 | -------------------------------------------------------------------------------- /web/.config/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "commonjs" 3 | } 4 | -------------------------------------------------------------------------------- /web/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | 3 | src/proto/**/*.js 4 | src/proto/**/*.d.ts 5 | !src/proto/index.d.ts 6 | 7 | protoc-gen-grpc-web 8 | test/build/*.bundle.js 9 | test/build/*.wasm 10 | -------------------------------------------------------------------------------- /web/.npmrc: -------------------------------------------------------------------------------- 1 | save-exact=true -------------------------------------------------------------------------------- /web/index.ts: -------------------------------------------------------------------------------- 1 | // This allows us to set the default aliasing 2 | export * from "./src"; 3 | -------------------------------------------------------------------------------- /web/spec/support/jasmine-browser.json: -------------------------------------------------------------------------------- 1 | { 2 | "srcDir": "./src", 3 | "specDir": "./test", 4 | "specFiles": ["**/*.spec.ts"], 5 | "helpers": ["./test/helpers/jasmine-helper.ts"], 6 | "env": { 7 | "stopSpecOnExpectationFailure": false, 8 | "stopOnSpecFailure": false, 9 | "random": true 10 | }, 11 | "browser": { 12 | "name": "chrome" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web/src/Version.ts: -------------------------------------------------------------------------------- 1 | export function getSdkVersion(): string { 2 | const sdkVersion = "1.11.0"; 3 | return sdkVersion; 4 | } 5 | -------------------------------------------------------------------------------- /web/src/index.ts: -------------------------------------------------------------------------------- 1 | // Force polyfill to prevent React Native/Expo errors: 2 | import "@azure/core-asynciterator-polyfill"; 3 | 4 | import { WalletService } from "./WalletService"; 5 | import { ProviderService } from "./ProviderService"; 6 | import { TrustRegistryService } from "./TrustRegistryService"; 7 | import { CredentialService } from "./CredentialService"; 8 | import { TemplateService } from "./TemplateService"; 9 | import { TrinsicService } from "./TrinsicService"; 10 | import ServiceBase from "./ServiceBase"; 11 | 12 | export * from "./proto/index"; 13 | export * from "./providers"; 14 | export * from "./FetchReactNativeTransport"; 15 | export * from "./XHRTransport"; 16 | export * from "./ConnectClient"; 17 | 18 | export { 19 | TrinsicService, 20 | WalletService, 21 | ProviderService, 22 | TrustRegistryService, 23 | CredentialService, 24 | TemplateService, 25 | ServiceBase, 26 | }; 27 | -------------------------------------------------------------------------------- /web/src/proto/google/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/web/src/proto/google/index.d.ts -------------------------------------------------------------------------------- /web/src/proto/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/web/src/proto/index.d.ts -------------------------------------------------------------------------------- /web/src/proto/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./sdk/options/v1/options"; 2 | export * from "./services/common/v1/common"; 3 | export * from "./services/account/v1/account"; 4 | export * from "./services/connect/v1/connect"; 5 | export * from "./services/verifiable-credentials/v1/verifiable-credentials"; 6 | export * from "./services/verifiable-credentials/templates/v1/templates"; 7 | export * from "./services/provider/v1/provider"; 8 | export * from "./services/provider/v1/access-management"; 9 | export * from "./services/file-management/v1/file-management"; 10 | export * from "./services/universal-wallet/v1/universal-wallet"; 11 | export * from "./services/trust-registry/v1/trust-registry"; 12 | -------------------------------------------------------------------------------- /web/src/proto/sdk/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/web/src/proto/sdk/index.d.ts -------------------------------------------------------------------------------- /web/src/proto/services/debug/v1/debug.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import { Empty } from "../../../google/protobuf/empty"; 3 | 4 | export type DebuggingDefinition = typeof DebuggingDefinition; 5 | export const DebuggingDefinition = { 6 | name: "Debugging", 7 | fullName: "services.debug.v1.Debugging", 8 | methods: { 9 | callEmpty: { 10 | name: "CallEmpty", 11 | requestType: Empty, 12 | requestStream: false, 13 | responseType: Empty, 14 | responseStream: false, 15 | options: {}, 16 | }, 17 | callEmptyAuth: { 18 | name: "CallEmptyAuth", 19 | requestType: Empty, 20 | requestStream: false, 21 | responseType: Empty, 22 | responseStream: false, 23 | options: {}, 24 | }, 25 | }, 26 | } as const; 27 | -------------------------------------------------------------------------------- /web/src/proto/services/google/api/annotations.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | -------------------------------------------------------------------------------- /web/src/proto/services/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dentity-Development/dentity-ecosystems-sdk/9b94f67a79e824f9189d45ba75d741f0b0361182/web/src/proto/services/index.d.ts -------------------------------------------------------------------------------- /web/src/proto/services/options/options.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | import Long from "long"; 3 | import * as _m0 from "protobufjs/minimal"; 4 | 5 | if (_m0.util.Long !== Long) { 6 | _m0.util.Long = Long as any; 7 | _m0.configure(); 8 | } 9 | -------------------------------------------------------------------------------- /web/test/CredentialService.test.ts: -------------------------------------------------------------------------------- 1 | import { TrinsicOptions, TrinsicService } from "../src"; 2 | // @ts-ignore 3 | import templateCertFrame from "./data/credential-template-frame.json"; 4 | // @ts-ignore 5 | import vaccineCertUnsigned from "./data/vaccination-certificate-unsigned.json"; 6 | import { 7 | getTestServerOptions, 8 | myEcosystemIdOrName, 9 | setTestTimeout, 10 | } from "./env"; 11 | 12 | let options: TrinsicOptions = getTestServerOptions(); 13 | let trinsic: TrinsicService; 14 | 15 | describe("CredentialService Unit Tests", () => { 16 | setTestTimeout(); 17 | beforeAll(async () => { 18 | trinsic = new TrinsicService(options); 19 | const response = await trinsic 20 | .wallet() 21 | .createWallet({ ecosystemId: myEcosystemIdOrName() }); 22 | trinsic.options.authToken = response.authToken; 23 | }); 24 | 25 | it("is an empty test suite", () => { 26 | expect(true).toBe(true); 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /web/test/VaccineDemo.test.ts: -------------------------------------------------------------------------------- 1 | // @ts-ignore 2 | import vaccineCertUnsigned from "./data/vaccination-certificate-unsigned.json"; 3 | // @ts-ignore 4 | import vaccineCertFrame from "./data/vaccination-certificate-frame.json"; 5 | import { vaccineDemo } from "./VaccineDemoShared"; 6 | import { setTestTimeout } from "./env"; 7 | 8 | describe("Demo: vaccination demo - credential issuance, storing, and verification", () => { 9 | setTestTimeout(); 10 | it("should run the demo without raising exceptions", async () => { 11 | // Used to cause browser import to set the right provider 12 | let response = await vaccineDemo(); 13 | expect(response.isValid).toBeTruthy(); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /web/test/data/credential-template-frame.json: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | "https://www.w3.org/2018/credentials/v1", 4 | "https://w3id.org/bbs/v1", 5 | "https://staging-schema.trinsic.cloud/__default/my-first-credential-template/context" 6 | ], 7 | "type": ["VerifiableCredential", "MyFirstCredentialTemplate"], 8 | "@explicit": true, 9 | "issuer": {}, 10 | "credentialSubject": { 11 | "name": {}, 12 | "numberOfBags": {}, 13 | "dateOfBirth": {}, 14 | "vaccinated": {} 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /web/test/data/vaccination-certificate-frame.json: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | "https://www.w3.org/2018/credentials/v1", 4 | "https://w3id.org/vaccination/v1", 5 | "https://w3id.org/security/bbs/v1" 6 | ], 7 | "type": ["VerifiableCredential", "VaccinationCertificate"], 8 | "@explicit": true, 9 | "issuer": {}, 10 | "credentialSubject": { 11 | "@explicit": true, 12 | "@type": "VaccinationEvent", 13 | "batchNumber": {}, 14 | "countryOfVaccination": {} 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /web/test/data/vaccination-certificate-unsigned.json: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | "https://www.w3.org/2018/credentials/v1", 4 | "https://w3id.org/vaccination/v1", 5 | "https://w3id.org/security/bbs/v1" 6 | ], 7 | "id": "urn:uvci:af5vshde843jf831j128fj", 8 | "type": ["VaccinationCertificate", "VerifiableCredential"], 9 | "description": "COVID-19 Vaccination Certificate", 10 | "name": "COVID-19 Vaccination Certificate", 11 | "expirationDate": "2029-12-03T12:19:52Z", 12 | "issuanceDate": "2019-12-03T12:19:52Z", 13 | "issuer": "did:key:zUC724vuGvHpnCGFG1qqpXb81SiBLu3KLSqVzenwEZNPoY35i2Bscb8DLaVwHvRFs6F2NkNNXRcPWvqnPDUd9ukdjLkjZd3u9zzL4wDZDUpkPAatLDGLEYVo8kkAzuAKJQMr7N2", 14 | "credentialSubject": { 15 | "id": "urn:uuid:c53e70f8-ce9a-4576-8744-e5f85c20a743", 16 | "type": "VaccinationEvent", 17 | "batchNumber": "1183738569", 18 | "countryOfVaccination": "US" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /web/test/helpers/jasmine-helper.ts: -------------------------------------------------------------------------------- 1 | import "jasmine-core"; 2 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000; // 20 sec 3 | -------------------------------------------------------------------------------- /web/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2017", 4 | "module": "CommonJS", 5 | "moduleResolution": "node", 6 | "declaration": true, 7 | "sourceMap": true, 8 | "outDir": "./lib", 9 | "strict": true, 10 | "esModuleInterop": true, 11 | "skipLibCheck": true, 12 | "forceConsistentCasingInFileNames": true 13 | }, 14 | "include": ["./**/*.ts"], 15 | "exclude": ["node_modules", "lib", "dist"] 16 | } 17 | -------------------------------------------------------------------------------- /web/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import dts from "vite-plugin-dts"; 3 | import path from "path"; 4 | 5 | // https://vitejs.dev/config/ 6 | // export default defineConfig({ 7 | // plugins: [dts()], 8 | // build: { 9 | // outDir: "dist", 10 | // rollupOptions: {}, 11 | // sourcemap: true, 12 | // target: "esnext", 13 | // }, 14 | // }); 15 | 16 | export default defineConfig({ 17 | plugins: [dts()], 18 | build: { 19 | lib: { 20 | entry: path.resolve(__dirname, "index.ts"), 21 | name: "Trinsic", 22 | formats: ["es", "umd"], 23 | }, 24 | rollupOptions: { 25 | // Make sure to externalize dependencies that shouldn't be bundled 26 | // into your library 27 | }, 28 | }, 29 | }); 30 | -------------------------------------------------------------------------------- /web/webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | 3 | module.exports = { 4 | entry: "./index.ts", 5 | devtool: "source-map", 6 | module: { 7 | rules: [ 8 | { 9 | test: /\.tsx?$/, 10 | use: "ts-loader", 11 | exclude: /node_modules/, 12 | }, 13 | ], 14 | }, 15 | resolve: { 16 | extensions: [".tsx", ".ts", ".js"], 17 | }, 18 | output: { 19 | filename: "trinsic.min.js", 20 | path: path.resolve(__dirname, "dist"), 21 | library: "trinsic", 22 | libraryTarget: "umd", 23 | globalObject: "this", 24 | }, 25 | externals: { 26 | // Optionally externalize some dependencies to reduce bundle size 27 | // react: 'React', 28 | // 'react-dom': 'ReactDOM' 29 | }, 30 | }; 31 | --------------------------------------------------------------------------------