@aeriajs/builtins 0.0.95 → 0.0.96

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.
@@ -100,18 +100,19 @@ export declare const user: {
100
100
  };
101
101
  };
102
102
  functions: {
103
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<any>;
104
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
103
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
104
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<{
105
+ readonly _tag: "Result";
106
+ readonly error: undefined;
107
+ readonly result: import("@aeriajs/types").SchemaWithId<any>[];
108
+ }>;
105
109
  readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
106
- readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").EndpointError<{
107
- readonly code: import("@aeriajs/types").ACError.MalformedInput;
108
- readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
109
- } & {
110
- httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
111
- }> | {
112
- tempId: any;
110
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
111
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
112
+ readonly _tag: "Result";
113
+ readonly error: undefined;
114
+ readonly result: any;
113
115
  }>;
114
- readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
115
116
  readonly insert: (payload: {
116
117
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
117
118
  readonly $id: "user";
@@ -517,131 +518,135 @@ export declare const user: {
517
518
  };
518
519
  };
519
520
  };
520
- }>) => Promise<{
521
- user: Pick<import("@aeriajs/types").SchemaWithId<{
522
- readonly $id: "user";
523
- readonly required: readonly ["name", "roles", "email"];
524
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
525
- readonly indexes: readonly ["name"];
526
- readonly freshItem: {
527
- readonly active: true;
528
- };
529
- readonly properties: {
530
- readonly name: {
531
- readonly type: "string";
532
- };
533
- readonly given_name: {
534
- readonly getter: (document: any) => string;
535
- };
536
- readonly family_name: {
537
- readonly getter: (document: any) => string;
538
- };
539
- readonly active: {
540
- readonly type: "boolean";
541
- };
542
- readonly roles: {
543
- readonly type: "array";
544
- readonly items: {
521
+ }>) => Promise<import("../../../../types/dist/result.js").Result.Error<{
522
+ readonly code: import("@aeriajs/types").ACError.AuthorizationError;
523
+ } & {
524
+ httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
525
+ }> | {
526
+ readonly _tag: "Result";
527
+ readonly error: undefined;
528
+ readonly result: {
529
+ user: Pick<import("@aeriajs/types").SchemaWithId<{
530
+ readonly $id: "user";
531
+ readonly required: readonly ["name", "roles", "email"];
532
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
533
+ readonly indexes: readonly ["name"];
534
+ readonly freshItem: {
535
+ readonly active: true;
536
+ };
537
+ readonly properties: {
538
+ readonly name: {
545
539
  readonly type: "string";
546
540
  };
547
- readonly uniqueItems: true;
548
- };
549
- readonly email: {
550
- readonly type: "string";
551
- readonly inputType: "email";
552
- readonly unique: true;
553
- };
554
- readonly password: {
555
- readonly type: "string";
556
- readonly inputType: "password";
557
- readonly hidden: true;
558
- };
559
- readonly phone_number: {
560
- readonly type: "string";
561
- readonly mask: "(##) #####-####";
562
- };
563
- readonly picture_file: {
564
- readonly $ref: "file";
565
- readonly accept: readonly ["image/*"];
566
- };
567
- readonly picture: {
568
- readonly getter: (value: any) => any;
569
- };
570
- readonly group: {
571
- readonly type: "string";
541
+ readonly given_name: {
542
+ readonly getter: (document: any) => string;
543
+ };
544
+ readonly family_name: {
545
+ readonly getter: (document: any) => string;
546
+ };
547
+ readonly active: {
548
+ readonly type: "boolean";
549
+ };
550
+ readonly roles: {
551
+ readonly type: "array";
552
+ readonly items: {
553
+ readonly type: "string";
554
+ };
555
+ readonly uniqueItems: true;
556
+ };
557
+ readonly email: {
558
+ readonly type: "string";
559
+ readonly inputType: "email";
560
+ readonly unique: true;
561
+ };
562
+ readonly password: {
563
+ readonly type: "string";
564
+ readonly inputType: "password";
565
+ readonly hidden: true;
566
+ };
567
+ readonly phone_number: {
568
+ readonly type: "string";
569
+ readonly mask: "(##) #####-####";
570
+ };
571
+ readonly picture_file: {
572
+ readonly $ref: "file";
573
+ readonly accept: readonly ["image/*"];
574
+ };
575
+ readonly picture: {
576
+ readonly getter: (value: any) => any;
577
+ };
578
+ readonly group: {
579
+ readonly type: "string";
580
+ };
581
+ readonly self_registered: {
582
+ readonly type: "boolean";
583
+ readonly readOnly: true;
584
+ };
585
+ readonly updated_at: {
586
+ readonly type: "string";
587
+ readonly format: "date-time";
588
+ };
572
589
  };
573
- readonly self_registered: {
574
- readonly type: "boolean";
575
- readonly readOnly: true;
590
+ readonly presets: readonly ["crud", "view", "duplicate"];
591
+ readonly layout: {
592
+ readonly name: "grid";
593
+ readonly options: {
594
+ readonly title: "name";
595
+ readonly badge: "roles";
596
+ readonly picture: "picture_file";
597
+ readonly information: "email";
598
+ readonly active: "active";
599
+ };
576
600
  };
577
- readonly updated_at: {
578
- readonly type: "string";
579
- readonly format: "date-time";
601
+ readonly individualActions: {
602
+ readonly 'ui:spawnEdit': {
603
+ readonly label: "action.edit";
604
+ readonly icon: "pencil";
605
+ readonly translate: true;
606
+ };
607
+ readonly 'route:/dashboard/user/changepass': {
608
+ readonly label: "change_password";
609
+ readonly icon: "key";
610
+ readonly fetchItem: true;
611
+ readonly translate: true;
612
+ };
580
613
  };
581
- };
582
- readonly presets: readonly ["crud", "view", "duplicate"];
583
- readonly layout: {
584
- readonly name: "grid";
585
- readonly options: {
586
- readonly title: "name";
587
- readonly badge: "roles";
588
- readonly picture: "picture_file";
589
- readonly information: "email";
590
- readonly active: "active";
614
+ readonly icon: "users";
615
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
616
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
617
+ readonly tableMeta: readonly ["email"];
618
+ readonly formLayout: {
619
+ readonly fields: {
620
+ readonly given_name: {
621
+ readonly span: 3;
622
+ };
623
+ readonly family_name: {
624
+ readonly span: 3;
625
+ };
626
+ };
591
627
  };
628
+ }>, "name" | "roles" | "email" | "active"> & {
629
+ _id: import("@aeriajs/core").ObjectId | null;
592
630
  };
593
- readonly individualActions: {
594
- readonly 'ui:spawnEdit': {
595
- readonly label: "action.edit";
596
- readonly icon: "pencil";
597
- readonly translate: true;
598
- };
599
- readonly 'route:/dashboard/user/changepass': {
600
- readonly label: "change_password";
601
- readonly icon: "key";
602
- readonly fetchItem: true;
603
- readonly translate: true;
604
- };
631
+ token: import("@aeriajs/types").TokenRecipient;
632
+ } | {
633
+ user: {
634
+ _id: null;
635
+ name: string;
636
+ email: string;
637
+ roles: string[];
638
+ active: boolean;
605
639
  };
606
- readonly icon: "users";
607
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
608
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
609
- readonly tableMeta: readonly ["email"];
610
- readonly formLayout: {
611
- readonly fields: {
612
- readonly given_name: {
613
- readonly span: 3;
614
- };
615
- readonly family_name: {
616
- readonly span: 3;
617
- };
618
- };
640
+ token: {
641
+ type: string;
642
+ content: string;
619
643
  };
620
- }>, "name" | "roles" | "email" | "active"> & {
621
- _id: import("@aeriajs/core").ObjectId | null;
622
644
  };
623
- token: import("@aeriajs/types").TokenRecipient;
624
- } | import("@aeriajs/types").EndpointError<{
625
- readonly code: import("@aeriajs/types").ACError.AuthorizationError;
626
- } & {
627
- httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
628
- }> | {
629
- user: {
630
- _id: null;
631
- name: string;
632
- email: string;
633
- roles: string[];
634
- active: boolean;
635
- };
636
- token: {
637
- type: string;
638
- content: string;
639
- };
640
- } | import("@aeriajs/types").EndpointError<{
645
+ } | import("../../../../types/dist/result.js").Result.Error<{
641
646
  readonly code: import("./authenticate.js").AuthenticationError.InvalidCredentials;
642
647
  } & {
643
648
  httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
644
- }> | import("@aeriajs/types").EndpointError<{
649
+ }> | import("../../../../types/dist/result.js").Result.Error<{
645
650
  readonly code: import("./authenticate.js").AuthenticationError.InactiveUser;
646
651
  } & {
647
652
  httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
@@ -747,15 +752,15 @@ export declare const user: {
747
752
  };
748
753
  };
749
754
  };
750
- }>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").EndpointError<{
755
+ }>) => Promise<import("@aeriajs/types").GenericResponse | import("../../../../types/dist/result.js").Result.Error<{
751
756
  readonly code: import("./activate.js").ActivationError.InvalidLink;
752
757
  } & {
753
758
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
754
- }> | import("@aeriajs/types").EndpointError<{
759
+ }> | import("../../../../types/dist/result.js").Result.Error<{
755
760
  readonly code: import("./activate.js").ActivationError.UserNotFound;
756
761
  } & {
757
762
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
758
- }> | import("@aeriajs/types").EndpointError<{
763
+ }> | import("../../../../types/dist/result.js").Result.Error<{
759
764
  readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
760
765
  } & {
761
766
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
@@ -1197,15 +1202,15 @@ export declare const user: {
1197
1202
  };
1198
1203
  };
1199
1204
  };
1200
- }>) => Promise<import("@aeriajs/types").EndpointError<{
1205
+ }>) => Promise<import("../../../../types/dist/result.js").Result.Error<{
1201
1206
  readonly code: import("./getInfo.js").ActivationError.InvalidLink;
1202
1207
  } & {
1203
1208
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
1204
- }> | import("@aeriajs/types").EndpointError<{
1209
+ }> | import("../../../../types/dist/result.js").Result.Error<{
1205
1210
  readonly code: import("./getInfo.js").ActivationError.UserNotFound;
1206
1211
  } & {
1207
1212
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
1208
- }> | import("@aeriajs/types").EndpointError<{
1213
+ }> | import("../../../../types/dist/result.js").Result.Error<{
1209
1214
  readonly code: import("./getInfo.js").ActivationError.AlreadyActiveUser;
1210
1215
  } & {
1211
1216
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
@@ -1624,18 +1629,19 @@ export declare const user: {
1624
1629
  };
1625
1630
  };
1626
1631
  functions: {
1627
- readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<any>;
1628
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<any>[]>;
1632
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetOptions | undefined) => Promise<import("@aeriajs/types").GetReturnType<any>>;
1633
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<import("@aeriajs/types").Description>> | undefined, context: import("@aeriajs/types").StrictContext<any>, options?: import("@aeriajs/core").GetAllOptions | undefined) => Promise<{
1634
+ readonly _tag: "Result";
1635
+ readonly error: undefined;
1636
+ readonly result: import("@aeriajs/types").SchemaWithId<any>[];
1637
+ }>;
1629
1638
  readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<any>>, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
1630
- readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<import("@aeriajs/types").EndpointError<{
1631
- readonly code: import("@aeriajs/types").ACError.MalformedInput;
1632
- readonly details: import("@aeriajs/types").ValidationError | import("@aeriajs/types").PropertyValidationError;
1633
- } & {
1634
- httpStatus: import("@aeriajs/types").HTTPStatus.BadRequest;
1635
- }> | {
1636
- tempId: any;
1639
+ readonly upload: (_props: unknown, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
1640
+ readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<{
1641
+ readonly _tag: "Result";
1642
+ readonly error: undefined;
1643
+ readonly result: any;
1637
1644
  }>;
1638
- readonly removeFile: (payload: import("@aeriajs/types").RemoveFilePayload, context: import("@aeriajs/types").StrictContext<any>) => Promise<any>;
1639
1645
  readonly insert: (payload: {
1640
1646
  what: Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
1641
1647
  readonly $id: "user";
@@ -2041,131 +2047,135 @@ export declare const user: {
2041
2047
  };
2042
2048
  };
2043
2049
  };
2044
- }>) => Promise<{
2045
- user: Pick<import("@aeriajs/types").SchemaWithId<{
2046
- readonly $id: "user";
2047
- readonly required: readonly ["name", "roles", "email"];
2048
- readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2049
- readonly indexes: readonly ["name"];
2050
- readonly freshItem: {
2051
- readonly active: true;
2052
- };
2053
- readonly properties: {
2054
- readonly name: {
2055
- readonly type: "string";
2056
- };
2057
- readonly given_name: {
2058
- readonly getter: (document: any) => string;
2059
- };
2060
- readonly family_name: {
2061
- readonly getter: (document: any) => string;
2062
- };
2063
- readonly active: {
2064
- readonly type: "boolean";
2065
- };
2066
- readonly roles: {
2067
- readonly type: "array";
2068
- readonly items: {
2050
+ }>) => Promise<import("../../../../types/dist/result.js").Result.Error<{
2051
+ readonly code: import("@aeriajs/types").ACError.AuthorizationError;
2052
+ } & {
2053
+ httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
2054
+ }> | {
2055
+ readonly _tag: "Result";
2056
+ readonly error: undefined;
2057
+ readonly result: {
2058
+ user: Pick<import("@aeriajs/types").SchemaWithId<{
2059
+ readonly $id: "user";
2060
+ readonly required: readonly ["name", "roles", "email"];
2061
+ readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
2062
+ readonly indexes: readonly ["name"];
2063
+ readonly freshItem: {
2064
+ readonly active: true;
2065
+ };
2066
+ readonly properties: {
2067
+ readonly name: {
2069
2068
  readonly type: "string";
2070
2069
  };
2071
- readonly uniqueItems: true;
2072
- };
2073
- readonly email: {
2074
- readonly type: "string";
2075
- readonly inputType: "email";
2076
- readonly unique: true;
2077
- };
2078
- readonly password: {
2079
- readonly type: "string";
2080
- readonly inputType: "password";
2081
- readonly hidden: true;
2082
- };
2083
- readonly phone_number: {
2084
- readonly type: "string";
2085
- readonly mask: "(##) #####-####";
2086
- };
2087
- readonly picture_file: {
2088
- readonly $ref: "file";
2089
- readonly accept: readonly ["image/*"];
2090
- };
2091
- readonly picture: {
2092
- readonly getter: (value: any) => any;
2093
- };
2094
- readonly group: {
2095
- readonly type: "string";
2070
+ readonly given_name: {
2071
+ readonly getter: (document: any) => string;
2072
+ };
2073
+ readonly family_name: {
2074
+ readonly getter: (document: any) => string;
2075
+ };
2076
+ readonly active: {
2077
+ readonly type: "boolean";
2078
+ };
2079
+ readonly roles: {
2080
+ readonly type: "array";
2081
+ readonly items: {
2082
+ readonly type: "string";
2083
+ };
2084
+ readonly uniqueItems: true;
2085
+ };
2086
+ readonly email: {
2087
+ readonly type: "string";
2088
+ readonly inputType: "email";
2089
+ readonly unique: true;
2090
+ };
2091
+ readonly password: {
2092
+ readonly type: "string";
2093
+ readonly inputType: "password";
2094
+ readonly hidden: true;
2095
+ };
2096
+ readonly phone_number: {
2097
+ readonly type: "string";
2098
+ readonly mask: "(##) #####-####";
2099
+ };
2100
+ readonly picture_file: {
2101
+ readonly $ref: "file";
2102
+ readonly accept: readonly ["image/*"];
2103
+ };
2104
+ readonly picture: {
2105
+ readonly getter: (value: any) => any;
2106
+ };
2107
+ readonly group: {
2108
+ readonly type: "string";
2109
+ };
2110
+ readonly self_registered: {
2111
+ readonly type: "boolean";
2112
+ readonly readOnly: true;
2113
+ };
2114
+ readonly updated_at: {
2115
+ readonly type: "string";
2116
+ readonly format: "date-time";
2117
+ };
2096
2118
  };
2097
- readonly self_registered: {
2098
- readonly type: "boolean";
2099
- readonly readOnly: true;
2119
+ readonly presets: readonly ["crud", "view", "duplicate"];
2120
+ readonly layout: {
2121
+ readonly name: "grid";
2122
+ readonly options: {
2123
+ readonly title: "name";
2124
+ readonly badge: "roles";
2125
+ readonly picture: "picture_file";
2126
+ readonly information: "email";
2127
+ readonly active: "active";
2128
+ };
2100
2129
  };
2101
- readonly updated_at: {
2102
- readonly type: "string";
2103
- readonly format: "date-time";
2130
+ readonly individualActions: {
2131
+ readonly 'ui:spawnEdit': {
2132
+ readonly label: "action.edit";
2133
+ readonly icon: "pencil";
2134
+ readonly translate: true;
2135
+ };
2136
+ readonly 'route:/dashboard/user/changepass': {
2137
+ readonly label: "change_password";
2138
+ readonly icon: "key";
2139
+ readonly fetchItem: true;
2140
+ readonly translate: true;
2141
+ };
2104
2142
  };
2105
- };
2106
- readonly presets: readonly ["crud", "view", "duplicate"];
2107
- readonly layout: {
2108
- readonly name: "grid";
2109
- readonly options: {
2110
- readonly title: "name";
2111
- readonly badge: "roles";
2112
- readonly picture: "picture_file";
2113
- readonly information: "email";
2114
- readonly active: "active";
2143
+ readonly icon: "users";
2144
+ readonly filters: readonly ["name", "roles", "email", "phone_number"];
2145
+ readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2146
+ readonly tableMeta: readonly ["email"];
2147
+ readonly formLayout: {
2148
+ readonly fields: {
2149
+ readonly given_name: {
2150
+ readonly span: 3;
2151
+ };
2152
+ readonly family_name: {
2153
+ readonly span: 3;
2154
+ };
2155
+ };
2115
2156
  };
2157
+ }>, "name" | "roles" | "email" | "active"> & {
2158
+ _id: import("@aeriajs/core").ObjectId | null;
2116
2159
  };
2117
- readonly individualActions: {
2118
- readonly 'ui:spawnEdit': {
2119
- readonly label: "action.edit";
2120
- readonly icon: "pencil";
2121
- readonly translate: true;
2122
- };
2123
- readonly 'route:/dashboard/user/changepass': {
2124
- readonly label: "change_password";
2125
- readonly icon: "key";
2126
- readonly fetchItem: true;
2127
- readonly translate: true;
2128
- };
2160
+ token: import("@aeriajs/types").TokenRecipient;
2161
+ } | {
2162
+ user: {
2163
+ _id: null;
2164
+ name: string;
2165
+ email: string;
2166
+ roles: string[];
2167
+ active: boolean;
2129
2168
  };
2130
- readonly icon: "users";
2131
- readonly filters: readonly ["name", "roles", "email", "phone_number"];
2132
- readonly table: readonly ["name", "roles", "picture_file", "active", "updated_at"];
2133
- readonly tableMeta: readonly ["email"];
2134
- readonly formLayout: {
2135
- readonly fields: {
2136
- readonly given_name: {
2137
- readonly span: 3;
2138
- };
2139
- readonly family_name: {
2140
- readonly span: 3;
2141
- };
2142
- };
2169
+ token: {
2170
+ type: string;
2171
+ content: string;
2143
2172
  };
2144
- }>, "name" | "roles" | "email" | "active"> & {
2145
- _id: import("@aeriajs/core").ObjectId | null;
2146
2173
  };
2147
- token: import("@aeriajs/types").TokenRecipient;
2148
- } | import("@aeriajs/types").EndpointError<{
2149
- readonly code: import("@aeriajs/types").ACError.AuthorizationError;
2150
- } & {
2151
- httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
2152
- }> | {
2153
- user: {
2154
- _id: null;
2155
- name: string;
2156
- email: string;
2157
- roles: string[];
2158
- active: boolean;
2159
- };
2160
- token: {
2161
- type: string;
2162
- content: string;
2163
- };
2164
- } | import("@aeriajs/types").EndpointError<{
2174
+ } | import("../../../../types/dist/result.js").Result.Error<{
2165
2175
  readonly code: import("./authenticate.js").AuthenticationError.InvalidCredentials;
2166
2176
  } & {
2167
2177
  httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
2168
- }> | import("@aeriajs/types").EndpointError<{
2178
+ }> | import("../../../../types/dist/result.js").Result.Error<{
2169
2179
  readonly code: import("./authenticate.js").AuthenticationError.InactiveUser;
2170
2180
  } & {
2171
2181
  httpStatus: import("@aeriajs/types").HTTPStatus.Unauthorized;
@@ -2271,15 +2281,15 @@ export declare const user: {
2271
2281
  };
2272
2282
  };
2273
2283
  };
2274
- }>) => Promise<import("@aeriajs/types").GenericResponse | import("@aeriajs/types").EndpointError<{
2284
+ }>) => Promise<import("@aeriajs/types").GenericResponse | import("../../../../types/dist/result.js").Result.Error<{
2275
2285
  readonly code: import("./activate.js").ActivationError.InvalidLink;
2276
2286
  } & {
2277
2287
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
2278
- }> | import("@aeriajs/types").EndpointError<{
2288
+ }> | import("../../../../types/dist/result.js").Result.Error<{
2279
2289
  readonly code: import("./activate.js").ActivationError.UserNotFound;
2280
2290
  } & {
2281
2291
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
2282
- }> | import("@aeriajs/types").EndpointError<{
2292
+ }> | import("../../../../types/dist/result.js").Result.Error<{
2283
2293
  readonly code: import("./activate.js").ActivationError.AlreadyActiveUser;
2284
2294
  } & {
2285
2295
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;
@@ -2721,15 +2731,15 @@ export declare const user: {
2721
2731
  };
2722
2732
  };
2723
2733
  };
2724
- }>) => Promise<import("@aeriajs/types").EndpointError<{
2734
+ }>) => Promise<import("../../../../types/dist/result.js").Result.Error<{
2725
2735
  readonly code: import("./getInfo.js").ActivationError.InvalidLink;
2726
2736
  } & {
2727
2737
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
2728
- }> | import("@aeriajs/types").EndpointError<{
2738
+ }> | import("../../../../types/dist/result.js").Result.Error<{
2729
2739
  readonly code: import("./getInfo.js").ActivationError.UserNotFound;
2730
2740
  } & {
2731
2741
  httpStatus: import("@aeriajs/types").HTTPStatus.NotFound;
2732
- }> | import("@aeriajs/types").EndpointError<{
2742
+ }> | import("../../../../types/dist/result.js").Result.Error<{
2733
2743
  readonly code: import("./getInfo.js").ActivationError.AlreadyActiveUser;
2734
2744
  } & {
2735
2745
  httpStatus: import("@aeriajs/types").HTTPStatus.Forbidden;