From 7cf33161fbe62ec1225075af87658a831f7ed257 Mon Sep 17 00:00:00 2001 From: Ampersand Ops Date: Tue, 16 Jun 2026 22:41:07 +0000 Subject: [PATCH] [auto] Update openapi to 2aeae81bb3c50a225a4d6a3085e3ef6ef8591cf0 --- .../api/.openapi-generator/FILES | 1 + .../api/src/apis/InstallationApi.ts | 12 ++++ .../api/src/apis/IntegrationApi.ts | 10 +-- .../api/src/apis/OperationApi.ts | 8 +-- .../src/models/CreateDestinationRequest.ts | 3 +- .../CreateDestinationRequestMetadata.ts | 26 +++++++- .../models/CreateDestinationRequestSecrets.ts | 6 +- .../models/CreateEventTopicRouteRequest.ts | 37 ++++------- .../api/src/models/DestinationMetadata.ts | 24 +++++++ .../api/src/models/ModuleInfo.ts | 14 ++++ .../api/src/models/NotificationEventType.ts | 1 + .../api/src/models/OperationMetadata.ts | 2 +- .../src/models/OperationMetadataProgress.ts | 2 +- .../api/src/models/ProjectEntitlements.ts | 14 ++++ .../ProjectEntitlementsLogRetentionDays.ts | 66 +++++++++++++++++++ .../api/src/models/SubscribeRequirements.ts | 8 +++ .../src/models/UpdateDestinationRequest.ts | 3 + ...teDestinationRequestDestinationMetadata.ts | 26 +++++++- ...ateDestinationRequestDestinationSecrets.ts | 6 +- generated-sources/api/src/models/index.ts | 1 + 20 files changed, 225 insertions(+), 45 deletions(-) create mode 100644 generated-sources/api/src/models/ProjectEntitlementsLogRetentionDays.ts diff --git a/generated-sources/api/.openapi-generator/FILES b/generated-sources/api/.openapi-generator/FILES index 772a91c80..883772189 100644 --- a/generated-sources/api/.openapi-generator/FILES +++ b/generated-sources/api/.openapi-generator/FILES @@ -187,6 +187,7 @@ src/models/Problem.ts src/models/Project.ts src/models/ProjectEntitlements.ts src/models/ProjectEntitlementsBrandingRemoval.ts +src/models/ProjectEntitlementsLogRetentionDays.ts src/models/ProviderApp.ts src/models/ProviderAppMetadata.ts src/models/ProviderAppMetadata1.ts diff --git a/generated-sources/api/src/apis/InstallationApi.ts b/generated-sources/api/src/apis/InstallationApi.ts index 409a6588d..182b9b8e0 100644 --- a/generated-sources/api/src/apis/InstallationApi.ts +++ b/generated-sources/api/src/apis/InstallationApi.ts @@ -41,6 +41,7 @@ export interface CreateInstallationOperationRequest { projectIdOrName: string; integrationId: string; installation: CreateInstallationRequest; + skipSampling?: boolean; } export interface DeleteInstallationRequest { @@ -78,6 +79,7 @@ export interface UpdateInstallationOperationRequest { integrationId: string; installationId: string; installationUpdate: UpdateInstallationRequest; + skipSampling?: boolean; } /** @@ -93,6 +95,7 @@ export interface InstallationApiInterface { * @param {string} projectIdOrName The Ampersand project ID or project name. * @param {string} integrationId The integration ID. * @param {CreateInstallationRequest} installation + * @param {boolean} [skipSampling] When `true`, skips the sample read that validates the installation\'s read configuration against the provider before saving. Defaults to `false`. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InstallationApiInterface @@ -202,6 +205,7 @@ export interface InstallationApiInterface { * @param {string} integrationId The ID of the integration that this installation belongs to. * @param {string} installationId The Ampersand installation ID. * @param {UpdateInstallationRequest} installationUpdate + * @param {boolean} [skipSampling] When `true`, skips the sample read that validates the installation\'s read configuration against the provider before saving. Defaults to `false`. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InstallationApiInterface @@ -240,6 +244,10 @@ export class InstallationApi extends runtime.BaseAPI implements InstallationApiI const queryParameters: any = {}; + if (requestParameters.skipSampling !== undefined) { + queryParameters['skipSampling'] = requestParameters.skipSampling; + } + const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; @@ -561,6 +569,10 @@ export class InstallationApi extends runtime.BaseAPI implements InstallationApiI const queryParameters: any = {}; + if (requestParameters.skipSampling !== undefined) { + queryParameters['skipSampling'] = requestParameters.skipSampling; + } + const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; diff --git a/generated-sources/api/src/apis/IntegrationApi.ts b/generated-sources/api/src/apis/IntegrationApi.ts index e2928dc67..e437e5bd4 100644 --- a/generated-sources/api/src/apis/IntegrationApi.ts +++ b/generated-sources/api/src/apis/IntegrationApi.ts @@ -47,7 +47,7 @@ export interface CreateIntegrationOperationRequest { export interface DeleteIntegrationRequest { projectIdOrName: string; - integrationId: string; + integrationIdOrName: string; } export interface GetIntegrationRequest { @@ -104,7 +104,7 @@ export interface IntegrationApiInterface { * Delete an integration and all its installations. * @summary Delete an integration * @param {string} projectIdOrName The Ampersand project ID or project name. - * @param {string} integrationId The integration ID. + * @param {string} integrationIdOrName The integration ID or name. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IntegrationApiInterface @@ -267,8 +267,8 @@ export class IntegrationApi extends runtime.BaseAPI implements IntegrationApiInt throw new runtime.RequiredError('projectIdOrName','Required parameter requestParameters.projectIdOrName was null or undefined when calling deleteIntegration.'); } - if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) { - throw new runtime.RequiredError('integrationId','Required parameter requestParameters.integrationId was null or undefined when calling deleteIntegration.'); + if (requestParameters.integrationIdOrName === null || requestParameters.integrationIdOrName === undefined) { + throw new runtime.RequiredError('integrationIdOrName','Required parameter requestParameters.integrationIdOrName was null or undefined when calling deleteIntegration.'); } const queryParameters: any = {}; @@ -288,7 +288,7 @@ export class IntegrationApi extends runtime.BaseAPI implements IntegrationApiInt } } const response = await this.request({ - path: `/projects/{projectIdOrName}/integrations/{integrationId}`.replace(`{${"projectIdOrName"}}`, encodeURIComponent(String(requestParameters.projectIdOrName))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))), + path: `/projects/{projectIdOrName}/integrations/{integrationIdOrName}`.replace(`{${"projectIdOrName"}}`, encodeURIComponent(String(requestParameters.projectIdOrName))).replace(`{${"integrationIdOrName"}}`, encodeURIComponent(String(requestParameters.integrationIdOrName))), method: 'DELETE', headers: headerParameters, query: queryParameters, diff --git a/generated-sources/api/src/apis/OperationApi.ts b/generated-sources/api/src/apis/OperationApi.ts index d681d01fa..7b006d6ef 100644 --- a/generated-sources/api/src/apis/OperationApi.ts +++ b/generated-sources/api/src/apis/OperationApi.ts @@ -89,7 +89,7 @@ export interface OperationApiInterface { getBackfillProgress(requestParameters: GetBackfillProgressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** - * Retrieve a single operation by ID. An operation represents an async read, write, or subscribe action for an installation. Use this endpoint to poll for status, inspect the result summary, or fetch metadata such as backfill progress or write outcome details. + * Retrieve a single operation by ID. An operation represents an async read, write, or subscribe action for an installation. Use this endpoint to poll for status, inspect the result summary, or fetch metadata such as read progress or write outcome details. * @summary Get an operation * @param {string} projectIdOrName The Ampersand project ID or project name. * @param {string} operationId Unique identifier for the operation. Obtain from the list operations API endpoint, the Ampersand dashboard, or webhook payloads. @@ -100,7 +100,7 @@ export interface OperationApiInterface { getOperationRaw(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Retrieve a single operation by ID. An operation represents an async read, write, or subscribe action for an installation. Use this endpoint to poll for status, inspect the result summary, or fetch metadata such as backfill progress or write outcome details. + * Retrieve a single operation by ID. An operation represents an async read, write, or subscribe action for an installation. Use this endpoint to poll for status, inspect the result summary, or fetch metadata such as read progress or write outcome details. * Get an operation */ getOperation(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; @@ -204,7 +204,7 @@ export class OperationApi extends runtime.BaseAPI implements OperationApiInterfa } /** - * Retrieve a single operation by ID. An operation represents an async read, write, or subscribe action for an installation. Use this endpoint to poll for status, inspect the result summary, or fetch metadata such as backfill progress or write outcome details. + * Retrieve a single operation by ID. An operation represents an async read, write, or subscribe action for an installation. Use this endpoint to poll for status, inspect the result summary, or fetch metadata such as read progress or write outcome details. * Get an operation */ async getOperationRaw(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -243,7 +243,7 @@ export class OperationApi extends runtime.BaseAPI implements OperationApiInterfa } /** - * Retrieve a single operation by ID. An operation represents an async read, write, or subscribe action for an installation. Use this endpoint to poll for status, inspect the result summary, or fetch metadata such as backfill progress or write outcome details. + * Retrieve a single operation by ID. An operation represents an async read, write, or subscribe action for an installation. Use this endpoint to poll for status, inspect the result summary, or fetch metadata such as read progress or write outcome details. * Get an operation */ async getOperation(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { diff --git a/generated-sources/api/src/models/CreateDestinationRequest.ts b/generated-sources/api/src/models/CreateDestinationRequest.ts index 7675bff96..5f24235ca 100644 --- a/generated-sources/api/src/models/CreateDestinationRequest.ts +++ b/generated-sources/api/src/models/CreateDestinationRequest.ts @@ -64,7 +64,8 @@ export interface CreateDestinationRequest { */ export const CreateDestinationRequestTypeEnum = { Webhook: 'webhook', - Kinesis: 'kinesis' + Kinesis: 'kinesis', + S3: 's3' } as const; export type CreateDestinationRequestTypeEnum = typeof CreateDestinationRequestTypeEnum[keyof typeof CreateDestinationRequestTypeEnum]; diff --git a/generated-sources/api/src/models/CreateDestinationRequestMetadata.ts b/generated-sources/api/src/models/CreateDestinationRequestMetadata.ts index 49b9d825e..34b0717ad 100644 --- a/generated-sources/api/src/models/CreateDestinationRequestMetadata.ts +++ b/generated-sources/api/src/models/CreateDestinationRequestMetadata.ts @@ -32,7 +32,7 @@ export interface CreateDestinationRequestMetadata { */ headers?: { [key: string]: string; } | null; /** - * The AWS region where the kinesis destination is hosted. + * The AWS region where the Kinesis or S3 destination is hosted. * @type {string} * @memberof CreateDestinationRequestMetadata */ @@ -55,6 +55,24 @@ export interface CreateDestinationRequestMetadata { * @memberof CreateDestinationRequestMetadata */ partitionKeyTemplate?: string; + /** + * The name of the S3 bucket to write objects to. + * @type {string} + * @memberof CreateDestinationRequestMetadata + */ + bucket?: string; + /** + * The template for the S3 object key to use when writing objects (a JMESPath template). If omitted, the key defaults to the message timestamp followed by the message ID. + * @type {string} + * @memberof CreateDestinationRequestMetadata + */ + keyTemplate?: string; + /** + * The S3 storage class for written objects. Defaults to STANDARD. Common values include STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, GLACIER_IR, and DEEP_ARCHIVE. + * @type {string} + * @memberof CreateDestinationRequestMetadata + */ + storageClass?: string; } /** @@ -82,6 +100,9 @@ export function CreateDestinationRequestMetadataFromJSONTyped(json: any, ignoreD 'streamName': !exists(json, 'streamName') ? undefined : json['streamName'], 'endpointUrl': !exists(json, 'endpointUrl') ? undefined : json['endpointUrl'], 'partitionKeyTemplate': !exists(json, 'partitionKeyTemplate') ? undefined : json['partitionKeyTemplate'], + 'bucket': !exists(json, 'bucket') ? undefined : json['bucket'], + 'keyTemplate': !exists(json, 'keyTemplate') ? undefined : json['keyTemplate'], + 'storageClass': !exists(json, 'storageClass') ? undefined : json['storageClass'], }; } @@ -100,6 +121,9 @@ export function CreateDestinationRequestMetadataToJSON(value?: CreateDestination 'streamName': value.streamName, 'endpointUrl': value.endpointUrl, 'partitionKeyTemplate': value.partitionKeyTemplate, + 'bucket': value.bucket, + 'keyTemplate': value.keyTemplate, + 'storageClass': value.storageClass, }; } diff --git a/generated-sources/api/src/models/CreateDestinationRequestSecrets.ts b/generated-sources/api/src/models/CreateDestinationRequestSecrets.ts index 5b4cb360c..6a4c2c881 100644 --- a/generated-sources/api/src/models/CreateDestinationRequestSecrets.ts +++ b/generated-sources/api/src/models/CreateDestinationRequestSecrets.ts @@ -20,19 +20,19 @@ import { exists, mapValues } from '../runtime'; */ export interface CreateDestinationRequestSecrets { /** - * The AWS access key ID for the Kinesis destination. + * The AWS access key ID for the Kinesis or S3 destination. * @type {string} * @memberof CreateDestinationRequestSecrets */ awsKeyId?: string; /** - * The AWS secret access key for the Kinesis destination. + * The AWS secret access key for the Kinesis or S3 destination. * @type {string} * @memberof CreateDestinationRequestSecrets */ awsSecretKey?: string; /** - * The AWS session token for the Kinesis destination. + * The AWS session token for the Kinesis or S3 destination. * @type {string} * @memberof CreateDestinationRequestSecrets */ diff --git a/generated-sources/api/src/models/CreateEventTopicRouteRequest.ts b/generated-sources/api/src/models/CreateEventTopicRouteRequest.ts index ed03f618e..685e67bb0 100644 --- a/generated-sources/api/src/models/CreateEventTopicRouteRequest.ts +++ b/generated-sources/api/src/models/CreateEventTopicRouteRequest.ts @@ -13,6 +13,13 @@ */ import { exists, mapValues } from '../runtime'; +import type { NotificationEventType } from './NotificationEventType'; +import { + NotificationEventTypeFromJSON, + NotificationEventTypeFromJSONTyped, + NotificationEventTypeToJSON, +} from './NotificationEventType'; + /** * * @export @@ -20,11 +27,11 @@ import { exists, mapValues } from '../runtime'; */ export interface CreateEventTopicRouteRequest { /** - * The type of notification event. - * @type {string} + * + * @type {NotificationEventType} * @memberof CreateEventTopicRouteRequest */ - eventType: CreateEventTopicRouteRequestEventTypeEnum; + eventType: NotificationEventType; /** * The ID of the topic to route events to. * @type {string} @@ -33,26 +40,6 @@ export interface CreateEventTopicRouteRequest { topicId: string; } - -/** - * @export - */ -export const CreateEventTopicRouteRequestEventTypeEnum = { - ReadBackfillDone: 'read.backfill.done', - ConnectionCreated: 'connection.created', - ConnectionError: 'connection.error', - ConnectionRefreshed: 'connection.refreshed', - ConnectionDeleted: 'connection.deleted', - InstallationCreated: 'installation.created', - InstallationUpdated: 'installation.updated', - InstallationDeleted: 'installation.deleted', - ReadSchedulePaused: 'read.schedule.paused', - WriteAsyncDone: 'write.async.done', - DestinationWebhookDisabled: 'destination.webhook.disabled' -} as const; -export type CreateEventTopicRouteRequestEventTypeEnum = typeof CreateEventTopicRouteRequestEventTypeEnum[keyof typeof CreateEventTopicRouteRequestEventTypeEnum]; - - /** * Check if a given object implements the CreateEventTopicRouteRequest interface. */ @@ -74,7 +61,7 @@ export function CreateEventTopicRouteRequestFromJSONTyped(json: any, ignoreDiscr } return { - 'eventType': json['eventType'], + 'eventType': NotificationEventTypeFromJSON(json['eventType']), 'topicId': json['topicId'], }; } @@ -88,7 +75,7 @@ export function CreateEventTopicRouteRequestToJSON(value?: CreateEventTopicRoute } return { - 'eventType': value.eventType, + 'eventType': NotificationEventTypeToJSON(value.eventType), 'topicId': value.topicId, }; } diff --git a/generated-sources/api/src/models/DestinationMetadata.ts b/generated-sources/api/src/models/DestinationMetadata.ts index 1be29c3a5..c4bbd8130 100644 --- a/generated-sources/api/src/models/DestinationMetadata.ts +++ b/generated-sources/api/src/models/DestinationMetadata.ts @@ -49,6 +49,24 @@ export interface DestinationMetadata { * @memberof DestinationMetadata */ partitionKeyTemplate?: string; + /** + * The name of the S3 bucket + * @type {string} + * @memberof DestinationMetadata + */ + bucket?: string; + /** + * JMESPath template for generating S3 object keys + * @type {string} + * @memberof DestinationMetadata + */ + keyTemplate?: string; + /** + * The S3 storage class for written objects (defaults to STANDARD) + * @type {string} + * @memberof DestinationMetadata + */ + storageClass?: string; } /** @@ -75,6 +93,9 @@ export function DestinationMetadataFromJSONTyped(json: any, ignoreDiscriminator: 'streamName': !exists(json, 'streamName') ? undefined : json['streamName'], 'region': !exists(json, 'region') ? undefined : json['region'], 'partitionKeyTemplate': !exists(json, 'partitionKeyTemplate') ? undefined : json['partitionKeyTemplate'], + 'bucket': !exists(json, 'bucket') ? undefined : json['bucket'], + 'keyTemplate': !exists(json, 'keyTemplate') ? undefined : json['keyTemplate'], + 'storageClass': !exists(json, 'storageClass') ? undefined : json['storageClass'], }; } @@ -92,6 +113,9 @@ export function DestinationMetadataToJSON(value?: DestinationMetadata | null): a 'streamName': value.streamName, 'region': value.region, 'partitionKeyTemplate': value.partitionKeyTemplate, + 'bucket': value.bucket, + 'keyTemplate': value.keyTemplate, + 'storageClass': value.storageClass, }; } diff --git a/generated-sources/api/src/models/ModuleInfo.ts b/generated-sources/api/src/models/ModuleInfo.ts index 62a6ac485..7d6e54eb5 100644 --- a/generated-sources/api/src/models/ModuleInfo.ts +++ b/generated-sources/api/src/models/ModuleInfo.ts @@ -13,6 +13,12 @@ */ import { exists, mapValues } from '../runtime'; +import type { SubscribeRequirements } from './SubscribeRequirements'; +import { + SubscribeRequirementsFromJSON, + SubscribeRequirementsFromJSONTyped, + SubscribeRequirementsToJSON, +} from './SubscribeRequirements'; import type { Support } from './Support'; import { SupportFromJSON, @@ -44,6 +50,12 @@ export interface ModuleInfo { * @memberof ModuleInfo */ support: Support; + /** + * + * @type {SubscribeRequirements} + * @memberof ModuleInfo + */ + subscribeRequirements?: SubscribeRequirements; } /** @@ -71,6 +83,7 @@ export function ModuleInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'displayName': json['displayName'], 'baseURL': json['baseURL'], 'support': SupportFromJSON(json['support']), + 'subscribeRequirements': !exists(json, 'subscribeRequirements') ? undefined : SubscribeRequirementsFromJSON(json['subscribeRequirements']), }; } @@ -86,6 +99,7 @@ export function ModuleInfoToJSON(value?: ModuleInfo | null): any { 'displayName': value.displayName, 'baseURL': value.baseURL, 'support': SupportToJSON(value.support), + 'subscribeRequirements': SubscribeRequirementsToJSON(value.subscribeRequirements), }; } diff --git a/generated-sources/api/src/models/NotificationEventType.ts b/generated-sources/api/src/models/NotificationEventType.ts index 9611c05cb..7e19b2fd1 100644 --- a/generated-sources/api/src/models/NotificationEventType.ts +++ b/generated-sources/api/src/models/NotificationEventType.ts @@ -30,6 +30,7 @@ export const NotificationEventType = { ReadTriggeredDone: 'read.triggered.done', ReadTriggeredError: 'read.triggered.error', WriteAsyncDone: 'write.async.done', + SubscribeCreateError: 'subscribe.create.error', DestinationWebhookDisabled: 'destination.webhook.disabled' } as const; export type NotificationEventType = typeof NotificationEventType[keyof typeof NotificationEventType]; diff --git a/generated-sources/api/src/models/OperationMetadata.ts b/generated-sources/api/src/models/OperationMetadata.ts index 91eeec4b7..49e379af7 100644 --- a/generated-sources/api/src/models/OperationMetadata.ts +++ b/generated-sources/api/src/models/OperationMetadata.ts @@ -27,7 +27,7 @@ import { } from './OperationMetadataRetry'; /** - * Additional operation details (e.g. objects, retry info, backfill progress, successfulRecordIds). + * Additional operation details (e.g. objects, retry info, read progress, successfulRecordIds). * @export * @interface OperationMetadata */ diff --git a/generated-sources/api/src/models/OperationMetadataProgress.ts b/generated-sources/api/src/models/OperationMetadataProgress.ts index ac07bfb42..19cbff082 100644 --- a/generated-sources/api/src/models/OperationMetadataProgress.ts +++ b/generated-sources/api/src/models/OperationMetadataProgress.ts @@ -14,7 +14,7 @@ import { exists, mapValues } from '../runtime'; /** - * Only present for backfill read operations. + * Read progress for the operation, reporting records processed and, where available, the estimated total. Present for all read operations. * @export * @interface OperationMetadataProgress */ diff --git a/generated-sources/api/src/models/ProjectEntitlements.ts b/generated-sources/api/src/models/ProjectEntitlements.ts index 2f2f682b6..d75552228 100644 --- a/generated-sources/api/src/models/ProjectEntitlements.ts +++ b/generated-sources/api/src/models/ProjectEntitlements.ts @@ -19,6 +19,12 @@ import { ProjectEntitlementsBrandingRemovalFromJSONTyped, ProjectEntitlementsBrandingRemovalToJSON, } from './ProjectEntitlementsBrandingRemoval'; +import type { ProjectEntitlementsLogRetentionDays } from './ProjectEntitlementsLogRetentionDays'; +import { + ProjectEntitlementsLogRetentionDaysFromJSON, + ProjectEntitlementsLogRetentionDaysFromJSONTyped, + ProjectEntitlementsLogRetentionDaysToJSON, +} from './ProjectEntitlementsLogRetentionDays'; /** * Plan-based feature flags for the project. These are managed by Ampersand and cannot be set via the API. @@ -32,6 +38,12 @@ export interface ProjectEntitlements { * @memberof ProjectEntitlements */ brandingRemoval?: ProjectEntitlementsBrandingRemoval; + /** + * + * @type {ProjectEntitlementsLogRetentionDays} + * @memberof ProjectEntitlements + */ + logRetentionDays?: ProjectEntitlementsLogRetentionDays; } /** @@ -54,6 +66,7 @@ export function ProjectEntitlementsFromJSONTyped(json: any, ignoreDiscriminator: return { 'brandingRemoval': !exists(json, 'brandingRemoval') ? undefined : ProjectEntitlementsBrandingRemovalFromJSON(json['brandingRemoval']), + 'logRetentionDays': !exists(json, 'logRetentionDays') ? undefined : ProjectEntitlementsLogRetentionDaysFromJSON(json['logRetentionDays']), }; } @@ -67,6 +80,7 @@ export function ProjectEntitlementsToJSON(value?: ProjectEntitlements | null): a return { 'brandingRemoval': ProjectEntitlementsBrandingRemovalToJSON(value.brandingRemoval), + 'logRetentionDays': ProjectEntitlementsLogRetentionDaysToJSON(value.logRetentionDays), }; } diff --git a/generated-sources/api/src/models/ProjectEntitlementsLogRetentionDays.ts b/generated-sources/api/src/models/ProjectEntitlementsLogRetentionDays.ts new file mode 100644 index 000000000..f11ca08eb --- /dev/null +++ b/generated-sources/api/src/models/ProjectEntitlementsLogRetentionDays.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Ampersand public API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * The number of days that logs are retained for this project. + * @export + * @interface ProjectEntitlementsLogRetentionDays + */ +export interface ProjectEntitlementsLogRetentionDays { + /** + * The log retention period for this project, in days. + * @type {number} + * @memberof ProjectEntitlementsLogRetentionDays + */ + value: number; +} + +/** + * Check if a given object implements the ProjectEntitlementsLogRetentionDays interface. + */ +export function instanceOfProjectEntitlementsLogRetentionDays(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "value" in value; + + return isInstance; +} + +export function ProjectEntitlementsLogRetentionDaysFromJSON(json: any): ProjectEntitlementsLogRetentionDays { + return ProjectEntitlementsLogRetentionDaysFromJSONTyped(json, false); +} + +export function ProjectEntitlementsLogRetentionDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectEntitlementsLogRetentionDays { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'value': json['value'], + }; +} + +export function ProjectEntitlementsLogRetentionDaysToJSON(value?: ProjectEntitlementsLogRetentionDays | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'value': value.value, + }; +} + diff --git a/generated-sources/api/src/models/SubscribeRequirements.ts b/generated-sources/api/src/models/SubscribeRequirements.ts index de503e4a5..b1252198f 100644 --- a/generated-sources/api/src/models/SubscribeRequirements.ts +++ b/generated-sources/api/src/models/SubscribeRequirements.ts @@ -37,6 +37,12 @@ export interface SubscribeRequirements { * @memberof SubscribeRequirements */ postProcess?: boolean; + /** + * Whether the provider supports programmatic subscription via API. If false, provider may still support webhooks via manual configuration in UI. + * @type {boolean} + * @memberof SubscribeRequirements + */ + subscribeByAPI?: boolean; } /** @@ -61,6 +67,7 @@ export function SubscribeRequirementsFromJSONTyped(json: any, ignoreDiscriminato 'registration': !exists(json, 'registration') ? undefined : json['registration'], 'maintenance': !exists(json, 'maintenance') ? undefined : json['maintenance'], 'postProcess': !exists(json, 'postProcess') ? undefined : json['postProcess'], + 'subscribeByAPI': !exists(json, 'subscribeByAPI') ? undefined : json['subscribeByAPI'], }; } @@ -76,6 +83,7 @@ export function SubscribeRequirementsToJSON(value?: SubscribeRequirements | null 'registration': value.registration, 'maintenance': value.maintenance, 'postProcess': value.postProcess, + 'subscribeByAPI': value.subscribeByAPI, }; } diff --git a/generated-sources/api/src/models/UpdateDestinationRequest.ts b/generated-sources/api/src/models/UpdateDestinationRequest.ts index d3dc3b6db..9a501d079 100644 --- a/generated-sources/api/src/models/UpdateDestinationRequest.ts +++ b/generated-sources/api/src/models/UpdateDestinationRequest.ts @@ -35,6 +35,9 @@ export interface UpdateDestinationRequest { * - metadata.streamName * - metadata.endpointUrl * - metadata.partitionKeyTemplate + * - metadata.bucket + * - metadata.keyTemplate + * - metadata.storageClass * - secrets.awsKeyId * - secrets.awsSecretKey * - secrets.awsSessionToken diff --git a/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.ts b/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.ts index fde2fa14e..69d7512a4 100644 --- a/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.ts +++ b/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.ts @@ -32,7 +32,7 @@ export interface UpdateDestinationRequestDestinationMetadata { */ headers?: { [key: string]: string; } | null; /** - * The AWS region where the kinesis destination is hosted. + * The AWS region where the Kinesis or S3 destination is hosted. * @type {string} * @memberof UpdateDestinationRequestDestinationMetadata */ @@ -55,6 +55,24 @@ export interface UpdateDestinationRequestDestinationMetadata { * @memberof UpdateDestinationRequestDestinationMetadata */ partitionKeyTemplate?: string; + /** + * The name of the S3 bucket to write objects to. + * @type {string} + * @memberof UpdateDestinationRequestDestinationMetadata + */ + bucket?: string; + /** + * The template for the S3 object key to use when writing objects (a JMESPath template). If omitted, the key defaults to the message timestamp followed by the message ID. + * @type {string} + * @memberof UpdateDestinationRequestDestinationMetadata + */ + keyTemplate?: string; + /** + * The S3 storage class for written objects. Defaults to STANDARD. Common values include STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, GLACIER_IR, and DEEP_ARCHIVE. + * @type {string} + * @memberof UpdateDestinationRequestDestinationMetadata + */ + storageClass?: string; } /** @@ -82,6 +100,9 @@ export function UpdateDestinationRequestDestinationMetadataFromJSONTyped(json: a 'streamName': !exists(json, 'streamName') ? undefined : json['streamName'], 'endpointUrl': !exists(json, 'endpointUrl') ? undefined : json['endpointUrl'], 'partitionKeyTemplate': !exists(json, 'partitionKeyTemplate') ? undefined : json['partitionKeyTemplate'], + 'bucket': !exists(json, 'bucket') ? undefined : json['bucket'], + 'keyTemplate': !exists(json, 'keyTemplate') ? undefined : json['keyTemplate'], + 'storageClass': !exists(json, 'storageClass') ? undefined : json['storageClass'], }; } @@ -100,6 +121,9 @@ export function UpdateDestinationRequestDestinationMetadataToJSON(value?: Update 'streamName': value.streamName, 'endpointUrl': value.endpointUrl, 'partitionKeyTemplate': value.partitionKeyTemplate, + 'bucket': value.bucket, + 'keyTemplate': value.keyTemplate, + 'storageClass': value.storageClass, }; } diff --git a/generated-sources/api/src/models/UpdateDestinationRequestDestinationSecrets.ts b/generated-sources/api/src/models/UpdateDestinationRequestDestinationSecrets.ts index 8eb827a78..5e1de2b57 100644 --- a/generated-sources/api/src/models/UpdateDestinationRequestDestinationSecrets.ts +++ b/generated-sources/api/src/models/UpdateDestinationRequestDestinationSecrets.ts @@ -20,19 +20,19 @@ import { exists, mapValues } from '../runtime'; */ export interface UpdateDestinationRequestDestinationSecrets { /** - * The AWS access key ID for the Kinesis destination. + * The AWS access key ID for the Kinesis or S3 destination. * @type {string} * @memberof UpdateDestinationRequestDestinationSecrets */ awsKeyId?: string; /** - * The AWS secret access key for the Kinesis destination. + * The AWS secret access key for the Kinesis or S3 destination. * @type {string} * @memberof UpdateDestinationRequestDestinationSecrets */ awsSecretKey?: string; /** - * The AWS session token for the Kinesis destination. + * The AWS session token for the Kinesis or S3 destination. * @type {string} * @memberof UpdateDestinationRequestDestinationSecrets */ diff --git a/generated-sources/api/src/models/index.ts b/generated-sources/api/src/models/index.ts index 651869c75..cf883acc0 100644 --- a/generated-sources/api/src/models/index.ts +++ b/generated-sources/api/src/models/index.ts @@ -164,6 +164,7 @@ export * from './Problem'; export * from './Project'; export * from './ProjectEntitlements'; export * from './ProjectEntitlementsBrandingRemoval'; +export * from './ProjectEntitlementsLogRetentionDays'; export * from './ProviderApp'; export * from './ProviderAppMetadata'; export * from './ProviderAppMetadata1';