@vritti/api-sdk 0.4.7 → 0.4.9
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/auth.cjs +70 -4
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +16 -1
- package/dist/auth.d.ts +16 -1
- package/dist/auth.js +70 -4
- package/dist/auth.js.map +1 -1
- package/dist/bad-request.exception-D-KmhiXQ.d.cts +18 -0
- package/dist/bad-request.exception-Db94kZxY.d.ts +18 -0
- package/dist/data-table.cjs +3 -4
- package/dist/data-table.cjs.map +1 -1
- package/dist/data-table.js +3 -4
- package/dist/data-table.js.map +1 -1
- package/dist/database.cjs +11 -2
- package/dist/database.cjs.map +1 -1
- package/dist/database.d.cts +1 -0
- package/dist/database.d.ts +1 -0
- package/dist/database.js +26 -17
- package/dist/database.js.map +1 -1
- package/dist/decimal.d.cts +1 -0
- package/dist/decimal.d.ts +1 -0
- package/dist/exceptions.d.cts +4 -17
- package/dist/exceptions.d.ts +4 -17
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/mcp.cjs +814 -0
- package/dist/mcp.cjs.map +1 -0
- package/dist/mcp.d.cts +135 -0
- package/dist/mcp.d.ts +135 -0
- package/dist/mcp.js +771 -0
- package/dist/mcp.js.map +1 -0
- package/dist/root.cjs +1 -0
- package/dist/root.cjs.map +1 -1
- package/dist/root.js +1 -0
- package/dist/root.js.map +1 -1
- package/dist/zod.cjs +25 -0
- package/dist/zod.cjs.map +1 -0
- package/dist/zod.d.cts +1 -0
- package/dist/zod.d.ts +1 -0
- package/dist/zod.js +3 -0
- package/dist/zod.js.map +1 -0
- package/package.json +24 -2
package/dist/decimal.d.cts
CHANGED
package/dist/decimal.d.ts
CHANGED
package/dist/exceptions.d.cts
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface ProblemOptions {
|
|
5
|
-
type?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
detail?: string;
|
|
8
|
-
errors?: FieldError[];
|
|
9
|
-
}
|
|
10
|
-
declare abstract class HttpProblemException extends HttpException {
|
|
11
|
-
constructor(detailOrOptions: string | ProblemOptions, httpStatus: HttpStatus);
|
|
12
|
-
}
|
|
1
|
+
import { H as HttpProblemException, P as ProblemOptions, B as BadRequestException } from './bad-request.exception-D-KmhiXQ.cjs';
|
|
2
|
+
export { FieldError } from './types.cjs';
|
|
3
|
+
import '@nestjs/common';
|
|
13
4
|
|
|
14
5
|
declare class BadGatewayException extends HttpProblemException {
|
|
15
6
|
constructor(detailOrOptions?: string | ProblemOptions);
|
|
16
7
|
}
|
|
17
8
|
|
|
18
|
-
declare class BadRequestException extends HttpProblemException {
|
|
19
|
-
constructor(detailOrOptions?: string | ProblemOptions);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
9
|
declare class ConflictException extends HttpProblemException {
|
|
23
10
|
constructor(detailOrOptions?: string | ProblemOptions);
|
|
24
11
|
}
|
|
@@ -87,4 +74,4 @@ declare class ValidationException extends HttpProblemException {
|
|
|
87
74
|
constructor(detailOrOptions?: string | ProblemOptions);
|
|
88
75
|
}
|
|
89
76
|
|
|
90
|
-
export { BadGatewayException, BadRequestException, ConflictException,
|
|
77
|
+
export { BadGatewayException, BadRequestException, ConflictException, ForbiddenException, GoneException, HttpProblemException, InternalServerErrorException, InvalidCursorException, MethodNotAllowedException, NotAcceptableException, NotFoundException, NotImplementedException, PayloadTooLargeException, ProblemOptions, RequestTimeoutException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, UnprocessableEntityException, UnsupportedMediaTypeException, ValidationException };
|
package/dist/exceptions.d.ts
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface ProblemOptions {
|
|
5
|
-
type?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
detail?: string;
|
|
8
|
-
errors?: FieldError[];
|
|
9
|
-
}
|
|
10
|
-
declare abstract class HttpProblemException extends HttpException {
|
|
11
|
-
constructor(detailOrOptions: string | ProblemOptions, httpStatus: HttpStatus);
|
|
12
|
-
}
|
|
1
|
+
import { H as HttpProblemException, P as ProblemOptions, B as BadRequestException } from './bad-request.exception-Db94kZxY.js';
|
|
2
|
+
export { FieldError } from './types.js';
|
|
3
|
+
import '@nestjs/common';
|
|
13
4
|
|
|
14
5
|
declare class BadGatewayException extends HttpProblemException {
|
|
15
6
|
constructor(detailOrOptions?: string | ProblemOptions);
|
|
16
7
|
}
|
|
17
8
|
|
|
18
|
-
declare class BadRequestException extends HttpProblemException {
|
|
19
|
-
constructor(detailOrOptions?: string | ProblemOptions);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
9
|
declare class ConflictException extends HttpProblemException {
|
|
23
10
|
constructor(detailOrOptions?: string | ProblemOptions);
|
|
24
11
|
}
|
|
@@ -87,4 +74,4 @@ declare class ValidationException extends HttpProblemException {
|
|
|
87
74
|
constructor(detailOrOptions?: string | ProblemOptions);
|
|
88
75
|
}
|
|
89
76
|
|
|
90
|
-
export { BadGatewayException, BadRequestException, ConflictException,
|
|
77
|
+
export { BadGatewayException, BadRequestException, ConflictException, ForbiddenException, GoneException, HttpProblemException, InternalServerErrorException, InvalidCursorException, MethodNotAllowedException, NotAcceptableException, NotFoundException, NotImplementedException, PayloadTooLargeException, ProblemOptions, RequestTimeoutException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, UnprocessableEntityException, UnsupportedMediaTypeException, ValidationException };
|
package/dist/index.d.cts
CHANGED
|
@@ -62,12 +62,17 @@ interface CookieConfig {
|
|
|
62
62
|
refreshCookieSameSite: 'strict' | 'lax' | 'none';
|
|
63
63
|
refreshCookieDomain?: string;
|
|
64
64
|
}
|
|
65
|
+
interface OAuthChallengeConfig {
|
|
66
|
+
realm?: string;
|
|
67
|
+
resourceMetadataUrl?: string;
|
|
68
|
+
}
|
|
65
69
|
interface GuardConfig {
|
|
66
70
|
authHeaderName: string;
|
|
67
71
|
tokenPrefix: string;
|
|
68
72
|
csrfExemptSessionTypes?: string[];
|
|
69
73
|
csrfExemptTransports?: string[];
|
|
70
74
|
refreshTokenBindingExemptSessionTypes?: string[];
|
|
75
|
+
oauth?: OAuthChallengeConfig;
|
|
71
76
|
onAuthenticated?: OnAuthenticatedCallback;
|
|
72
77
|
}
|
|
73
78
|
interface AuthConfig {
|
|
@@ -141,7 +146,16 @@ declare module 'fastify' {
|
|
|
141
146
|
interface VrittiCloudAuth extends VrittiAuthBase {
|
|
142
147
|
kind: 'cloud';
|
|
143
148
|
}
|
|
144
|
-
|
|
149
|
+
interface VrittiOAuthAuth extends VrittiAuthBase {
|
|
150
|
+
kind: 'oauth';
|
|
151
|
+
token: string;
|
|
152
|
+
userId?: string;
|
|
153
|
+
grantId?: string;
|
|
154
|
+
clientId?: string;
|
|
155
|
+
scopes?: string[];
|
|
156
|
+
organizationId?: string;
|
|
157
|
+
}
|
|
158
|
+
type VrittiAuth = VrittiSessionAuth | VrittiAppAuth | VrittiCloudAuth | VrittiOAuthAuth;
|
|
145
159
|
interface FastifyRequest {
|
|
146
160
|
auth?: VrittiAuth;
|
|
147
161
|
authConfig?: AuthConfig;
|
|
@@ -149,4 +163,4 @@ declare module 'fastify' {
|
|
|
149
163
|
}
|
|
150
164
|
}
|
|
151
165
|
|
|
152
|
-
export { type AuthConfig as A, type CookieConfig as C, type DecodedAccessToken as D, type GuardConfig as G, type
|
|
166
|
+
export { type AuthConfig as A, type CookieConfig as C, type DecodedAccessToken as D, type GuardConfig as G, type OAuthChallengeConfig as O, RequestService as R, type TokenExpiry as T, TokenType as a, type DecodedRefreshToken as b, AUTH_CONFIG as c, AUTH_CONFIG_DEFAULTS as d, type AccessTokenPayload as e, type CookieSerializeOptions as f, type OnAuthenticatedCallback as g, type RefreshTokenPayload as h, type TokenExpiryString as i };
|
package/dist/index.d.ts
CHANGED
|
@@ -62,12 +62,17 @@ interface CookieConfig {
|
|
|
62
62
|
refreshCookieSameSite: 'strict' | 'lax' | 'none';
|
|
63
63
|
refreshCookieDomain?: string;
|
|
64
64
|
}
|
|
65
|
+
interface OAuthChallengeConfig {
|
|
66
|
+
realm?: string;
|
|
67
|
+
resourceMetadataUrl?: string;
|
|
68
|
+
}
|
|
65
69
|
interface GuardConfig {
|
|
66
70
|
authHeaderName: string;
|
|
67
71
|
tokenPrefix: string;
|
|
68
72
|
csrfExemptSessionTypes?: string[];
|
|
69
73
|
csrfExemptTransports?: string[];
|
|
70
74
|
refreshTokenBindingExemptSessionTypes?: string[];
|
|
75
|
+
oauth?: OAuthChallengeConfig;
|
|
71
76
|
onAuthenticated?: OnAuthenticatedCallback;
|
|
72
77
|
}
|
|
73
78
|
interface AuthConfig {
|
|
@@ -141,7 +146,16 @@ declare module 'fastify' {
|
|
|
141
146
|
interface VrittiCloudAuth extends VrittiAuthBase {
|
|
142
147
|
kind: 'cloud';
|
|
143
148
|
}
|
|
144
|
-
|
|
149
|
+
interface VrittiOAuthAuth extends VrittiAuthBase {
|
|
150
|
+
kind: 'oauth';
|
|
151
|
+
token: string;
|
|
152
|
+
userId?: string;
|
|
153
|
+
grantId?: string;
|
|
154
|
+
clientId?: string;
|
|
155
|
+
scopes?: string[];
|
|
156
|
+
organizationId?: string;
|
|
157
|
+
}
|
|
158
|
+
type VrittiAuth = VrittiSessionAuth | VrittiAppAuth | VrittiCloudAuth | VrittiOAuthAuth;
|
|
145
159
|
interface FastifyRequest {
|
|
146
160
|
auth?: VrittiAuth;
|
|
147
161
|
authConfig?: AuthConfig;
|
|
@@ -149,4 +163,4 @@ declare module 'fastify' {
|
|
|
149
163
|
}
|
|
150
164
|
}
|
|
151
165
|
|
|
152
|
-
export { type AuthConfig as A, type CookieConfig as C, type DecodedAccessToken as D, type GuardConfig as G, type
|
|
166
|
+
export { type AuthConfig as A, type CookieConfig as C, type DecodedAccessToken as D, type GuardConfig as G, type OAuthChallengeConfig as O, RequestService as R, type TokenExpiry as T, TokenType as a, type DecodedRefreshToken as b, AUTH_CONFIG as c, AUTH_CONFIG_DEFAULTS as d, type AccessTokenPayload as e, type CookieSerializeOptions as f, type OnAuthenticatedCallback as g, type RefreshTokenPayload as h, type TokenExpiryString as i };
|