Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acul initial implementation with unit tests written in the new format #1060

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading