@oystehr/sdk 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +14 -0
- package/LICENSE.md +9 -0
- package/README.md +339 -0
- package/dist/cjs/client/client.d.ts +49 -0
- package/dist/cjs/config.d.ts +45 -0
- package/dist/cjs/errors/index.d.ts +17 -0
- package/dist/cjs/fhir/fhir-types.d.ts +9 -0
- package/dist/cjs/fhir/index.d.ts +2 -0
- package/dist/cjs/fhir/utils.d.ts +14 -0
- package/dist/cjs/index.cjs +1333 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +16 -0
- package/dist/cjs/index.d.ts +16 -0
- package/dist/cjs/index.min.cjs +2 -0
- package/dist/cjs/index.min.cjs.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/resources/classes/application.d.ts +62 -0
- package/dist/cjs/resources/classes/charge.d.ts +30 -0
- package/dist/cjs/resources/classes/conversation-ext.d.ts +10 -0
- package/dist/cjs/resources/classes/conversation.d.ts +64 -0
- package/dist/cjs/resources/classes/developer.d.ts +50 -0
- package/dist/cjs/resources/classes/erx.d.ts +18 -0
- package/dist/cjs/resources/classes/fhir-ext.d.ts +58 -0
- package/dist/cjs/resources/classes/fhir.d.ts +21 -0
- package/dist/cjs/resources/classes/index.d.ts +44 -0
- package/dist/cjs/resources/classes/m2m.d.ts +57 -0
- package/dist/cjs/resources/classes/messaging.d.ts +10 -0
- package/dist/cjs/resources/classes/paymentMethod.d.ts +70 -0
- package/dist/cjs/resources/classes/project.d.ts +20 -0
- package/dist/cjs/resources/classes/rcm.d.ts +39 -0
- package/dist/cjs/resources/classes/role.d.ts +42 -0
- package/dist/cjs/resources/classes/secret.d.ts +34 -0
- package/dist/cjs/resources/classes/telemed.d.ts +29 -0
- package/dist/cjs/resources/classes/transactionalSMS.d.ts +22 -0
- package/dist/cjs/resources/classes/user.d.ts +56 -0
- package/dist/cjs/resources/classes/version.d.ts +10 -0
- package/dist/cjs/resources/classes/z3-ext.d.ts +10 -0
- package/dist/cjs/resources/classes/z3.d.ts +51 -0
- package/dist/cjs/resources/classes/zambda-ext.d.ts +6 -0
- package/dist/cjs/resources/classes/zambda.d.ts +63 -0
- package/dist/cjs/resources/classes/zambdaLogStream.d.ts +27 -0
- package/dist/cjs/resources/index.d.ts +1 -0
- package/dist/cjs/resources/types/AccessPolicy.d.ts +7 -0
- package/dist/cjs/resources/types/Application.d.ts +59 -0
- package/dist/cjs/resources/types/ApplicationCreateParams.d.ts +59 -0
- package/dist/cjs/resources/types/ApplicationCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ApplicationDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/ApplicationGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/ApplicationGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ApplicationListItem.d.ts +15 -0
- package/dist/cjs/resources/types/ApplicationListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ApplicationRevokeAccessTokenParams.d.ts +4 -0
- package/dist/cjs/resources/types/ApplicationRevokeAccessTokenResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ApplicationRevokeRefreshTokenParams.d.ts +4 -0
- package/dist/cjs/resources/types/ApplicationRevokeRefreshTokenResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ApplicationRotateSecretParams.d.ts +3 -0
- package/dist/cjs/resources/types/ApplicationRotateSecretResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ApplicationUpdateParams.d.ts +59 -0
- package/dist/cjs/resources/types/ApplicationUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/Card.d.ts +8 -0
- package/dist/cjs/resources/types/CardIdentifier.d.ts +7 -0
- package/dist/cjs/resources/types/ChargeDetails.d.ts +8 -0
- package/dist/cjs/resources/types/ChargeIssueParams.d.ts +6 -0
- package/dist/cjs/resources/types/ChargeStatusParams.d.ts +6 -0
- package/dist/cjs/resources/types/ChargeStatusResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimAddress.d.ts +7 -0
- package/dist/cjs/resources/types/ClaimCMS1500.d.ts +100 -0
- package/dist/cjs/resources/types/ClaimDate.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimDatePeriod.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimDateWithQualifier.d.ts +5 -0
- package/dist/cjs/resources/types/ClaimId.d.ts +4 -0
- package/dist/cjs/resources/types/ClaimName.d.ts +6 -0
- package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +21 -0
- package/dist/cjs/resources/types/ConversationCreateParams.d.ts +7 -0
- package/dist/cjs/resources/types/ConversationCreateResponse.d.ts +10 -0
- package/dist/cjs/resources/types/ConversationGetTokenResponse.d.ts +9 -0
- package/dist/cjs/resources/types/ConversationMessageParams.d.ts +13 -0
- package/dist/cjs/resources/types/ConversationRemoveParticipantParams.d.ts +11 -0
- package/dist/cjs/resources/types/Developer.d.ts +20 -0
- package/dist/cjs/resources/types/DeveloperDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/DeveloperGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/DeveloperGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/DeveloperInviteParams.d.ts +17 -0
- package/dist/cjs/resources/types/DeveloperInviteResponse.d.ts +23 -0
- package/dist/cjs/resources/types/DeveloperListItem.d.ts +7 -0
- package/dist/cjs/resources/types/DeveloperListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/DeveloperListV2Params.d.ts +11 -0
- package/dist/cjs/resources/types/DeveloperListV2Response.d.ts +29 -0
- package/dist/cjs/resources/types/DeveloperUpdateParams.d.ts +9 -0
- package/dist/cjs/resources/types/DeveloperUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ErxAllergySearchParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxAllergySearchResponse.d.ts +19 -0
- package/dist/cjs/resources/types/ErxMedicationSearchParams.d.ts +6 -0
- package/dist/cjs/resources/types/ErxMedicationSearchResponse.d.ts +38 -0
- package/dist/cjs/resources/types/ErxSyncPatientParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxSyncPatientResponse.d.ts +9 -0
- package/dist/cjs/resources/types/M2m.d.ts +30 -0
- package/dist/cjs/resources/types/M2mCreateParams.d.ts +20 -0
- package/dist/cjs/resources/types/M2mCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/M2mDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/M2mGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/M2mGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/M2mListItem.d.ts +25 -0
- package/dist/cjs/resources/types/M2mListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/M2mListV2Params.d.ts +10 -0
- package/dist/cjs/resources/types/M2mListV2Response.d.ts +16 -0
- package/dist/cjs/resources/types/M2mRotateSecretParams.d.ts +3 -0
- package/dist/cjs/resources/types/M2mRotateSecretResponse.d.ts +6 -0
- package/dist/cjs/resources/types/M2mUpdateParams.d.ts +21 -0
- package/dist/cjs/resources/types/M2mUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/MessagingGetMessagingConfigResponse.d.ts +8 -0
- package/dist/cjs/resources/types/MessagingServiceInfo.d.ts +14 -0
- package/dist/cjs/resources/types/PaymentMethodDeleteParams.d.ts +16 -0
- package/dist/cjs/resources/types/PaymentMethodListParams.d.ts +12 -0
- package/dist/cjs/resources/types/PaymentMethodListResponse.d.ts +8 -0
- package/dist/cjs/resources/types/PaymentMethodSetDefaultParams.d.ts +16 -0
- package/dist/cjs/resources/types/PaymentMethodSetUpParams.d.ts +12 -0
- package/dist/cjs/resources/types/PaymentMethodSetUpResponse.d.ts +9 -0
- package/dist/cjs/resources/types/Project.d.ts +17 -0
- package/dist/cjs/resources/types/ProjectGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ProjectUpdateParams.d.ts +16 -0
- package/dist/cjs/resources/types/ProjectUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmEligibilityCheckParams.d.ts +6 -0
- package/dist/cjs/resources/types/RcmEligibilityCheckResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmSubmitProfessionalClaimParams.d.ts +10 -0
- package/dist/cjs/resources/types/RcmSubmitProfessionalClaimResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmValidateProfessionalClaimParams.d.ts +6 -0
- package/dist/cjs/resources/types/RcmValidateProfessionalClaimResponse.d.ts +21 -0
- package/dist/cjs/resources/types/Role.d.ts +16 -0
- package/dist/cjs/resources/types/RoleCreateParams.d.ts +12 -0
- package/dist/cjs/resources/types/RoleCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RoleDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/RoleGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/RoleGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RoleListItem.d.ts +14 -0
- package/dist/cjs/resources/types/RoleListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RoleStub.d.ts +10 -0
- package/dist/cjs/resources/types/RoleUpdateParams.d.ts +17 -0
- package/dist/cjs/resources/types/RoleUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/Secret.d.ts +10 -0
- package/dist/cjs/resources/types/SecretDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/SecretGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/SecretGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/SecretListItem.d.ts +6 -0
- package/dist/cjs/resources/types/SecretListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/SecretSetParams.d.ts +10 -0
- package/dist/cjs/resources/types/SecretSetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +7 -0
- package/dist/cjs/resources/types/TelemedCreateMeetingResponse.d.ts +10 -0
- package/dist/cjs/resources/types/TelemedJoinMeetingParams.d.ts +4 -0
- package/dist/cjs/resources/types/TelemedJoinMeetingResponse.d.ts +27 -0
- package/dist/cjs/resources/types/TransactionalSMSSendParams.d.ts +10 -0
- package/dist/cjs/resources/types/TransactionalSMSSendResponse.d.ts +9 -0
- package/dist/cjs/resources/types/User.d.ts +36 -0
- package/dist/cjs/resources/types/UserDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/UserGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/UserGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/UserInviteParams.d.ts +35 -0
- package/dist/cjs/resources/types/UserInviteResponse.d.ts +37 -0
- package/dist/cjs/resources/types/UserListItem.d.ts +15 -0
- package/dist/cjs/resources/types/UserListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/UserListV2Params.d.ts +11 -0
- package/dist/cjs/resources/types/UserListV2Response.d.ts +16 -0
- package/dist/cjs/resources/types/UserMeResponse.d.ts +5 -0
- package/dist/cjs/resources/types/UserUpdateParams.d.ts +9 -0
- package/dist/cjs/resources/types/UserUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/VersionGetResponse.d.ts +17 -0
- package/dist/cjs/resources/types/Z3CreateBucketParams.d.ts +3 -0
- package/dist/cjs/resources/types/Z3CreateBucketResponse.d.ts +10 -0
- package/dist/cjs/resources/types/Z3DeleteBucketParams.d.ts +3 -0
- package/dist/cjs/resources/types/Z3DeleteObjectParams.d.ts +8 -0
- package/dist/cjs/resources/types/Z3GetPresignedUrlParams.d.ts +9 -0
- package/dist/cjs/resources/types/Z3GetPresignedUrlResponse.d.ts +9 -0
- package/dist/cjs/resources/types/Z3ListBucketsResponse.d.ts +14 -0
- package/dist/cjs/resources/types/Z3ListObjectsParams.d.ts +4 -0
- package/dist/cjs/resources/types/Z3ListObjectsResponse.d.ts +13 -0
- package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +12 -0
- package/dist/cjs/resources/types/ZambdaCreateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaDeleteParams.d.ts +3 -0
- package/dist/cjs/resources/types/ZambdaExecuteParams.d.ts +4 -0
- package/dist/cjs/resources/types/ZambdaExecutePublicParams.d.ts +4 -0
- package/dist/cjs/resources/types/ZambdaExecutePublicResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaExecuteResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaExecuteResult.d.ts +10 -0
- package/dist/cjs/resources/types/ZambdaFunction.d.ts +38 -0
- package/dist/cjs/resources/types/ZambdaGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/ZambdaGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaListResponse.d.ts +5 -0
- package/dist/cjs/resources/types/ZambdaLogStreamGetParams.d.ts +8 -0
- package/dist/cjs/resources/types/ZambdaLogStreamGetResponse.d.ts +27 -0
- package/dist/cjs/resources/types/ZambdaLogStreamListParams.d.ts +4 -0
- package/dist/cjs/resources/types/ZambdaLogStreamListResponse.d.ts +46 -0
- package/dist/cjs/resources/types/ZambdaLogStreamSearchParams.d.ts +19 -0
- package/dist/cjs/resources/types/ZambdaLogStreamSearchResponse.d.ts +23 -0
- package/dist/cjs/resources/types/ZambdaS3UploadParams.d.ts +7 -0
- package/dist/cjs/resources/types/ZambdaS3UploadResponse.d.ts +9 -0
- package/dist/cjs/resources/types/ZambdaSchedule.d.ts +30 -0
- package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +17 -0
- package/dist/cjs/resources/types/ZambdaUpdateResponse.d.ts +5 -0
- package/dist/cjs/resources/types/fhir.d.ts +46 -0
- package/dist/cjs/resources/types/index.d.ts +158 -0
- package/dist/cjs/tests/common.d.ts +2 -0
- package/dist/cjs/tests/setup/constants.d.ts +12 -0
- package/dist/cjs/tests/setup/global.d.ts +1 -0
- package/dist/cjs/tests/setup/per-test.d.ts +1 -0
- package/dist/esm/client/client.d.ts +49 -0
- package/dist/esm/client/client.js +251 -0
- package/dist/esm/client/client.js.map +1 -0
- package/dist/esm/config.d.ts +45 -0
- package/dist/esm/errors/index.d.ts +17 -0
- package/dist/esm/errors/index.js +38 -0
- package/dist/esm/errors/index.js.map +1 -0
- package/dist/esm/fhir/fhir-types.d.ts +9 -0
- package/dist/esm/fhir/index.d.ts +2 -0
- package/dist/esm/fhir/utils.d.ts +14 -0
- package/dist/esm/index.d.ts +16 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.min.js +2 -0
- package/dist/esm/index.min.js.map +1 -0
- package/dist/esm/node_modules/tslib/package.json +1 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js +34 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/resources/classes/application.d.ts +62 -0
- package/dist/esm/resources/classes/application.js +67 -0
- package/dist/esm/resources/classes/application.js.map +1 -0
- package/dist/esm/resources/classes/charge.d.ts +30 -0
- package/dist/esm/resources/classes/charge.js +35 -0
- package/dist/esm/resources/classes/charge.js.map +1 -0
- package/dist/esm/resources/classes/conversation-ext.d.ts +10 -0
- package/dist/esm/resources/classes/conversation-ext.js +28 -0
- package/dist/esm/resources/classes/conversation-ext.js.map +1 -0
- package/dist/esm/resources/classes/conversation.d.ts +64 -0
- package/dist/esm/resources/classes/conversation.js +69 -0
- package/dist/esm/resources/classes/conversation.js.map +1 -0
- package/dist/esm/resources/classes/developer.d.ts +50 -0
- package/dist/esm/resources/classes/developer.js +55 -0
- package/dist/esm/resources/classes/developer.js.map +1 -0
- package/dist/esm/resources/classes/erx.d.ts +18 -0
- package/dist/esm/resources/classes/erx.js +23 -0
- package/dist/esm/resources/classes/erx.js.map +1 -0
- package/dist/esm/resources/classes/fhir-ext.d.ts +58 -0
- package/dist/esm/resources/classes/fhir-ext.js +130 -0
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -0
- package/dist/esm/resources/classes/fhir.d.ts +21 -0
- package/dist/esm/resources/classes/fhir.js +27 -0
- package/dist/esm/resources/classes/fhir.js.map +1 -0
- package/dist/esm/resources/classes/index.d.ts +44 -0
- package/dist/esm/resources/classes/index.js +49 -0
- package/dist/esm/resources/classes/index.js.map +1 -0
- package/dist/esm/resources/classes/m2m.d.ts +57 -0
- package/dist/esm/resources/classes/m2m.js +62 -0
- package/dist/esm/resources/classes/m2m.js.map +1 -0
- package/dist/esm/resources/classes/messaging.d.ts +10 -0
- package/dist/esm/resources/classes/messaging.js +15 -0
- package/dist/esm/resources/classes/messaging.js.map +1 -0
- package/dist/esm/resources/classes/paymentMethod.d.ts +70 -0
- package/dist/esm/resources/classes/paymentMethod.js +75 -0
- package/dist/esm/resources/classes/paymentMethod.js.map +1 -0
- package/dist/esm/resources/classes/project.d.ts +20 -0
- package/dist/esm/resources/classes/project.js +25 -0
- package/dist/esm/resources/classes/project.js.map +1 -0
- package/dist/esm/resources/classes/rcm.d.ts +39 -0
- package/dist/esm/resources/classes/rcm.js +44 -0
- package/dist/esm/resources/classes/rcm.js.map +1 -0
- package/dist/esm/resources/classes/role.d.ts +42 -0
- package/dist/esm/resources/classes/role.js +47 -0
- package/dist/esm/resources/classes/role.js.map +1 -0
- package/dist/esm/resources/classes/secret.d.ts +34 -0
- package/dist/esm/resources/classes/secret.js +39 -0
- package/dist/esm/resources/classes/secret.js.map +1 -0
- package/dist/esm/resources/classes/telemed.d.ts +29 -0
- package/dist/esm/resources/classes/telemed.js +34 -0
- package/dist/esm/resources/classes/telemed.js.map +1 -0
- package/dist/esm/resources/classes/transactionalSMS.d.ts +22 -0
- package/dist/esm/resources/classes/transactionalSMS.js +27 -0
- package/dist/esm/resources/classes/transactionalSMS.js.map +1 -0
- package/dist/esm/resources/classes/user.d.ts +56 -0
- package/dist/esm/resources/classes/user.js +61 -0
- package/dist/esm/resources/classes/user.js.map +1 -0
- package/dist/esm/resources/classes/version.d.ts +10 -0
- package/dist/esm/resources/classes/version.js +15 -0
- package/dist/esm/resources/classes/version.js.map +1 -0
- package/dist/esm/resources/classes/z3-ext.d.ts +10 -0
- package/dist/esm/resources/classes/z3-ext.js +34 -0
- package/dist/esm/resources/classes/z3-ext.js.map +1 -0
- package/dist/esm/resources/classes/z3.d.ts +51 -0
- package/dist/esm/resources/classes/z3.js +56 -0
- package/dist/esm/resources/classes/z3.js.map +1 -0
- package/dist/esm/resources/classes/zambda-ext.d.ts +6 -0
- package/dist/esm/resources/classes/zambda-ext.js +14 -0
- package/dist/esm/resources/classes/zambda-ext.js.map +1 -0
- package/dist/esm/resources/classes/zambda.d.ts +63 -0
- package/dist/esm/resources/classes/zambda.js +68 -0
- package/dist/esm/resources/classes/zambda.js.map +1 -0
- package/dist/esm/resources/classes/zambdaLogStream.d.ts +27 -0
- package/dist/esm/resources/classes/zambdaLogStream.js +32 -0
- package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -0
- package/dist/esm/resources/index.d.ts +1 -0
- package/dist/esm/resources/types/AccessPolicy.d.ts +7 -0
- package/dist/esm/resources/types/Application.d.ts +59 -0
- package/dist/esm/resources/types/ApplicationCreateParams.d.ts +59 -0
- package/dist/esm/resources/types/ApplicationCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/ApplicationDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/ApplicationGetParams.d.ts +3 -0
- package/dist/esm/resources/types/ApplicationGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/ApplicationListItem.d.ts +15 -0
- package/dist/esm/resources/types/ApplicationListResponse.d.ts +5 -0
- package/dist/esm/resources/types/ApplicationRevokeAccessTokenParams.d.ts +4 -0
- package/dist/esm/resources/types/ApplicationRevokeAccessTokenResponse.d.ts +6 -0
- package/dist/esm/resources/types/ApplicationRevokeRefreshTokenParams.d.ts +4 -0
- package/dist/esm/resources/types/ApplicationRevokeRefreshTokenResponse.d.ts +6 -0
- package/dist/esm/resources/types/ApplicationRotateSecretParams.d.ts +3 -0
- package/dist/esm/resources/types/ApplicationRotateSecretResponse.d.ts +6 -0
- package/dist/esm/resources/types/ApplicationUpdateParams.d.ts +59 -0
- package/dist/esm/resources/types/ApplicationUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/Card.d.ts +8 -0
- package/dist/esm/resources/types/CardIdentifier.d.ts +7 -0
- package/dist/esm/resources/types/ChargeDetails.d.ts +8 -0
- package/dist/esm/resources/types/ChargeIssueParams.d.ts +6 -0
- package/dist/esm/resources/types/ChargeStatusParams.d.ts +6 -0
- package/dist/esm/resources/types/ChargeStatusResponse.d.ts +5 -0
- package/dist/esm/resources/types/ClaimAddress.d.ts +7 -0
- package/dist/esm/resources/types/ClaimCMS1500.d.ts +100 -0
- package/dist/esm/resources/types/ClaimDate.d.ts +5 -0
- package/dist/esm/resources/types/ClaimDatePeriod.d.ts +5 -0
- package/dist/esm/resources/types/ClaimDateWithQualifier.d.ts +5 -0
- package/dist/esm/resources/types/ClaimId.d.ts +4 -0
- package/dist/esm/resources/types/ClaimName.d.ts +6 -0
- package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +21 -0
- package/dist/esm/resources/types/ConversationCreateParams.d.ts +7 -0
- package/dist/esm/resources/types/ConversationCreateResponse.d.ts +10 -0
- package/dist/esm/resources/types/ConversationGetTokenResponse.d.ts +9 -0
- package/dist/esm/resources/types/ConversationMessageParams.d.ts +13 -0
- package/dist/esm/resources/types/ConversationRemoveParticipantParams.d.ts +11 -0
- package/dist/esm/resources/types/Developer.d.ts +20 -0
- package/dist/esm/resources/types/DeveloperDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/DeveloperGetParams.d.ts +3 -0
- package/dist/esm/resources/types/DeveloperGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/DeveloperInviteParams.d.ts +17 -0
- package/dist/esm/resources/types/DeveloperInviteResponse.d.ts +23 -0
- package/dist/esm/resources/types/DeveloperListItem.d.ts +7 -0
- package/dist/esm/resources/types/DeveloperListResponse.d.ts +5 -0
- package/dist/esm/resources/types/DeveloperListV2Params.d.ts +11 -0
- package/dist/esm/resources/types/DeveloperListV2Response.d.ts +29 -0
- package/dist/esm/resources/types/DeveloperUpdateParams.d.ts +9 -0
- package/dist/esm/resources/types/DeveloperUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/ErxAllergySearchParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxAllergySearchResponse.d.ts +19 -0
- package/dist/esm/resources/types/ErxMedicationSearchParams.d.ts +6 -0
- package/dist/esm/resources/types/ErxMedicationSearchResponse.d.ts +38 -0
- package/dist/esm/resources/types/ErxSyncPatientParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxSyncPatientResponse.d.ts +9 -0
- package/dist/esm/resources/types/M2m.d.ts +30 -0
- package/dist/esm/resources/types/M2mCreateParams.d.ts +20 -0
- package/dist/esm/resources/types/M2mCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/M2mDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/M2mGetParams.d.ts +3 -0
- package/dist/esm/resources/types/M2mGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/M2mListItem.d.ts +25 -0
- package/dist/esm/resources/types/M2mListResponse.d.ts +5 -0
- package/dist/esm/resources/types/M2mListV2Params.d.ts +10 -0
- package/dist/esm/resources/types/M2mListV2Response.d.ts +16 -0
- package/dist/esm/resources/types/M2mRotateSecretParams.d.ts +3 -0
- package/dist/esm/resources/types/M2mRotateSecretResponse.d.ts +6 -0
- package/dist/esm/resources/types/M2mUpdateParams.d.ts +21 -0
- package/dist/esm/resources/types/M2mUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/MessagingGetMessagingConfigResponse.d.ts +8 -0
- package/dist/esm/resources/types/MessagingServiceInfo.d.ts +14 -0
- package/dist/esm/resources/types/PaymentMethodDeleteParams.d.ts +16 -0
- package/dist/esm/resources/types/PaymentMethodListParams.d.ts +12 -0
- package/dist/esm/resources/types/PaymentMethodListResponse.d.ts +8 -0
- package/dist/esm/resources/types/PaymentMethodSetDefaultParams.d.ts +16 -0
- package/dist/esm/resources/types/PaymentMethodSetUpParams.d.ts +12 -0
- package/dist/esm/resources/types/PaymentMethodSetUpResponse.d.ts +9 -0
- package/dist/esm/resources/types/Project.d.ts +17 -0
- package/dist/esm/resources/types/ProjectGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/ProjectUpdateParams.d.ts +16 -0
- package/dist/esm/resources/types/ProjectUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmEligibilityCheckParams.d.ts +6 -0
- package/dist/esm/resources/types/RcmEligibilityCheckResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmSubmitProfessionalClaimParams.d.ts +10 -0
- package/dist/esm/resources/types/RcmSubmitProfessionalClaimResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmValidateProfessionalClaimParams.d.ts +6 -0
- package/dist/esm/resources/types/RcmValidateProfessionalClaimResponse.d.ts +21 -0
- package/dist/esm/resources/types/Role.d.ts +16 -0
- package/dist/esm/resources/types/RoleCreateParams.d.ts +12 -0
- package/dist/esm/resources/types/RoleCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/RoleDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/RoleGetParams.d.ts +3 -0
- package/dist/esm/resources/types/RoleGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/RoleListItem.d.ts +14 -0
- package/dist/esm/resources/types/RoleListResponse.d.ts +5 -0
- package/dist/esm/resources/types/RoleStub.d.ts +10 -0
- package/dist/esm/resources/types/RoleUpdateParams.d.ts +17 -0
- package/dist/esm/resources/types/RoleUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/Secret.d.ts +10 -0
- package/dist/esm/resources/types/SecretDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/SecretGetParams.d.ts +3 -0
- package/dist/esm/resources/types/SecretGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/SecretListItem.d.ts +6 -0
- package/dist/esm/resources/types/SecretListResponse.d.ts +5 -0
- package/dist/esm/resources/types/SecretSetParams.d.ts +10 -0
- package/dist/esm/resources/types/SecretSetResponse.d.ts +5 -0
- package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +7 -0
- package/dist/esm/resources/types/TelemedCreateMeetingResponse.d.ts +10 -0
- package/dist/esm/resources/types/TelemedJoinMeetingParams.d.ts +4 -0
- package/dist/esm/resources/types/TelemedJoinMeetingResponse.d.ts +27 -0
- package/dist/esm/resources/types/TransactionalSMSSendParams.d.ts +10 -0
- package/dist/esm/resources/types/TransactionalSMSSendResponse.d.ts +9 -0
- package/dist/esm/resources/types/User.d.ts +36 -0
- package/dist/esm/resources/types/UserDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/UserGetParams.d.ts +3 -0
- package/dist/esm/resources/types/UserGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/UserInviteParams.d.ts +35 -0
- package/dist/esm/resources/types/UserInviteResponse.d.ts +37 -0
- package/dist/esm/resources/types/UserListItem.d.ts +15 -0
- package/dist/esm/resources/types/UserListResponse.d.ts +5 -0
- package/dist/esm/resources/types/UserListV2Params.d.ts +11 -0
- package/dist/esm/resources/types/UserListV2Response.d.ts +16 -0
- package/dist/esm/resources/types/UserMeResponse.d.ts +5 -0
- package/dist/esm/resources/types/UserUpdateParams.d.ts +9 -0
- package/dist/esm/resources/types/UserUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/VersionGetResponse.d.ts +17 -0
- package/dist/esm/resources/types/Z3CreateBucketParams.d.ts +3 -0
- package/dist/esm/resources/types/Z3CreateBucketResponse.d.ts +10 -0
- package/dist/esm/resources/types/Z3DeleteBucketParams.d.ts +3 -0
- package/dist/esm/resources/types/Z3DeleteObjectParams.d.ts +8 -0
- package/dist/esm/resources/types/Z3GetPresignedUrlParams.d.ts +9 -0
- package/dist/esm/resources/types/Z3GetPresignedUrlResponse.d.ts +9 -0
- package/dist/esm/resources/types/Z3ListBucketsResponse.d.ts +14 -0
- package/dist/esm/resources/types/Z3ListObjectsParams.d.ts +4 -0
- package/dist/esm/resources/types/Z3ListObjectsResponse.d.ts +13 -0
- package/dist/esm/resources/types/ZambdaCreateParams.d.ts +12 -0
- package/dist/esm/resources/types/ZambdaCreateResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaDeleteParams.d.ts +3 -0
- package/dist/esm/resources/types/ZambdaExecuteParams.d.ts +4 -0
- package/dist/esm/resources/types/ZambdaExecutePublicParams.d.ts +4 -0
- package/dist/esm/resources/types/ZambdaExecutePublicResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaExecuteResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaExecuteResult.d.ts +10 -0
- package/dist/esm/resources/types/ZambdaFunction.d.ts +38 -0
- package/dist/esm/resources/types/ZambdaGetParams.d.ts +3 -0
- package/dist/esm/resources/types/ZambdaGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaListResponse.d.ts +5 -0
- package/dist/esm/resources/types/ZambdaLogStreamGetParams.d.ts +8 -0
- package/dist/esm/resources/types/ZambdaLogStreamGetResponse.d.ts +27 -0
- package/dist/esm/resources/types/ZambdaLogStreamListParams.d.ts +4 -0
- package/dist/esm/resources/types/ZambdaLogStreamListResponse.d.ts +46 -0
- package/dist/esm/resources/types/ZambdaLogStreamSearchParams.d.ts +19 -0
- package/dist/esm/resources/types/ZambdaLogStreamSearchResponse.d.ts +23 -0
- package/dist/esm/resources/types/ZambdaS3UploadParams.d.ts +7 -0
- package/dist/esm/resources/types/ZambdaS3UploadResponse.d.ts +9 -0
- package/dist/esm/resources/types/ZambdaSchedule.d.ts +30 -0
- package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +17 -0
- package/dist/esm/resources/types/ZambdaUpdateResponse.d.ts +5 -0
- package/dist/esm/resources/types/fhir.d.ts +46 -0
- package/dist/esm/resources/types/index.d.ts +158 -0
- package/dist/esm/tests/common.d.ts +2 -0
- package/dist/esm/tests/setup/constants.d.ts +12 -0
- package/dist/esm/tests/setup/global.d.ts +1 -0
- package/dist/esm/tests/setup/per-test.d.ts +1 -0
- package/package.json +59 -0
- package/rollup.config-cjs.mjs +49 -0
- package/rollup.config-mjs.mjs +49 -0
- package/src/client/client.ts +307 -0
- package/src/config.ts +56 -0
- package/src/errors/index.ts +41 -0
- package/src/fhir/fhir-types.ts +15 -0
- package/src/fhir/index.ts +2 -0
- package/src/fhir/utils.ts +68 -0
- package/src/index.cts +22 -0
- package/src/index.ts +27 -0
- package/src/resources/classes/application.ts +100 -0
- package/src/resources/classes/charge.ts +37 -0
- package/src/resources/classes/conversation-ext.ts +31 -0
- package/src/resources/classes/conversation.ts +82 -0
- package/src/resources/classes/developer.ts +72 -0
- package/src/resources/classes/erx.ts +36 -0
- package/src/resources/classes/fhir-ext.ts +214 -0
- package/src/resources/classes/fhir.ts +26 -0
- package/src/resources/classes/index.ts +68 -0
- package/src/resources/classes/m2m.ts +82 -0
- package/src/resources/classes/messaging.ts +16 -0
- package/src/resources/classes/paymentMethod.ts +87 -0
- package/src/resources/classes/project.ts +26 -0
- package/src/resources/classes/rcm.ts +63 -0
- package/src/resources/classes/role.ts +61 -0
- package/src/resources/classes/secret.ts +50 -0
- package/src/resources/classes/telemed.ts +47 -0
- package/src/resources/classes/transactionalSMS.ts +28 -0
- package/src/resources/classes/user.ts +79 -0
- package/src/resources/classes/version.ts +15 -0
- package/src/resources/classes/z3-ext.ts +54 -0
- package/src/resources/classes/z3.ts +74 -0
- package/src/resources/classes/zambda-ext.ts +20 -0
- package/src/resources/classes/zambda.ts +93 -0
- package/src/resources/classes/zambdaLogStream.ts +45 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/types/AccessPolicy.ts +9 -0
- package/src/resources/types/Application.ts +61 -0
- package/src/resources/types/ApplicationCreateParams.ts +61 -0
- package/src/resources/types/ApplicationCreateResponse.ts +7 -0
- package/src/resources/types/ApplicationDeleteParams.ts +5 -0
- package/src/resources/types/ApplicationGetParams.ts +5 -0
- package/src/resources/types/ApplicationGetResponse.ts +7 -0
- package/src/resources/types/ApplicationListItem.ts +17 -0
- package/src/resources/types/ApplicationListResponse.ts +7 -0
- package/src/resources/types/ApplicationRevokeAccessTokenParams.ts +6 -0
- package/src/resources/types/ApplicationRevokeAccessTokenResponse.ts +8 -0
- package/src/resources/types/ApplicationRevokeRefreshTokenParams.ts +6 -0
- package/src/resources/types/ApplicationRevokeRefreshTokenResponse.ts +8 -0
- package/src/resources/types/ApplicationRotateSecretParams.ts +5 -0
- package/src/resources/types/ApplicationRotateSecretResponse.ts +8 -0
- package/src/resources/types/ApplicationUpdateParams.ts +61 -0
- package/src/resources/types/ApplicationUpdateResponse.ts +7 -0
- package/src/resources/types/Card.ts +10 -0
- package/src/resources/types/CardIdentifier.ts +9 -0
- package/src/resources/types/ChargeDetails.ts +11 -0
- package/src/resources/types/ChargeIssueParams.ts +8 -0
- package/src/resources/types/ChargeStatusParams.ts +8 -0
- package/src/resources/types/ChargeStatusResponse.ts +7 -0
- package/src/resources/types/ClaimAddress.ts +9 -0
- package/src/resources/types/ClaimCMS1500.ts +103 -0
- package/src/resources/types/ClaimDate.ts +7 -0
- package/src/resources/types/ClaimDatePeriod.ts +8 -0
- package/src/resources/types/ClaimDateWithQualifier.ts +8 -0
- package/src/resources/types/ClaimId.ts +6 -0
- package/src/resources/types/ClaimName.ts +8 -0
- package/src/resources/types/ConversationAddParticipantParams.ts +23 -0
- package/src/resources/types/ConversationCreateParams.ts +10 -0
- package/src/resources/types/ConversationCreateResponse.ts +12 -0
- package/src/resources/types/ConversationGetTokenResponse.ts +11 -0
- package/src/resources/types/ConversationMessageParams.ts +15 -0
- package/src/resources/types/ConversationRemoveParticipantParams.ts +13 -0
- package/src/resources/types/Developer.ts +23 -0
- package/src/resources/types/DeveloperDeleteParams.ts +5 -0
- package/src/resources/types/DeveloperGetParams.ts +5 -0
- package/src/resources/types/DeveloperGetResponse.ts +7 -0
- package/src/resources/types/DeveloperInviteParams.ts +20 -0
- package/src/resources/types/DeveloperInviteResponse.ts +25 -0
- package/src/resources/types/DeveloperListItem.ts +9 -0
- package/src/resources/types/DeveloperListResponse.ts +7 -0
- package/src/resources/types/DeveloperListV2Params.ts +13 -0
- package/src/resources/types/DeveloperListV2Response.ts +31 -0
- package/src/resources/types/DeveloperUpdateParams.ts +12 -0
- package/src/resources/types/DeveloperUpdateResponse.ts +7 -0
- package/src/resources/types/ErxAllergySearchParams.ts +5 -0
- package/src/resources/types/ErxAllergySearchResponse.ts +21 -0
- package/src/resources/types/ErxMedicationSearchParams.ts +8 -0
- package/src/resources/types/ErxMedicationSearchResponse.ts +40 -0
- package/src/resources/types/ErxSyncPatientParams.ts +5 -0
- package/src/resources/types/ErxSyncPatientResponse.ts +11 -0
- package/src/resources/types/M2m.ts +33 -0
- package/src/resources/types/M2mCreateParams.ts +23 -0
- package/src/resources/types/M2mCreateResponse.ts +7 -0
- package/src/resources/types/M2mDeleteParams.ts +5 -0
- package/src/resources/types/M2mGetParams.ts +5 -0
- package/src/resources/types/M2mGetResponse.ts +7 -0
- package/src/resources/types/M2mListItem.ts +28 -0
- package/src/resources/types/M2mListResponse.ts +7 -0
- package/src/resources/types/M2mListV2Params.ts +12 -0
- package/src/resources/types/M2mListV2Response.ts +18 -0
- package/src/resources/types/M2mRotateSecretParams.ts +5 -0
- package/src/resources/types/M2mRotateSecretResponse.ts +8 -0
- package/src/resources/types/M2mUpdateParams.ts +24 -0
- package/src/resources/types/M2mUpdateResponse.ts +7 -0
- package/src/resources/types/MessagingGetMessagingConfigResponse.ts +10 -0
- package/src/resources/types/MessagingServiceInfo.ts +16 -0
- package/src/resources/types/PaymentMethodDeleteParams.ts +18 -0
- package/src/resources/types/PaymentMethodListParams.ts +14 -0
- package/src/resources/types/PaymentMethodListResponse.ts +10 -0
- package/src/resources/types/PaymentMethodSetDefaultParams.ts +18 -0
- package/src/resources/types/PaymentMethodSetUpParams.ts +14 -0
- package/src/resources/types/PaymentMethodSetUpResponse.ts +11 -0
- package/src/resources/types/Project.ts +20 -0
- package/src/resources/types/ProjectGetResponse.ts +7 -0
- package/src/resources/types/ProjectUpdateParams.ts +18 -0
- package/src/resources/types/ProjectUpdateResponse.ts +7 -0
- package/src/resources/types/RcmEligibilityCheckParams.ts +8 -0
- package/src/resources/types/RcmEligibilityCheckResponse.ts +7 -0
- package/src/resources/types/RcmSubmitProfessionalClaimParams.ts +13 -0
- package/src/resources/types/RcmSubmitProfessionalClaimResponse.ts +7 -0
- package/src/resources/types/RcmValidateProfessionalClaimParams.ts +9 -0
- package/src/resources/types/RcmValidateProfessionalClaimResponse.ts +23 -0
- package/src/resources/types/Role.ts +19 -0
- package/src/resources/types/RoleCreateParams.ts +15 -0
- package/src/resources/types/RoleCreateResponse.ts +7 -0
- package/src/resources/types/RoleDeleteParams.ts +5 -0
- package/src/resources/types/RoleGetParams.ts +5 -0
- package/src/resources/types/RoleGetResponse.ts +7 -0
- package/src/resources/types/RoleListItem.ts +16 -0
- package/src/resources/types/RoleListResponse.ts +7 -0
- package/src/resources/types/RoleStub.ts +12 -0
- package/src/resources/types/RoleUpdateParams.ts +20 -0
- package/src/resources/types/RoleUpdateResponse.ts +7 -0
- package/src/resources/types/Secret.ts +12 -0
- package/src/resources/types/SecretDeleteParams.ts +5 -0
- package/src/resources/types/SecretGetParams.ts +5 -0
- package/src/resources/types/SecretGetResponse.ts +7 -0
- package/src/resources/types/SecretListItem.ts +8 -0
- package/src/resources/types/SecretListResponse.ts +7 -0
- package/src/resources/types/SecretSetParams.ts +12 -0
- package/src/resources/types/SecretSetResponse.ts +7 -0
- package/src/resources/types/TelemedCreateMeetingParams.ts +10 -0
- package/src/resources/types/TelemedCreateMeetingResponse.ts +12 -0
- package/src/resources/types/TelemedJoinMeetingParams.ts +6 -0
- package/src/resources/types/TelemedJoinMeetingResponse.ts +29 -0
- package/src/resources/types/TransactionalSMSSendParams.ts +12 -0
- package/src/resources/types/TransactionalSMSSendResponse.ts +11 -0
- package/src/resources/types/User.ts +39 -0
- package/src/resources/types/UserDeleteParams.ts +5 -0
- package/src/resources/types/UserGetParams.ts +5 -0
- package/src/resources/types/UserGetResponse.ts +7 -0
- package/src/resources/types/UserInviteParams.ts +38 -0
- package/src/resources/types/UserInviteResponse.ts +39 -0
- package/src/resources/types/UserListItem.ts +17 -0
- package/src/resources/types/UserListResponse.ts +7 -0
- package/src/resources/types/UserListV2Params.ts +13 -0
- package/src/resources/types/UserListV2Response.ts +18 -0
- package/src/resources/types/UserMeResponse.ts +7 -0
- package/src/resources/types/UserUpdateParams.ts +12 -0
- package/src/resources/types/UserUpdateResponse.ts +7 -0
- package/src/resources/types/VersionGetResponse.ts +19 -0
- package/src/resources/types/Z3CreateBucketParams.ts +5 -0
- package/src/resources/types/Z3CreateBucketResponse.ts +12 -0
- package/src/resources/types/Z3DeleteBucketParams.ts +5 -0
- package/src/resources/types/Z3DeleteObjectParams.ts +10 -0
- package/src/resources/types/Z3GetPresignedUrlParams.ts +11 -0
- package/src/resources/types/Z3GetPresignedUrlResponse.ts +11 -0
- package/src/resources/types/Z3ListBucketsResponse.ts +16 -0
- package/src/resources/types/Z3ListObjectsParams.ts +6 -0
- package/src/resources/types/Z3ListObjectsResponse.ts +15 -0
- package/src/resources/types/ZambdaCreateParams.ts +15 -0
- package/src/resources/types/ZambdaCreateResponse.ts +7 -0
- package/src/resources/types/ZambdaDeleteParams.ts +5 -0
- package/src/resources/types/ZambdaExecuteParams.ts +6 -0
- package/src/resources/types/ZambdaExecutePublicParams.ts +6 -0
- package/src/resources/types/ZambdaExecutePublicResponse.ts +7 -0
- package/src/resources/types/ZambdaExecuteResponse.ts +7 -0
- package/src/resources/types/ZambdaExecuteResult.ts +12 -0
- package/src/resources/types/ZambdaFunction.ts +41 -0
- package/src/resources/types/ZambdaGetParams.ts +5 -0
- package/src/resources/types/ZambdaGetResponse.ts +7 -0
- package/src/resources/types/ZambdaListResponse.ts +7 -0
- package/src/resources/types/ZambdaLogStreamGetParams.ts +10 -0
- package/src/resources/types/ZambdaLogStreamGetResponse.ts +29 -0
- package/src/resources/types/ZambdaLogStreamListParams.ts +6 -0
- package/src/resources/types/ZambdaLogStreamListResponse.ts +48 -0
- package/src/resources/types/ZambdaLogStreamSearchParams.ts +21 -0
- package/src/resources/types/ZambdaLogStreamSearchResponse.ts +25 -0
- package/src/resources/types/ZambdaS3UploadParams.ts +9 -0
- package/src/resources/types/ZambdaS3UploadResponse.ts +11 -0
- package/src/resources/types/ZambdaSchedule.ts +32 -0
- package/src/resources/types/ZambdaUpdateParams.ts +20 -0
- package/src/resources/types/ZambdaUpdateResponse.ts +7 -0
- package/src/resources/types/fhir.ts +75 -0
- package/src/resources/types/index.ts +160 -0
- package/turbo.json +13 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
OystehrClientRequest,
|
|
5
|
+
SecretDeleteParams,
|
|
6
|
+
SecretGetParams,
|
|
7
|
+
SecretGetResponse,
|
|
8
|
+
SecretListResponse,
|
|
9
|
+
SecretSetParams,
|
|
10
|
+
SecretSetResponse,
|
|
11
|
+
} from '../..';
|
|
12
|
+
import { SDKResource } from '../../client/client';
|
|
13
|
+
import { OystehrConfig } from '../../config';
|
|
14
|
+
|
|
15
|
+
export class Secret extends SDKResource {
|
|
16
|
+
constructor(config: OystehrConfig) {
|
|
17
|
+
super(config);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a list of all secrets in the Project.
|
|
21
|
+
*
|
|
22
|
+
* Access Policy Action: `Zambda:ListAllSecrets`
|
|
23
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
24
|
+
*/
|
|
25
|
+
list = (request?: OystehrClientRequest): Promise<SecretListResponse> => this.request('/secret', 'get')(request);
|
|
26
|
+
/**
|
|
27
|
+
* Create a secret for a project. If the secret is already defined, update it.
|
|
28
|
+
*
|
|
29
|
+
* Access Policy Action: `Zambda:CreateSecret`
|
|
30
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
31
|
+
*/
|
|
32
|
+
set = (params: SecretSetParams, request?: OystehrClientRequest): Promise<SecretSetResponse> =>
|
|
33
|
+
this.request('/secret', 'post')(params, request);
|
|
34
|
+
/**
|
|
35
|
+
* Get the secret with the provided name.
|
|
36
|
+
*
|
|
37
|
+
* Access Policy Action: `Zambda:GetSecret`
|
|
38
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
39
|
+
*/
|
|
40
|
+
get = (params: SecretGetParams, request?: OystehrClientRequest): Promise<SecretGetResponse> =>
|
|
41
|
+
this.request('/secret/{name}', 'get')(params, request);
|
|
42
|
+
/**
|
|
43
|
+
* Delete the secret with the provided name.
|
|
44
|
+
*
|
|
45
|
+
* Access Policy Action: `Zambda:DeleteSecret`
|
|
46
|
+
* Access Policy Resource: `Zambda:Secret`
|
|
47
|
+
*/
|
|
48
|
+
delete = (params: SecretDeleteParams, request?: OystehrClientRequest): Promise<void> =>
|
|
49
|
+
this.request('/secret/{name}', 'delete')(params, request);
|
|
50
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
OystehrClientRequest,
|
|
5
|
+
TelemedCreateMeetingParams,
|
|
6
|
+
TelemedCreateMeetingResponse,
|
|
7
|
+
TelemedJoinMeetingParams,
|
|
8
|
+
TelemedJoinMeetingResponse,
|
|
9
|
+
} from '../..';
|
|
10
|
+
import { SDKResource } from '../../client/client';
|
|
11
|
+
import { OystehrConfig } from '../../config';
|
|
12
|
+
|
|
13
|
+
export class Telemed extends SDKResource {
|
|
14
|
+
constructor(config: OystehrConfig) {
|
|
15
|
+
super(config);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create a [telemedicine video meeting](https://docs.oystehr.com/services/telemed/).
|
|
19
|
+
*
|
|
20
|
+
* Access Policy Requirements:
|
|
21
|
+
* Action: `Telemed:CreateMeeting`
|
|
22
|
+
* Access Policy Resource: `Telemed:Meeting`
|
|
23
|
+
* Action: `FHIR:Create`
|
|
24
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
25
|
+
* Action: `FHIR:Update`
|
|
26
|
+
* Access Policy Resource: `FHIR:Encounter`
|
|
27
|
+
*/
|
|
28
|
+
createMeeting = (
|
|
29
|
+
params: TelemedCreateMeetingParams,
|
|
30
|
+
request?: OystehrClientRequest
|
|
31
|
+
): Promise<TelemedCreateMeetingResponse> => this.request('/telemed/v2/meeting', 'post')(params, request);
|
|
32
|
+
/**
|
|
33
|
+
* Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
|
|
34
|
+
*
|
|
35
|
+
* Access Policy Requirements:
|
|
36
|
+
* Action: `Telemed:JoinMeeting`
|
|
37
|
+
* Access Policy Resource: `Telemed:Meeting`
|
|
38
|
+
* To use M2M token to join as anonymous user:
|
|
39
|
+
* Action: `Telemed:AddAnonymousToMeeting`
|
|
40
|
+
* Access Policy Resource: `Telemed:Meeting`
|
|
41
|
+
*/
|
|
42
|
+
joinMeeting = (
|
|
43
|
+
params: TelemedJoinMeetingParams,
|
|
44
|
+
request?: OystehrClientRequest
|
|
45
|
+
): Promise<TelemedJoinMeetingResponse> =>
|
|
46
|
+
this.request('/telemed/v2/meeting/{encounterId}/join', 'get')(params, request);
|
|
47
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import { OystehrClientRequest, TransactionalSMSSendParams, TransactionalSMSSendResponse } from '../..';
|
|
4
|
+
import { SDKResource } from '../../client/client';
|
|
5
|
+
import { OystehrConfig } from '../../config';
|
|
6
|
+
|
|
7
|
+
export class TransactionalSMS extends SDKResource {
|
|
8
|
+
constructor(config: OystehrConfig) {
|
|
9
|
+
super(config);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
|
|
13
|
+
*
|
|
14
|
+
* Access Policy Requirements:
|
|
15
|
+
* Action: `Messaging:SendTransactionalSMS`
|
|
16
|
+
* Access Policy Resource: `Messaging:TransactionalSMS`
|
|
17
|
+
* Action: `FHIR:Create`
|
|
18
|
+
* Access Policy Resource: `FHIR:Communication`
|
|
19
|
+
* Action: `FHIR:Update`
|
|
20
|
+
* Access Policy Resource: `FHIR:Communication`
|
|
21
|
+
*
|
|
22
|
+
* You also need Read access for the resource to which you are sending a message. For example:
|
|
23
|
+
* Action: `FHIR:Read`
|
|
24
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
25
|
+
*/
|
|
26
|
+
send = (params: TransactionalSMSSendParams, request?: OystehrClientRequest): Promise<TransactionalSMSSendResponse> =>
|
|
27
|
+
this.request('/messaging/transactional-sms/send', 'post')(params, request);
|
|
28
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
OystehrClientRequest,
|
|
5
|
+
UserDeleteParams,
|
|
6
|
+
UserGetParams,
|
|
7
|
+
UserGetResponse,
|
|
8
|
+
UserInviteParams,
|
|
9
|
+
UserInviteResponse,
|
|
10
|
+
UserListResponse,
|
|
11
|
+
UserListV2Params,
|
|
12
|
+
UserListV2Response,
|
|
13
|
+
UserMeResponse,
|
|
14
|
+
UserUpdateParams,
|
|
15
|
+
UserUpdateResponse,
|
|
16
|
+
} from '../..';
|
|
17
|
+
import { SDKResource } from '../../client/client';
|
|
18
|
+
import { OystehrConfig } from '../../config';
|
|
19
|
+
|
|
20
|
+
export class User extends SDKResource {
|
|
21
|
+
constructor(config: OystehrConfig) {
|
|
22
|
+
super(config);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get your own User details. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
26
|
+
*
|
|
27
|
+
* Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
|
|
28
|
+
*/
|
|
29
|
+
me = (request?: OystehrClientRequest): Promise<UserMeResponse> => this.request('/user/me', 'get')(request);
|
|
30
|
+
/**
|
|
31
|
+
* Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
32
|
+
*
|
|
33
|
+
* Access Policy Action: `App:GetUser`
|
|
34
|
+
* Access Policy Resource: `App:User`
|
|
35
|
+
*/
|
|
36
|
+
get = (params: UserGetParams, request?: OystehrClientRequest): Promise<UserGetResponse> =>
|
|
37
|
+
this.request('/user/{id}', 'get')(params, request);
|
|
38
|
+
/**
|
|
39
|
+
* Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
40
|
+
*
|
|
41
|
+
* Access Policy Action: `App:UpdateUser`
|
|
42
|
+
* Access Policy Resource: `App:User`
|
|
43
|
+
*/
|
|
44
|
+
update = (params: UserUpdateParams, request?: OystehrClientRequest): Promise<UserUpdateResponse> =>
|
|
45
|
+
this.request('/user/{id}', 'patch')(params, request);
|
|
46
|
+
/**
|
|
47
|
+
* Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
48
|
+
*
|
|
49
|
+
* Access Policy Action: `App:DeleteUser`
|
|
50
|
+
* Access Policy Resource: `App:User`
|
|
51
|
+
*/
|
|
52
|
+
delete = (params: UserDeleteParams, request?: OystehrClientRequest): Promise<void> =>
|
|
53
|
+
this.request('/user/{id}', 'delete')(params, request);
|
|
54
|
+
/**
|
|
55
|
+
* Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
56
|
+
*
|
|
57
|
+
* Access Policy Action: `App:CreateUser`
|
|
58
|
+
* Access Policy Resource: `App:User`
|
|
59
|
+
*/
|
|
60
|
+
invite = (params: UserInviteParams, request?: OystehrClientRequest): Promise<UserInviteResponse> =>
|
|
61
|
+
this.request('/user/invite', 'post')(params, request);
|
|
62
|
+
/**
|
|
63
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
|
|
64
|
+
*
|
|
65
|
+
* Get all Users in the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
66
|
+
*
|
|
67
|
+
* Access Policy Action: `App:ListAllUsers`
|
|
68
|
+
* Access Policy Resource: `App:User`
|
|
69
|
+
*/
|
|
70
|
+
list = (request?: OystehrClientRequest): Promise<UserListResponse> => this.request('/user', 'get')(request);
|
|
71
|
+
/**
|
|
72
|
+
* Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
73
|
+
*
|
|
74
|
+
* Access Policy Action: `Project:ListAllUsers`
|
|
75
|
+
* Access Policy Resource: `Project:Settings`
|
|
76
|
+
*/
|
|
77
|
+
listV2 = (params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response> =>
|
|
78
|
+
this.request('/user/v2/list', 'get')(params, request);
|
|
79
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import { OystehrClientRequest, VersionGetResponse } from '../..';
|
|
4
|
+
import { SDKResource } from '../../client/client';
|
|
5
|
+
import { OystehrConfig } from '../../config';
|
|
6
|
+
|
|
7
|
+
export class Version extends SDKResource {
|
|
8
|
+
constructor(config: OystehrConfig) {
|
|
9
|
+
super(config);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get project API version. This endpoint is public so there are no access policy requirements.
|
|
13
|
+
*/
|
|
14
|
+
get = (request?: OystehrClientRequest): Promise<VersionGetResponse> => this.request('/version', 'get')(request);
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { SDKResource } from '../../client/client';
|
|
2
|
+
|
|
3
|
+
export async function uploadFile(
|
|
4
|
+
this: SDKResource,
|
|
5
|
+
{
|
|
6
|
+
bucketName,
|
|
7
|
+
'objectPath+': key,
|
|
8
|
+
file,
|
|
9
|
+
}: {
|
|
10
|
+
bucketName: string;
|
|
11
|
+
'objectPath+': string;
|
|
12
|
+
file: Blob;
|
|
13
|
+
}
|
|
14
|
+
): Promise<void> {
|
|
15
|
+
const uploadUrl = await this.request(
|
|
16
|
+
'/z3/{bucketName}/{objectPath+}',
|
|
17
|
+
'post'
|
|
18
|
+
)({
|
|
19
|
+
action: 'upload',
|
|
20
|
+
bucketName,
|
|
21
|
+
'objectPath+': key,
|
|
22
|
+
});
|
|
23
|
+
await fetch(uploadUrl.signedUrl, {
|
|
24
|
+
method: 'PUT',
|
|
25
|
+
body: file,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export async function downloadFile(
|
|
30
|
+
this: SDKResource,
|
|
31
|
+
{
|
|
32
|
+
bucketName,
|
|
33
|
+
'objectPath+': key,
|
|
34
|
+
}: {
|
|
35
|
+
bucketName: string;
|
|
36
|
+
'objectPath+': string;
|
|
37
|
+
}
|
|
38
|
+
): Promise<ArrayBuffer> {
|
|
39
|
+
const uploadUrl = await this.request(
|
|
40
|
+
'/z3/{bucketName}/{objectPath+}',
|
|
41
|
+
'post'
|
|
42
|
+
)({
|
|
43
|
+
action: 'download',
|
|
44
|
+
bucketName,
|
|
45
|
+
'objectPath+': key,
|
|
46
|
+
});
|
|
47
|
+
const resp = await fetch(uploadUrl.signedUrl, {
|
|
48
|
+
method: 'GET',
|
|
49
|
+
});
|
|
50
|
+
if (!resp.ok) {
|
|
51
|
+
throw new Error('Failed to download file');
|
|
52
|
+
}
|
|
53
|
+
return resp.arrayBuffer();
|
|
54
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
OystehrClientRequest,
|
|
5
|
+
Z3CreateBucketParams,
|
|
6
|
+
Z3CreateBucketResponse,
|
|
7
|
+
Z3DeleteBucketParams,
|
|
8
|
+
Z3DeleteObjectParams,
|
|
9
|
+
Z3GetPresignedUrlParams,
|
|
10
|
+
Z3GetPresignedUrlResponse,
|
|
11
|
+
Z3ListBucketsResponse,
|
|
12
|
+
Z3ListObjectsParams,
|
|
13
|
+
Z3ListObjectsResponse,
|
|
14
|
+
} from '../..';
|
|
15
|
+
import { SDKResource } from '../../client/client';
|
|
16
|
+
import { OystehrConfig } from '../../config';
|
|
17
|
+
import * as ext from './z3-ext';
|
|
18
|
+
|
|
19
|
+
export class Z3 extends SDKResource {
|
|
20
|
+
constructor(config: OystehrConfig) {
|
|
21
|
+
super(config);
|
|
22
|
+
}
|
|
23
|
+
uploadFile = ext.uploadFile;
|
|
24
|
+
downloadFile = ext.downloadFile;
|
|
25
|
+
/**
|
|
26
|
+
* List all Z3 Buckets. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
27
|
+
*
|
|
28
|
+
* Access Policy Action: `Z3:ListBuckets`
|
|
29
|
+
* Access Policy Resource: `Z3:BucketName`
|
|
30
|
+
*/
|
|
31
|
+
listBuckets = (request?: OystehrClientRequest): Promise<Z3ListBucketsResponse> => this.request('/z3', 'get')(request);
|
|
32
|
+
/**
|
|
33
|
+
* Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
34
|
+
*
|
|
35
|
+
* Access Policy Action: `Z3:CreateBucket`
|
|
36
|
+
* Access Policy Resource: `Z3:BucketName`
|
|
37
|
+
*/
|
|
38
|
+
createBucket = (params: Z3CreateBucketParams, request?: OystehrClientRequest): Promise<Z3CreateBucketResponse> =>
|
|
39
|
+
this.request('/z3/{bucketName}', 'put')(params, request);
|
|
40
|
+
/**
|
|
41
|
+
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
42
|
+
*
|
|
43
|
+
* Access Policy Action: `Z3:DeleteBucket`
|
|
44
|
+
* Access Policy Resource: `Z3:BucketName`
|
|
45
|
+
*/
|
|
46
|
+
deleteBucket = (params: Z3DeleteBucketParams, request?: OystehrClientRequest): Promise<void> =>
|
|
47
|
+
this.request('/z3/{bucketName}', 'delete')(params, request);
|
|
48
|
+
/**
|
|
49
|
+
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
50
|
+
*
|
|
51
|
+
* Access Policy Action: `Z3:ListObjects`
|
|
52
|
+
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
53
|
+
*/
|
|
54
|
+
listObjects = (params: Z3ListObjectsParams, request?: OystehrClientRequest): Promise<Z3ListObjectsResponse> =>
|
|
55
|
+
this.request('/z3/{bucketName}/{objectPath+}', 'get')(params, request);
|
|
56
|
+
/**
|
|
57
|
+
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
58
|
+
*
|
|
59
|
+
* Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
|
|
60
|
+
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
61
|
+
*/
|
|
62
|
+
getPresignedUrl = (
|
|
63
|
+
params: Z3GetPresignedUrlParams,
|
|
64
|
+
request?: OystehrClientRequest
|
|
65
|
+
): Promise<Z3GetPresignedUrlResponse> => this.request('/z3/{bucketName}/{objectPath+}', 'post')(params, request);
|
|
66
|
+
/**
|
|
67
|
+
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
68
|
+
*
|
|
69
|
+
* Access Policy Action: `Z3:DeleteObject`
|
|
70
|
+
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
71
|
+
*/
|
|
72
|
+
deleteObject = (params: Z3DeleteObjectParams, request?: OystehrClientRequest): Promise<void> =>
|
|
73
|
+
this.request('/z3/{bucketName}/{objectPath+}', 'delete')(params, request);
|
|
74
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SDKResource } from '../../client/client';
|
|
2
|
+
|
|
3
|
+
export async function uploadFile(
|
|
4
|
+
this: SDKResource,
|
|
5
|
+
{
|
|
6
|
+
id,
|
|
7
|
+
file,
|
|
8
|
+
filename,
|
|
9
|
+
}: {
|
|
10
|
+
id: string;
|
|
11
|
+
file: Blob;
|
|
12
|
+
filename?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
): Promise<void> {
|
|
15
|
+
const uploadUrl = await this.request('/zambda/{id}/s3-upload', 'post')({ id, filename });
|
|
16
|
+
await fetch(uploadUrl.signedUrl, {
|
|
17
|
+
method: 'PUT',
|
|
18
|
+
body: file,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
OystehrClientRequest,
|
|
5
|
+
ZambdaCreateParams,
|
|
6
|
+
ZambdaCreateResponse,
|
|
7
|
+
ZambdaDeleteParams,
|
|
8
|
+
ZambdaExecuteParams,
|
|
9
|
+
ZambdaExecutePublicParams,
|
|
10
|
+
ZambdaExecutePublicResponse,
|
|
11
|
+
ZambdaExecuteResponse,
|
|
12
|
+
ZambdaGetParams,
|
|
13
|
+
ZambdaGetResponse,
|
|
14
|
+
ZambdaListResponse,
|
|
15
|
+
ZambdaS3UploadParams,
|
|
16
|
+
ZambdaS3UploadResponse,
|
|
17
|
+
ZambdaUpdateParams,
|
|
18
|
+
ZambdaUpdateResponse,
|
|
19
|
+
} from '../..';
|
|
20
|
+
import { SDKResource } from '../../client/client';
|
|
21
|
+
import { OystehrConfig } from '../../config';
|
|
22
|
+
import * as ext from './zambda-ext';
|
|
23
|
+
|
|
24
|
+
export class Zambda extends SDKResource {
|
|
25
|
+
constructor(config: OystehrConfig) {
|
|
26
|
+
super(config);
|
|
27
|
+
}
|
|
28
|
+
uploadFile = ext.uploadFile;
|
|
29
|
+
/**
|
|
30
|
+
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
31
|
+
*
|
|
32
|
+
* Access Policy Action: `Zambda:ListAllFunctions`
|
|
33
|
+
* Access Policy Resource: `Zambda:Function`
|
|
34
|
+
*/
|
|
35
|
+
list = (request?: OystehrClientRequest): Promise<ZambdaListResponse> => this.request('/zambda', 'get')(request);
|
|
36
|
+
/**
|
|
37
|
+
* Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
38
|
+
*
|
|
39
|
+
* Access Policy Action: `Zambda:CreateFunction`
|
|
40
|
+
* Access Policy Resource: `Zambda:Function`
|
|
41
|
+
*/
|
|
42
|
+
create = (params: ZambdaCreateParams, request?: OystehrClientRequest): Promise<ZambdaCreateResponse> =>
|
|
43
|
+
this.request('/zambda', 'post')(params, request);
|
|
44
|
+
/**
|
|
45
|
+
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
46
|
+
*
|
|
47
|
+
* Access Policy Action: `Zambda:GetFunction`
|
|
48
|
+
* Access Policy Resource: `Zambda:Function`
|
|
49
|
+
*/
|
|
50
|
+
get = (params: ZambdaGetParams, request?: OystehrClientRequest): Promise<ZambdaGetResponse> =>
|
|
51
|
+
this.request('/zambda/{id}', 'get')(params, request);
|
|
52
|
+
/**
|
|
53
|
+
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
54
|
+
*
|
|
55
|
+
* Access Policy Action: `Zambda:UpdateFunction`
|
|
56
|
+
* Access Policy Resource: `Zambda:Function`
|
|
57
|
+
*/
|
|
58
|
+
update = (params: ZambdaUpdateParams, request?: OystehrClientRequest): Promise<ZambdaUpdateResponse> =>
|
|
59
|
+
this.request('/zambda/{id}', 'patch')(params, request);
|
|
60
|
+
/**
|
|
61
|
+
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
62
|
+
*
|
|
63
|
+
* Access Policy Action: `Zambda:DeleteFunction`
|
|
64
|
+
* Access Policy Resource: `Zambda:Function`
|
|
65
|
+
*/
|
|
66
|
+
delete = (params: ZambdaDeleteParams, request?: OystehrClientRequest): Promise<void> =>
|
|
67
|
+
this.request('/zambda/{id}', 'delete')(params, request);
|
|
68
|
+
/**
|
|
69
|
+
* Execute the [Authenticated Zambda Function](https://docs.oystehr.com/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
70
|
+
*
|
|
71
|
+
* Access Policy Action: `Zambda:InvokeFunction`
|
|
72
|
+
* Access Policy Resource: `Zambda:Function`
|
|
73
|
+
*/
|
|
74
|
+
execute = (params: ZambdaExecuteParams, request?: OystehrClientRequest): Promise<ZambdaExecuteResponse> =>
|
|
75
|
+
this.request('/zambda/{id}/execute', 'post')(params, request);
|
|
76
|
+
/**
|
|
77
|
+
* Execute the [Public Zambda Function](https://docs.oystehr.com/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
78
|
+
*
|
|
79
|
+
* Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.
|
|
80
|
+
*/
|
|
81
|
+
executePublic = (
|
|
82
|
+
params: ZambdaExecutePublicParams,
|
|
83
|
+
request?: OystehrClientRequest
|
|
84
|
+
): Promise<ZambdaExecutePublicResponse> => this.request('/zambda/{id}/execute-public', 'post')(params, request);
|
|
85
|
+
/**
|
|
86
|
+
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
87
|
+
*
|
|
88
|
+
* Access Policy Action: `Zambda:UpdateFunction`
|
|
89
|
+
* Access Policy Resource: `Zambda:Function`
|
|
90
|
+
*/
|
|
91
|
+
s3Upload = (params: ZambdaS3UploadParams, request?: OystehrClientRequest): Promise<ZambdaS3UploadResponse> =>
|
|
92
|
+
this.request('/zambda/{id}/s3-upload', 'post')(params, request);
|
|
93
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
OystehrClientRequest,
|
|
5
|
+
ZambdaLogStreamGetParams,
|
|
6
|
+
ZambdaLogStreamGetResponse,
|
|
7
|
+
ZambdaLogStreamListParams,
|
|
8
|
+
ZambdaLogStreamListResponse,
|
|
9
|
+
ZambdaLogStreamSearchParams,
|
|
10
|
+
ZambdaLogStreamSearchResponse,
|
|
11
|
+
} from '../..';
|
|
12
|
+
import { SDKResource } from '../../client/client';
|
|
13
|
+
import { OystehrConfig } from '../../config';
|
|
14
|
+
|
|
15
|
+
export class ZambdaLogStream extends SDKResource {
|
|
16
|
+
constructor(config: OystehrConfig) {
|
|
17
|
+
super(config);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
21
|
+
*
|
|
22
|
+
* Access Policy Action: `Zambda:ReadLogs`
|
|
23
|
+
* Access Policy Resource: `Zambda:Function`
|
|
24
|
+
*/
|
|
25
|
+
list = (params: ZambdaLogStreamListParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamListResponse> =>
|
|
26
|
+
this.request('/zambda/{id}/logStream', 'post')(params, request);
|
|
27
|
+
/**
|
|
28
|
+
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
29
|
+
*
|
|
30
|
+
* Access Policy Action: `Zambda:ReadLogs`
|
|
31
|
+
* Access Policy Resource: `Zambda:Function`
|
|
32
|
+
*/
|
|
33
|
+
search = (
|
|
34
|
+
params: ZambdaLogStreamSearchParams,
|
|
35
|
+
request?: OystehrClientRequest
|
|
36
|
+
): Promise<ZambdaLogStreamSearchResponse> => this.request('/zambda/{id}/logStream/search', 'post')(params, request);
|
|
37
|
+
/**
|
|
38
|
+
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
39
|
+
*
|
|
40
|
+
* Access Policy Action: `Zambda:ReadLogs`
|
|
41
|
+
* Access Policy Resource: `Zambda:Function`
|
|
42
|
+
*/
|
|
43
|
+
get = (params: ZambdaLogStreamGetParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamGetResponse> =>
|
|
44
|
+
this.request('/zambda/{id}/logStream/{logStreamName}', 'post')(params, request);
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
export interface Application {
|
|
4
|
+
id: string;
|
|
5
|
+
/**
|
|
6
|
+
* The name of the Application. This value is displayed to end users on the hosted login screen.
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Application's OAuth 2.0 client identifier.
|
|
11
|
+
*/
|
|
12
|
+
clientId: string;
|
|
13
|
+
/**
|
|
14
|
+
* A description of the application to help you differentiate it from other applications in the project. This value is not displayed to end users.
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* When a user accesses the hosted login screen directly instead of being redirected to it from your application, Oystehr detects this condition and redirects the user to the loginRedirectUri to get them back on track. The loginRedirectUri must be a route in your application that redirects to the 'https://auth.zapehr.com/authorize' endpoint. This typically looks like, 'https://example.com/login'.
|
|
19
|
+
*/
|
|
20
|
+
loginRedirectUri?: string;
|
|
21
|
+
/**
|
|
22
|
+
* When true, users can authenticate to the Application with their email address.
|
|
23
|
+
*/
|
|
24
|
+
loginWithEmailEnabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The list of allowed callback URLs for the Application. When a user completes authentication on the hosted login screen, they are redirected back to the app that prompted the authentication. Because the callback URL can be tampered with, as a security measure, Oystehr only redirects to callback URLs which are listed here. allowedCallbackUrls may be an empty array.
|
|
27
|
+
*/
|
|
28
|
+
allowedCallbackUrls?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* The list of allowed logout URLs for the Application. After a logout is completed, a user will be redirected to a URL specified with the logout request. Because the logout redirect URL can be tampered with, as a security measure, Oystehr only redirects to logout redirect URLs which are listed here. allowedLogoutUrls may be an empty array.
|
|
31
|
+
*/
|
|
32
|
+
allowedLogoutUrls?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* The list of allowed web origins URLs for the Application. Any domain that needs to be able to initiate a login must be listed here. These URLs must not include any path or query strings (e.g. 'https://docs.oystehr.com'). An asterisk may be used as a wildcard placeholder for subdomains (e.g. https://*.oystehr.com). allowedWebOriginsUrls may be an empty array.
|
|
35
|
+
*/
|
|
36
|
+
allowedWebOriginsUrls?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* The allowed CORS origins urls for the Application. Any domain that needs to be able to make requests from browser JavaScript to our identity provider APIs must be listed here. These URLs must not include any path or query strings (e.g. 'https://docs.oystehr.com'). By default, all domains from `allowedCallbackUrls` are allowed. allowedCORSOriginsUrls may be an empty array.
|
|
39
|
+
*/
|
|
40
|
+
allowedCORSOriginsUrls?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* When true, users can authenticate to the Application with 'passwordless SMS'. With passwordless SMS, users enter their phone number and receive a one-time code via SMS to authenticate. Users enter the code on the login screen to complete authentication.
|
|
43
|
+
*/
|
|
44
|
+
passwordlessSMS?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* When true, users will be prompted to enter a code from A TOTP-MFA application after they authenticate with their first form of authentication.
|
|
47
|
+
*/
|
|
48
|
+
mfaEnabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* When true, an invitation email is automatically sent to users who are invited to the Application. This email contains Oystehr branding, so it is recommended to set this to 'false' and send your own invitation email for production use.
|
|
51
|
+
*/
|
|
52
|
+
shouldSendInviteEmail?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* The URL of your application's logo. This logo is displayed on the hosted login screen. The recommended size for this asset is 150px x 150px.
|
|
55
|
+
*/
|
|
56
|
+
logoUri?: string;
|
|
57
|
+
/**
|
|
58
|
+
* When true, a refresh token will be provided to a user during authorization.
|
|
59
|
+
*/
|
|
60
|
+
refreshTokenEnabled?: boolean;
|
|
61
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
export interface ApplicationCreateParams {
|
|
4
|
+
id?: string;
|
|
5
|
+
/**
|
|
6
|
+
* The name of the Application. This value is displayed to end users on the hosted login screen.
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Application's OAuth 2.0 client identifier.
|
|
11
|
+
*/
|
|
12
|
+
clientId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* A description of the application to help you differentiate it from other applications in the project. This value is not displayed to end users.
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* When a user accesses the hosted login screen directly instead of being redirected to it from your application, Oystehr detects this condition and redirects the user to the loginRedirectUri to get them back on track. The loginRedirectUri must be a route in your application that redirects to the 'https://auth.zapehr.com/authorize' endpoint. This typically looks like, 'https://example.com/login'.
|
|
19
|
+
*/
|
|
20
|
+
loginRedirectUri?: string;
|
|
21
|
+
/**
|
|
22
|
+
* When true, users can authenticate to the Application with their email address.
|
|
23
|
+
*/
|
|
24
|
+
loginWithEmailEnabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The list of allowed callback URLs for the Application. When a user completes authentication on the hosted login screen, they are redirected back to the app that prompted the authentication. Because the callback URL can be tampered with, as a security measure, Oystehr only redirects to callback URLs which are listed here. allowedCallbackUrls may be an empty array.
|
|
27
|
+
*/
|
|
28
|
+
allowedCallbackUrls: string[];
|
|
29
|
+
/**
|
|
30
|
+
* The list of allowed logout URLs for the Application. After a logout is completed, a user will be redirected to a URL specified with the logout request. Because the logout redirect URL can be tampered with, as a security measure, Oystehr only redirects to logout redirect URLs which are listed here. allowedLogoutUrls may be an empty array.
|
|
31
|
+
*/
|
|
32
|
+
allowedLogoutUrls?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* The list of allowed web origins URLs for the Application. Any domain that needs to be able to initiate a login must be listed here. These URLs must not include any path or query strings (e.g. 'https://docs.oystehr.com'). An asterisk may be used as a wildcard placeholder for subdomains (e.g. https://*.oystehr.com). allowedWebOriginsUrls may be an empty array.
|
|
35
|
+
*/
|
|
36
|
+
allowedWebOriginsUrls?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* The allowed CORS origins urls for the Application. Any domain that needs to be able to make requests from browser JavaScript to our identity provider APIs must be listed here. These URLs must not include any path or query strings (e.g. 'https://docs.oystehr.com'). By default, all domains from `allowedCallbackUrls` are allowed. allowedCORSOriginsUrls may be an empty array.
|
|
39
|
+
*/
|
|
40
|
+
allowedCORSOriginsUrls?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* When true, users can authenticate to the Application with 'passwordless SMS'. With passwordless SMS, users enter their phone number and receive a one-time code via SMS to authenticate. Users enter the code on the login screen to complete authentication.
|
|
43
|
+
*/
|
|
44
|
+
passwordlessSMS?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* When true, users will be prompted to enter a code from A TOTP-MFA application after they authenticate with their first form of authentication.
|
|
47
|
+
*/
|
|
48
|
+
mfaEnabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* When true, an invitation email is automatically sent to users who are invited to the Application. This email contains Oystehr branding, so it is recommended to set this to 'false' and send your own invitation email for production use.
|
|
51
|
+
*/
|
|
52
|
+
shouldSendInviteEmail?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* The URL of your application's logo. This logo is displayed on the hosted login screen. The recommended size for this asset is 150px x 150px.
|
|
55
|
+
*/
|
|
56
|
+
logoUri?: string;
|
|
57
|
+
/**
|
|
58
|
+
* When true, a created Application supports requests for a new access token using a 'Refresh Token'.
|
|
59
|
+
*/
|
|
60
|
+
refreshTokenEnabled?: boolean;
|
|
61
|
+
}
|