import * as API from "@distilled.cloud/core/api"; import * as C from "@distilled.cloud/core/category"; // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit. import * as S from "@distilled.cloud/core/schema-lite"; import * as __L from "@distilled.cloud/core/schema-lite"; import type * as Redacted from "effect/Redacted"; import { StackitServiceErrors } from "../errors.ts"; import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts"; import * as Retry from "../retry.ts"; import * as T from "../traits.ts"; // Schema table, filled on first reach (see __S at the end). const __s: any[] = []; export type { StackitOpError, StackitOpContext }; /** Span facts shared by every operation (com.distilled.telemetry#service). */ const TELEMETRY = { system: "stackit-api", responseHeaders: [ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" }, { header: "request-id", name: "http.response.header.request-id", transform: "list" }, ], prefix: "STACKIT", service: "Logs", labels: "stackit", propagate: "w3c", } as const; export class BadRequest extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("BadRequest", { code: S.Number, message: S.String, body: /*@__PURE__*/ S.optional(S.Unknown), headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)), }).pipe(C.withBadRequestError), [{ status: 400 }], ) {} export class Conflict extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("Conflict", { code: S.Number, message: S.String, body: /*@__PURE__*/ S.optional(S.Unknown), headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)), }).pipe(C.withConflictError), [{ status: 409 }], ) {} export class NotFound extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("NotFound", { code: S.Number, message: S.String, body: /*@__PURE__*/ S.optional(S.Unknown), headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)), }).pipe(C.withBadRequestError), [{ status: 404 }], ) {} export type CreateAccessPolicyRequestRegionId = "eu01" | "eu02"; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ export type CreateAccessPolicyRequestLabelsMap = { [key: string]: string | undefined }; export type PermissionsItem = "read" | "write"; /** The access permissions granted to the access token or access policy. */ export type Permissions = Array; export interface CreateAccessPolicyRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: CreateAccessPolicyRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; /** The description of the access policy. */ description?: string | null | undefined; /** The email address of the STACKIT IAM subject (user, group, or service account). */ email: string; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ labels?: CreateAccessPolicyRequestLabelsMap | null | undefined; permissions: Permissions; } /** Labels as key-value pairs. */ export type AccessPolicyLabelsMap = { [key: string]: string | undefined }; export interface AccessPolicy { /** The description of the access policy. */ description?: string | undefined; /** The email address of the STACKIT IAM subject (user, group, or service account). */ email: string; /** An auto generated unique id which identifies the access policy. */ id: string; /** Labels as key-value pairs. */ labels?: AccessPolicyLabelsMap | undefined; permissions: Permissions; } export type CreateAccessTokenRequestRegionId = "eu01" | "eu02"; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ export type CreateAccessTokenRequestLabelsMap = { [key: string]: string | undefined }; export interface CreateAccessTokenRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: CreateAccessTokenRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; /** The description of the access token. */ description?: string | undefined; /** The displayed name of the access token. */ displayName: string; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ labels?: CreateAccessTokenRequestLabelsMap | undefined; /** A lifetime period for an access token in days. If unset the token will not expire. */ lifetime?: number | undefined; permissions: Permissions; } /** Labels as key-value pairs. */ export type AccessTokenLabelsMap = { [key: string]: string | undefined }; export type AccessTokenStatus = "active" | "expired"; export interface AccessToken { /** A generated access token. Only available on creation. */ accessToken?: string | Redacted.Redacted | undefined; /** The user who created the access token. */ creator: string; /** The description of the access token. */ description?: string | undefined; /** The displayed name of the access token. */ displayName: string; /** Indicates if the access token can expire. */ expires: boolean; /** An auto generated unique id which identifies the access token. */ id: string; /** Labels as key-value pairs. */ labels?: AccessTokenLabelsMap | undefined; permissions: Permissions; status: AccessTokenStatus; /** The date and time util an access token is valid to (inclusively). */ validUntil?: string | undefined; } export type CreateLogsInstanceRequestRegionId = "eu01" | "eu02"; /** The access control list for the Logs instance. */ export type CreateLogsInstanceRequestAclList = Array; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ export type CreateLogsInstanceRequestLabelsMap = { [key: string]: string | undefined }; export interface CreateLogsInstanceRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: CreateLogsInstanceRequestRegionId | (string & {}); /** The access control list for the Logs instance. */ acl?: CreateLogsInstanceRequestAclList | undefined; /** The description of the access token. */ description?: string | undefined; /** The displayed name to distinguish multiple Logs instances. */ displayName: string; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ labels?: CreateLogsInstanceRequestLabelsMap | undefined; /** The log retention time in days. */ retentionDays: number; } /** The access control list for the Logs instance. */ export type LogsInstanceAclList = Array; /** Labels as key-value pairs. */ export type LogsInstanceLabelsMap = { [key: string]: string | undefined }; /** The current status of the Logs instance. */ export type LogsInstanceStatus = "active" | "deleting" | "reconciling"; export interface LogsInstance { /** The access control list for the Logs instance. */ acl?: LogsInstanceAclList | undefined; /** The date and time the creation of the Logs instance was triggered. */ created: string; /** The Logs instance's datasource URL, can be used in Grafana as a datasource URL */ datasourceUrl?: string | undefined; /** The description of the Logs instance. */ description?: string | undefined; /** The displayed name of the Logs instance. */ displayName: string; /** A auto generated unique id which identifies the Logs instance. */ id: string; /** The Logs instance's ingest logs via OTLP URL */ ingestOtlpUrl?: string | undefined; /** The Logs instance's ingest logs URL */ ingestUrl?: string | undefined; /** Labels as key-value pairs. */ labels?: LogsInstanceLabelsMap | undefined; /** The Logs instance's query range URL */ queryRangeUrl?: string | undefined; /** The Logs instance's query URL */ queryUrl?: string | undefined; /** The log retention time in days. */ retentionDays: number; /** The current status of the Logs instance. */ status: LogsInstanceStatus; } export type DeleteAccessPolicyRequestRegionId = "eu01" | "eu02"; export interface DeleteAccessPolicyRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: DeleteAccessPolicyRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; /** The access policy unique id. */ pId: string; } export interface DeleteAccessPolicyResponse {} export type DeleteAccessTokenRequestRegionId = "eu01" | "eu02"; export interface DeleteAccessTokenRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: DeleteAccessTokenRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; /** The access token UUID. */ tId: string; } export interface DeleteAccessTokenResponse {} export type DeleteAllAccessPoliciesRequestRegionId = "eu01" | "eu02"; export interface DeleteAllAccessPoliciesRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: DeleteAllAccessPoliciesRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; } export type AccessPolicyListPoliciesList = Array; export interface AccessPolicyList { policies: AccessPolicyListPoliciesList; } export type DeleteAllAccessTokensRequestRegionId = "eu01" | "eu02"; export interface DeleteAllAccessTokensRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: DeleteAllAccessTokensRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; } export type AccessTokenListTokensList = Array; export interface AccessTokenList { tokens: AccessTokenListTokensList; } export type DeleteAllExpiredAccessTokensRequestRegionId = "eu01" | "eu02"; export interface DeleteAllExpiredAccessTokensRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: DeleteAllExpiredAccessTokensRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; } export type DeleteLogsInstanceRequestRegionId = "eu01" | "eu02"; export interface DeleteLogsInstanceRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: DeleteLogsInstanceRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; } export interface DeleteLogsInstanceResponse {} export type GetAccessPolicyRequestRegionId = "eu01" | "eu02"; export interface GetAccessPolicyRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: GetAccessPolicyRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; /** The access policy unique id. */ pId: string; } export type GetAccessTokenRequestRegionId = "eu01" | "eu02"; export interface GetAccessTokenRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: GetAccessTokenRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; /** The access token UUID. */ tId: string; } export type GetLogsInstanceRequestRegionId = "eu01" | "eu02"; export interface GetLogsInstanceRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: GetLogsInstanceRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; } export type ListAccessPoliciesRequestRegionId = "eu01" | "eu02"; export interface ListAccessPoliciesRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: ListAccessPoliciesRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; } export type ListAccessTokensRequestRegionId = "eu01" | "eu02"; export interface ListAccessTokensRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: ListAccessTokensRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; } export type ListLogsInstancesRequestRegionId = "eu01" | "eu02"; export interface ListLogsInstancesRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: ListLogsInstancesRequestRegionId | (string & {}); } export type LogsInstancesListInstancesList = Array; export interface LogsInstancesList { instances: LogsInstancesListInstancesList; } export type UpdateAccessPolicyRequestRegionId = "eu01" | "eu02"; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ export type UpdateAccessPolicyRequestLabelsMap = { [key: string]: string | undefined }; export interface UpdateAccessPolicyRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: UpdateAccessPolicyRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; /** The access policy unique id. */ pId: string; /** The updated description of the access policy. If not present will be ignored in update. */ description?: string | null | undefined; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ labels?: UpdateAccessPolicyRequestLabelsMap | null | undefined; permissions?: Permissions | undefined; } export type UpdateAccessTokenRequestRegionId = "eu01" | "eu02"; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ export type UpdateAccessTokenRequestLabelsMap = { [key: string]: string | undefined }; export interface UpdateAccessTokenRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: UpdateAccessTokenRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; /** The access token UUID. */ tId: string; /** The description of the access token. */ description?: string | undefined; /** The displayed name of the access token. */ displayName?: string | undefined; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ labels?: UpdateAccessTokenRequestLabelsMap | undefined; } export interface UpdateAccessTokenResponse {} export type UpdateLogsInstanceRequestRegionId = "eu01" | "eu02"; /** The access control list for the Logs instance. */ export type UpdateLogsInstanceRequestAclList = Array; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ export type UpdateLogsInstanceRequestLabelsMap = { [key: string]: string | undefined }; export interface UpdateLogsInstanceRequest { /** The STACKIT portal project UUID the resource is located in. */ projectId: string; /** The STACKIT region name the resource is located in. */ regionId: UpdateLogsInstanceRequestRegionId | (string & {}); /** The Logs Instance UUID. */ instanceId: string; /** The access control list for the Logs instance. */ acl?: UpdateLogsInstanceRequestAclList | undefined; /** The description of the Logs instance. */ description?: string | undefined; /** The displayed name to distinguish multiple Logs instances. */ displayName?: string | undefined; /** Key-value pairs for resource labeling. Maximum 64 user labels per resource. Key format: - May contain an optional domain prefix separated by a slash (/). - Domain prefix must be <= 250 characters, a valid DNS subdomain containing only lowercase alphanumerics ([a-z0-9]) and dashes (-), separated by dots (.). - Key name (excluding prefix) must be between 1 and 63 characters, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. - Reserved prefixes: 'stackit.cloud/' (including all subdomains) and deprecated 'stackit-' are reserved for system labels and cannot be created, updated, or deleted by end-users. Value format: - Length must be <= 63 characters. - May be empty. - If not empty, must begin and end with an alphanumeric character ([a-z0-9A-Z]), and may contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */ labels?: UpdateLogsInstanceRequestLabelsMap | undefined; /** The log retention time in days. */ retentionDays?: number | undefined; } export type CreateAccessPolicyError = BadRequest | NotFound | Conflict | StackitOpError; /** Create Access Policy Create a new access policy for Logs instance */ export const createAccessPolicy: API.OperationMethod< CreateAccessPolicyRequest, AccessPolicy, CreateAccessPolicyError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(44, __c11, 0) as any as S.Schema, output: __S(56, __c14, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateAccessPolicy", })); export type CreateAccessTokenError = BadRequest | NotFound | Conflict | StackitOpError; /** Create Access Token Create a new Logs instance access token */ export const createAccessToken: API.OperationMethod< CreateAccessTokenRequest, AccessToken, CreateAccessTokenError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(60, __c15, 0) as any as S.Schema, output: __S(64, __c16, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateAccessToken", })); export type CreateLogsInstanceError = BadRequest | NotFound | Conflict | StackitOpError; /** Create Logs instance Creates a new Logs instance within the project. */ export const createLogsInstance: API.OperationMethod< CreateLogsInstanceRequest, LogsInstance, CreateLogsInstanceError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(68, __c17, 0) as any as S.Schema, output: __S(73, __c18, 1) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateLogsInstance", })); export type DeleteAccessPolicyError = BadRequest | NotFound | Conflict | StackitOpError; /** Delete Access Policy Deletes a Logs instance access policy */ export const deleteAccessPolicy: API.OperationMethod< DeleteAccessPolicyRequest, DeleteAccessPolicyResponse, DeleteAccessPolicyError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(76, __c19, 0) as any as S.Schema, output: __S(80, __c20, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteAccessPolicy", })); export type DeleteAccessTokenError = BadRequest | NotFound | Conflict | StackitOpError; /** Delete Access Token Deletes a Logs instance access token */ export const deleteAccessToken: API.OperationMethod< DeleteAccessTokenRequest, DeleteAccessTokenResponse, DeleteAccessTokenError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(84, __c21, 0) as any as S.Schema, output: __S(80, __c20, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteAccessToken", })); export type DeleteAllAccessPoliciesError = BadRequest | NotFound | Conflict | StackitOpError; /** Delete All Access Policies Deletes all access policies for a Logs instance */ export const deleteAllAccessPolicies: API.OperationMethod< DeleteAllAccessPoliciesRequest, AccessPolicyList, DeleteAllAccessPoliciesError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(88, __c22, 0) as any as S.Schema, output: __S(93, __c23, 1) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteAllAccessPolicies", })); export type DeleteAllAccessTokensError = BadRequest | NotFound | Conflict | StackitOpError; /** Delete All Access Tokens Deletes all access tokens available for a Logs instance */ export const deleteAllAccessTokens: API.OperationMethod< DeleteAllAccessTokensRequest, AccessTokenList, DeleteAllAccessTokensError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(96, __c24, 0) as any as S.Schema, output: __S(101, __c25, 1) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteAllAccessTokens", })); export type DeleteAllExpiredAccessTokensError = BadRequest | NotFound | Conflict | StackitOpError; /** Deletes all expired access tokens Deletes all expired access tokens */ export const deleteAllExpiredAccessTokens: API.OperationMethod< DeleteAllExpiredAccessTokensRequest, AccessTokenList, DeleteAllExpiredAccessTokensError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(0, __c0, 0) as any as S.Schema, output: __S(101, __c25, 1) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteAllExpiredAccessTokens", })); export type DeleteLogsInstanceError = BadRequest | NotFound | Conflict | StackitOpError; /** Delete Logs instance Deletes the given Logs instance. */ export const deleteLogsInstance: API.OperationMethod< DeleteLogsInstanceRequest, DeleteLogsInstanceResponse, DeleteLogsInstanceError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4, __c1, 0) as any as S.Schema, output: __S(80, __c20, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteLogsInstance", })); export type GetAccessPolicyError = BadRequest | NotFound | Conflict | StackitOpError; /** Get Access Policy Get the information of the given access policy. */ export const getAccessPolicy: API.OperationMethod< GetAccessPolicyRequest, AccessPolicy, GetAccessPolicyError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(8, __c2, 0) as any as S.Schema, output: __S(56, __c14, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "GetAccessPolicy", })); export type GetAccessTokenError = BadRequest | NotFound | Conflict | StackitOpError; /** Get Access Token Get the information of the given access token. */ export const getAccessToken: API.OperationMethod< GetAccessTokenRequest, AccessToken, GetAccessTokenError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(12, __c3, 0) as any as S.Schema, output: __S(64, __c16, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "GetAccessToken", })); export type GetLogsInstanceError = BadRequest | NotFound | StackitOpError; /** Get Logs Instance Returns the details for the given Logs instance. */ export const getLogsInstance: API.OperationMethod< GetLogsInstanceRequest, LogsInstance, GetLogsInstanceError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(16, __c4, 0) as any as S.Schema, output: __S(73, __c18, 1) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "GetLogsInstance", })); export type ListAccessPoliciesError = BadRequest | NotFound | Conflict | StackitOpError; /** List Access Policies Returns a list of access policies created for a Logs instance */ export const listAccessPolicies: API.OperationMethod< ListAccessPoliciesRequest, AccessPolicyList, ListAccessPoliciesError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(20, __c5, 0) as any as S.Schema, output: __S(93, __c23, 1) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListAccessPolicies", })); export type ListAccessTokensError = BadRequest | NotFound | Conflict | StackitOpError; /** List Access Tokens Returns a list of access tokens created for a Logs instance */ export const listAccessTokens: API.OperationMethod< ListAccessTokensRequest, AccessTokenList, ListAccessTokensError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(24, __c6, 0) as any as S.Schema, output: __S(101, __c25, 1) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListAccessTokens", })); export type ListLogsInstancesError = BadRequest | StackitOpError; /** List Logs instances Returns a list of all Logs instances within the project. */ export const listLogsInstances: API.OperationMethod< ListLogsInstancesRequest, LogsInstancesList, ListLogsInstancesError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(28, __c7, 0) as any as S.Schema, output: __S(30, __c7, 2) as any as S.Schema, errors: [BadRequest], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListLogsInstances", })); export type UpdateAccessPolicyError = BadRequest | NotFound | Conflict | StackitOpError; /** Update Access Policy Updates the given access policy. */ export const updateAccessPolicy: API.OperationMethod< UpdateAccessPolicyRequest, AccessPolicy, UpdateAccessPolicyError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(32, __c8, 0) as any as S.Schema, output: __S(56, __c14, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateAccessPolicy", })); export type UpdateAccessTokenError = BadRequest | NotFound | Conflict | StackitOpError; /** Update Access Token Updates the given access token. */ export const updateAccessToken: API.OperationMethod< UpdateAccessTokenRequest, UpdateAccessTokenResponse, UpdateAccessTokenError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(36, __c9, 0) as any as S.Schema, output: __S(80, __c20, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateAccessToken", })); export type UpdateLogsInstanceError = BadRequest | NotFound | Conflict | StackitOpError; /** Update Logs instance Updates the given Logs instance. */ export const updateLogsInstance: API.OperationMethod< UpdateLogsInstanceRequest, LogsInstance, UpdateLogsInstanceError, StackitOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(40, __c10, 0) as any as S.Schema, output: __S(73, __c18, 1) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: StackitServiceErrors, protocol: StackitProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateLogsInstance", })); // Schema builders: each runs one schema initializer, on that schema's first use. function __c0(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "DELETE", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/expired", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "DeleteAllExpiredAccessTokensRequest" }); } } function __c1(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "DELETE", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "DeleteLogsInstanceRequest" }); } } function __c2(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), pId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "GET", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies/{pId}", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "GetAccessPolicyRequest" }); } } function __c3(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), tId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "GET", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "GetAccessTokenRequest" }); } } function __c4(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "GET", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "GetLogsInstanceRequest" }); } } function __c5(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "GET", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "ListAccessPoliciesRequest" }); } } function __c6(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "GET", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "ListAccessTokensRequest" }); } } function __c7(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "GET", uri: "/v1/projects/{projectId}/regions/{regionId}/instances", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "ListLogsInstancesRequest" }); case 1: return S.Array(__S(73, __c18, 1)); case 2: return S.suspend(() => S.Struct({ instances: __S(29, __c7, 1), }), ).annotate({ identifier: "LogsInstancesList" }); } } function __c8(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), pId: S.String.pipe(T.Label()), description: S.optional(S.NullOr(S.String)), labels: S.optional(S.NullOr(__S(48, __c12, 0))), permissions: S.optional(__S(52, __c13, 0)), }).pipe( T.Http({ method: "PATCH", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies/{pId}", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "UpdateAccessPolicyRequest" }); } } function __c9(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), tId: S.String.pipe(T.Label()), description: S.optional(S.String), displayName: S.optional(S.String), labels: S.optional(__S(48, __c12, 0)), }).pipe( T.Http({ method: "PUT", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "UpdateAccessTokenRequest" }); } } function __c10(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), acl: S.optional(__S(72, __c18, 0)), description: S.optional(S.String), displayName: S.optional(S.String), labels: S.optional(__S(48, __c12, 0)), retentionDays: S.optional(S.Number), }).pipe( T.Http({ method: "PUT", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "UpdateLogsInstanceRequest" }); } } function __c11(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), description: S.optional(S.NullOr(S.String)), email: S.String, labels: S.optional(S.NullOr(__S(48, __c12, 0))), permissions: __S(52, __c13, 0), }).pipe( T.Http({ method: "POST", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "CreateAccessPolicyRequest" }); } } function __c12(j: number): any { switch (j) { case 0: return S.Record(S.String, S.String); } } function __c13(j: number): any { switch (j) { case 0: return S.Array(S.String); } } function __c14(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ description: S.optional(S.String), email: S.String, id: S.String, labels: S.optional(__S(48, __c12, 0)), permissions: __S(52, __c13, 0), }), ).annotate({ identifier: "AccessPolicy" }); } } function __c15(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), description: S.optional(S.String), displayName: S.String, labels: S.optional(__S(48, __c12, 0)), lifetime: S.optional(S.Number), permissions: __S(52, __c13, 0), }).pipe( T.Http({ method: "POST", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "CreateAccessTokenRequest" }); } } function __c16(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ accessToken: S.optional(S.String.pipe(T.SensitiveValue({}))), creator: S.String, description: S.optional(S.String), displayName: S.String, expires: S.Boolean, id: S.String, labels: S.optional(__S(48, __c12, 0)), permissions: __S(52, __c13, 0), status: S.String, validUntil: S.optional(S.String), }), ).annotate({ identifier: "AccessToken" }); } } function __c17(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), acl: S.optional(__S(72, __c18, 0)), description: S.optional(S.String), displayName: S.String, labels: S.optional(__S(48, __c12, 0)), retentionDays: S.Number, }).pipe( T.Http({ method: "POST", uri: "/v1/projects/{projectId}/regions/{regionId}/instances", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "CreateLogsInstanceRequest" }); } } function __c18(j: number): any { switch (j) { case 0: return S.Array(S.String); case 1: return S.suspend(() => S.Struct({ acl: S.optional(__S(72, __c18, 0)), created: S.String, datasourceUrl: S.optional(S.String), description: S.optional(S.String), displayName: S.String, id: S.String, ingestOtlpUrl: S.optional(S.String), ingestUrl: S.optional(S.String), labels: S.optional(__S(48, __c12, 0)), queryRangeUrl: S.optional(S.String), queryUrl: S.optional(S.String), retentionDays: S.Number, status: S.String, }), ).annotate({ identifier: "LogsInstance" }); } } function __c19(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), pId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "DELETE", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies/{pId}", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "DeleteAccessPolicyRequest" }); } } function __c20(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteAccessPolicyResponse" }); } } function __c21(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), tId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "DELETE", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "DeleteAccessTokenRequest" }); } } function __c22(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "DELETE", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "DeleteAllAccessPoliciesRequest" }); } } function __c23(j: number): any { switch (j) { case 0: return S.Array(__S(56, __c14, 0)); case 1: return S.suspend(() => S.Struct({ policies: __S(92, __c23, 0), }), ).annotate({ identifier: "AccessPolicyList" }); } } function __c24(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), regionId: S.String.pipe(T.Label()), instanceId: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "DELETE", uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens", code: 200, baseUrl: "https://logs.api.stackit.cloud", }), ), ).annotate({ identifier: "DeleteAllAccessTokensRequest" }); } } function __c25(j: number): any { switch (j) { case 0: return S.Array(__S(64, __c16, 0)); case 1: return S.suspend(() => S.Struct({ tokens: __S(100, __c25, 0), }), ).annotate({ identifier: "AccessTokenList" }); } } // Schema table: entry i is schema j of builder f, made on first reach. function __S(i: number, f: (j: number) => unknown, j: number): any { return (__s[i] ??= __L.at(f, j)); }