@marcoappio/marco-config 11.0.2 → 11.0.4
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/constants/index.d.ts +5 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/tasks.d.ts +6 -0
- package/dist/constants/tasks.d.ts.map +1 -0
- package/dist/constants/tasks.js +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/id.d.ts +10 -0
- package/dist/schemas/id.d.ts.map +1 -1
- package/dist/schemas/id.js +2 -0
- package/dist/schemas/index.d.ts +91 -3
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +4 -1
- package/dist/schemas/models/index.d.ts +1 -0
- package/dist/schemas/models/index.d.ts.map +1 -1
- package/dist/schemas/models/index.js +1 -0
- package/dist/schemas/models/task.d.ts +44 -0
- package/dist/schemas/models/task.d.ts.map +1 -0
- package/dist/schemas/models/task.js +38 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts +41 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +49 -0
- package/dist/schemas/websocket.d.ts +2 -2
- package/dist/sdk/endpoints/index.d.ts +32 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/index.js +2 -0
- package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts +28 -0
- package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/task/getTaskNotes.js +17 -0
- package/dist/sdk/endpoints/private/models/task/getTasks.d.ts +52 -0
- package/dist/sdk/endpoints/private/models/task/getTasks.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/task/getTasks.js +23 -0
- package/dist/sdk/endpoints/private/models/task/index.d.ts +3 -0
- package/dist/sdk/endpoints/private/models/task/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/task/index.js +2 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/index.js +2 -0
- package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/createNote.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts +54 -0
- package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/createTask.js +20 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts +37 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteNote.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts +37 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/deleteTask.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/index.d.ts +8 -0
- package/dist/sdk/endpoints/private/mutations/task/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/index.js +7 -0
- package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts +38 -0
- package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/setCompleted.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts +38 -0
- package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/updateNote.js +19 -0
- package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/task/updateTask.js +19 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts +5 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.js +1 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts +5 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +30 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.js +2 -0
- package/dist/sdk/endpoints/public/auth/revokeSession.d.ts +27 -0
- package/dist/sdk/endpoints/public/auth/revokeSession.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/revokeSession.js +19 -0
- package/dist/sdk/endpoints/public/index.d.ts +30 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +44 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +24 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +10 -0
- package/dist/sdk/validation/index.d.ts +12 -0
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/types/PokeEvent.d.ts +1 -1
- package/dist/types/PokeEvent.d.ts.map +1 -1
- package/dist/types/PokeEvent.js +1 -1
- package/dist/types/SDKError.d.ts +1 -1
- package/dist/types/SDKError.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const setCompleted: import("../../../../..").EndpointConfig<"/v1/pv/models/task/:taskId/set-completed", v.ObjectSchema<{
|
|
3
|
+
readonly completed: v.BooleanSchema<undefined>;
|
|
4
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
5
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
+
readonly data: v.ObjectSchema<{
|
|
7
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
10
|
+
}, undefined>, v.ObjectSchema<{
|
|
11
|
+
readonly data: v.ObjectSchema<{
|
|
12
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
15
|
+
}, undefined>, v.ObjectSchema<{
|
|
16
|
+
readonly data: v.ObjectSchema<{
|
|
17
|
+
readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly data: v.ObjectSchema<{
|
|
22
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
25
|
+
}, undefined>, v.ObjectSchema<{
|
|
26
|
+
readonly data: v.ObjectSchema<{
|
|
27
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
28
|
+
readonly issues: v.ObjectSchema<{
|
|
29
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
30
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
31
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
35
|
+
}, undefined>, v.ObjectSchema<{
|
|
36
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
37
|
+
}, undefined>], undefined>>;
|
|
38
|
+
//# sourceMappingURL=setCompleted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setCompleted.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/setCompleted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcvB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, mutationRejectedErrorSchema, taskNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const setCompleted = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.task.setCompleted,
|
|
7
|
+
method: 'PATCH',
|
|
8
|
+
path: '/v1/pv/models/task/:taskId/set-completed',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
taskNotFoundErrorSchema,
|
|
13
|
+
mutationRejectedErrorSchema,
|
|
14
|
+
validationFailedErrorSchema,
|
|
15
|
+
v.object({
|
|
16
|
+
status: v.literal(200),
|
|
17
|
+
}),
|
|
18
|
+
]),
|
|
19
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const updateNote: import("../../../../..").EndpointConfig<"/v1/pv/models/task-note/:taskNoteId/update", v.ObjectSchema<{
|
|
3
|
+
readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
4
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskNoteId">]>, undefined>;
|
|
5
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
+
readonly data: v.ObjectSchema<{
|
|
7
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
10
|
+
}, undefined>, v.ObjectSchema<{
|
|
11
|
+
readonly data: v.ObjectSchema<{
|
|
12
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
15
|
+
}, undefined>, v.ObjectSchema<{
|
|
16
|
+
readonly data: v.ObjectSchema<{
|
|
17
|
+
readonly code: v.LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly data: v.ObjectSchema<{
|
|
22
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
25
|
+
}, undefined>, v.ObjectSchema<{
|
|
26
|
+
readonly data: v.ObjectSchema<{
|
|
27
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
28
|
+
readonly issues: v.ObjectSchema<{
|
|
29
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
30
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
31
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
35
|
+
}, undefined>, v.ObjectSchema<{
|
|
36
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
37
|
+
}, undefined>], undefined>>;
|
|
38
|
+
//# sourceMappingURL=updateNote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateNote.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/updateNote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcrB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, mutationRejectedErrorSchema, taskNoteNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const updateNote = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.task.updateNote,
|
|
7
|
+
method: 'PATCH',
|
|
8
|
+
path: '/v1/pv/models/task-note/:taskNoteId/update',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
taskNoteNotFoundErrorSchema,
|
|
13
|
+
mutationRejectedErrorSchema,
|
|
14
|
+
validationFailedErrorSchema,
|
|
15
|
+
v.object({
|
|
16
|
+
status: v.literal(200),
|
|
17
|
+
}),
|
|
18
|
+
]),
|
|
19
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const updateTask: import("../../../../..").EndpointConfig<"/v1/pv/models/task/:taskId/update", v.ObjectSchema<{
|
|
3
|
+
readonly dueAt: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
4
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "TaskId">]>, undefined>;
|
|
5
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
7
|
+
readonly data: v.ObjectSchema<{
|
|
8
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly data: v.ObjectSchema<{
|
|
13
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
16
|
+
}, undefined>, v.ObjectSchema<{
|
|
17
|
+
readonly data: v.ObjectSchema<{
|
|
18
|
+
readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
21
|
+
}, undefined>, v.ObjectSchema<{
|
|
22
|
+
readonly data: v.ObjectSchema<{
|
|
23
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
26
|
+
}, undefined>, v.ObjectSchema<{
|
|
27
|
+
readonly data: v.ObjectSchema<{
|
|
28
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
29
|
+
readonly issues: v.ObjectSchema<{
|
|
30
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
31
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
32
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
36
|
+
}, undefined>, v.ObjectSchema<{
|
|
37
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
38
|
+
}, undefined>], undefined>>;
|
|
39
|
+
//# sourceMappingURL=updateTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateTask.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/task/updateTask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcrB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, mutationRejectedErrorSchema, taskNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const updateTask = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.task.updateTask,
|
|
7
|
+
method: 'PATCH',
|
|
8
|
+
path: '/v1/pv/models/task/:taskId/update',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
taskNotFoundErrorSchema,
|
|
13
|
+
mutationRejectedErrorSchema,
|
|
14
|
+
validationFailedErrorSchema,
|
|
15
|
+
v.object({
|
|
16
|
+
status: v.literal(200),
|
|
17
|
+
}),
|
|
18
|
+
]),
|
|
19
|
+
});
|
|
@@ -11,6 +11,11 @@ export declare const deleteSession: import("../../../../..").EndpointConfig<"/v1
|
|
|
11
11
|
}, undefined>;
|
|
12
12
|
}, undefined>;
|
|
13
13
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
14
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
15
|
+
readonly data: v.StrictObjectSchema<{
|
|
16
|
+
readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
readonly status: v.LiteralSchema<502, undefined>;
|
|
14
19
|
}, undefined>, v.StrictObjectSchema<{
|
|
15
20
|
readonly status: v.LiteralSchema<204, undefined>;
|
|
16
21
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteSession.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/public/auth/browser/deleteSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"deleteSession.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/public/auth/browser/deleteSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;2BAWxB,CAAA"}
|
|
@@ -11,6 +11,11 @@ export declare const browser: {
|
|
|
11
11
|
}, undefined>;
|
|
12
12
|
}, undefined>;
|
|
13
13
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
14
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
15
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
16
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
14
19
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
15
20
|
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
16
21
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/public/auth/browser/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/public/auth/browser/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInB,CAAA"}
|
|
@@ -12,6 +12,11 @@ export declare const auth: {
|
|
|
12
12
|
}, undefined>;
|
|
13
13
|
}, undefined>;
|
|
14
14
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
15
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
16
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
17
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
15
20
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
16
21
|
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
17
22
|
}, undefined>], undefined>>;
|
|
@@ -160,6 +165,31 @@ export declare const auth: {
|
|
|
160
165
|
}, undefined>;
|
|
161
166
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
162
167
|
}, undefined>], undefined>>;
|
|
168
|
+
revokeSession: import("../../../..").EndpointConfig<"/v1/pb/auth/session/revoke", import("valibot").StrictObjectSchema<{
|
|
169
|
+
readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
170
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
171
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
172
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
173
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
174
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
175
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
176
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
177
|
+
}, undefined>;
|
|
178
|
+
}, undefined>;
|
|
179
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
180
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
181
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
182
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
183
|
+
}, undefined>;
|
|
184
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
185
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
186
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
187
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
188
|
+
}, undefined>;
|
|
189
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
190
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
191
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
192
|
+
}, undefined>], undefined>>;
|
|
163
193
|
sendAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
164
194
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
165
195
|
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAA"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { browser } from './browser';
|
|
2
2
|
import { refreshAuth } from './refreshAuth';
|
|
3
|
+
import { revokeSession } from './revokeSession';
|
|
3
4
|
import { sendAuthCode } from './sendAuthCode';
|
|
4
5
|
import { verifyAuthCode } from './verifyAuthCode';
|
|
5
6
|
export const auth = {
|
|
6
7
|
browser,
|
|
7
8
|
refreshAuth,
|
|
9
|
+
revokeSession,
|
|
8
10
|
sendAuthCode,
|
|
9
11
|
verifyAuthCode,
|
|
10
12
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const revokeSession: import("../../../..").EndpointConfig<"/v1/pb/auth/session/revoke", v.StrictObjectSchema<{
|
|
3
|
+
readonly accessToken: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
5
|
+
readonly data: v.ObjectSchema<{
|
|
6
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
|
+
readonly issues: v.ObjectSchema<{
|
|
8
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
9
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
10
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
14
|
+
}, undefined>, v.ObjectSchema<{
|
|
15
|
+
readonly data: v.ObjectSchema<{
|
|
16
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
19
|
+
}, undefined>, v.ObjectSchema<{
|
|
20
|
+
readonly data: v.ObjectSchema<{
|
|
21
|
+
readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
readonly status: v.LiteralSchema<502, undefined>;
|
|
24
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
25
|
+
readonly status: v.LiteralSchema<204, undefined>;
|
|
26
|
+
}, undefined>], undefined>>;
|
|
27
|
+
//# sourceMappingURL=revokeSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeSession.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/revokeSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;2BAcxB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { errors } from '../../../../sdk/validation/errors';
|
|
5
|
+
export const revokeSession = createEndpoint({
|
|
6
|
+
body: v.strictObject({
|
|
7
|
+
accessToken: marcoSchemas.string.required(),
|
|
8
|
+
}),
|
|
9
|
+
method: 'POST',
|
|
10
|
+
path: '/v1/pb/auth/session/revoke',
|
|
11
|
+
response: v.union([
|
|
12
|
+
errors.validationFailedErrorSchema,
|
|
13
|
+
errors.authFailedErrorSchema,
|
|
14
|
+
errors.authServerResponseUnexpectedErrorSchema,
|
|
15
|
+
v.strictObject({
|
|
16
|
+
status: v.literal(204),
|
|
17
|
+
}),
|
|
18
|
+
]),
|
|
19
|
+
});
|
|
@@ -13,6 +13,11 @@ export declare const publicGroup: {
|
|
|
13
13
|
}, undefined>;
|
|
14
14
|
}, undefined>;
|
|
15
15
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
16
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
17
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
18
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
16
21
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
17
22
|
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
18
23
|
}, undefined>], undefined>>;
|
|
@@ -161,6 +166,31 @@ export declare const publicGroup: {
|
|
|
161
166
|
}, undefined>;
|
|
162
167
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
163
168
|
}, undefined>], undefined>>;
|
|
169
|
+
revokeSession: import("../../..").EndpointConfig<"/v1/pb/auth/session/revoke", import("valibot").StrictObjectSchema<{
|
|
170
|
+
readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
171
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
172
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
173
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
174
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
175
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
176
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
177
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
178
|
+
}, undefined>;
|
|
179
|
+
}, undefined>;
|
|
180
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
181
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
182
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
183
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
184
|
+
}, undefined>;
|
|
185
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
186
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
187
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
188
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
189
|
+
}, undefined>;
|
|
190
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
191
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
192
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
193
|
+
}, undefined>], undefined>>;
|
|
164
194
|
sendAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
165
195
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
166
196
|
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -66,12 +66,14 @@ export declare const marcoSDK: {
|
|
|
66
66
|
account: typeof import("./endpoints/private/models/account");
|
|
67
67
|
contact: typeof import("./endpoints/private/models/contact");
|
|
68
68
|
draft: typeof import("./endpoints/private/models/draft");
|
|
69
|
+
task: typeof import("./endpoints/private/models/task");
|
|
69
70
|
thread: typeof import("./endpoints/private/models/thread");
|
|
70
71
|
user: typeof import("./endpoints/private/models/user");
|
|
71
72
|
};
|
|
72
73
|
mutations: {
|
|
73
74
|
account: typeof import("./endpoints/private/mutations/account");
|
|
74
75
|
draft: typeof import("./endpoints/private/mutations/draft");
|
|
76
|
+
task: typeof import("./endpoints/private/mutations/task");
|
|
75
77
|
thread: typeof import("./endpoints/private/mutations/thread");
|
|
76
78
|
user: typeof import("./endpoints/private/mutations/user");
|
|
77
79
|
};
|
|
@@ -127,6 +129,11 @@ export declare const marcoSDK: {
|
|
|
127
129
|
}, undefined>;
|
|
128
130
|
}, undefined>;
|
|
129
131
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
132
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
133
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
134
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
135
|
+
}, undefined>;
|
|
136
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
130
137
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
131
138
|
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
132
139
|
}, undefined>], undefined>>;
|
|
@@ -275,6 +282,31 @@ export declare const marcoSDK: {
|
|
|
275
282
|
}, undefined>;
|
|
276
283
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
277
284
|
}, undefined>], undefined>>;
|
|
285
|
+
revokeSession: import("..").EndpointConfig<"/v1/pb/auth/session/revoke", import("valibot").StrictObjectSchema<{
|
|
286
|
+
readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
287
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
288
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
289
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
290
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
291
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
292
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
293
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
294
|
+
}, undefined>;
|
|
295
|
+
}, undefined>;
|
|
296
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
297
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
298
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
299
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
300
|
+
}, undefined>;
|
|
301
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
302
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
303
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
304
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
305
|
+
}, undefined>;
|
|
306
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
307
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
308
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
309
|
+
}, undefined>], undefined>>;
|
|
278
310
|
sendAuthCode: import("..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
279
311
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
280
312
|
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -535,6 +567,18 @@ export declare const marcoSDK: {
|
|
|
535
567
|
}, undefined>;
|
|
536
568
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
537
569
|
}, undefined>;
|
|
570
|
+
readonly taskNoteNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
571
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
572
|
+
readonly code: import("valibot").LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
|
|
573
|
+
}, undefined>;
|
|
574
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
575
|
+
}, undefined>;
|
|
576
|
+
readonly taskNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
577
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
578
|
+
readonly code: import("valibot").LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
579
|
+
}, undefined>;
|
|
580
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
581
|
+
}, undefined>;
|
|
538
582
|
readonly threadNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
539
583
|
readonly data: import("valibot").ObjectSchema<{
|
|
540
584
|
readonly code: import("valibot").LiteralSchema<"THREAD_NOT_FOUND", undefined>;
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
|
|
@@ -125,6 +125,18 @@ export declare const draftNotFoundErrorSchema: v.ObjectSchema<{
|
|
|
125
125
|
}, undefined>;
|
|
126
126
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
127
127
|
}, undefined>;
|
|
128
|
+
export declare const taskNotFoundErrorSchema: v.ObjectSchema<{
|
|
129
|
+
readonly data: v.ObjectSchema<{
|
|
130
|
+
readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
131
|
+
}, undefined>;
|
|
132
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
133
|
+
}, undefined>;
|
|
134
|
+
export declare const taskNoteNotFoundErrorSchema: v.ObjectSchema<{
|
|
135
|
+
readonly data: v.ObjectSchema<{
|
|
136
|
+
readonly code: v.LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
|
|
137
|
+
}, undefined>;
|
|
138
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
139
|
+
}, undefined>;
|
|
128
140
|
export declare const contactNotFoundErrorSchema: v.ObjectSchema<{
|
|
129
141
|
readonly data: v.ObjectSchema<{
|
|
130
142
|
readonly code: v.LiteralSchema<"CONTACT_NOT_FOUND", undefined>;
|
|
@@ -335,6 +347,18 @@ export declare const errors: {
|
|
|
335
347
|
}, undefined>;
|
|
336
348
|
readonly status: v.LiteralSchema<409, undefined>;
|
|
337
349
|
}, undefined>;
|
|
350
|
+
readonly taskNoteNotFoundErrorSchema: v.ObjectSchema<{
|
|
351
|
+
readonly data: v.ObjectSchema<{
|
|
352
|
+
readonly code: v.LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
|
|
353
|
+
}, undefined>;
|
|
354
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
355
|
+
}, undefined>;
|
|
356
|
+
readonly taskNotFoundErrorSchema: v.ObjectSchema<{
|
|
357
|
+
readonly data: v.ObjectSchema<{
|
|
358
|
+
readonly code: v.LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
359
|
+
}, undefined>;
|
|
360
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
361
|
+
}, undefined>;
|
|
338
362
|
readonly threadNotFoundErrorSchema: v.ObjectSchema<{
|
|
339
363
|
readonly data: v.ObjectSchema<{
|
|
340
364
|
readonly code: v.LiteralSchema<"THREAD_NOT_FOUND", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;aAGvC,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;aAGvC,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCT,CAAA"}
|
|
@@ -83,6 +83,14 @@ export const draftNotFoundErrorSchema = v.object({
|
|
|
83
83
|
data: v.object({ code: v.literal('DRAFT_NOT_FOUND') }),
|
|
84
84
|
status: v.literal(404),
|
|
85
85
|
});
|
|
86
|
+
export const taskNotFoundErrorSchema = v.object({
|
|
87
|
+
data: v.object({ code: v.literal('TASK_NOT_FOUND') }),
|
|
88
|
+
status: v.literal(404),
|
|
89
|
+
});
|
|
90
|
+
export const taskNoteNotFoundErrorSchema = v.object({
|
|
91
|
+
data: v.object({ code: v.literal('TASK_NOTE_NOT_FOUND') }),
|
|
92
|
+
status: v.literal(404),
|
|
93
|
+
});
|
|
86
94
|
export const contactNotFoundErrorSchema = v.object({
|
|
87
95
|
data: v.object({ code: v.literal('CONTACT_NOT_FOUND') }),
|
|
88
96
|
status: v.literal(404),
|
|
@@ -152,6 +160,8 @@ export const errors = {
|
|
|
152
160
|
labelNotFoundErrorSchema,
|
|
153
161
|
messageNotFoundErrorSchema,
|
|
154
162
|
mutationRejectedErrorSchema,
|
|
163
|
+
taskNoteNotFoundErrorSchema,
|
|
164
|
+
taskNotFoundErrorSchema,
|
|
155
165
|
threadNotFoundErrorSchema,
|
|
156
166
|
userMarkedForDeletionErrorSchema,
|
|
157
167
|
userNotFoundErrorSchema,
|
|
@@ -150,6 +150,18 @@ export declare const validation: {
|
|
|
150
150
|
}, undefined>;
|
|
151
151
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
152
152
|
}, undefined>;
|
|
153
|
+
readonly taskNoteNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
154
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
155
|
+
readonly code: import("valibot").LiteralSchema<"TASK_NOTE_NOT_FOUND", undefined>;
|
|
156
|
+
}, undefined>;
|
|
157
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
158
|
+
}, undefined>;
|
|
159
|
+
readonly taskNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
160
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
161
|
+
readonly code: import("valibot").LiteralSchema<"TASK_NOT_FOUND", undefined>;
|
|
162
|
+
}, undefined>;
|
|
163
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
164
|
+
}, undefined>;
|
|
153
165
|
readonly threadNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
154
166
|
readonly data: import("valibot").ObjectSchema<{
|
|
155
167
|
readonly code: import("valibot").LiteralSchema<"THREAD_NOT_FOUND", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as v from 'valibot';
|
|
2
2
|
import type { marcoSchemas } from '../schemas';
|
|
3
|
-
export declare const POKE_MODELS: readonly ["user", "account", "contact", "draft", "thread"];
|
|
3
|
+
export declare const POKE_MODELS: readonly ["user", "account", "contact", "draft", "thread", "task", "taskNote"];
|
|
4
4
|
export type PokeModel = (typeof POKE_MODELS)[number];
|
|
5
5
|
export type PokeEvent = v.InferOutput<typeof marcoSchemas.websocket.pokeEvent>;
|
|
6
6
|
//# sourceMappingURL=PokeEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PokeEvent.d.ts","sourceRoot":"","sources":["../../src/types/PokeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"PokeEvent.d.ts","sourceRoot":"","sources":["../../src/types/PokeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,WAAW,gFAAiF,CAAA;AAEzG,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AACpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA"}
|
package/dist/types/PokeEvent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const POKE_MODELS = ['user', 'account', 'contact', 'draft', 'thread'];
|
|
1
|
+
export const POKE_MODELS = ['user', 'account', 'contact', 'draft', 'thread', 'task', 'taskNote'];
|