@zyphr-dev/node-sdk 0.1.36 → 0.1.38
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/README.md +39 -0
- package/dist/index.cjs +773 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1193 -522
- package/dist/index.d.ts +1193 -522
- package/dist/index.js +737 -47
- package/dist/index.js.map +1 -1
- package/package.json +8 -3
- package/src/.openapi-generator/FILES +7 -0
- package/src/clientAuth.ts +182 -0
- package/src/errors.ts +29 -16
- package/src/index.ts +4 -1
- package/src/src/apis/AuthEmailOTPApi.ts +1 -1
- package/src/src/apis/AuthEmailTemplatesApi.ts +1 -1
- package/src/src/apis/AuthEmailVerificationApi.ts +1 -1
- package/src/src/apis/AuthLoginApi.ts +1 -1
- package/src/src/apis/AuthMFAApi.ts +1 -1
- package/src/src/apis/AuthMagicLinksApi.ts +1 -1
- package/src/src/apis/AuthOAuthApi.ts +28 -25
- package/src/src/apis/AuthOrganizationsApi.ts +1 -1
- package/src/src/apis/AuthPasswordResetApi.ts +1 -1
- package/src/src/apis/AuthPhoneApi.ts +1 -1
- package/src/src/apis/AuthRegistrationApi.ts +70 -5
- package/src/src/apis/AuthSessionsApi.ts +1 -1
- package/src/src/apis/AuthUserDirectoryApi.ts +596 -0
- package/src/src/apis/AuthUserProfileApi.ts +1 -63
- package/src/src/apis/AuthWebAuthnApi.ts +1 -1
- package/src/src/apis/DevicesApi.ts +1 -1
- package/src/src/apis/DomainsApi.ts +1 -1
- package/src/src/apis/EmailsApi.ts +1 -1
- package/src/src/apis/ExecutionsApi.ts +1 -1
- package/src/src/apis/InboundEmailApi.ts +1 -1
- package/src/src/apis/InboxApi.ts +1 -1
- package/src/src/apis/MuseApi.ts +1 -1
- package/src/src/apis/PushApi.ts +1 -1
- package/src/src/apis/SMSApi.ts +1 -1
- package/src/src/apis/SlackApi.ts +1 -1
- package/src/src/apis/SubscribersApi.ts +1 -1
- package/src/src/apis/TemplatesApi.ts +78 -1
- package/src/src/apis/TopicsApi.ts +1 -1
- package/src/src/apis/UtilityApi.ts +1 -1
- package/src/src/apis/WaaSApplicationsApi.ts +1 -1
- package/src/src/apis/WaaSDeliveriesApi.ts +1 -1
- package/src/src/apis/WaaSEndpointsApi.ts +1 -1
- package/src/src/apis/WaaSEventTypesApi.ts +1 -1
- package/src/src/apis/WaaSEventsApi.ts +1 -1
- package/src/src/apis/WaaSPortalApi.ts +1 -1
- package/src/src/apis/WebhooksApi.ts +1 -1
- package/src/src/apis/index.ts +1 -0
- package/src/src/models/AddDomain200Response.ts +1 -1
- package/src/src/models/AddDomain200ResponseMeta.ts +1 -1
- package/src/src/models/AddDomainRequest.ts +1 -1
- package/src/src/models/AddOrganizationMemberRequest.ts +1 -1
- package/src/src/models/AddTopicSubscribersRequest.ts +1 -1
- package/src/src/models/ApiError.ts +1 -1
- package/src/src/models/ApiErrorError.ts +1 -1
- package/src/src/models/ApiErrorMeta.ts +1 -1
- package/src/src/models/AuthEmailTemplate.ts +1 -1
- package/src/src/models/AuthEmailTemplateDefault.ts +1 -1
- package/src/src/models/AuthEmailTemplateDefaultResponse.ts +1 -1
- package/src/src/models/AuthEmailTemplateDeleteResponse.ts +1 -1
- package/src/src/models/AuthEmailTemplateDeleteResponseData.ts +1 -1
- package/src/src/models/AuthEmailTemplateListResponse.ts +1 -1
- package/src/src/models/AuthEmailTemplatePreviewDraft.ts +1 -1
- package/src/src/models/AuthEmailTemplatePreviewRequest.ts +1 -1
- package/src/src/models/AuthEmailTemplatePreviewResponse.ts +1 -1
- package/src/src/models/AuthEmailTemplatePreviewResult.ts +1 -1
- package/src/src/models/AuthEmailTemplateResponse.ts +1 -1
- package/src/src/models/AuthEmailTemplateTestRequest.ts +1 -1
- package/src/src/models/AuthEmailTemplateTestResponse.ts +1 -1
- package/src/src/models/AuthEmailTemplateTestResult.ts +1 -1
- package/src/src/models/AuthEmailTemplateVersion.ts +1 -1
- package/src/src/models/AuthEmailTemplateVersionsResponse.ts +1 -1
- package/src/src/models/AuthEmailType.ts +1 -1
- package/src/src/models/AuthLoginResponse.ts +1 -1
- package/src/src/models/AuthLoginResult.ts +1 -1
- package/src/src/models/AuthLoginResultMfaChallenge.ts +1 -1
- package/src/src/models/AuthResult.ts +1 -1
- package/src/src/models/AuthResultResponse.ts +1 -1
- package/src/src/models/AuthSession.ts +1 -1
- package/src/src/models/AuthTokens.ts +1 -1
- package/src/src/models/AuthUser.ts +1 -1
- package/src/src/models/AuthUserResponse.ts +1 -1
- package/src/src/models/AuthUserResponseData.ts +1 -1
- package/src/src/models/BatchPublishWaaSEvents201Response.ts +1 -1
- package/src/src/models/BatchRecipient.ts +1 -1
- package/src/src/models/BulkRetryWebhookDeliveriesRequest.ts +1 -1
- package/src/src/models/BulkUpsertAuthEmailTemplatesRequest.ts +1 -1
- package/src/src/models/BulkUpsertAuthEmailTemplatesResponse.ts +1 -1
- package/src/src/models/Category.ts +1 -1
- package/src/src/models/CategoryListResponse.ts +1 -1
- package/src/src/models/CategoryResponse.ts +1 -1
- package/src/src/models/ConfirmEmailVerificationRequest.ts +1 -1
- package/src/src/models/ConfirmEmailVerificationResponse.ts +1 -1
- package/src/src/models/ConfirmEmailVerificationResponseData.ts +1 -1
- package/src/src/models/ConsentHistoryEntry.ts +1 -1
- package/src/src/models/ConsentHistoryResponse.ts +1 -1
- package/src/src/models/ConsentRecordResponse.ts +1 -1
- package/src/src/models/ConsentRecordResponseData.ts +1 -1
- package/src/src/models/ConsentStatus.ts +1 -1
- package/src/src/models/ConsentStatusResponse.ts +1 -1
- package/src/src/models/ConsentWithdrawResponse.ts +1 -1
- package/src/src/models/ConvertAnonymousUserRequest.ts +1 -1
- package/src/src/models/ConvertAnonymousUserRequestOneOf.ts +1 -1
- package/src/src/models/ConvertAnonymousUserRequestOneOf1.ts +1 -1
- package/src/src/models/ConvertAnonymousUserRequestOneOf1AppleUser.ts +1 -1
- package/src/src/models/ConvertAnonymousUserRequestOneOf1AppleUserName.ts +1 -1
- package/src/src/models/CreateCategoryRequest.ts +1 -1
- package/src/src/models/CreateOrganizationRequest.ts +1 -1
- package/src/src/models/CreateSubscriberRequest.ts +1 -1
- package/src/src/models/CreateTemplateRequest.ts +1 -1
- package/src/src/models/CreateTopicRequest.ts +1 -1
- package/src/src/models/CreateWaaSApplication201Response.ts +1 -1
- package/src/src/models/CreateWaaSApplicationRequest.ts +1 -1
- package/src/src/models/CreateWaaSEndpoint201Response.ts +1 -1
- package/src/src/models/CreateWaaSEndpointRequest.ts +1 -1
- package/src/src/models/CreateWaaSEndpointResponse.ts +1 -1
- package/src/src/models/CreateWaaSEventType201Response.ts +1 -1
- package/src/src/models/CreateWaaSEventTypeRequest.ts +1 -1
- package/src/src/models/CreateWebhookRequest.ts +1 -1
- package/src/src/models/DeleteDomainResponse.ts +1 -1
- package/src/src/models/DeleteDomainResponseData.ts +1 -1
- package/src/src/models/DeleteResult.ts +1 -1
- package/src/src/models/DeleteResultData.ts +1 -1
- package/src/src/models/Device.ts +1 -1
- package/src/src/models/DeviceListResponse.ts +1 -1
- package/src/src/models/DevicePushTopic.ts +1 -1
- package/src/src/models/DevicePushTopicListResponse.ts +1 -1
- package/src/src/models/DevicePushTopicListResponseMeta.ts +1 -1
- package/src/src/models/DeviceResponse.ts +1 -1
- package/src/src/models/DeviceStats.ts +1 -1
- package/src/src/models/DeviceStatsResponse.ts +1 -1
- package/src/src/models/DnsRecord.ts +1 -1
- package/src/src/models/DomainListResponse.ts +1 -1
- package/src/src/models/DomainListResponseMeta.ts +1 -1
- package/src/src/models/DomainResponse.ts +1 -1
- package/src/src/models/EmailAddress.ts +1 -1
- package/src/src/models/EmailAttachment.ts +1 -1
- package/src/src/models/EmailEvent.ts +1 -1
- package/src/src/models/EmailEventsResponse.ts +1 -1
- package/src/src/models/EmailListResponse.ts +1 -1
- package/src/src/models/EmailMessage.ts +1 -1
- package/src/src/models/EmailResponse.ts +1 -1
- package/src/src/models/EmailTrackingClickLink.ts +1 -1
- package/src/src/models/EmailTrackingClicks.ts +1 -1
- package/src/src/models/EmailTrackingData.ts +1 -1
- package/src/src/models/EmailTrackingOpens.ts +1 -1
- package/src/src/models/EmailTrackingResponse.ts +1 -1
- package/src/src/models/EndUserDeleteResponse.ts +1 -1
- package/src/src/models/EndUserDeleteResponseData.ts +1 -1
- package/src/src/models/ExecutionCancelResponse.ts +1 -1
- package/src/src/models/ExecutionCancelResponseData.ts +1 -1
- package/src/src/models/ExecutionResponse.ts +1 -1
- package/src/src/models/ExecutionRetryResponse.ts +1 -1
- package/src/src/models/ExecutionRetryResponseData.ts +1 -1
- package/src/src/models/ForgotPasswordRequest.ts +1 -1
- package/src/src/models/GenerateSubscriberToken200Response.ts +1 -1
- package/src/src/models/GenerateSubscriberToken200ResponseData.ts +1 -1
- package/src/src/models/GenerateSubscriberTokenRequest.ts +1 -1
- package/src/src/models/GenerateWaaSPortalToken201Response.ts +1 -1
- package/src/src/models/GetDomain200Response.ts +1 -1
- package/src/src/models/GetDomain200ResponseMeta.ts +1 -1
- package/src/src/models/GetWaaSEndpoint200Response.ts +1 -1
- package/src/src/models/GetWaaSUsage200Response.ts +1 -1
- package/src/src/models/InAppNotification.ts +1 -1
- package/src/src/models/InboundAttachmentUrlResponse.ts +1 -1
- package/src/src/models/InboundAttachmentUrlResponseData.ts +1 -1
- package/src/src/models/InboundEmail.ts +1 -1
- package/src/src/models/InboundEmailAttachment.ts +1 -1
- package/src/src/models/InboundEmailFrom.ts +1 -1
- package/src/src/models/InboundEmailListResponse.ts +1 -1
- package/src/src/models/InboundEmailListResponseMeta.ts +1 -1
- package/src/src/models/InboundEmailResponse.ts +1 -1
- package/src/src/models/InboxListMeta.ts +1 -1
- package/src/src/models/InboxListResponse.ts +1 -1
- package/src/src/models/InboxNotificationResponse.ts +1 -1
- package/src/src/models/InviteEndUserRequest.ts +110 -0
- package/src/src/models/ListWaaSApplications200Response.ts +1 -1
- package/src/src/models/ListWaaSEndpointDeliveries200Response.ts +1 -1
- package/src/src/models/ListWaaSEndpoints200Response.ts +1 -1
- package/src/src/models/ListWaaSEventTypes200Response.ts +1 -1
- package/src/src/models/LoginRequest.ts +1 -1
- package/src/src/models/MagicLinkSendRequest.ts +1 -1
- package/src/src/models/MagicLinkVerifyRequest.ts +1 -1
- package/src/src/models/MagicLinkVerifyResponse.ts +1 -1
- package/src/src/models/MagicLinkVerifyResponseData.ts +1 -1
- package/src/src/models/MarkAllInboxReadRequest.ts +1 -1
- package/src/src/models/MarkAllReadData.ts +1 -1
- package/src/src/models/MarkAllReadResponse.ts +1 -1
- package/src/src/models/MarkAllSubscriberNotificationsReadRequest.ts +1 -1
- package/src/src/models/MarkInboxReadRequest.ts +1 -1
- package/src/src/models/MfaBackupCodesResponse.ts +1 -1
- package/src/src/models/MfaBackupCodesResponseData.ts +1 -1
- package/src/src/models/MfaDisableRequest.ts +1 -1
- package/src/src/models/MfaDisableResponse.ts +1 -1
- package/src/src/models/MfaDisableResponseData.ts +1 -1
- package/src/src/models/MfaEnrollRequest.ts +1 -1
- package/src/src/models/MfaEnrollmentResponse.ts +1 -1
- package/src/src/models/MfaEnrollmentResponseData.ts +1 -1
- package/src/src/models/MfaRegenerateBackupCodesRequest.ts +1 -1
- package/src/src/models/MfaStatusResponse.ts +1 -1
- package/src/src/models/MfaStatusResponseData.ts +1 -1
- package/src/src/models/MfaVerifyBackupRequest.ts +1 -1
- package/src/src/models/MfaVerifyBackupResponse.ts +1 -1
- package/src/src/models/MfaVerifyBackupResponseData.ts +1 -1
- package/src/src/models/MfaVerifyEnrollmentRequest.ts +1 -1
- package/src/src/models/MfaVerifyEnrollmentResponse.ts +1 -1
- package/src/src/models/MfaVerifyEnrollmentResponseData.ts +1 -1
- package/src/src/models/MfaVerifyRequest.ts +1 -1
- package/src/src/models/OAuthAuthorizationUrlResponse.ts +1 -1
- package/src/src/models/OAuthAuthorizationUrlResponseData.ts +1 -1
- package/src/src/models/OAuthCallbackRequest.ts +1 -1
- package/src/src/models/OAuthCallbackResponse.ts +1 -1
- package/src/src/models/OAuthCallbackResponseData.ts +1 -1
- package/src/src/models/OAuthConnection.ts +1 -1
- package/src/src/models/OAuthConnectionInfoResponse.ts +1 -1
- package/src/src/models/OAuthConnectionInfoResponseData.ts +1 -1
- package/src/src/models/OAuthConnectionsResponse.ts +1 -1
- package/src/src/models/OAuthConnectionsResponseData.ts +1 -1
- package/src/src/models/OAuthProvider.ts +1 -1
- package/src/src/models/OAuthProviderInfo.ts +1 -1
- package/src/src/models/OAuthProviderName.ts +56 -0
- package/src/src/models/OAuthProvidersResponse.ts +1 -1
- package/src/src/models/OAuthProvidersResponseData.ts +1 -1
- package/src/src/models/OAuthTokensRefreshResponse.ts +1 -1
- package/src/src/models/OAuthTokensRefreshResponseData.ts +1 -1
- package/src/src/models/OAuthTokensResponse.ts +1 -1
- package/src/src/models/OAuthTokensResponseData.ts +1 -1
- package/src/src/models/Organization.ts +1 -1
- package/src/src/models/OrganizationListResponse.ts +1 -1
- package/src/src/models/OrganizationListResponseMeta.ts +1 -1
- package/src/src/models/OrganizationMembersListResponse.ts +1 -1
- package/src/src/models/OrganizationMembership.ts +1 -1
- package/src/src/models/OrganizationMembershipResponse.ts +1 -1
- package/src/src/models/OrganizationMembershipWithUser.ts +1 -1
- package/src/src/models/OrganizationResponse.ts +1 -1
- package/src/src/models/PaginationMeta.ts +1 -1
- package/src/src/models/PasswordRequirements.ts +1 -1
- package/src/src/models/PasswordRequirementsResponse.ts +1 -1
- package/src/src/models/PasswordRequirementsResponseData.ts +1 -1
- package/src/src/models/PayloadTooLargeError.ts +1 -1
- package/src/src/models/PayloadTooLargeErrorError.ts +1 -1
- package/src/src/models/PayloadTooLargeErrorErrorDetails.ts +1 -1
- package/src/src/models/PhoneAuthAvailabilityResponse.ts +1 -1
- package/src/src/models/PhoneAuthAvailabilityResponseData.ts +1 -1
- package/src/src/models/PhoneLoginVerifyRequest.ts +1 -1
- package/src/src/models/PhoneOtpSendRequest.ts +1 -1
- package/src/src/models/PhoneOtpSentResponse.ts +1 -1
- package/src/src/models/PhoneOtpSentResponseData.ts +1 -1
- package/src/src/models/PhoneRegisterVerifyRequest.ts +1 -1
- package/src/src/models/PreferenceListResponse.ts +1 -1
- package/src/src/models/PublishWaaSEvent201Response.ts +1 -1
- package/src/src/models/PushDetailResponse.ts +1 -1
- package/src/src/models/PushEvent.ts +1 -1
- package/src/src/models/PushListResponse.ts +1 -1
- package/src/src/models/PushMessage.ts +1 -1
- package/src/src/models/PushMessageDetail.ts +1 -1
- package/src/src/models/PushMessageDetailAllOfActionButtons.ts +1 -1
- package/src/src/models/PushStatsData.ts +1 -1
- package/src/src/models/PushStatsResponse.ts +1 -1
- package/src/src/models/PushTopicDevice.ts +1 -1
- package/src/src/models/PushTopicDeviceListResponse.ts +1 -1
- package/src/src/models/PushTopicSubscribeData.ts +1 -1
- package/src/src/models/PushTopicSubscribeResponse.ts +1 -1
- package/src/src/models/PushTopicUnsubscribeData.ts +1 -1
- package/src/src/models/PushTopicUnsubscribeResponse.ts +1 -1
- package/src/src/models/RefreshOAuthTokensRequest.ts +1 -1
- package/src/src/models/RefreshSessionRequest.ts +1 -1
- package/src/src/models/RefreshTokenResponse.ts +1 -1
- package/src/src/models/RefreshTokenResponseData.ts +1 -1
- package/src/src/models/RegisterDeviceRequest.ts +1 -1
- package/src/src/models/RegisterRequest.ts +1 -1
- package/src/src/models/RemoveTopicSubscribersRequest.ts +1 -1
- package/src/src/models/RenameWebAuthnCredentialRequest.ts +1 -1
- package/src/src/models/RenderTemplateRequest.ts +1 -1
- package/src/src/models/ReplayWebhookEventsRequest.ts +1 -1
- package/src/src/models/RequestMeta.ts +1 -1
- package/src/src/models/ResetPasswordRequest.ts +1 -1
- package/src/src/models/ResetPasswordResponse.ts +1 -1
- package/src/src/models/ResubscribeRequest.ts +1 -1
- package/src/src/models/ResubscribeResponse.ts +1 -1
- package/src/src/models/RevokeAllSessionsResponse.ts +1 -1
- package/src/src/models/RevokeAllSessionsResponseData.ts +1 -1
- package/src/src/models/RevokeSessionRequest.ts +1 -1
- package/src/src/models/SendBatchEmailRequest.ts +1 -1
- package/src/src/models/SendBatchEmailResponse.ts +1 -1
- package/src/src/models/SendBatchEmailResult.ts +1 -1
- package/src/src/models/SendBatchEmailResultItem.ts +1 -1
- package/src/src/models/SendBatchInAppMeta.ts +1 -1
- package/src/src/models/SendBatchInAppRequest.ts +1 -1
- package/src/src/models/SendBatchInAppResponse.ts +1 -1
- package/src/src/models/SendBatchSmsData.ts +1 -1
- package/src/src/models/SendBatchSmsRequest.ts +1 -1
- package/src/src/models/SendBatchSmsResponse.ts +1 -1
- package/src/src/models/SendEmailOtpRegistrationRequest.ts +1 -1
- package/src/src/models/SendEmailRequest.ts +1 -1
- package/src/src/models/SendEmailResponse.ts +1 -1
- package/src/src/models/SendEmailResponseData.ts +1 -1
- package/src/src/models/SendEmailResponseMeta.ts +1 -1
- package/src/src/models/SendEmailVerificationRequest.ts +1 -1
- package/src/src/models/SendInAppMeta.ts +1 -1
- package/src/src/models/SendInAppRequest.ts +1 -1
- package/src/src/models/SendInAppResponse.ts +1 -1
- package/src/src/models/SendPushRequest.ts +1 -1
- package/src/src/models/SendPushRequestActionButtonsInner.ts +1 -1
- package/src/src/models/SendPushResponse.ts +1 -1
- package/src/src/models/SendPushResponseData.ts +1 -1
- package/src/src/models/SendPushToTopicData.ts +1 -1
- package/src/src/models/SendPushToTopicRequest.ts +1 -1
- package/src/src/models/SendPushToTopicResponse.ts +1 -1
- package/src/src/models/SendSlackMessageRequest.ts +1 -1
- package/src/src/models/SendSlackMessageResponse.ts +1 -1
- package/src/src/models/SendSlackMessageResult.ts +1 -1
- package/src/src/models/SendSmsData.ts +1 -1
- package/src/src/models/SendSmsRequest.ts +1 -1
- package/src/src/models/SendSmsResponse.ts +1 -1
- package/src/src/models/SendTemplateTestEmailRequest.ts +74 -0
- package/src/src/models/SendTestSmsData.ts +1 -1
- package/src/src/models/SendTestSmsRequest.ts +1 -1
- package/src/src/models/SendTestSmsResponse.ts +1 -1
- package/src/src/models/SendWebhookTestEventRequest.ts +1 -1
- package/src/src/models/SessionListResponse.ts +1 -1
- package/src/src/models/SessionListResponseData.ts +1 -1
- package/src/src/models/SessionListResponseDataSessionInfo.ts +1 -1
- package/src/src/models/SetDomainInboundRequest.ts +1 -1
- package/src/src/models/SetEndUserClaimsRequest.ts +65 -0
- package/src/src/models/SetPreferencesRequest.ts +1 -1
- package/src/src/models/SetPreferencesRequestPreferencesInner.ts +1 -1
- package/src/src/models/SignInAnonymouslyRequest.ts +17 -1
- package/src/src/models/SignInWithGameCenterRequest.ts +111 -0
- package/src/src/models/SlackMessage.ts +1 -1
- package/src/src/models/SlackMessageListResponse.ts +1 -1
- package/src/src/models/SlackMessageListResponseMeta.ts +1 -1
- package/src/src/models/SlackMessageResponse.ts +1 -1
- package/src/src/models/SlackMessageStatus.ts +1 -1
- package/src/src/models/SlackMessageSummary.ts +1 -1
- package/src/src/models/SmsBatchResultMessage.ts +1 -1
- package/src/src/models/SmsBatchResultSummary.ts +1 -1
- package/src/src/models/SmsConfig.ts +1 -1
- package/src/src/models/SmsConfigDeleteResponse.ts +1 -1
- package/src/src/models/SmsConfigDeleteResponseData.ts +1 -1
- package/src/src/models/SmsConfigResponse.ts +1 -1
- package/src/src/models/SmsDetailResponse.ts +1 -1
- package/src/src/models/SmsListResponse.ts +1 -1
- package/src/src/models/SmsListResponseMeta.ts +1 -1
- package/src/src/models/SmsMessage.ts +1 -1
- package/src/src/models/SmsMessageDetail.ts +1 -1
- package/src/src/models/SubscribePushTopicRequest.ts +1 -1
- package/src/src/models/Subscriber.ts +1 -1
- package/src/src/models/SubscriberListResponse.ts +1 -1
- package/src/src/models/SubscriberPreference.ts +1 -1
- package/src/src/models/SubscriberResponse.ts +1 -1
- package/src/src/models/SuccessResult.ts +1 -1
- package/src/src/models/SwitchOrganizationRequest.ts +1 -1
- package/src/src/models/SwitchOrganizationResponse.ts +1 -1
- package/src/src/models/SwitchOrganizationResponseData.ts +1 -1
- package/src/src/models/SwitchOrganizationResponseDataTokens.ts +1 -1
- package/src/src/models/SwitchOrganizationResponseDataUser.ts +1 -1
- package/src/src/models/Template.ts +1 -1
- package/src/src/models/TemplateListResponse.ts +1 -1
- package/src/src/models/TemplateRenderResponse.ts +1 -1
- package/src/src/models/TemplateRenderedContent.ts +1 -1
- package/src/src/models/TemplateResponse.ts +1 -1
- package/src/src/models/TestWebhookTransformRequest.ts +1 -1
- package/src/src/models/Topic.ts +1 -1
- package/src/src/models/TopicDeleteResponse.ts +1 -1
- package/src/src/models/TopicDeleteResponseData.ts +1 -1
- package/src/src/models/TopicListResponse.ts +1 -1
- package/src/src/models/TopicResponse.ts +1 -1
- package/src/src/models/TopicStatsData.ts +1 -1
- package/src/src/models/TopicStatsDataTopicsBySubscriberCountInner.ts +1 -1
- package/src/src/models/TopicStatsResponse.ts +1 -1
- package/src/src/models/TopicSubscriber.ts +1 -1
- package/src/src/models/TopicSubscriberListResponse.ts +1 -1
- package/src/src/models/TopicSubscribersAddResponse.ts +1 -1
- package/src/src/models/TopicSubscribersAddResult.ts +1 -1
- package/src/src/models/TopicSubscribersRemoveResponse.ts +1 -1
- package/src/src/models/TopicSubscribersRemoveResult.ts +1 -1
- package/src/src/models/UnreadCountData.ts +1 -1
- package/src/src/models/UnreadCountResponse.ts +1 -1
- package/src/src/models/Unsubscribe.ts +1 -1
- package/src/src/models/UnsubscribeListResponse.ts +1 -1
- package/src/src/models/UnsubscribeRequest.ts +1 -1
- package/src/src/models/UnsubscribeResponse.ts +1 -1
- package/src/src/models/UpdateCategoryRequest.ts +1 -1
- package/src/src/models/UpdateEndUserByApplicationRequest.ts +97 -0
- package/src/src/models/UpdateEndUserRequest.ts +1 -1
- package/src/src/models/UpdateOrganizationMemberRoleRequest.ts +1 -1
- package/src/src/models/UpdateOrganizationRequest.ts +1 -1
- package/src/src/models/UpdateSubscriberPreferencesRequest.ts +1 -1
- package/src/src/models/UpdateSubscriberPreferencesRequestPreferencesInner.ts +1 -1
- package/src/src/models/UpdateSubscriberRequest.ts +1 -1
- package/src/src/models/UpdateTemplateRequest.ts +1 -1
- package/src/src/models/UpdateTopicRequest.ts +1 -1
- package/src/src/models/UpdateWaaSApplicationRequest.ts +1 -1
- package/src/src/models/UpdateWaaSEndpointRequest.ts +1 -1
- package/src/src/models/UpdateWaaSEventTypeRequest.ts +1 -1
- package/src/src/models/UpdateWebhookRequest.ts +1 -1
- package/src/src/models/UpsertAuthEmailTemplateRequest.ts +1 -1
- package/src/src/models/UpsertSmsConfigRequest.ts +1 -1
- package/src/src/models/UserDevicesDeleteResponse.ts +1 -1
- package/src/src/models/UserDevicesDeleteResponseData.ts +1 -1
- package/src/src/models/V1MuseSubjectsSuggestPostRequest.ts +1 -1
- package/src/src/models/ValidateResetTokenRequest.ts +1 -1
- package/src/src/models/ValidateResetTokenResponse.ts +1 -1
- package/src/src/models/ValidateResetTokenResponseData.ts +1 -1
- package/src/src/models/VerificationStatusResponse.ts +1 -1
- package/src/src/models/VerificationStatusResponseData.ts +1 -1
- package/src/src/models/VerifyDomainResponse.ts +1 -1
- package/src/src/models/VerifyDomainResponseData.ts +1 -1
- package/src/src/models/VerifyEmailOtpLoginRequest.ts +1 -1
- package/src/src/models/VerifyEmailOtpRegistrationRequest.ts +1 -1
- package/src/src/models/VerifySmsConfigData.ts +1 -1
- package/src/src/models/VerifySmsConfigResponse.ts +1 -1
- package/src/src/models/WaaSApplication.ts +1 -1
- package/src/src/models/WaaSBatchPublishRequest.ts +1 -1
- package/src/src/models/WaaSBatchPublishResponse.ts +1 -1
- package/src/src/models/WaaSDelivery.ts +1 -1
- package/src/src/models/WaaSEndpoint.ts +1 -1
- package/src/src/models/WaaSEventType.ts +1 -1
- package/src/src/models/WaaSPortalTokenRequest.ts +1 -1
- package/src/src/models/WaaSPortalTokenRequestTheme.ts +1 -1
- package/src/src/models/WaaSPortalTokenResponse.ts +1 -1
- package/src/src/models/WaaSPublishEventRequest.ts +1 -1
- package/src/src/models/WaaSPublishEventResponse.ts +1 -1
- package/src/src/models/WaaSUsageResponse.ts +1 -1
- package/src/src/models/WebAuthnChallengeOptions.ts +1 -1
- package/src/src/models/WebAuthnCredential.ts +1 -1
- package/src/src/models/WebAuthnCredentialListResponse.ts +1 -1
- package/src/src/models/WebAuthnCredentialListResponseData.ts +1 -1
- package/src/src/models/WebAuthnCredentialResponse.ts +1 -1
- package/src/src/models/WebAuthnStartAuthRequest.ts +1 -1
- package/src/src/models/WebAuthnStartAuthResponse.ts +1 -1
- package/src/src/models/WebAuthnStartRegistrationRequest.ts +1 -1
- package/src/src/models/WebAuthnStartRegistrationResponse.ts +1 -1
- package/src/src/models/WebAuthnStatusResponse.ts +1 -1
- package/src/src/models/WebAuthnStatusResponseData.ts +1 -1
- package/src/src/models/WebAuthnVerifyAuthRequest.ts +1 -1
- package/src/src/models/WebAuthnVerifyRegistrationRequest.ts +1 -1
- package/src/src/models/WebAuthnVerifyRegistrationResponse.ts +1 -1
- package/src/src/models/WebAuthnVerifyRegistrationResponseData.ts +1 -1
- package/src/src/models/Webhook.ts +1 -1
- package/src/src/models/WebhookAccountMetricsResponse.ts +1 -1
- package/src/src/models/WebhookBulkRetryResponse.ts +1 -1
- package/src/src/models/WebhookCircuitState.ts +1 -1
- package/src/src/models/WebhookCircuitStateResponse.ts +1 -1
- package/src/src/models/WebhookCreateResponse.ts +1 -1
- package/src/src/models/WebhookCreateResponseData.ts +1 -1
- package/src/src/models/WebhookDeleteResponse.ts +1 -1
- package/src/src/models/WebhookDeleteResponseData.ts +1 -1
- package/src/src/models/WebhookDelivery.ts +1 -1
- package/src/src/models/WebhookDeliveryDetail.ts +1 -1
- package/src/src/models/WebhookDeliveryListResponse.ts +1 -1
- package/src/src/models/WebhookDeliveryResponse.ts +1 -1
- package/src/src/models/WebhookDeliveryRetryResponse.ts +1 -1
- package/src/src/models/WebhookDeliveryRetryResponseData.ts +1 -1
- package/src/src/models/WebhookEventTypesResponse.ts +1 -1
- package/src/src/models/WebhookEventTypesResponseData.ts +1 -1
- package/src/src/models/WebhookIpsResponse.ts +1 -1
- package/src/src/models/WebhookIpsResponseData.ts +1 -1
- package/src/src/models/WebhookJobResponse.ts +1 -1
- package/src/src/models/WebhookListResponse.ts +1 -1
- package/src/src/models/WebhookMetricsResponse.ts +1 -1
- package/src/src/models/WebhookRegion.ts +1 -1
- package/src/src/models/WebhookRegionsResponse.ts +1 -1
- package/src/src/models/WebhookRegionsResponseData.ts +1 -1
- package/src/src/models/WebhookReplayResponse.ts +1 -1
- package/src/src/models/WebhookResponse.ts +1 -1
- package/src/src/models/WebhookSecretRotateResponse.ts +1 -1
- package/src/src/models/WebhookSecretRotateResponseData.ts +1 -1
- package/src/src/models/WebhookTestEventResponse.ts +1 -1
- package/src/src/models/WebhookTestEventResponseData.ts +1 -1
- package/src/src/models/WebhookTransformTestResponse.ts +1 -1
- package/src/src/models/WebhookUsageResponse.ts +1 -1
- package/src/src/models/WebhookVersion.ts +1 -1
- package/src/src/models/WebhookVersionsResponse.ts +1 -1
- package/src/src/models/WebhookVersionsResponseData.ts +1 -1
- package/src/src/models/WithdrawSubscriberConsentRequest.ts +1 -1
- package/src/src/models/WorkflowExecution.ts +1 -1
- package/src/src/models/WorkflowExecutionStatus.ts +1 -1
- package/src/src/models/WorkflowStepExecution.ts +1 -1
- package/src/src/models/WorkflowStepExecutionStatus.ts +1 -1
- package/src/src/models/index.ts +6 -0
- package/src/src/runtime.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -163,6 +163,7 @@ __export(index_exports, {
|
|
|
163
163
|
AuthTokensFromJSONTyped: () => AuthTokensFromJSONTyped,
|
|
164
164
|
AuthTokensToJSON: () => AuthTokensToJSON,
|
|
165
165
|
AuthTokensToJSONTyped: () => AuthTokensToJSONTyped,
|
|
166
|
+
AuthUserDirectoryApi: () => AuthUserDirectoryApi,
|
|
166
167
|
AuthUserFromJSON: () => AuthUserFromJSON,
|
|
167
168
|
AuthUserFromJSONTyped: () => AuthUserFromJSONTyped,
|
|
168
169
|
AuthUserProfileApi: () => AuthUserProfileApi,
|
|
@@ -577,10 +578,16 @@ __export(index_exports, {
|
|
|
577
578
|
InboxNotificationResponseFromJSONTyped: () => InboxNotificationResponseFromJSONTyped,
|
|
578
579
|
InboxNotificationResponseToJSON: () => InboxNotificationResponseToJSON,
|
|
579
580
|
InboxNotificationResponseToJSONTyped: () => InboxNotificationResponseToJSONTyped,
|
|
581
|
+
InviteEndUserRequestFromJSON: () => InviteEndUserRequestFromJSON,
|
|
582
|
+
InviteEndUserRequestFromJSONTyped: () => InviteEndUserRequestFromJSONTyped,
|
|
583
|
+
InviteEndUserRequestSendLinkEnum: () => InviteEndUserRequestSendLinkEnum,
|
|
584
|
+
InviteEndUserRequestToJSON: () => InviteEndUserRequestToJSON,
|
|
585
|
+
InviteEndUserRequestToJSONTyped: () => InviteEndUserRequestToJSONTyped,
|
|
580
586
|
JSONApiResponse: () => JSONApiResponse,
|
|
581
587
|
ListAllInboxStatusEnum: () => ListAllInboxStatusEnum,
|
|
582
588
|
ListDevicesPlatformEnum: () => ListDevicesPlatformEnum,
|
|
583
589
|
ListEmailsStatusEnum: () => ListEmailsStatusEnum,
|
|
590
|
+
ListEndUsersEnvironmentEnum: () => ListEndUsersEnvironmentEnum,
|
|
584
591
|
ListInboundEmailsStatusEnum: () => ListInboundEmailsStatusEnum,
|
|
585
592
|
ListPushStatusEnum: () => ListPushStatusEnum,
|
|
586
593
|
ListSlackMessagesStatusEnum: () => ListSlackMessagesStatusEnum,
|
|
@@ -767,6 +774,11 @@ __export(index_exports, {
|
|
|
767
774
|
OAuthProviderInfoFromJSONTyped: () => OAuthProviderInfoFromJSONTyped,
|
|
768
775
|
OAuthProviderInfoToJSON: () => OAuthProviderInfoToJSON,
|
|
769
776
|
OAuthProviderInfoToJSONTyped: () => OAuthProviderInfoToJSONTyped,
|
|
777
|
+
OAuthProviderName: () => OAuthProviderName,
|
|
778
|
+
OAuthProviderNameFromJSON: () => OAuthProviderNameFromJSON,
|
|
779
|
+
OAuthProviderNameFromJSONTyped: () => OAuthProviderNameFromJSONTyped,
|
|
780
|
+
OAuthProviderNameToJSON: () => OAuthProviderNameToJSON,
|
|
781
|
+
OAuthProviderNameToJSONTyped: () => OAuthProviderNameToJSONTyped,
|
|
770
782
|
OAuthProviderToJSON: () => OAuthProviderToJSON,
|
|
771
783
|
OAuthProviderToJSONTyped: () => OAuthProviderToJSONTyped,
|
|
772
784
|
OAuthProvidersResponseDataFromJSON: () => OAuthProvidersResponseDataFromJSON,
|
|
@@ -1160,6 +1172,10 @@ __export(index_exports, {
|
|
|
1160
1172
|
SendSmsResponseFromJSONTyped: () => SendSmsResponseFromJSONTyped,
|
|
1161
1173
|
SendSmsResponseToJSON: () => SendSmsResponseToJSON,
|
|
1162
1174
|
SendSmsResponseToJSONTyped: () => SendSmsResponseToJSONTyped,
|
|
1175
|
+
SendTemplateTestEmailRequestFromJSON: () => SendTemplateTestEmailRequestFromJSON,
|
|
1176
|
+
SendTemplateTestEmailRequestFromJSONTyped: () => SendTemplateTestEmailRequestFromJSONTyped,
|
|
1177
|
+
SendTemplateTestEmailRequestToJSON: () => SendTemplateTestEmailRequestToJSON,
|
|
1178
|
+
SendTemplateTestEmailRequestToJSONTyped: () => SendTemplateTestEmailRequestToJSONTyped,
|
|
1163
1179
|
SendTestSmsDataFromJSON: () => SendTestSmsDataFromJSON,
|
|
1164
1180
|
SendTestSmsDataFromJSONTyped: () => SendTestSmsDataFromJSONTyped,
|
|
1165
1181
|
SendTestSmsDataToJSON: () => SendTestSmsDataToJSON,
|
|
@@ -1192,6 +1208,10 @@ __export(index_exports, {
|
|
|
1192
1208
|
SetDomainInboundRequestFromJSONTyped: () => SetDomainInboundRequestFromJSONTyped,
|
|
1193
1209
|
SetDomainInboundRequestToJSON: () => SetDomainInboundRequestToJSON,
|
|
1194
1210
|
SetDomainInboundRequestToJSONTyped: () => SetDomainInboundRequestToJSONTyped,
|
|
1211
|
+
SetEndUserClaimsRequestFromJSON: () => SetEndUserClaimsRequestFromJSON,
|
|
1212
|
+
SetEndUserClaimsRequestFromJSONTyped: () => SetEndUserClaimsRequestFromJSONTyped,
|
|
1213
|
+
SetEndUserClaimsRequestToJSON: () => SetEndUserClaimsRequestToJSON,
|
|
1214
|
+
SetEndUserClaimsRequestToJSONTyped: () => SetEndUserClaimsRequestToJSONTyped,
|
|
1195
1215
|
SetPreferencesRequestFromJSON: () => SetPreferencesRequestFromJSON,
|
|
1196
1216
|
SetPreferencesRequestFromJSONTyped: () => SetPreferencesRequestFromJSONTyped,
|
|
1197
1217
|
SetPreferencesRequestPreferencesInnerFromJSON: () => SetPreferencesRequestPreferencesInnerFromJSON,
|
|
@@ -1204,6 +1224,10 @@ __export(index_exports, {
|
|
|
1204
1224
|
SignInAnonymouslyRequestFromJSONTyped: () => SignInAnonymouslyRequestFromJSONTyped,
|
|
1205
1225
|
SignInAnonymouslyRequestToJSON: () => SignInAnonymouslyRequestToJSON,
|
|
1206
1226
|
SignInAnonymouslyRequestToJSONTyped: () => SignInAnonymouslyRequestToJSONTyped,
|
|
1227
|
+
SignInWithGameCenterRequestFromJSON: () => SignInWithGameCenterRequestFromJSON,
|
|
1228
|
+
SignInWithGameCenterRequestFromJSONTyped: () => SignInWithGameCenterRequestFromJSONTyped,
|
|
1229
|
+
SignInWithGameCenterRequestToJSON: () => SignInWithGameCenterRequestToJSON,
|
|
1230
|
+
SignInWithGameCenterRequestToJSONTyped: () => SignInWithGameCenterRequestToJSONTyped,
|
|
1207
1231
|
SlackApi: () => SlackApi,
|
|
1208
1232
|
SlackMessageFromJSON: () => SlackMessageFromJSON,
|
|
1209
1233
|
SlackMessageFromJSONTyped: () => SlackMessageFromJSONTyped,
|
|
@@ -1437,6 +1461,10 @@ __export(index_exports, {
|
|
|
1437
1461
|
UpdateCategoryRequestFromJSONTyped: () => UpdateCategoryRequestFromJSONTyped,
|
|
1438
1462
|
UpdateCategoryRequestToJSON: () => UpdateCategoryRequestToJSON,
|
|
1439
1463
|
UpdateCategoryRequestToJSONTyped: () => UpdateCategoryRequestToJSONTyped,
|
|
1464
|
+
UpdateEndUserByApplicationRequestFromJSON: () => UpdateEndUserByApplicationRequestFromJSON,
|
|
1465
|
+
UpdateEndUserByApplicationRequestFromJSONTyped: () => UpdateEndUserByApplicationRequestFromJSONTyped,
|
|
1466
|
+
UpdateEndUserByApplicationRequestToJSON: () => UpdateEndUserByApplicationRequestToJSON,
|
|
1467
|
+
UpdateEndUserByApplicationRequestToJSONTyped: () => UpdateEndUserByApplicationRequestToJSONTyped,
|
|
1440
1468
|
UpdateEndUserRequestFromJSON: () => UpdateEndUserRequestFromJSON,
|
|
1441
1469
|
UpdateEndUserRequestFromJSONTyped: () => UpdateEndUserRequestFromJSONTyped,
|
|
1442
1470
|
UpdateEndUserRequestToJSON: () => UpdateEndUserRequestToJSON,
|
|
@@ -1854,6 +1882,8 @@ __export(index_exports, {
|
|
|
1854
1882
|
WorkflowStepExecutionToJSONTyped: () => WorkflowStepExecutionToJSONTyped,
|
|
1855
1883
|
Zyphr: () => Zyphr,
|
|
1856
1884
|
ZyphrAuthenticationError: () => ZyphrAuthenticationError,
|
|
1885
|
+
ZyphrClient: () => ZyphrClient,
|
|
1886
|
+
ZyphrClientCredentialError: () => ZyphrClientCredentialError,
|
|
1857
1887
|
ZyphrError: () => ZyphrError,
|
|
1858
1888
|
ZyphrNotFoundError: () => ZyphrNotFoundError,
|
|
1859
1889
|
ZyphrPayloadTooLargeError: () => ZyphrPayloadTooLargeError,
|
|
@@ -1988,6 +2018,7 @@ __export(index_exports, {
|
|
|
1988
2018
|
instanceOfInboxListMeta: () => instanceOfInboxListMeta,
|
|
1989
2019
|
instanceOfInboxListResponse: () => instanceOfInboxListResponse,
|
|
1990
2020
|
instanceOfInboxNotificationResponse: () => instanceOfInboxNotificationResponse,
|
|
2021
|
+
instanceOfInviteEndUserRequest: () => instanceOfInviteEndUserRequest,
|
|
1991
2022
|
instanceOfListWaaSApplications200Response: () => instanceOfListWaaSApplications200Response,
|
|
1992
2023
|
instanceOfListWaaSEndpointDeliveries200Response: () => instanceOfListWaaSEndpointDeliveries200Response,
|
|
1993
2024
|
instanceOfListWaaSEndpoints200Response: () => instanceOfListWaaSEndpoints200Response,
|
|
@@ -2032,6 +2063,7 @@ __export(index_exports, {
|
|
|
2032
2063
|
instanceOfOAuthConnectionsResponseData: () => instanceOfOAuthConnectionsResponseData,
|
|
2033
2064
|
instanceOfOAuthProvider: () => instanceOfOAuthProvider,
|
|
2034
2065
|
instanceOfOAuthProviderInfo: () => instanceOfOAuthProviderInfo,
|
|
2066
|
+
instanceOfOAuthProviderName: () => instanceOfOAuthProviderName,
|
|
2035
2067
|
instanceOfOAuthProvidersResponse: () => instanceOfOAuthProvidersResponse,
|
|
2036
2068
|
instanceOfOAuthProvidersResponseData: () => instanceOfOAuthProvidersResponseData,
|
|
2037
2069
|
instanceOfOAuthTokensRefreshResponse: () => instanceOfOAuthTokensRefreshResponse,
|
|
@@ -2126,6 +2158,7 @@ __export(index_exports, {
|
|
|
2126
2158
|
instanceOfSendSmsData: () => instanceOfSendSmsData,
|
|
2127
2159
|
instanceOfSendSmsRequest: () => instanceOfSendSmsRequest,
|
|
2128
2160
|
instanceOfSendSmsResponse: () => instanceOfSendSmsResponse,
|
|
2161
|
+
instanceOfSendTemplateTestEmailRequest: () => instanceOfSendTemplateTestEmailRequest,
|
|
2129
2162
|
instanceOfSendTestSmsData: () => instanceOfSendTestSmsData,
|
|
2130
2163
|
instanceOfSendTestSmsRequest: () => instanceOfSendTestSmsRequest,
|
|
2131
2164
|
instanceOfSendTestSmsResponse: () => instanceOfSendTestSmsResponse,
|
|
@@ -2134,9 +2167,11 @@ __export(index_exports, {
|
|
|
2134
2167
|
instanceOfSessionListResponseData: () => instanceOfSessionListResponseData,
|
|
2135
2168
|
instanceOfSessionListResponseDataSessionInfo: () => instanceOfSessionListResponseDataSessionInfo,
|
|
2136
2169
|
instanceOfSetDomainInboundRequest: () => instanceOfSetDomainInboundRequest,
|
|
2170
|
+
instanceOfSetEndUserClaimsRequest: () => instanceOfSetEndUserClaimsRequest,
|
|
2137
2171
|
instanceOfSetPreferencesRequest: () => instanceOfSetPreferencesRequest,
|
|
2138
2172
|
instanceOfSetPreferencesRequestPreferencesInner: () => instanceOfSetPreferencesRequestPreferencesInner,
|
|
2139
2173
|
instanceOfSignInAnonymouslyRequest: () => instanceOfSignInAnonymouslyRequest,
|
|
2174
|
+
instanceOfSignInWithGameCenterRequest: () => instanceOfSignInWithGameCenterRequest,
|
|
2140
2175
|
instanceOfSlackMessage: () => instanceOfSlackMessage,
|
|
2141
2176
|
instanceOfSlackMessageListResponse: () => instanceOfSlackMessageListResponse,
|
|
2142
2177
|
instanceOfSlackMessageListResponseMeta: () => instanceOfSlackMessageListResponseMeta,
|
|
@@ -2192,6 +2227,7 @@ __export(index_exports, {
|
|
|
2192
2227
|
instanceOfUnsubscribeRequest: () => instanceOfUnsubscribeRequest,
|
|
2193
2228
|
instanceOfUnsubscribeResponse: () => instanceOfUnsubscribeResponse,
|
|
2194
2229
|
instanceOfUpdateCategoryRequest: () => instanceOfUpdateCategoryRequest,
|
|
2230
|
+
instanceOfUpdateEndUserByApplicationRequest: () => instanceOfUpdateEndUserByApplicationRequest,
|
|
2195
2231
|
instanceOfUpdateEndUserRequest: () => instanceOfUpdateEndUserRequest,
|
|
2196
2232
|
instanceOfUpdateOrganizationMemberRoleRequest: () => instanceOfUpdateOrganizationMemberRoleRequest,
|
|
2197
2233
|
instanceOfUpdateOrganizationRequest: () => instanceOfUpdateOrganizationRequest,
|
|
@@ -7388,6 +7424,47 @@ function InboxNotificationResponseToJSONTyped(value, ignoreDiscriminator = false
|
|
|
7388
7424
|
};
|
|
7389
7425
|
}
|
|
7390
7426
|
|
|
7427
|
+
// src/src/models/InviteEndUserRequest.ts
|
|
7428
|
+
var InviteEndUserRequestSendLinkEnum = {
|
|
7429
|
+
MAGIC: "magic",
|
|
7430
|
+
PASSWORD_RESET: "password_reset",
|
|
7431
|
+
NONE: "none"
|
|
7432
|
+
};
|
|
7433
|
+
function instanceOfInviteEndUserRequest(value) {
|
|
7434
|
+
if (!("email" in value) || value["email"] === void 0) return false;
|
|
7435
|
+
return true;
|
|
7436
|
+
}
|
|
7437
|
+
function InviteEndUserRequestFromJSON(json) {
|
|
7438
|
+
return InviteEndUserRequestFromJSONTyped(json, false);
|
|
7439
|
+
}
|
|
7440
|
+
function InviteEndUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
7441
|
+
if (json == null) {
|
|
7442
|
+
return json;
|
|
7443
|
+
}
|
|
7444
|
+
return {
|
|
7445
|
+
"email": json["email"],
|
|
7446
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
7447
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"],
|
|
7448
|
+
"sendLink": json["send_link"] == null ? void 0 : json["send_link"],
|
|
7449
|
+
"redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"]
|
|
7450
|
+
};
|
|
7451
|
+
}
|
|
7452
|
+
function InviteEndUserRequestToJSON(json) {
|
|
7453
|
+
return InviteEndUserRequestToJSONTyped(json, false);
|
|
7454
|
+
}
|
|
7455
|
+
function InviteEndUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7456
|
+
if (value == null) {
|
|
7457
|
+
return value;
|
|
7458
|
+
}
|
|
7459
|
+
return {
|
|
7460
|
+
"email": value["email"],
|
|
7461
|
+
"name": value["name"],
|
|
7462
|
+
"metadata": value["metadata"],
|
|
7463
|
+
"send_link": value["sendLink"],
|
|
7464
|
+
"redirect_url": value["redirectUrl"]
|
|
7465
|
+
};
|
|
7466
|
+
}
|
|
7467
|
+
|
|
7391
7468
|
// src/src/models/ListWaaSApplications200Response.ts
|
|
7392
7469
|
function instanceOfListWaaSApplications200Response(value) {
|
|
7393
7470
|
return true;
|
|
@@ -8767,6 +8844,37 @@ function OAuthProviderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
8767
8844
|
};
|
|
8768
8845
|
}
|
|
8769
8846
|
|
|
8847
|
+
// src/src/models/OAuthProviderName.ts
|
|
8848
|
+
var OAuthProviderName = {
|
|
8849
|
+
GOOGLE: "google",
|
|
8850
|
+
APPLE: "apple",
|
|
8851
|
+
FACEBOOK: "facebook",
|
|
8852
|
+
GITHUB: "github",
|
|
8853
|
+
MICROSOFT: "microsoft"
|
|
8854
|
+
};
|
|
8855
|
+
function instanceOfOAuthProviderName(value) {
|
|
8856
|
+
for (const key in OAuthProviderName) {
|
|
8857
|
+
if (Object.prototype.hasOwnProperty.call(OAuthProviderName, key)) {
|
|
8858
|
+
if (OAuthProviderName[key] === value) {
|
|
8859
|
+
return true;
|
|
8860
|
+
}
|
|
8861
|
+
}
|
|
8862
|
+
}
|
|
8863
|
+
return false;
|
|
8864
|
+
}
|
|
8865
|
+
function OAuthProviderNameFromJSON(json) {
|
|
8866
|
+
return OAuthProviderNameFromJSONTyped(json, false);
|
|
8867
|
+
}
|
|
8868
|
+
function OAuthProviderNameFromJSONTyped(json, ignoreDiscriminator) {
|
|
8869
|
+
return json;
|
|
8870
|
+
}
|
|
8871
|
+
function OAuthProviderNameToJSON(value) {
|
|
8872
|
+
return value;
|
|
8873
|
+
}
|
|
8874
|
+
function OAuthProviderNameToJSONTyped(value, ignoreDiscriminator) {
|
|
8875
|
+
return value;
|
|
8876
|
+
}
|
|
8877
|
+
|
|
8770
8878
|
// src/src/models/OAuthProvidersResponseData.ts
|
|
8771
8879
|
function instanceOfOAuthProvidersResponseData(value) {
|
|
8772
8880
|
return true;
|
|
@@ -12081,6 +12189,36 @@ function SendSmsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
12081
12189
|
};
|
|
12082
12190
|
}
|
|
12083
12191
|
|
|
12192
|
+
// src/src/models/SendTemplateTestEmailRequest.ts
|
|
12193
|
+
function instanceOfSendTemplateTestEmailRequest(value) {
|
|
12194
|
+
if (!("to" in value) || value["to"] === void 0) return false;
|
|
12195
|
+
return true;
|
|
12196
|
+
}
|
|
12197
|
+
function SendTemplateTestEmailRequestFromJSON(json) {
|
|
12198
|
+
return SendTemplateTestEmailRequestFromJSONTyped(json, false);
|
|
12199
|
+
}
|
|
12200
|
+
function SendTemplateTestEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12201
|
+
if (json == null) {
|
|
12202
|
+
return json;
|
|
12203
|
+
}
|
|
12204
|
+
return {
|
|
12205
|
+
"to": json["to"],
|
|
12206
|
+
"variables": json["variables"] == null ? void 0 : json["variables"]
|
|
12207
|
+
};
|
|
12208
|
+
}
|
|
12209
|
+
function SendTemplateTestEmailRequestToJSON(json) {
|
|
12210
|
+
return SendTemplateTestEmailRequestToJSONTyped(json, false);
|
|
12211
|
+
}
|
|
12212
|
+
function SendTemplateTestEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12213
|
+
if (value == null) {
|
|
12214
|
+
return value;
|
|
12215
|
+
}
|
|
12216
|
+
return {
|
|
12217
|
+
"to": value["to"],
|
|
12218
|
+
"variables": value["variables"]
|
|
12219
|
+
};
|
|
12220
|
+
}
|
|
12221
|
+
|
|
12084
12222
|
// src/src/models/SendTestSmsData.ts
|
|
12085
12223
|
function instanceOfSendTestSmsData(value) {
|
|
12086
12224
|
return true;
|
|
@@ -12320,6 +12458,33 @@ function SetDomainInboundRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
12320
12458
|
};
|
|
12321
12459
|
}
|
|
12322
12460
|
|
|
12461
|
+
// src/src/models/SetEndUserClaimsRequest.ts
|
|
12462
|
+
function instanceOfSetEndUserClaimsRequest(value) {
|
|
12463
|
+
return true;
|
|
12464
|
+
}
|
|
12465
|
+
function SetEndUserClaimsRequestFromJSON(json) {
|
|
12466
|
+
return SetEndUserClaimsRequestFromJSONTyped(json, false);
|
|
12467
|
+
}
|
|
12468
|
+
function SetEndUserClaimsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12469
|
+
if (json == null) {
|
|
12470
|
+
return json;
|
|
12471
|
+
}
|
|
12472
|
+
return {
|
|
12473
|
+
"claims": json["claims"] == null ? void 0 : json["claims"]
|
|
12474
|
+
};
|
|
12475
|
+
}
|
|
12476
|
+
function SetEndUserClaimsRequestToJSON(json) {
|
|
12477
|
+
return SetEndUserClaimsRequestToJSONTyped(json, false);
|
|
12478
|
+
}
|
|
12479
|
+
function SetEndUserClaimsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12480
|
+
if (value == null) {
|
|
12481
|
+
return value;
|
|
12482
|
+
}
|
|
12483
|
+
return {
|
|
12484
|
+
"claims": value["claims"]
|
|
12485
|
+
};
|
|
12486
|
+
}
|
|
12487
|
+
|
|
12323
12488
|
// src/src/models/SetPreferencesRequestPreferencesInner.ts
|
|
12324
12489
|
function instanceOfSetPreferencesRequestPreferencesInner(value) {
|
|
12325
12490
|
return true;
|
|
@@ -12394,7 +12559,9 @@ function SignInAnonymouslyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
12394
12559
|
return {
|
|
12395
12560
|
"deviceId": json["device_id"],
|
|
12396
12561
|
"name": json["name"] == null ? void 0 : json["name"],
|
|
12397
|
-
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
12562
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"],
|
|
12563
|
+
"organizationId": json["organization_id"] == null ? void 0 : json["organization_id"],
|
|
12564
|
+
"organizationRole": json["organization_role"] == null ? void 0 : json["organization_role"]
|
|
12398
12565
|
};
|
|
12399
12566
|
}
|
|
12400
12567
|
function SignInAnonymouslyRequestToJSON(json) {
|
|
@@ -12407,7 +12574,52 @@ function SignInAnonymouslyRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
12407
12574
|
return {
|
|
12408
12575
|
"device_id": value["deviceId"],
|
|
12409
12576
|
"name": value["name"],
|
|
12410
|
-
"metadata": value["metadata"]
|
|
12577
|
+
"metadata": value["metadata"],
|
|
12578
|
+
"organization_id": value["organizationId"],
|
|
12579
|
+
"organization_role": value["organizationRole"]
|
|
12580
|
+
};
|
|
12581
|
+
}
|
|
12582
|
+
|
|
12583
|
+
// src/src/models/SignInWithGameCenterRequest.ts
|
|
12584
|
+
function instanceOfSignInWithGameCenterRequest(value) {
|
|
12585
|
+
if (!("playerId" in value) || value["playerId"] === void 0) return false;
|
|
12586
|
+
if (!("publicKeyUrl" in value) || value["publicKeyUrl"] === void 0) return false;
|
|
12587
|
+
if (!("signature" in value) || value["signature"] === void 0) return false;
|
|
12588
|
+
if (!("salt" in value) || value["salt"] === void 0) return false;
|
|
12589
|
+
if (!("timestamp" in value) || value["timestamp"] === void 0) return false;
|
|
12590
|
+
if (!("bundleId" in value) || value["bundleId"] === void 0) return false;
|
|
12591
|
+
return true;
|
|
12592
|
+
}
|
|
12593
|
+
function SignInWithGameCenterRequestFromJSON(json) {
|
|
12594
|
+
return SignInWithGameCenterRequestFromJSONTyped(json, false);
|
|
12595
|
+
}
|
|
12596
|
+
function SignInWithGameCenterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12597
|
+
if (json == null) {
|
|
12598
|
+
return json;
|
|
12599
|
+
}
|
|
12600
|
+
return {
|
|
12601
|
+
"playerId": json["playerId"],
|
|
12602
|
+
"publicKeyUrl": json["publicKeyUrl"],
|
|
12603
|
+
"signature": json["signature"],
|
|
12604
|
+
"salt": json["salt"],
|
|
12605
|
+
"timestamp": json["timestamp"],
|
|
12606
|
+
"bundleId": json["bundleId"]
|
|
12607
|
+
};
|
|
12608
|
+
}
|
|
12609
|
+
function SignInWithGameCenterRequestToJSON(json) {
|
|
12610
|
+
return SignInWithGameCenterRequestToJSONTyped(json, false);
|
|
12611
|
+
}
|
|
12612
|
+
function SignInWithGameCenterRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12613
|
+
if (value == null) {
|
|
12614
|
+
return value;
|
|
12615
|
+
}
|
|
12616
|
+
return {
|
|
12617
|
+
"playerId": value["playerId"],
|
|
12618
|
+
"publicKeyUrl": value["publicKeyUrl"],
|
|
12619
|
+
"signature": value["signature"],
|
|
12620
|
+
"salt": value["salt"],
|
|
12621
|
+
"timestamp": value["timestamp"],
|
|
12622
|
+
"bundleId": value["bundleId"]
|
|
12411
12623
|
};
|
|
12412
12624
|
}
|
|
12413
12625
|
|
|
@@ -14066,6 +14278,41 @@ function UpdateCategoryRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
14066
14278
|
};
|
|
14067
14279
|
}
|
|
14068
14280
|
|
|
14281
|
+
// src/src/models/UpdateEndUserByApplicationRequest.ts
|
|
14282
|
+
function instanceOfUpdateEndUserByApplicationRequest(value) {
|
|
14283
|
+
return true;
|
|
14284
|
+
}
|
|
14285
|
+
function UpdateEndUserByApplicationRequestFromJSON(json) {
|
|
14286
|
+
return UpdateEndUserByApplicationRequestFromJSONTyped(json, false);
|
|
14287
|
+
}
|
|
14288
|
+
function UpdateEndUserByApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14289
|
+
if (json == null) {
|
|
14290
|
+
return json;
|
|
14291
|
+
}
|
|
14292
|
+
return {
|
|
14293
|
+
"email": json["email"] == null ? void 0 : json["email"],
|
|
14294
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
14295
|
+
"avatarUrl": json["avatar_url"] == null ? void 0 : json["avatar_url"],
|
|
14296
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"],
|
|
14297
|
+
"status": json["status"] == null ? void 0 : json["status"]
|
|
14298
|
+
};
|
|
14299
|
+
}
|
|
14300
|
+
function UpdateEndUserByApplicationRequestToJSON(json) {
|
|
14301
|
+
return UpdateEndUserByApplicationRequestToJSONTyped(json, false);
|
|
14302
|
+
}
|
|
14303
|
+
function UpdateEndUserByApplicationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
14304
|
+
if (value == null) {
|
|
14305
|
+
return value;
|
|
14306
|
+
}
|
|
14307
|
+
return {
|
|
14308
|
+
"email": value["email"],
|
|
14309
|
+
"name": value["name"],
|
|
14310
|
+
"avatar_url": value["avatarUrl"],
|
|
14311
|
+
"metadata": value["metadata"],
|
|
14312
|
+
"status": value["status"]
|
|
14313
|
+
};
|
|
14314
|
+
}
|
|
14315
|
+
|
|
14069
14316
|
// src/src/models/UpdateEndUserRequest.ts
|
|
14070
14317
|
function instanceOfUpdateEndUserRequest(value) {
|
|
14071
14318
|
return true;
|
|
@@ -18951,7 +19198,7 @@ var AuthRegistrationApi = class extends BaseAPI {
|
|
|
18951
19198
|
return await response.value();
|
|
18952
19199
|
}
|
|
18953
19200
|
/**
|
|
18954
|
-
* Issue an end-user identity to a device without email, password, OAuth, or any other credential. Idempotent per (application, environment, device_id): repeated calls with the same device_id return the same user but a fresh token pair. Prior sessions for the user remain valid until natural expiry. Anonymous users do not count toward MAU quota until their first authenticated request after sign-in (excluding /v1/auth/refresh). Convert an anonymous user to a full account via POST /v1/auth/users/convert.
|
|
19201
|
+
* Issue an end-user identity to a device without email, password, OAuth, or any other credential. Idempotent per (application, environment, device_id): repeated calls with the same device_id return the same user but a fresh token pair. Prior sessions for the user remain valid until natural expiry. Anonymous users do not count toward MAU quota until their first authenticated request after sign-in (excluding /v1/auth/refresh). Convert an anonymous user to a full account via POST /v1/auth/users/convert. Pass an optional `organization_id` to create the anonymous user directly in an organization; the returned access token then carries `org_id` (and `orgs`), matching the org-scoped register/login flow.
|
|
18955
19202
|
* Sign in anonymously
|
|
18956
19203
|
*/
|
|
18957
19204
|
async signInAnonymouslyRaw(requestParameters, initOverrides) {
|
|
@@ -18977,13 +19224,47 @@ var AuthRegistrationApi = class extends BaseAPI {
|
|
|
18977
19224
|
return new JSONApiResponse(response, (jsonValue) => AuthResultResponseFromJSON(jsonValue));
|
|
18978
19225
|
}
|
|
18979
19226
|
/**
|
|
18980
|
-
* Issue an end-user identity to a device without email, password, OAuth, or any other credential. Idempotent per (application, environment, device_id): repeated calls with the same device_id return the same user but a fresh token pair. Prior sessions for the user remain valid until natural expiry. Anonymous users do not count toward MAU quota until their first authenticated request after sign-in (excluding /v1/auth/refresh). Convert an anonymous user to a full account via POST /v1/auth/users/convert.
|
|
19227
|
+
* Issue an end-user identity to a device without email, password, OAuth, or any other credential. Idempotent per (application, environment, device_id): repeated calls with the same device_id return the same user but a fresh token pair. Prior sessions for the user remain valid until natural expiry. Anonymous users do not count toward MAU quota until their first authenticated request after sign-in (excluding /v1/auth/refresh). Convert an anonymous user to a full account via POST /v1/auth/users/convert. Pass an optional `organization_id` to create the anonymous user directly in an organization; the returned access token then carries `org_id` (and `orgs`), matching the org-scoped register/login flow.
|
|
18981
19228
|
* Sign in anonymously
|
|
18982
19229
|
*/
|
|
18983
19230
|
async signInAnonymously(signInAnonymouslyRequest, initOverrides) {
|
|
18984
19231
|
const response = await this.signInAnonymouslyRaw({ signInAnonymouslyRequest }, initOverrides);
|
|
18985
19232
|
return await response.value();
|
|
18986
19233
|
}
|
|
19234
|
+
/**
|
|
19235
|
+
* Exchange an Apple Game Center identity-verification assertion for a Zyphr end-user session. Zyphr independently re-verifies the assertion server-side (Apple certificate chain, RSA-SHA256 signature, timestamp freshness, single-use replay guard, and bundle-id binding) before provisioning-or-looking-up the user and minting tokens. The user is keyed on the modern scoped `playerId` (gamePlayerID). ## Producing the assertion (Integration) The assertion is produced **on-device by the iOS app** — there is no server-side way to mint it. The app calls GameKit\'s `GKLocalPlayer.fetchItems(forIdentityVerificationSignature:)`, which returns `publicKeyURL`, `signature`, `salt`, and `timestamp`; combine those with the local player\'s `gamePlayerID` and the app\'s bundle identifier and submit them here. Two integration shapes are supported: - **client-direct** — the iOS app holds the Zyphr application public key and calls this endpoint itself. - **backend-relayed** — the app forwards the fetched assertion fields to the customer\'s own backend, which relays them to this endpoint; the app never holds Zyphr keys. (This is the common shape for games.) On any verification failure the response is a single opaque `401` `invalid_assertion` — the specific control that failed is never disclosed.
|
|
19236
|
+
* Sign in with Apple Game Center
|
|
19237
|
+
*/
|
|
19238
|
+
async signInWithGameCenterRaw(requestParameters, initOverrides) {
|
|
19239
|
+
if (requestParameters["signInWithGameCenterRequest"] == null) {
|
|
19240
|
+
throw new RequiredError(
|
|
19241
|
+
"signInWithGameCenterRequest",
|
|
19242
|
+
'Required parameter "signInWithGameCenterRequest" was null or undefined when calling signInWithGameCenter().'
|
|
19243
|
+
);
|
|
19244
|
+
}
|
|
19245
|
+
const queryParameters = {};
|
|
19246
|
+
const headerParameters = {};
|
|
19247
|
+
headerParameters["Content-Type"] = "application/json";
|
|
19248
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19249
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19250
|
+
}
|
|
19251
|
+
const response = await this.request({
|
|
19252
|
+
path: `/auth/game-center`,
|
|
19253
|
+
method: "POST",
|
|
19254
|
+
headers: headerParameters,
|
|
19255
|
+
query: queryParameters,
|
|
19256
|
+
body: SignInWithGameCenterRequestToJSON(requestParameters["signInWithGameCenterRequest"])
|
|
19257
|
+
}, initOverrides);
|
|
19258
|
+
return new JSONApiResponse(response, (jsonValue) => AuthResultResponseFromJSON(jsonValue));
|
|
19259
|
+
}
|
|
19260
|
+
/**
|
|
19261
|
+
* Exchange an Apple Game Center identity-verification assertion for a Zyphr end-user session. Zyphr independently re-verifies the assertion server-side (Apple certificate chain, RSA-SHA256 signature, timestamp freshness, single-use replay guard, and bundle-id binding) before provisioning-or-looking-up the user and minting tokens. The user is keyed on the modern scoped `playerId` (gamePlayerID). ## Producing the assertion (Integration) The assertion is produced **on-device by the iOS app** — there is no server-side way to mint it. The app calls GameKit\'s `GKLocalPlayer.fetchItems(forIdentityVerificationSignature:)`, which returns `publicKeyURL`, `signature`, `salt`, and `timestamp`; combine those with the local player\'s `gamePlayerID` and the app\'s bundle identifier and submit them here. Two integration shapes are supported: - **client-direct** — the iOS app holds the Zyphr application public key and calls this endpoint itself. - **backend-relayed** — the app forwards the fetched assertion fields to the customer\'s own backend, which relays them to this endpoint; the app never holds Zyphr keys. (This is the common shape for games.) On any verification failure the response is a single opaque `401` `invalid_assertion` — the specific control that failed is never disclosed.
|
|
19262
|
+
* Sign in with Apple Game Center
|
|
19263
|
+
*/
|
|
19264
|
+
async signInWithGameCenter(signInWithGameCenterRequest, initOverrides) {
|
|
19265
|
+
const response = await this.signInWithGameCenterRaw({ signInWithGameCenterRequest }, initOverrides);
|
|
19266
|
+
return await response.value();
|
|
19267
|
+
}
|
|
18987
19268
|
};
|
|
18988
19269
|
|
|
18989
19270
|
// src/src/apis/AuthSessionsApi.ts
|
|
@@ -19133,50 +19414,88 @@ var AuthSessionsApi = class extends BaseAPI {
|
|
|
19133
19414
|
}
|
|
19134
19415
|
};
|
|
19135
19416
|
|
|
19136
|
-
// src/src/apis/
|
|
19137
|
-
var
|
|
19417
|
+
// src/src/apis/AuthUserDirectoryApi.ts
|
|
19418
|
+
var AuthUserDirectoryApi = class extends BaseAPI {
|
|
19138
19419
|
/**
|
|
19139
|
-
*
|
|
19140
|
-
* Delete
|
|
19420
|
+
* Secret-key-scoped admin soft-delete for an arbitrary end user in the authenticating application. Works in both test and live environments. Scoped to the application via the application_id filter — a caller can never delete a user belonging to another application. Mirrors the self-service `DELETE /auth/users/me` flow: revokes all sessions, soft-deletes the row (status=\'deleted\'), and emits a `user.deleted` webhook with `method=\'application_admin\'`. The audit log row survives (no FK to end_users), so org-history queries still resolve.
|
|
19421
|
+
* Delete an end user (server-side admin)
|
|
19141
19422
|
*/
|
|
19142
|
-
async
|
|
19423
|
+
async deleteEndUserByApplicationRaw(requestParameters, initOverrides) {
|
|
19424
|
+
if (requestParameters["userId"] == null) {
|
|
19425
|
+
throw new RequiredError(
|
|
19426
|
+
"userId",
|
|
19427
|
+
'Required parameter "userId" was null or undefined when calling deleteEndUserByApplication().'
|
|
19428
|
+
);
|
|
19429
|
+
}
|
|
19143
19430
|
const queryParameters = {};
|
|
19144
19431
|
const headerParameters = {};
|
|
19145
|
-
if (this.configuration && this.configuration.
|
|
19146
|
-
|
|
19147
|
-
const tokenString = await token("EndUserToken", []);
|
|
19148
|
-
if (tokenString) {
|
|
19149
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
19150
|
-
}
|
|
19432
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19433
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
19151
19434
|
}
|
|
19152
19435
|
if (this.configuration && this.configuration.apiKey) {
|
|
19153
19436
|
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19154
19437
|
}
|
|
19155
19438
|
const response = await this.request({
|
|
19156
|
-
path: `/auth/users/
|
|
19439
|
+
path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
19157
19440
|
method: "DELETE",
|
|
19158
19441
|
headers: headerParameters,
|
|
19159
19442
|
query: queryParameters
|
|
19160
19443
|
}, initOverrides);
|
|
19161
|
-
return new
|
|
19444
|
+
return new VoidApiResponse(response);
|
|
19162
19445
|
}
|
|
19163
19446
|
/**
|
|
19164
|
-
*
|
|
19165
|
-
* Delete
|
|
19447
|
+
* Secret-key-scoped admin soft-delete for an arbitrary end user in the authenticating application. Works in both test and live environments. Scoped to the application via the application_id filter — a caller can never delete a user belonging to another application. Mirrors the self-service `DELETE /auth/users/me` flow: revokes all sessions, soft-deletes the row (status=\'deleted\'), and emits a `user.deleted` webhook with `method=\'application_admin\'`. The audit log row survives (no FK to end_users), so org-history queries still resolve.
|
|
19448
|
+
* Delete an end user (server-side admin)
|
|
19166
19449
|
*/
|
|
19167
|
-
async
|
|
19168
|
-
|
|
19169
|
-
return await response.value();
|
|
19450
|
+
async deleteEndUserByApplication(userId, initOverrides) {
|
|
19451
|
+
await this.deleteEndUserByApplicationRaw({ userId }, initOverrides);
|
|
19170
19452
|
}
|
|
19171
19453
|
/**
|
|
19172
|
-
*
|
|
19173
|
-
*
|
|
19454
|
+
* Secret-key-scoped lookup of a single end user by email address within the authenticating application. Scoped to the application — never resolves a user from another application. Does not return the password hash.
|
|
19455
|
+
* Look up an end user by email (server-side admin)
|
|
19174
19456
|
*/
|
|
19175
|
-
async
|
|
19457
|
+
async getEndUserByEmailRaw(requestParameters, initOverrides) {
|
|
19458
|
+
if (requestParameters["email"] == null) {
|
|
19459
|
+
throw new RequiredError(
|
|
19460
|
+
"email",
|
|
19461
|
+
'Required parameter "email" was null or undefined when calling getEndUserByEmail().'
|
|
19462
|
+
);
|
|
19463
|
+
}
|
|
19464
|
+
const queryParameters = {};
|
|
19465
|
+
if (requestParameters["email"] != null) {
|
|
19466
|
+
queryParameters["email"] = requestParameters["email"];
|
|
19467
|
+
}
|
|
19468
|
+
const headerParameters = {};
|
|
19469
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19470
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
19471
|
+
}
|
|
19472
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19473
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19474
|
+
}
|
|
19475
|
+
const response = await this.request({
|
|
19476
|
+
path: `/auth/users/by-email`,
|
|
19477
|
+
method: "GET",
|
|
19478
|
+
headers: headerParameters,
|
|
19479
|
+
query: queryParameters
|
|
19480
|
+
}, initOverrides);
|
|
19481
|
+
return new VoidApiResponse(response);
|
|
19482
|
+
}
|
|
19483
|
+
/**
|
|
19484
|
+
* Secret-key-scoped lookup of a single end user by email address within the authenticating application. Scoped to the application — never resolves a user from another application. Does not return the password hash.
|
|
19485
|
+
* Look up an end user by email (server-side admin)
|
|
19486
|
+
*/
|
|
19487
|
+
async getEndUserByEmail(email, initOverrides) {
|
|
19488
|
+
await this.getEndUserByEmailRaw({ email }, initOverrides);
|
|
19489
|
+
}
|
|
19490
|
+
/**
|
|
19491
|
+
* Secret-key-scoped fetch of a single end user by id within the authenticating application. Scoped to the application — a caller can never read a user belonging to another application.
|
|
19492
|
+
* Get an end user by id (server-side admin)
|
|
19493
|
+
*/
|
|
19494
|
+
async getEndUserByIdRaw(requestParameters, initOverrides) {
|
|
19176
19495
|
if (requestParameters["userId"] == null) {
|
|
19177
19496
|
throw new RequiredError(
|
|
19178
19497
|
"userId",
|
|
19179
|
-
'Required parameter "userId" was null or undefined when calling
|
|
19498
|
+
'Required parameter "userId" was null or undefined when calling getEndUserById().'
|
|
19180
19499
|
);
|
|
19181
19500
|
}
|
|
19182
19501
|
const queryParameters = {};
|
|
@@ -19189,18 +19508,253 @@ var AuthUserProfileApi = class extends BaseAPI {
|
|
|
19189
19508
|
}
|
|
19190
19509
|
const response = await this.request({
|
|
19191
19510
|
path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
19192
|
-
method: "
|
|
19511
|
+
method: "GET",
|
|
19193
19512
|
headers: headerParameters,
|
|
19194
19513
|
query: queryParameters
|
|
19195
19514
|
}, initOverrides);
|
|
19196
19515
|
return new VoidApiResponse(response);
|
|
19197
19516
|
}
|
|
19198
19517
|
/**
|
|
19199
|
-
*
|
|
19200
|
-
*
|
|
19518
|
+
* Secret-key-scoped fetch of a single end user by id within the authenticating application. Scoped to the application — a caller can never read a user belonging to another application.
|
|
19519
|
+
* Get an end user by id (server-side admin)
|
|
19201
19520
|
*/
|
|
19202
|
-
async
|
|
19203
|
-
await this.
|
|
19521
|
+
async getEndUserById(userId, initOverrides) {
|
|
19522
|
+
await this.getEndUserByIdRaw({ userId }, initOverrides);
|
|
19523
|
+
}
|
|
19524
|
+
/**
|
|
19525
|
+
* Secret-key-scoped read of the authoritative custom_claims stored for an end user. These are the TRUSTED claims embedded into the user\'s JWTs on login/refresh — use them (not the client-writable `metadata` field) for authorization decisions. Returns an empty object when none are set.
|
|
19526
|
+
* Get an end user\'s stored custom claims (server-side admin)
|
|
19527
|
+
*/
|
|
19528
|
+
async getEndUserClaimsRaw(requestParameters, initOverrides) {
|
|
19529
|
+
if (requestParameters["userId"] == null) {
|
|
19530
|
+
throw new RequiredError(
|
|
19531
|
+
"userId",
|
|
19532
|
+
'Required parameter "userId" was null or undefined when calling getEndUserClaims().'
|
|
19533
|
+
);
|
|
19534
|
+
}
|
|
19535
|
+
const queryParameters = {};
|
|
19536
|
+
const headerParameters = {};
|
|
19537
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19538
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
19539
|
+
}
|
|
19540
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19541
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19542
|
+
}
|
|
19543
|
+
const response = await this.request({
|
|
19544
|
+
path: `/auth/users/{user_id}/claims`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
19545
|
+
method: "GET",
|
|
19546
|
+
headers: headerParameters,
|
|
19547
|
+
query: queryParameters
|
|
19548
|
+
}, initOverrides);
|
|
19549
|
+
return new VoidApiResponse(response);
|
|
19550
|
+
}
|
|
19551
|
+
/**
|
|
19552
|
+
* Secret-key-scoped read of the authoritative custom_claims stored for an end user. These are the TRUSTED claims embedded into the user\'s JWTs on login/refresh — use them (not the client-writable `metadata` field) for authorization decisions. Returns an empty object when none are set.
|
|
19553
|
+
* Get an end user\'s stored custom claims (server-side admin)
|
|
19554
|
+
*/
|
|
19555
|
+
async getEndUserClaims(userId, initOverrides) {
|
|
19556
|
+
await this.getEndUserClaimsRaw({ userId }, initOverrides);
|
|
19557
|
+
}
|
|
19558
|
+
/**
|
|
19559
|
+
* Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"magic\"` sends a magic-link sign-in email. - `send_link: \"password_reset\"` sends a set-password email. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required when `send_link` is \"magic\" or \"password_reset\"; it must match the application\'s redirect_uris allowlist (custom schemes such as yourapp://path are permitted).
|
|
19560
|
+
* Pre-provision (invite) an end user (server-side admin)
|
|
19561
|
+
*/
|
|
19562
|
+
async inviteEndUserRaw(requestParameters, initOverrides) {
|
|
19563
|
+
if (requestParameters["inviteEndUserRequest"] == null) {
|
|
19564
|
+
throw new RequiredError(
|
|
19565
|
+
"inviteEndUserRequest",
|
|
19566
|
+
'Required parameter "inviteEndUserRequest" was null or undefined when calling inviteEndUser().'
|
|
19567
|
+
);
|
|
19568
|
+
}
|
|
19569
|
+
const queryParameters = {};
|
|
19570
|
+
const headerParameters = {};
|
|
19571
|
+
headerParameters["Content-Type"] = "application/json";
|
|
19572
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19573
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
19574
|
+
}
|
|
19575
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19576
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19577
|
+
}
|
|
19578
|
+
const response = await this.request({
|
|
19579
|
+
path: `/auth/users/invite`,
|
|
19580
|
+
method: "POST",
|
|
19581
|
+
headers: headerParameters,
|
|
19582
|
+
query: queryParameters,
|
|
19583
|
+
body: InviteEndUserRequestToJSON(requestParameters["inviteEndUserRequest"])
|
|
19584
|
+
}, initOverrides);
|
|
19585
|
+
return new VoidApiResponse(response);
|
|
19586
|
+
}
|
|
19587
|
+
/**
|
|
19588
|
+
* Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"magic\"` sends a magic-link sign-in email. - `send_link: \"password_reset\"` sends a set-password email. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required when `send_link` is \"magic\" or \"password_reset\"; it must match the application\'s redirect_uris allowlist (custom schemes such as yourapp://path are permitted).
|
|
19589
|
+
* Pre-provision (invite) an end user (server-side admin)
|
|
19590
|
+
*/
|
|
19591
|
+
async inviteEndUser(inviteEndUserRequest, initOverrides) {
|
|
19592
|
+
await this.inviteEndUserRaw({ inviteEndUserRequest }, initOverrides);
|
|
19593
|
+
}
|
|
19594
|
+
/**
|
|
19595
|
+
* Secret-key-scoped directory listing of end users in the authenticating application. Supports substring search over email, name, and phone, an optional environment filter (test/live), and pagination. Scoped to the application — never returns users from another application.
|
|
19596
|
+
* List / search end users (server-side admin)
|
|
19597
|
+
*/
|
|
19598
|
+
async listEndUsersRaw(requestParameters, initOverrides) {
|
|
19599
|
+
const queryParameters = {};
|
|
19600
|
+
if (requestParameters["page"] != null) {
|
|
19601
|
+
queryParameters["page"] = requestParameters["page"];
|
|
19602
|
+
}
|
|
19603
|
+
if (requestParameters["perPage"] != null) {
|
|
19604
|
+
queryParameters["per_page"] = requestParameters["perPage"];
|
|
19605
|
+
}
|
|
19606
|
+
if (requestParameters["search"] != null) {
|
|
19607
|
+
queryParameters["search"] = requestParameters["search"];
|
|
19608
|
+
}
|
|
19609
|
+
if (requestParameters["environment"] != null) {
|
|
19610
|
+
queryParameters["environment"] = requestParameters["environment"];
|
|
19611
|
+
}
|
|
19612
|
+
const headerParameters = {};
|
|
19613
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19614
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
19615
|
+
}
|
|
19616
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19617
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19618
|
+
}
|
|
19619
|
+
const response = await this.request({
|
|
19620
|
+
path: `/auth/users`,
|
|
19621
|
+
method: "GET",
|
|
19622
|
+
headers: headerParameters,
|
|
19623
|
+
query: queryParameters
|
|
19624
|
+
}, initOverrides);
|
|
19625
|
+
return new VoidApiResponse(response);
|
|
19626
|
+
}
|
|
19627
|
+
/**
|
|
19628
|
+
* Secret-key-scoped directory listing of end users in the authenticating application. Supports substring search over email, name, and phone, an optional environment filter (test/live), and pagination. Scoped to the application — never returns users from another application.
|
|
19629
|
+
* List / search end users (server-side admin)
|
|
19630
|
+
*/
|
|
19631
|
+
async listEndUsers(page, perPage, search, environment, initOverrides) {
|
|
19632
|
+
await this.listEndUsersRaw({ page, perPage, search, environment }, initOverrides);
|
|
19633
|
+
}
|
|
19634
|
+
/**
|
|
19635
|
+
* Secret-key-scoped upsert of the authoritative custom_claims for an end user. Set server-side only — clients cannot write these, which is what makes them safe for authorization (e.g. an account-type/admin flag). Claims are embedded into the user\'s JWTs on the next login/refresh. Max 4KB; reserved JWT/Zyphr claim names are rejected. To make a change take effect immediately on already-issued tokens (e.g. revoking admin), call POST /auth/sessions/revoke-all for the user after updating claims — that bumps the revocation epoch so outstanding access tokens stop verifying.
|
|
19636
|
+
* Set an end user\'s stored custom claims (server-side admin)
|
|
19637
|
+
*/
|
|
19638
|
+
async setEndUserClaimsRaw(requestParameters, initOverrides) {
|
|
19639
|
+
if (requestParameters["userId"] == null) {
|
|
19640
|
+
throw new RequiredError(
|
|
19641
|
+
"userId",
|
|
19642
|
+
'Required parameter "userId" was null or undefined when calling setEndUserClaims().'
|
|
19643
|
+
);
|
|
19644
|
+
}
|
|
19645
|
+
if (requestParameters["setEndUserClaimsRequest"] == null) {
|
|
19646
|
+
throw new RequiredError(
|
|
19647
|
+
"setEndUserClaimsRequest",
|
|
19648
|
+
'Required parameter "setEndUserClaimsRequest" was null or undefined when calling setEndUserClaims().'
|
|
19649
|
+
);
|
|
19650
|
+
}
|
|
19651
|
+
const queryParameters = {};
|
|
19652
|
+
const headerParameters = {};
|
|
19653
|
+
headerParameters["Content-Type"] = "application/json";
|
|
19654
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19655
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
19656
|
+
}
|
|
19657
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19658
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19659
|
+
}
|
|
19660
|
+
const response = await this.request({
|
|
19661
|
+
path: `/auth/users/{user_id}/claims`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
19662
|
+
method: "PUT",
|
|
19663
|
+
headers: headerParameters,
|
|
19664
|
+
query: queryParameters,
|
|
19665
|
+
body: SetEndUserClaimsRequestToJSON(requestParameters["setEndUserClaimsRequest"])
|
|
19666
|
+
}, initOverrides);
|
|
19667
|
+
return new VoidApiResponse(response);
|
|
19668
|
+
}
|
|
19669
|
+
/**
|
|
19670
|
+
* Secret-key-scoped upsert of the authoritative custom_claims for an end user. Set server-side only — clients cannot write these, which is what makes them safe for authorization (e.g. an account-type/admin flag). Claims are embedded into the user\'s JWTs on the next login/refresh. Max 4KB; reserved JWT/Zyphr claim names are rejected. To make a change take effect immediately on already-issued tokens (e.g. revoking admin), call POST /auth/sessions/revoke-all for the user after updating claims — that bumps the revocation epoch so outstanding access tokens stop verifying.
|
|
19671
|
+
* Set an end user\'s stored custom claims (server-side admin)
|
|
19672
|
+
*/
|
|
19673
|
+
async setEndUserClaims(userId, setEndUserClaimsRequest, initOverrides) {
|
|
19674
|
+
await this.setEndUserClaimsRaw({ userId, setEndUserClaimsRequest }, initOverrides);
|
|
19675
|
+
}
|
|
19676
|
+
/**
|
|
19677
|
+
* Secret-key-scoped update of an arbitrary end user in the authenticating application. Updatable fields: email, name, avatar_url, metadata, status. Scoped to the application — a caller can never modify a user belonging to another application.
|
|
19678
|
+
* Update an end user (server-side admin)
|
|
19679
|
+
*/
|
|
19680
|
+
async updateEndUserByApplicationRaw(requestParameters, initOverrides) {
|
|
19681
|
+
if (requestParameters["userId"] == null) {
|
|
19682
|
+
throw new RequiredError(
|
|
19683
|
+
"userId",
|
|
19684
|
+
'Required parameter "userId" was null or undefined when calling updateEndUserByApplication().'
|
|
19685
|
+
);
|
|
19686
|
+
}
|
|
19687
|
+
if (requestParameters["updateEndUserByApplicationRequest"] == null) {
|
|
19688
|
+
throw new RequiredError(
|
|
19689
|
+
"updateEndUserByApplicationRequest",
|
|
19690
|
+
'Required parameter "updateEndUserByApplicationRequest" was null or undefined when calling updateEndUserByApplication().'
|
|
19691
|
+
);
|
|
19692
|
+
}
|
|
19693
|
+
const queryParameters = {};
|
|
19694
|
+
const headerParameters = {};
|
|
19695
|
+
headerParameters["Content-Type"] = "application/json";
|
|
19696
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19697
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
19698
|
+
}
|
|
19699
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19700
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19701
|
+
}
|
|
19702
|
+
const response = await this.request({
|
|
19703
|
+
path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
19704
|
+
method: "PATCH",
|
|
19705
|
+
headers: headerParameters,
|
|
19706
|
+
query: queryParameters,
|
|
19707
|
+
body: UpdateEndUserByApplicationRequestToJSON(requestParameters["updateEndUserByApplicationRequest"])
|
|
19708
|
+
}, initOverrides);
|
|
19709
|
+
return new VoidApiResponse(response);
|
|
19710
|
+
}
|
|
19711
|
+
/**
|
|
19712
|
+
* Secret-key-scoped update of an arbitrary end user in the authenticating application. Updatable fields: email, name, avatar_url, metadata, status. Scoped to the application — a caller can never modify a user belonging to another application.
|
|
19713
|
+
* Update an end user (server-side admin)
|
|
19714
|
+
*/
|
|
19715
|
+
async updateEndUserByApplication(userId, updateEndUserByApplicationRequest, initOverrides) {
|
|
19716
|
+
await this.updateEndUserByApplicationRaw({ userId, updateEndUserByApplicationRequest }, initOverrides);
|
|
19717
|
+
}
|
|
19718
|
+
};
|
|
19719
|
+
var ListEndUsersEnvironmentEnum = {
|
|
19720
|
+
TEST: "test",
|
|
19721
|
+
LIVE: "live"
|
|
19722
|
+
};
|
|
19723
|
+
|
|
19724
|
+
// src/src/apis/AuthUserProfileApi.ts
|
|
19725
|
+
var AuthUserProfileApi = class extends BaseAPI {
|
|
19726
|
+
/**
|
|
19727
|
+
* Delete the current end user account (GDPR right to erasure). This is a soft delete — the account is marked as deleted but data is retained for a period to allow for recovery or legal requirements.
|
|
19728
|
+
* Delete current end user account
|
|
19729
|
+
*/
|
|
19730
|
+
async deleteEndUserRaw(initOverrides) {
|
|
19731
|
+
const queryParameters = {};
|
|
19732
|
+
const headerParameters = {};
|
|
19733
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
19734
|
+
const token = this.configuration.accessToken;
|
|
19735
|
+
const tokenString = await token("EndUserToken", []);
|
|
19736
|
+
if (tokenString) {
|
|
19737
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
19738
|
+
}
|
|
19739
|
+
}
|
|
19740
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
19741
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
19742
|
+
}
|
|
19743
|
+
const response = await this.request({
|
|
19744
|
+
path: `/auth/users/me`,
|
|
19745
|
+
method: "DELETE",
|
|
19746
|
+
headers: headerParameters,
|
|
19747
|
+
query: queryParameters
|
|
19748
|
+
}, initOverrides);
|
|
19749
|
+
return new JSONApiResponse(response, (jsonValue) => EndUserDeleteResponseFromJSON(jsonValue));
|
|
19750
|
+
}
|
|
19751
|
+
/**
|
|
19752
|
+
* Delete the current end user account (GDPR right to erasure). This is a soft delete — the account is marked as deleted but data is retained for a period to allow for recovery or legal requirements.
|
|
19753
|
+
* Delete current end user account
|
|
19754
|
+
*/
|
|
19755
|
+
async deleteEndUser(initOverrides) {
|
|
19756
|
+
const response = await this.deleteEndUserRaw(initOverrides);
|
|
19757
|
+
return await response.value();
|
|
19204
19758
|
}
|
|
19205
19759
|
/**
|
|
19206
19760
|
* Retrieve the profile of the currently authenticated end user.
|
|
@@ -23018,6 +23572,49 @@ var TemplatesApi = class extends BaseAPI {
|
|
|
23018
23572
|
const response = await this.renderTemplateRaw({ id, renderTemplateRequest }, initOverrides);
|
|
23019
23573
|
return await response.value();
|
|
23020
23574
|
}
|
|
23575
|
+
/**
|
|
23576
|
+
* Render the template and send a one-off test email (dashboard JWT auth). Because this is a send-capable endpoint, a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`.
|
|
23577
|
+
* Send a test email using a template
|
|
23578
|
+
*/
|
|
23579
|
+
async sendTemplateTestEmailRaw(requestParameters, initOverrides) {
|
|
23580
|
+
if (requestParameters["id"] == null) {
|
|
23581
|
+
throw new RequiredError(
|
|
23582
|
+
"id",
|
|
23583
|
+
'Required parameter "id" was null or undefined when calling sendTemplateTestEmail().'
|
|
23584
|
+
);
|
|
23585
|
+
}
|
|
23586
|
+
if (requestParameters["sendTemplateTestEmailRequest"] == null) {
|
|
23587
|
+
throw new RequiredError(
|
|
23588
|
+
"sendTemplateTestEmailRequest",
|
|
23589
|
+
'Required parameter "sendTemplateTestEmailRequest" was null or undefined when calling sendTemplateTestEmail().'
|
|
23590
|
+
);
|
|
23591
|
+
}
|
|
23592
|
+
const queryParameters = {};
|
|
23593
|
+
const headerParameters = {};
|
|
23594
|
+
headerParameters["Content-Type"] = "application/json";
|
|
23595
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
23596
|
+
const token = this.configuration.accessToken;
|
|
23597
|
+
const tokenString = await token("DashboardAuth", []);
|
|
23598
|
+
if (tokenString) {
|
|
23599
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
23600
|
+
}
|
|
23601
|
+
}
|
|
23602
|
+
const response = await this.request({
|
|
23603
|
+
path: `/templates/{id}/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
23604
|
+
method: "POST",
|
|
23605
|
+
headers: headerParameters,
|
|
23606
|
+
query: queryParameters,
|
|
23607
|
+
body: SendTemplateTestEmailRequestToJSON(requestParameters["sendTemplateTestEmailRequest"])
|
|
23608
|
+
}, initOverrides);
|
|
23609
|
+
return new VoidApiResponse(response);
|
|
23610
|
+
}
|
|
23611
|
+
/**
|
|
23612
|
+
* Render the template and send a one-off test email (dashboard JWT auth). Because this is a send-capable endpoint, a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`.
|
|
23613
|
+
* Send a test email using a template
|
|
23614
|
+
*/
|
|
23615
|
+
async sendTemplateTestEmail(id, sendTemplateTestEmailRequest, initOverrides) {
|
|
23616
|
+
await this.sendTemplateTestEmailRaw({ id, sendTemplateTestEmailRequest }, initOverrides);
|
|
23617
|
+
}
|
|
23021
23618
|
/**
|
|
23022
23619
|
* Update an existing template. Only provided fields are changed.
|
|
23023
23620
|
* Update template
|
|
@@ -25328,34 +25925,34 @@ var ZyphrError = class extends Error {
|
|
|
25328
25925
|
}
|
|
25329
25926
|
};
|
|
25330
25927
|
var ZyphrValidationError = class extends ZyphrError {
|
|
25331
|
-
constructor(message, details) {
|
|
25332
|
-
super({ message, status: 422, code
|
|
25928
|
+
constructor(message, details, code = "validation_error") {
|
|
25929
|
+
super({ message, status: 422, code, details });
|
|
25333
25930
|
this.name = "ZyphrValidationError";
|
|
25334
25931
|
}
|
|
25335
25932
|
};
|
|
25336
25933
|
var ZyphrAuthenticationError = class extends ZyphrError {
|
|
25337
|
-
constructor(message) {
|
|
25338
|
-
super({ message, status: 401, code
|
|
25934
|
+
constructor(message, code = "authentication_error") {
|
|
25935
|
+
super({ message, status: 401, code });
|
|
25339
25936
|
this.name = "ZyphrAuthenticationError";
|
|
25340
25937
|
}
|
|
25341
25938
|
};
|
|
25342
25939
|
var ZyphrRateLimitError = class extends ZyphrError {
|
|
25343
25940
|
retryAfter;
|
|
25344
|
-
constructor(message, retryAfter) {
|
|
25345
|
-
super({ message, status: 429, code
|
|
25941
|
+
constructor(message, retryAfter, code = "rate_limit_exceeded") {
|
|
25942
|
+
super({ message, status: 429, code });
|
|
25346
25943
|
this.name = "ZyphrRateLimitError";
|
|
25347
25944
|
this.retryAfter = retryAfter;
|
|
25348
25945
|
}
|
|
25349
25946
|
};
|
|
25350
25947
|
var ZyphrNotFoundError = class extends ZyphrError {
|
|
25351
|
-
constructor(message) {
|
|
25352
|
-
super({ message, status: 404, code
|
|
25948
|
+
constructor(message, code = "not_found") {
|
|
25949
|
+
super({ message, status: 404, code });
|
|
25353
25950
|
this.name = "ZyphrNotFoundError";
|
|
25354
25951
|
}
|
|
25355
25952
|
};
|
|
25356
25953
|
var ZyphrPayloadTooLargeError = class extends ZyphrError {
|
|
25357
|
-
constructor(message, details, requestId) {
|
|
25358
|
-
super({ message, status: 413, code
|
|
25954
|
+
constructor(message, details, requestId, code = "payload_too_large") {
|
|
25955
|
+
super({ message, status: 413, code, details, requestId });
|
|
25359
25956
|
this.name = "ZyphrPayloadTooLargeError";
|
|
25360
25957
|
}
|
|
25361
25958
|
/** Maximum allowed request body size in bytes (server-enforced). */
|
|
@@ -25385,24 +25982,24 @@ async function parseErrorResponse(response) {
|
|
|
25385
25982
|
const error = body.error ?? {};
|
|
25386
25983
|
const meta = body.meta ?? {};
|
|
25387
25984
|
const message = error.message ?? response.statusText ?? "Unknown error";
|
|
25388
|
-
const code = error.code;
|
|
25985
|
+
const code = error.code || void 0;
|
|
25389
25986
|
const requestId = meta.request_id;
|
|
25390
25987
|
const details = error.details;
|
|
25391
25988
|
switch (response.status) {
|
|
25392
25989
|
case 400:
|
|
25393
25990
|
case 422:
|
|
25394
|
-
return new ZyphrValidationError(message, details);
|
|
25991
|
+
return new ZyphrValidationError(message, details, code);
|
|
25395
25992
|
case 401:
|
|
25396
25993
|
case 403:
|
|
25397
|
-
return new ZyphrAuthenticationError(message);
|
|
25994
|
+
return new ZyphrAuthenticationError(message, code);
|
|
25398
25995
|
case 404:
|
|
25399
|
-
return new ZyphrNotFoundError(message);
|
|
25996
|
+
return new ZyphrNotFoundError(message, code);
|
|
25400
25997
|
case 413:
|
|
25401
|
-
return new ZyphrPayloadTooLargeError(message, details, requestId);
|
|
25998
|
+
return new ZyphrPayloadTooLargeError(message, details, requestId, code);
|
|
25402
25999
|
case 429: {
|
|
25403
26000
|
const retryAfterHeader = response.headers.get("Retry-After");
|
|
25404
26001
|
const retryAfter = retryAfterHeader ? parseInt(retryAfterHeader, 10) : void 0;
|
|
25405
|
-
return new ZyphrRateLimitError(message, retryAfter);
|
|
26002
|
+
return new ZyphrRateLimitError(message, retryAfter, code);
|
|
25406
26003
|
}
|
|
25407
26004
|
default:
|
|
25408
26005
|
return new ZyphrError({ message, status: response.status, code, requestId, details });
|
|
@@ -25513,6 +26110,99 @@ var Zyphr = class {
|
|
|
25513
26110
|
}
|
|
25514
26111
|
};
|
|
25515
26112
|
|
|
26113
|
+
// src/clientAuth.ts
|
|
26114
|
+
var errorMiddleware2 = {
|
|
26115
|
+
async post(context) {
|
|
26116
|
+
if (context.response.status >= 200 && context.response.status < 300) {
|
|
26117
|
+
return;
|
|
26118
|
+
}
|
|
26119
|
+
throw await parseErrorResponse(context.response);
|
|
26120
|
+
}
|
|
26121
|
+
};
|
|
26122
|
+
var ZyphrClientCredentialError = class extends Error {
|
|
26123
|
+
constructor(message) {
|
|
26124
|
+
super(message);
|
|
26125
|
+
this.name = "ZyphrClientCredentialError";
|
|
26126
|
+
}
|
|
26127
|
+
};
|
|
26128
|
+
var SECRET_KEY_PREFIXES = ["za_sec_", "zy_live_", "zy_test_"];
|
|
26129
|
+
var ZyphrClient = class {
|
|
26130
|
+
auth;
|
|
26131
|
+
/** Device registration for push (takes an OS-acquired token). */
|
|
26132
|
+
devices;
|
|
26133
|
+
applicationKey;
|
|
26134
|
+
accessToken;
|
|
26135
|
+
constructor(options) {
|
|
26136
|
+
if (!options.applicationKey) {
|
|
26137
|
+
throw new ZyphrClientCredentialError("applicationKey (za_pub_*) is required");
|
|
26138
|
+
}
|
|
26139
|
+
if (SECRET_KEY_PREFIXES.some((p) => options.applicationKey.startsWith(p))) {
|
|
26140
|
+
throw new ZyphrClientCredentialError(
|
|
26141
|
+
"ZyphrClient must be constructed with a publishable application key (za_pub_*), never a secret key. Secret keys must stay server-side."
|
|
26142
|
+
);
|
|
26143
|
+
}
|
|
26144
|
+
if (!options.applicationKey.startsWith("za_pub_")) {
|
|
26145
|
+
throw new ZyphrClientCredentialError(
|
|
26146
|
+
"applicationKey must be a publishable application key (za_pub_*)."
|
|
26147
|
+
);
|
|
26148
|
+
}
|
|
26149
|
+
this.applicationKey = options.applicationKey;
|
|
26150
|
+
this.accessToken = options.accessToken;
|
|
26151
|
+
const config = new Configuration({
|
|
26152
|
+
basePath: options.baseUrl,
|
|
26153
|
+
// The only credential this client sends automatically is the publishable
|
|
26154
|
+
// application key. End-user Bearer tokens are attached per-request via
|
|
26155
|
+
// authedRequest() so token rotation doesn't require rebuilding the client.
|
|
26156
|
+
apiKey: (name) => name === "X-Application-Key" ? this.applicationKey : "",
|
|
26157
|
+
middleware: [errorMiddleware2]
|
|
26158
|
+
});
|
|
26159
|
+
this.auth = {
|
|
26160
|
+
login: new AuthLoginApi(config),
|
|
26161
|
+
registration: new AuthRegistrationApi(config),
|
|
26162
|
+
sessions: new AuthSessionsApi(config),
|
|
26163
|
+
emailVerification: new AuthEmailVerificationApi(config),
|
|
26164
|
+
passwordReset: new AuthPasswordResetApi(config),
|
|
26165
|
+
mfa: new AuthMFAApi(config),
|
|
26166
|
+
magicLinks: new AuthMagicLinksApi(config),
|
|
26167
|
+
oauth: new AuthOAuthApi(config),
|
|
26168
|
+
organizations: new AuthOrganizationsApi(config),
|
|
26169
|
+
phone: new AuthPhoneApi(config),
|
|
26170
|
+
emailOtp: new AuthEmailOTPApi(config),
|
|
26171
|
+
profile: new AuthUserProfileApi(config),
|
|
26172
|
+
webauthn: new AuthWebAuthnApi(config)
|
|
26173
|
+
};
|
|
26174
|
+
this.devices = new DevicesApi(config);
|
|
26175
|
+
}
|
|
26176
|
+
/** Store the end-user access token for subsequent authedRequest() calls. */
|
|
26177
|
+
setAccessToken(accessToken) {
|
|
26178
|
+
this.accessToken = accessToken;
|
|
26179
|
+
}
|
|
26180
|
+
/** True when an end-user access token is currently set. */
|
|
26181
|
+
get isAuthenticated() {
|
|
26182
|
+
return Boolean(this.accessToken);
|
|
26183
|
+
}
|
|
26184
|
+
/**
|
|
26185
|
+
* Build request overrides that authenticate as the current end user: the
|
|
26186
|
+
* stored Bearer token plus the publishable application key required by
|
|
26187
|
+
* user-scoped endpoints. Pass an explicit token to override the stored one.
|
|
26188
|
+
*
|
|
26189
|
+
* @example
|
|
26190
|
+
* ```ts
|
|
26191
|
+
* const me = await zyphr.auth.profile.getEndUser(zyphr.authedRequest());
|
|
26192
|
+
* ```
|
|
26193
|
+
*/
|
|
26194
|
+
authedRequest(accessToken) {
|
|
26195
|
+
const token = accessToken ?? this.accessToken;
|
|
26196
|
+
const headers = {
|
|
26197
|
+
"X-Application-Key": this.applicationKey
|
|
26198
|
+
};
|
|
26199
|
+
if (token) {
|
|
26200
|
+
headers.Authorization = `Bearer ${token}`;
|
|
26201
|
+
}
|
|
26202
|
+
return { headers };
|
|
26203
|
+
}
|
|
26204
|
+
};
|
|
26205
|
+
|
|
25516
26206
|
// src/index.ts
|
|
25517
26207
|
var SDK_VERSION = "0.1.0";
|
|
25518
26208
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -25660,6 +26350,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
25660
26350
|
AuthTokensFromJSONTyped,
|
|
25661
26351
|
AuthTokensToJSON,
|
|
25662
26352
|
AuthTokensToJSONTyped,
|
|
26353
|
+
AuthUserDirectoryApi,
|
|
25663
26354
|
AuthUserFromJSON,
|
|
25664
26355
|
AuthUserFromJSONTyped,
|
|
25665
26356
|
AuthUserProfileApi,
|
|
@@ -26074,10 +26765,16 @@ var SDK_VERSION = "0.1.0";
|
|
|
26074
26765
|
InboxNotificationResponseFromJSONTyped,
|
|
26075
26766
|
InboxNotificationResponseToJSON,
|
|
26076
26767
|
InboxNotificationResponseToJSONTyped,
|
|
26768
|
+
InviteEndUserRequestFromJSON,
|
|
26769
|
+
InviteEndUserRequestFromJSONTyped,
|
|
26770
|
+
InviteEndUserRequestSendLinkEnum,
|
|
26771
|
+
InviteEndUserRequestToJSON,
|
|
26772
|
+
InviteEndUserRequestToJSONTyped,
|
|
26077
26773
|
JSONApiResponse,
|
|
26078
26774
|
ListAllInboxStatusEnum,
|
|
26079
26775
|
ListDevicesPlatformEnum,
|
|
26080
26776
|
ListEmailsStatusEnum,
|
|
26777
|
+
ListEndUsersEnvironmentEnum,
|
|
26081
26778
|
ListInboundEmailsStatusEnum,
|
|
26082
26779
|
ListPushStatusEnum,
|
|
26083
26780
|
ListSlackMessagesStatusEnum,
|
|
@@ -26264,6 +26961,11 @@ var SDK_VERSION = "0.1.0";
|
|
|
26264
26961
|
OAuthProviderInfoFromJSONTyped,
|
|
26265
26962
|
OAuthProviderInfoToJSON,
|
|
26266
26963
|
OAuthProviderInfoToJSONTyped,
|
|
26964
|
+
OAuthProviderName,
|
|
26965
|
+
OAuthProviderNameFromJSON,
|
|
26966
|
+
OAuthProviderNameFromJSONTyped,
|
|
26967
|
+
OAuthProviderNameToJSON,
|
|
26968
|
+
OAuthProviderNameToJSONTyped,
|
|
26267
26969
|
OAuthProviderToJSON,
|
|
26268
26970
|
OAuthProviderToJSONTyped,
|
|
26269
26971
|
OAuthProvidersResponseDataFromJSON,
|
|
@@ -26657,6 +27359,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
26657
27359
|
SendSmsResponseFromJSONTyped,
|
|
26658
27360
|
SendSmsResponseToJSON,
|
|
26659
27361
|
SendSmsResponseToJSONTyped,
|
|
27362
|
+
SendTemplateTestEmailRequestFromJSON,
|
|
27363
|
+
SendTemplateTestEmailRequestFromJSONTyped,
|
|
27364
|
+
SendTemplateTestEmailRequestToJSON,
|
|
27365
|
+
SendTemplateTestEmailRequestToJSONTyped,
|
|
26660
27366
|
SendTestSmsDataFromJSON,
|
|
26661
27367
|
SendTestSmsDataFromJSONTyped,
|
|
26662
27368
|
SendTestSmsDataToJSON,
|
|
@@ -26689,6 +27395,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
26689
27395
|
SetDomainInboundRequestFromJSONTyped,
|
|
26690
27396
|
SetDomainInboundRequestToJSON,
|
|
26691
27397
|
SetDomainInboundRequestToJSONTyped,
|
|
27398
|
+
SetEndUserClaimsRequestFromJSON,
|
|
27399
|
+
SetEndUserClaimsRequestFromJSONTyped,
|
|
27400
|
+
SetEndUserClaimsRequestToJSON,
|
|
27401
|
+
SetEndUserClaimsRequestToJSONTyped,
|
|
26692
27402
|
SetPreferencesRequestFromJSON,
|
|
26693
27403
|
SetPreferencesRequestFromJSONTyped,
|
|
26694
27404
|
SetPreferencesRequestPreferencesInnerFromJSON,
|
|
@@ -26701,6 +27411,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
26701
27411
|
SignInAnonymouslyRequestFromJSONTyped,
|
|
26702
27412
|
SignInAnonymouslyRequestToJSON,
|
|
26703
27413
|
SignInAnonymouslyRequestToJSONTyped,
|
|
27414
|
+
SignInWithGameCenterRequestFromJSON,
|
|
27415
|
+
SignInWithGameCenterRequestFromJSONTyped,
|
|
27416
|
+
SignInWithGameCenterRequestToJSON,
|
|
27417
|
+
SignInWithGameCenterRequestToJSONTyped,
|
|
26704
27418
|
SlackApi,
|
|
26705
27419
|
SlackMessageFromJSON,
|
|
26706
27420
|
SlackMessageFromJSONTyped,
|
|
@@ -26934,6 +27648,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
26934
27648
|
UpdateCategoryRequestFromJSONTyped,
|
|
26935
27649
|
UpdateCategoryRequestToJSON,
|
|
26936
27650
|
UpdateCategoryRequestToJSONTyped,
|
|
27651
|
+
UpdateEndUserByApplicationRequestFromJSON,
|
|
27652
|
+
UpdateEndUserByApplicationRequestFromJSONTyped,
|
|
27653
|
+
UpdateEndUserByApplicationRequestToJSON,
|
|
27654
|
+
UpdateEndUserByApplicationRequestToJSONTyped,
|
|
26937
27655
|
UpdateEndUserRequestFromJSON,
|
|
26938
27656
|
UpdateEndUserRequestFromJSONTyped,
|
|
26939
27657
|
UpdateEndUserRequestToJSON,
|
|
@@ -27351,6 +28069,8 @@ var SDK_VERSION = "0.1.0";
|
|
|
27351
28069
|
WorkflowStepExecutionToJSONTyped,
|
|
27352
28070
|
Zyphr,
|
|
27353
28071
|
ZyphrAuthenticationError,
|
|
28072
|
+
ZyphrClient,
|
|
28073
|
+
ZyphrClientCredentialError,
|
|
27354
28074
|
ZyphrError,
|
|
27355
28075
|
ZyphrNotFoundError,
|
|
27356
28076
|
ZyphrPayloadTooLargeError,
|
|
@@ -27485,6 +28205,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
27485
28205
|
instanceOfInboxListMeta,
|
|
27486
28206
|
instanceOfInboxListResponse,
|
|
27487
28207
|
instanceOfInboxNotificationResponse,
|
|
28208
|
+
instanceOfInviteEndUserRequest,
|
|
27488
28209
|
instanceOfListWaaSApplications200Response,
|
|
27489
28210
|
instanceOfListWaaSEndpointDeliveries200Response,
|
|
27490
28211
|
instanceOfListWaaSEndpoints200Response,
|
|
@@ -27529,6 +28250,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
27529
28250
|
instanceOfOAuthConnectionsResponseData,
|
|
27530
28251
|
instanceOfOAuthProvider,
|
|
27531
28252
|
instanceOfOAuthProviderInfo,
|
|
28253
|
+
instanceOfOAuthProviderName,
|
|
27532
28254
|
instanceOfOAuthProvidersResponse,
|
|
27533
28255
|
instanceOfOAuthProvidersResponseData,
|
|
27534
28256
|
instanceOfOAuthTokensRefreshResponse,
|
|
@@ -27623,6 +28345,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
27623
28345
|
instanceOfSendSmsData,
|
|
27624
28346
|
instanceOfSendSmsRequest,
|
|
27625
28347
|
instanceOfSendSmsResponse,
|
|
28348
|
+
instanceOfSendTemplateTestEmailRequest,
|
|
27626
28349
|
instanceOfSendTestSmsData,
|
|
27627
28350
|
instanceOfSendTestSmsRequest,
|
|
27628
28351
|
instanceOfSendTestSmsResponse,
|
|
@@ -27631,9 +28354,11 @@ var SDK_VERSION = "0.1.0";
|
|
|
27631
28354
|
instanceOfSessionListResponseData,
|
|
27632
28355
|
instanceOfSessionListResponseDataSessionInfo,
|
|
27633
28356
|
instanceOfSetDomainInboundRequest,
|
|
28357
|
+
instanceOfSetEndUserClaimsRequest,
|
|
27634
28358
|
instanceOfSetPreferencesRequest,
|
|
27635
28359
|
instanceOfSetPreferencesRequestPreferencesInner,
|
|
27636
28360
|
instanceOfSignInAnonymouslyRequest,
|
|
28361
|
+
instanceOfSignInWithGameCenterRequest,
|
|
27637
28362
|
instanceOfSlackMessage,
|
|
27638
28363
|
instanceOfSlackMessageListResponse,
|
|
27639
28364
|
instanceOfSlackMessageListResponseMeta,
|
|
@@ -27689,6 +28414,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
27689
28414
|
instanceOfUnsubscribeRequest,
|
|
27690
28415
|
instanceOfUnsubscribeResponse,
|
|
27691
28416
|
instanceOfUpdateCategoryRequest,
|
|
28417
|
+
instanceOfUpdateEndUserByApplicationRequest,
|
|
27692
28418
|
instanceOfUpdateEndUserRequest,
|
|
27693
28419
|
instanceOfUpdateOrganizationMemberRoleRequest,
|
|
27694
28420
|
instanceOfUpdateOrganizationRequest,
|