/*! * Copyright (c) 2017-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ import { BaseAPIRequestFactory } from './baseapi'; import { Configuration } from '../configuration'; import { RequestContext, ResponseContext } from '../http/http'; import { SmsTemplate } from '../models/SmsTemplate'; import { SmsTemplateType } from '../models/SmsTemplateType'; /** * no description */ export declare class TemplateApiRequestFactory extends BaseAPIRequestFactory { /** * Creates a new custom SMS template * Create an SMS template * @param smsTemplate */ createSmsTemplate(smsTemplate: SmsTemplate, _options?: Configuration): Promise; /** * Deletes an SMS template * Delete an SMS template * @param templateId `id` of the Template */ deleteSmsTemplate(templateId: string, _options?: Configuration): Promise; /** * Retrieves a specific template by `id` * Retrieve an SMS template * @param templateId `id` of the Template */ getSmsTemplate(templateId: string, _options?: Configuration): Promise; /** * Lists all custom SMS templates. A subset of templates can be returned that match a template type. * List all SMS templates * @param templateType */ listSmsTemplates(templateType?: SmsTemplateType, _options?: Configuration): Promise; /** * Replaces the SMS Template > **Notes:** You can\'t update the default SMS Template. * Replace an SMS template * @param templateId `id` of the Template * @param smsTemplate */ replaceSmsTemplate(templateId: string, smsTemplate: SmsTemplate, _options?: Configuration): Promise; /** * Updates only some of the SMS Template properties: * All properties within the custom SMS Template that have values are updated. * Any translation that doesn\'t exist is added. * Any translation with a null or empty value is removed. * Any translation with non-empty/null value is updated. * Update an SMS template * @param templateId `id` of the Template * @param smsTemplate */ updateSmsTemplate(templateId: string, smsTemplate: SmsTemplate, _options?: Configuration): Promise; } export declare class TemplateApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to createSmsTemplate * @throws ApiException if the response code was not in [200, 299] */ createSmsTemplate(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to deleteSmsTemplate * @throws ApiException if the response code was not in [200, 299] */ deleteSmsTemplate(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to getSmsTemplate * @throws ApiException if the response code was not in [200, 299] */ getSmsTemplate(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listSmsTemplates * @throws ApiException if the response code was not in [200, 299] */ listSmsTemplates(response: ResponseContext): Promise>; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to replaceSmsTemplate * @throws ApiException if the response code was not in [200, 299] */ replaceSmsTemplate(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateSmsTemplate * @throws ApiException if the response code was not in [200, 299] */ updateSmsTemplate(response: ResponseContext): Promise; }