Skip to content

Commit

Permalink
acul implementation (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharpandey13 authored Dec 9, 2024
1 parent e73bea2 commit a7d0870
Show file tree
Hide file tree
Showing 3 changed files with 472 additions and 8 deletions.
61 changes: 61 additions & 0 deletions src/management/__generated/managers/prompts-manager.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import * as runtime from '../../../lib/runtime.js';
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
import type {
GetRendering200Response,
PatchRenderingRequest,
PromptsSettings,
PromptsSettingsUpdate,
GetCustomTextByLanguageRequest,
GetPartialsRequest,
GetRenderingRequest,
PatchRenderingOperationRequest,
PutCustomTextByLanguageRequest,
PutPartialsRequest,
} from '../models/index.js';
Expand Down Expand Up @@ -84,6 +88,31 @@ export class PromptsManager extends BaseAPI {
return runtime.JSONApiResponse.fromResponse(response);
}

/**
* View the render settings for a specific screen
* Get render settings for a prompt
*
* @throws {RequiredError}
*/
async getRendering(
requestParameters: GetRenderingRequest,
initOverrides?: InitOverride
): Promise<ApiResponse<GetRendering200Response>> {
runtime.validateRequiredRequestParams(requestParameters, ['prompt', 'screen']);

const response = await this.request(
{
path: `/prompts/{prompt}/screen/{screen}/rendering`
.replace('{prompt}', encodeURIComponent(String(requestParameters.prompt)))
.replace('{screen}', encodeURIComponent(String(requestParameters.screen))),
method: 'GET',
},
initOverrides
);

return runtime.JSONApiResponse.fromResponse(response);
}

/**
* Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features.
* Update prompt settings
Expand Down Expand Up @@ -111,6 +140,38 @@ export class PromptsManager extends BaseAPI {
return runtime.JSONApiResponse.fromResponse(response);
}

/**
* Configure the render settings for a specific screen
* Configure render settings for a prompt
*
* @throws {RequiredError}
*/
async updateRendering(
requestParameters: PatchRenderingOperationRequest,
bodyParameters: PatchRenderingRequest,
initOverrides?: InitOverride
): Promise<ApiResponse<void>> {
runtime.validateRequiredRequestParams(requestParameters, ['prompt', 'screen']);

const headerParameters: runtime.HTTPHeaders = {};

headerParameters['Content-Type'] = 'application/json';

const response = await this.request(
{
path: `/prompts/{prompt}/screen/{screen}/rendering`
.replace('{prompt}', encodeURIComponent(String(requestParameters.prompt)))
.replace('{screen}', encodeURIComponent(String(requestParameters.screen))),
method: 'PATCH',
headers: headerParameters,
body: bodyParameters,
},
initOverrides
);

return runtime.VoidApiResponse.fromResponse(response);
}

/**
* Set custom text for a specific prompt. Existing texts will be overwritten.
* Set custom text for a specific prompt
Expand Down
Loading

0 comments on commit a7d0870

Please sign in to comment.