ts-ag 1.1.19 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -5,6 +5,7 @@ import { Result, ResultAsync } from "neverthrow";
5
5
  import * as _$_aws_sdk_client_cognito_identity_provider0 from "@aws-sdk/client-cognito-identity-provider";
6
6
  import { AdminGetUserCommandOutput, AttributeType, CognitoIdentityProviderClient } from "@aws-sdk/client-cognito-identity-provider";
7
7
  import { S3Client } from "@aws-sdk/client-s3";
8
+ import { DynamoDBToolboxError } from "dynamodb-toolbox";
8
9
  import { Plugin } from "unified";
9
10
  import { styleText } from "util";
10
11
  import { APIGatewayProxyEventV2WithLambdaAuthorizer, APIGatewayProxyResultV2, APIGatewayRequestAuthorizerEventV2, Context } from "aws-lambda";
@@ -173,42 +174,42 @@ declare function createApiRequest<API extends ApiEndpoints>(schemas: Partial<Rec
173
174
  * The separation means that they can be returned from functions that are certainly run inside a lambda fucntion but theyre not the actual return of the lambda.
174
175
  * Im not sure it this is optimal behaviour and if not we will migrate to only using the errorResponse function
175
176
  */
176
- declare const error_lambda_badRequest: (message: string, fieldName?: string, fieldValue?: string) => {
177
- type: 'lambda_badRequest';
177
+ declare const error_lambda_badRequest: (message: string, fieldName?: string, fieldValue?: string) => type_error_lambda_badRequest;
178
+ declare const error_lambda_unauthorized: (message: string) => type_error_lambda_unauthorized;
179
+ declare const error_lambda_forbidden: (message: string) => type_error_lambda_forbidden;
180
+ declare const error_lambda_notFound: (message: string, fieldName?: string, fieldValue?: string) => type_error_lambda_notFound;
181
+ declare const error_lambda_conflict: (message: string, fieldName?: string, fieldValue?: string) => type_error_lambda_conflict;
182
+ declare const error_lambda_internal: (message: string) => type_error_lambda_internal;
183
+ type type_error_lambda_badRequest = {
184
+ type: 'badRequest';
178
185
  message: string;
179
- fieldName: string | undefined;
180
- fieldValue: string | undefined;
186
+ fieldName?: string;
187
+ fieldValue?: string;
181
188
  };
182
- declare const error_lambda_unauthorized: (message: string) => {
183
- type: 'lambda_unauthorized';
189
+ type type_error_lambda_unauthorized = {
190
+ type: 'unauthorized';
184
191
  message: string;
185
192
  };
186
- declare const error_lambda_forbidden: (message: string) => {
187
- type: 'lambda_forbidden';
193
+ type type_error_lambda_forbidden = {
194
+ type: 'forbidden';
188
195
  message: string;
189
196
  };
190
- declare const error_lambda_notFound: (message: string, fieldName?: string, fieldValue?: string) => {
191
- type: 'lambda_notFound';
197
+ type type_error_lambda_notFound = {
198
+ type: 'notFound';
192
199
  message: string;
193
- fieldName: string | undefined;
194
- fieldValue: string | undefined;
200
+ fieldName?: string;
201
+ fieldValue?: string;
195
202
  };
196
- declare const error_lambda_conflict: (message: string, fieldName?: string, fieldValue?: string) => {
197
- type: 'lambda_conflict';
203
+ type type_error_lambda_conflict = {
204
+ type: 'conflict';
198
205
  message: string;
199
- fieldName: string | undefined;
200
- fieldValue: string | undefined;
206
+ fieldName?: string;
207
+ fieldValue?: string;
201
208
  };
202
- declare const error_lambda_internal: (message: string) => {
203
- type: 'lambda_internal';
209
+ type type_error_lambda_internal = {
210
+ type: 'internal';
204
211
  message: string;
205
212
  };
206
- type type_error_lambda_badRequest = ReturnType<typeof error_lambda_badRequest>;
207
- type type_error_lambda_unauthorized = ReturnType<typeof error_lambda_unauthorized>;
208
- type type_error_lambda_forbidden = ReturnType<typeof error_lambda_forbidden>;
209
- type type_error_lambda_notFound = ReturnType<typeof error_lambda_notFound>;
210
- type type_error_lambda_conflict = ReturnType<typeof error_lambda_conflict>;
211
- type type_error_lambda_internal = ReturnType<typeof error_lambda_internal>;
212
213
  type type_error_lambda = type_error_lambda_badRequest | type_error_lambda_unauthorized | type_error_lambda_forbidden | type_error_lambda_notFound | type_error_lambda_conflict | type_error_lambda_internal;
213
214
  //#endregion
214
215
  //#region src/lambda/response.d.ts
@@ -270,6 +271,14 @@ type LambdaErrorResponse<Type extends string = '', Extras extends object = {}> =
270
271
  type: Type;
271
272
  } & Extras;
272
273
  };
274
+ /**
275
+ * Maps lambda errors to responses suitable to return from lambda functions
276
+ * @param e
277
+ * @param headers
278
+ * @param type
279
+ * @param extras
280
+ * @returns
281
+ */
273
282
  declare function response_error<Type extends string = '', Extras extends object = {}>(e: type_error_lambda, headers: Record<string, string>, type?: Type, extras?: Extras): LambdaErrorResponse<Type, Extras>;
274
283
  /**
275
284
  * Helper function to get a reasonable default error response from a valibot parse result
@@ -292,10 +301,7 @@ declare function response_ok<Body extends {
292
301
  /**
293
302
  * Wraps cookies parse along with the api gateway event with neverthrow
294
303
  */
295
- declare const getCookies: (event: APIGatewayProxyEventV2WithLambdaAuthorizer<any> | APIGatewayRequestAuthorizerEventV2) => Result<_$cookie.Cookies, {
296
- type: 'lambda_unauthorized';
297
- message: string;
298
- }>;
304
+ declare const getCookies: (event: APIGatewayProxyEventV2WithLambdaAuthorizer<any> | APIGatewayRequestAuthorizerEventV2) => Result<_$cookie.Cookies, type_error_lambda_unauthorized>;
299
305
  //#endregion
300
306
  //#region src/cognito/client.d.ts
301
307
  /**
@@ -304,115 +310,23 @@ declare const getCookies: (event: APIGatewayProxyEventV2WithLambdaAuthorizer<any
304
310
  declare function getCognitoClient(): CognitoIdentityProviderClient;
305
311
  //#endregion
306
312
  //#region src/cognito/errors.d.ts
307
- declare const error_cognito_forbidden: {
308
- group: 'cognito';
309
- type: 'cognito_forbidden';
310
- };
311
- declare const error_cognito_internal: {
312
- group: 'cognito';
313
- type: 'cognito_internal';
314
- };
315
- declare const error_cognito_role: {
316
- group: 'cognito';
317
- type: 'cognito_role';
318
- };
319
- declare const error_cognito_input: {
320
- group: 'cognito';
321
- type: 'cognito_input';
322
- };
323
- declare const error_cognito_auth: {
324
- group: 'cognito';
325
- type: 'cognito_auth';
326
- };
327
- declare const error_cognito_notFound: {
328
- group: 'cognito';
329
- type: 'cognito_notFound';
330
- };
331
- declare const error_cognito_userNotFound: {
332
- group: 'cognito';
333
- type: 'cognito_userNotFound';
334
- };
335
- declare const error_cognito_tooManyRequests: {
336
- group: 'cognito';
337
- type: 'cognito_tooManyRequests';
338
- };
339
- declare const error_cognito_passwordPolicy: {
340
- group: 'cognito';
341
- type: 'cognito_passwordPolicy';
342
- };
343
- declare const error_cognito_passwordHistory: {
344
- group: 'cognito';
345
- type: 'cognito_passwordHistory';
346
- };
347
- declare const error_cognito_passwordResetRequired: {
348
- group: 'cognito';
349
- type: 'cognito_passwordResetRequired';
350
- };
351
- declare const error_cognito_codeExpired: {
352
- group: 'cognito';
353
- type: 'cognito_codeExpired';
354
- };
355
- declare const error_cognito_codeMismatch: {
356
- group: 'cognito';
357
- type: 'cognito_codeMismatch';
358
- };
359
- declare const error_cognito_delivery: {
360
- group: 'cognito';
361
- type: 'cognito_delivery';
362
- };
363
- declare const error_cognito_userExists: {
364
- group: 'cognito';
365
- type: 'cognito_userExists';
366
- };
367
- type type_error_cognito_forbidden = typeof error_cognito_forbidden;
368
- type type_error_cognito_internal = typeof error_cognito_internal;
369
- type type_error_cognito_role = typeof error_cognito_role;
370
- type type_error_cognito_input = typeof error_cognito_input;
371
- type type_error_cognito_auth = typeof error_cognito_auth;
372
- type type_error_cognito_notFound = typeof error_cognito_notFound;
373
- type type_error_cognito_userNotFound = typeof error_cognito_userNotFound;
374
- type type_error_cognito_tooManyRequests = typeof error_cognito_tooManyRequests;
375
- type type_error_cognito_passwordPolicy = typeof error_cognito_passwordPolicy;
376
- type type_error_cognito_passwordHistory = typeof error_cognito_passwordHistory;
377
- type type_error_cognito_passwordResetRequired = typeof error_cognito_passwordResetRequired;
378
- type type_error_cognito_codeExpired = typeof error_cognito_codeExpired;
379
- type type_error_cognito_codeMismatch = typeof error_cognito_codeMismatch;
380
- type type_error_cognito_delivery = typeof error_cognito_delivery;
381
- type type_error_cognito_userExists = typeof error_cognito_userExists;
382
- type type_error_cognito = type_error_cognito_forbidden | type_error_cognito_internal | type_error_cognito_role | type_error_cognito_input | type_error_cognito_auth | type_error_cognito_notFound | type_error_cognito_userNotFound | type_error_cognito_tooManyRequests | type_error_cognito_passwordPolicy | type_error_cognito_passwordHistory | type_error_cognito_passwordResetRequired | type_error_cognito_codeExpired | type_error_cognito_codeMismatch | type_error_cognito_delivery | type_error_cognito_userExists;
383
- /**
384
- * Gets a generic error from the name of the aws error
385
- */
386
- declare function error_cognito(error: Error): type_error_cognito;
387
- /**
388
- * Converts a cognito error to a lambda error.
389
- * Basically just for narrowing it down a bit
390
- */
391
- declare function error_lambda_fromCognito(e: type_error_cognito): {
392
- type: 'lambda_badRequest';
393
- message: string;
394
- fieldName: string | undefined;
395
- fieldValue: string | undefined;
396
- } | {
397
- type: 'lambda_unauthorized';
398
- message: string;
399
- } | {
400
- type: 'lambda_forbidden';
401
- message: string;
402
- } | {
403
- type: 'lambda_notFound';
404
- message: string;
405
- fieldName: string | undefined;
406
- fieldValue: string | undefined;
407
- } | {
408
- type: 'lambda_conflict';
409
- message: string;
410
- fieldName: string | undefined;
411
- fieldValue: string | undefined;
412
- } | {
413
- type: 'lambda_internal';
414
- message: string;
313
+ /** Error wrapper for failures that happen while doing Cognito SDK work. */
314
+ type type_error_cognito = {
315
+ type: 'cognito';
316
+ error: unknown;
415
317
  };
318
+ /** Internal reason used before converting Cognito errors into public lambda errors. */
319
+ type type_error_lambda_fromCognito_reason = 'auth' | 'forbidden' | 'invalidInput' | 'userNotFound' | 'resourceNotFound' | 'tooManyRequests' | 'passwordPolicy' | 'passwordHistory' | 'passwordResetRequired' | 'codeExpired' | 'codeMismatch' | 'delivery' | 'userExists' | 'conflict' | 'internal';
320
+ /** Per-reason public response override for endpoint-specific privacy and status choices. */
321
+ type type_error_lambda_fromCognito_override = {
322
+ message?: string;
323
+ } | Partial<type_error_lambda>;
324
+ /** Options for converting Cognito errors to lambda errors. */
325
+ type type_error_lambda_fromCognito_options = Partial<Record<type_error_lambda_fromCognito_reason, type_error_lambda_fromCognito_override>>;
326
+ /** Wrap an unknown caught value as a Cognito-domain error for neverthrow flows. */
327
+ declare function error_cognito(error: unknown): type_error_cognito;
328
+ /** Convert AWS SDK Cognito errors into a safe lambda error for API responses. */
329
+ declare function error_lambda_fromCognito(e: type_error_cognito, options?: type_error_lambda_fromCognito_options): type_error_lambda;
416
330
  //#endregion
417
331
  //#region src/cognito/user.d.ts
418
332
  type type_userResponse = Omit<AdminGetUserCommandOutput, 'UserAttributes'> & {
@@ -588,10 +502,7 @@ declare const verifyOAuthToken: (a: {
588
502
  refresh_token: string;
589
503
  token_type: string;
590
504
  expires_in: number;
591
- }, {
592
- group: 'cognito';
593
- type: 'cognito_auth';
594
- }>;
505
+ }, type_error_cognito>;
595
506
  /**
596
507
  * Exchanges an OAuth2 refresh token for Cognito tokens using the oauth token endpoint.
597
508
  * See https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html for request/response fields and grant details.
@@ -613,10 +524,7 @@ declare const refreshOAuthToken: (a: {
613
524
  refresh_token: string | undefined;
614
525
  token_type: string;
615
526
  expires_in: number;
616
- }, {
617
- group: 'cognito';
618
- type: 'cognito_auth';
619
- }>;
527
+ }, type_error_cognito>;
620
528
  //#endregion
621
529
  //#region src/s3/client.d.ts
622
530
  /**
@@ -625,17 +533,28 @@ declare const refreshOAuthToken: (a: {
625
533
  declare function getS3(): S3Client;
626
534
  //#endregion
627
535
  //#region src/s3/errors.d.ts
628
- declare const error_s3_internal: {
629
- type: 's3_internal';
536
+ /** Error wrapper for failures that happen while doing S3 SDK work. */
537
+ type type_error_s3 = {
538
+ type: 's3';
539
+ error: unknown;
630
540
  };
631
- declare const error_s3_get: {
632
- type: 's3_get';
633
- };
634
- type type_error_s3_internal = typeof error_s3_internal;
635
- type type_error_s3_get = typeof error_s3_get;
541
+ /** Internal reason used before converting S3 errors into public lambda errors. */
542
+ type type_error_lambda_fromS3_reason = 'invalidInput' | 'objectNotFound' | 'bucketNotFound' | 'conflict' | 'throttled' | 'accessDenied' | 'internal';
543
+ /** Per-reason public response override for endpoint-specific privacy and status choices. */
544
+ type type_error_lambda_fromS3_override = {
545
+ message?: string;
546
+ } | Partial<type_error_lambda>;
547
+ /** Options for converting S3 errors to lambda errors. */
548
+ type type_error_lambda_fromS3_options = Partial<Record<type_error_lambda_fromS3_reason, type_error_lambda_fromS3_override>>;
549
+ /** Wrap an unknown caught value as an S3-domain error for neverthrow flows. */
550
+ declare function error_s3(error: unknown): type_error_s3;
551
+ /** Convert AWS SDK S3 errors into a safe lambda error for API responses. */
552
+ declare function error_lambda_fromS3(e: type_error_s3, options?: type_error_lambda_fromS3_options): type_error_lambda;
553
+ /** Returns true for normal S3 object-missing responses. */
554
+ declare function is_s3_notFound(error: unknown): boolean;
636
555
  //#endregion
637
556
  //#region src/s3/signedUrl.d.ts
638
- declare const getSignedUrl: <InputTypesUnion extends object, InputType extends InputTypesUnion, OutputType extends _$_smithy_types0.MetadataBearer = _$_smithy_types0.MetadataBearer>(client: _$_aws_sdk_client_cognito_identity_provider0.__Client<any, InputTypesUnion, _$_smithy_types0.MetadataBearer, any>, command: _$_aws_sdk_client_cognito_identity_provider0.$Command<InputType, OutputType, any, InputTypesUnion, _$_smithy_types0.MetadataBearer>, options?: _$_smithy_types0.RequestPresigningArguments | undefined) => ResultAsync<string, unknown>;
557
+ declare const getSignedUrl: <InputTypesUnion extends object, InputType extends InputTypesUnion, OutputType extends _$_smithy_types0.MetadataBearer = _$_smithy_types0.MetadataBearer>(client: _$_aws_sdk_client_cognito_identity_provider0.__Client<any, InputTypesUnion, _$_smithy_types0.MetadataBearer, any>, command: _$_aws_sdk_client_cognito_identity_provider0.$Command<InputType, OutputType, any, InputTypesUnion, _$_smithy_types0.MetadataBearer>, options?: _$_smithy_types0.RequestPresigningArguments | undefined) => ResultAsync<string, void>;
639
558
  //#endregion
640
559
  //#region src/s3/object.d.ts
641
560
  /**
@@ -645,13 +564,11 @@ declare const getSignedUrl: <InputTypesUnion extends object, InputType extends I
645
564
  * @param {string} key - The key of the object to retrieve.
646
565
  * @returns {Promise<Buffer>} A promise that resolves to the object data as a Buffer.
647
566
  */
648
- declare const getObject: (bucketName: string, key: string) => ResultAsync<Buffer<ArrayBufferLike>, {
649
- type: 's3_get';
650
- }>;
567
+ declare const getObject: (bucketName: string, key: string) => ResultAsync<Buffer<ArrayBufferLike>, type_error_s3>;
651
568
  /**
652
569
  * Convenience function to get an object from S3 and return it as a string.
653
570
  */
654
- declare function getObjectString(bucketName: string, key: string): ResultAsync<string, typeof error_s3_get>;
571
+ declare function getObjectString(bucketName: string, key: string): ResultAsync<string, type_error_s3>;
655
572
  /**
656
573
  * Checks if an object exists in an s3 bucket by retrieving the HEAD data
657
574
  *
@@ -659,24 +576,51 @@ declare function getObjectString(bucketName: string, key: string): ResultAsync<s
659
576
  * @param {string} key - The key of the object to retrieve.
660
577
  * @returns {Promise<Buffer>} A promise that resolves to a boolean.
661
578
  */
662
- declare const objectExists: (bucketName: string, key: string) => ResultAsync<boolean, {
663
- type: 's3_get';
664
- }>;
579
+ declare const objectExists: (bucketName: string, key: string) => ResultAsync<boolean, type_error_s3>;
665
580
  //#endregion
666
581
  //#region src/dynamo/errors.d.ts
667
- declare const error_dynamo: {
582
+ /** Error wrapper for failures that happen while doing DynamoDB or DynamoDB Toolbox work. */
583
+ type type_error_dynamo = {
668
584
  type: 'dynamo';
585
+ error: DynamoDBToolboxError | unknown;
669
586
  };
670
- type type_error_dynamo = typeof error_dynamo;
671
- declare function error_lambda_fromDynamo(_e: type_error_dynamo): {
672
- type: 'lambda_internal';
673
- message: string;
587
+ /** Internal reason used before converting Dynamo-related errors into public lambda errors. */
588
+ type type_error_lambda_fromDynamo_reason = 'invalidInput' | 'conditionalCheckFailed' | 'transactionConflict' | 'resourceNotFound' | 'throttled' | 'accessDenied' | 'internal';
589
+ /** Per-reason public response override for endpoint-specific privacy and status choices. */
590
+ type type_error_lambda_fromDynamo_override = {
591
+ message?: string;
592
+ } | Partial<type_error_lambda>;
593
+ /** Options for converting Dynamo errors to lambda errors. */
594
+ type type_error_lambda_fromDynamo_options = Partial<Record<type_error_lambda_fromDynamo_reason, type_error_lambda_fromDynamo_override>> & {
595
+ /**
596
+ * By default DynamoDB and DynamoDB Toolbox details are not returned to clients.
597
+ * Set this to true only when the Toolbox path is already a public input field.
598
+ */
599
+ includeToolboxPath?: boolean;
674
600
  };
601
+ /** Wrap an unknown caught value as a Dynamo-domain error for neverthrow flows. */
602
+ declare function error_dynamo(error: unknown): type_error_dynamo;
603
+ /** Convert DynamoDB Toolbox or AWS SDK errors into a safe lambda error for API responses. */
604
+ declare function error_lambda_fromDynamo(e: type_error_dynamo, options?: type_error_lambda_fromDynamo_options): type_error_lambda;
675
605
  //#endregion
676
606
  //#region src/ses/errors.d.ts
677
- declare const error_ses: {
607
+ /** Error wrapper for failures that happen while doing SES SDK work. */
608
+ type type_error_ses = {
678
609
  type: 'ses';
610
+ error: unknown;
679
611
  };
612
+ /** Internal reason used before converting SES errors into public lambda errors. */
613
+ type type_error_lambda_fromSes_reason = 'invalidInput' | 'messageRejected' | 'identityNotVerified' | 'notFound' | 'alreadyExists' | 'conflict' | 'throttled' | 'accessDenied' | 'internal';
614
+ /** Per-reason public response override for endpoint-specific privacy and status choices. */
615
+ type type_error_lambda_fromSes_override = {
616
+ message?: string;
617
+ } | Partial<type_error_lambda>;
618
+ /** Options for converting SES errors to lambda errors. */
619
+ type type_error_lambda_fromSes_options = Partial<Record<type_error_lambda_fromSes_reason, type_error_lambda_fromSes_override>>;
620
+ /** Wrap an unknown caught value as an SES-domain error for neverthrow flows. */
621
+ declare function error_ses(error: unknown): type_error_ses;
622
+ /** Convert AWS SDK SES errors into a safe lambda error for API responses. */
623
+ declare function error_lambda_fromSes(e: type_error_ses, options?: type_error_lambda_fromSes_options): type_error_lambda;
680
624
  //#endregion
681
625
  //#region node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts
682
626
  // ## Interfaces
@@ -1112,8 +1056,12 @@ declare function readPackageJson(filePath: string): Promise<PackageJson | undefi
1112
1056
  //#region src/utils/cli.d.ts
1113
1057
  declare const colorText: (format: Parameters<typeof styleText>[0], text: unknown) => string;
1114
1058
  //#endregion
1059
+ //#region src/utils/errors.d.ts
1060
+ declare function isRecord(value: unknown): value is Record<string, unknown>;
1061
+ declare function getErrorName(error: unknown): string | undefined;
1062
+ //#endregion
1115
1063
  //#region src/types/safe.d.ts
1116
1064
  type SafeOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
1117
1065
  //#endregion
1118
- export { APIGatewayHandler, ApiEndpoints, ApiErrorBody, ApiInput, ApiOutput, ApiRequestFunction, ApiResponse, ApiSchema, ApiSuccessBody, CleanResponse, DeepOverride, DeepPartial, DeepRequired, ErrorBody, ErrorCode, ErrorRawProxyResultV2, FetchResponse, GetSchemaByPathOptions, HTTPMethod, HTTPMethods, LambdaErrorResponse, OkRawProxyResultV2, RawApiGatewayHandler, RawProxyResultV2, SafeOmit, SuccessCode, Toc, TocEntry, changePassword, colorText, computeSecretHash, confirmForgotPassword, confirmSignup, createApiRequest, deepDiff, error_cognito, error_cognito_auth, error_cognito_codeExpired, error_cognito_codeMismatch, error_cognito_delivery, error_cognito_forbidden, error_cognito_input, error_cognito_internal, error_cognito_notFound, error_cognito_passwordHistory, error_cognito_passwordPolicy, error_cognito_passwordResetRequired, error_cognito_role, error_cognito_tooManyRequests, error_cognito_userExists, error_cognito_userNotFound, error_dynamo, error_lambda_badRequest, error_lambda_conflict, error_lambda_forbidden, error_lambda_fromCognito, error_lambda_fromDynamo, error_lambda_internal, error_lambda_notFound, error_lambda_unauthorized, error_s3_get, error_s3_internal, error_ses, exists, extractAttributes, extractToc, forgotPassword, getByPath, getCognitoClient, getCookies, getObject, getObjectString, getS3, getSchemaByPath, getSignedUrl, getUserDetails, getUserGroups, isSchema, login, logout, objectExists, parseRaw, pruneToShape, readPackageJson, refreshOAuthToken, refreshTokens, resetPassword, response_error, response_ok, response_valibotError, setByPath, signUp, type_error_cognito, type_error_cognito_auth, type_error_cognito_codeExpired, type_error_cognito_codeMismatch, type_error_cognito_delivery, type_error_cognito_forbidden, type_error_cognito_input, type_error_cognito_internal, type_error_cognito_notFound, type_error_cognito_passwordHistory, type_error_cognito_passwordPolicy, type_error_cognito_passwordResetRequired, type_error_cognito_role, type_error_cognito_tooManyRequests, type_error_cognito_userExists, type_error_cognito_userNotFound, type_error_dynamo, type_error_lambda, type_error_lambda_badRequest, type_error_lambda_conflict, type_error_lambda_forbidden, type_error_lambda_internal, type_error_lambda_notFound, type_error_lambda_unauthorized, type_error_response, type_error_s3_get, type_error_s3_internal, type_userResponse, unwrap, verifyOAuthToken, wrapHandler, writeIfDifferent };
1066
+ export { APIGatewayHandler, ApiEndpoints, ApiErrorBody, ApiInput, ApiOutput, ApiRequestFunction, ApiResponse, ApiSchema, ApiSuccessBody, CleanResponse, DeepOverride, DeepPartial, DeepRequired, ErrorBody, ErrorCode, ErrorRawProxyResultV2, FetchResponse, GetSchemaByPathOptions, HTTPMethod, HTTPMethods, LambdaErrorResponse, OkRawProxyResultV2, RawApiGatewayHandler, RawProxyResultV2, SafeOmit, SuccessCode, Toc, TocEntry, changePassword, colorText, computeSecretHash, confirmForgotPassword, confirmSignup, createApiRequest, deepDiff, error_cognito, error_dynamo, error_lambda_badRequest, error_lambda_conflict, error_lambda_forbidden, error_lambda_fromCognito, error_lambda_fromDynamo, error_lambda_fromS3, error_lambda_fromSes, error_lambda_internal, error_lambda_notFound, error_lambda_unauthorized, error_s3, error_ses, exists, extractAttributes, extractToc, forgotPassword, getByPath, getCognitoClient, getCookies, getErrorName, getObject, getObjectString, getS3, getSchemaByPath, getSignedUrl, getUserDetails, getUserGroups, isRecord, isSchema, is_s3_notFound, login, logout, objectExists, parseRaw, pruneToShape, readPackageJson, refreshOAuthToken, refreshTokens, resetPassword, response_error, response_ok, response_valibotError, setByPath, signUp, type_error_cognito, type_error_dynamo, type_error_lambda, type_error_lambda_badRequest, type_error_lambda_conflict, type_error_lambda_forbidden, type_error_lambda_fromCognito_options, type_error_lambda_fromCognito_reason, type_error_lambda_fromDynamo_options, type_error_lambda_fromDynamo_reason, type_error_lambda_fromS3_options, type_error_lambda_fromS3_reason, type_error_lambda_fromSes_options, type_error_lambda_fromSes_reason, type_error_lambda_internal, type_error_lambda_notFound, type_error_lambda_unauthorized, type_error_response, type_error_s3, type_error_ses, type_userResponse, unwrap, verifyOAuthToken, wrapHandler, writeIfDifferent };
1119
1067
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":["Data","Point","line","column","offset","Position","start","end","Literal","Node","value","type","data","position","Parent","children","Data","UnistData","Literal","UnistLiteral","Node","UnistNode","Parent","UnistParent","Properties","Array","PropertyName","ElementContent","ElementContentMap","Comment","Element","Text","comment","element","text","RootContent","RootContentMap","Doctype","doctype","Content","Literals","Nodes","Extract","Root","Parents","data","value","children","CommentData","type","DoctypeData","ElementData","tagName","properties","content","RootData","TextData"],"sources":["../src/lambda/handlerUtils.ts","../src/lambda/client-types.ts","../src/lambda/client.ts","../src/lambda/errors.ts","../src/lambda/response.ts","../src/lambda/server/authentication.ts","../src/cognito/client.ts","../src/cognito/errors.ts","../src/cognito/user.ts","../src/cognito/password.ts","../src/s3/client.ts","../src/s3/errors.ts","../src/s3/signedUrl.ts","../src/s3/object.ts","../src/dynamo/errors.ts","../src/ses/errors.ts","../node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts","../node_modules/.pnpm/@types+hast@3.0.4/node_modules/@types/hast/index.d.ts","../src/rehype/flat-toc.ts","../src/utils/valibot.ts","../src/types/deep.ts","../src/utils/object.ts","../src/utils/fs.ts","../src/utils/cli.ts","../src/types/safe.ts"],"x_google_ignoreList":[16,17],"mappings":";;;;;;;;;;;;;;KAGY,WAAA;AAAA,KACA,SAAA;AAAA,KAEA,SAAA;EAAc,OAAA;EAAiB,KAAA;IAAU,IAAA;IAAc,KAAA;EAAA;AAAA;;;;KAKvD,qBAAA;EACV,UAAA,EAAY,SAAA;EACZ,OAAA;IAAA,CAAa,MAAA;EAAA;EACb,IAAA,GAAO,SAAA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CAAA,EAAG,KAAA,EAAO,EAAA,GAAK,EAAA;;;;;;iBC9GrC,MAAA,CAAO,QAAA,WAAmB,OAAA;;;;;iBAa1B,gBAAA,CAAiB,QAAA,UAAkB,OAAA,WAAkB,OAAA;;;;iBA4BrD,eAAA,CAAgB,QAAA,WAAmB,OAAA,CAAQ,WAAA;;;cChDpD,SAAA,GAAS,MAAA,EAAY,UAAA,QAAkB,SAAA,MAAa,IAAA;;;KCFrD,QAAA,2BAAmC,CAAA,eAAgB,IAAA,CAAK,CAAA,EAAG,CAAA"}
1
+ {"version":3,"file":"index.d.mts","names":["Data","Point","line","column","offset","Position","start","end","Literal","Node","value","type","data","position","Parent","children","Data","UnistData","Literal","UnistLiteral","Node","UnistNode","Parent","UnistParent","Properties","Array","PropertyName","ElementContent","ElementContentMap","Comment","Element","Text","comment","element","text","RootContent","RootContentMap","Doctype","doctype","Content","Literals","Nodes","Extract","Root","Parents","data","value","children","CommentData","type","DoctypeData","ElementData","tagName","properties","content","RootData","TextData"],"sources":["../src/lambda/handlerUtils.ts","../src/lambda/client-types.ts","../src/lambda/client.ts","../src/lambda/errors.ts","../src/lambda/response.ts","../src/lambda/server/authentication.ts","../src/cognito/client.ts","../src/cognito/errors.ts","../src/cognito/user.ts","../src/cognito/password.ts","../src/s3/client.ts","../src/s3/errors.ts","../src/s3/signedUrl.ts","../src/s3/object.ts","../src/dynamo/errors.ts","../src/ses/errors.ts","../node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts","../node_modules/.pnpm/@types+hast@3.0.4/node_modules/@types/hast/index.d.ts","../src/rehype/flat-toc.ts","../src/utils/valibot.ts","../src/types/deep.ts","../src/utils/object.ts","../src/utils/fs.ts","../src/utils/cli.ts","../src/utils/errors.ts","../src/types/safe.ts"],"x_google_ignoreList":[16,17],"mappings":";;;;;;;;;;;;;;;KAGY,WAAA;AAAA,KACA,SAAA;AAAA,KAEA,SAAA;EAAc,OAAA;EAAiB,KAAA;IAAU,IAAA;IA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