@marcoappio/marco-config 6.0.4 → 7.1.0
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/schemas/index.d.ts +6 -4
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.d.ts +6 -4
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +5 -10
- package/dist/sdk/endpoints/index.d.ts +134 -2
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +10 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +10 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +3 -1
- package/dist/sdk/endpoints/private/index.d.ts +10 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +3 -2
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +3 -2
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts +17 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.js +14 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts +123 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts +40 -0
- package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/refreshAuth.js +14 -0
- package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts +82 -0
- package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/schemas.js +25 -0
- package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts +69 -0
- package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.js +21 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +124 -2
- 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/refreshAuth.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +2 -14
- package/dist/sdk/endpoints/public/auth/schemas.d.ts +39 -0
- package/dist/sdk/endpoints/public/auth/schemas.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/schemas.js +20 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +2 -14
- package/dist/sdk/endpoints/public/index.d.ts +124 -2
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +146 -2
- 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/SDKError.d.ts +1 -1
- package/dist/types/SDKError.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -427,25 +427,27 @@ export declare const marcoSchemas: {
|
|
|
427
427
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
428
428
|
}, undefined>;
|
|
429
429
|
createAttachment: import("valibot").ObjectSchema<{
|
|
430
|
-
readonly attachment: import("valibot").
|
|
430
|
+
readonly attachment: import("valibot").StrictObjectSchema<Omit<{
|
|
431
|
+
readonly draftId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "DraftId">]>, undefined>;
|
|
431
432
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
432
433
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AttachmentId">]>, undefined>;
|
|
433
434
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
434
435
|
readonly status: import("valibot").PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
435
436
|
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
436
|
-
}, undefined>;
|
|
437
|
+
}, "status" | "draftId">, undefined>;
|
|
437
438
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "DraftId">]>, undefined>;
|
|
438
439
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
439
440
|
}, undefined>;
|
|
440
441
|
createDraft: import("valibot").ObjectSchema<{
|
|
441
442
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
442
|
-
readonly attachments: import("valibot").ArraySchema<import("valibot").
|
|
443
|
+
readonly attachments: import("valibot").ArraySchema<import("valibot").StrictObjectSchema<Omit<{
|
|
444
|
+
readonly draftId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "DraftId">]>, undefined>;
|
|
443
445
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
444
446
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AttachmentId">]>, undefined>;
|
|
445
447
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
446
448
|
readonly status: import("valibot").PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
447
449
|
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
448
|
-
}, undefined>, undefined>;
|
|
450
|
+
}, "status" | "draftId">, undefined>, undefined>;
|
|
449
451
|
readonly body: import("valibot").ObjectSchema<{
|
|
450
452
|
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
451
453
|
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA+BA,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA+BA,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAA"}
|
|
@@ -85,25 +85,27 @@ export declare const mutatorSchemas: {
|
|
|
85
85
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
86
86
|
}, undefined>;
|
|
87
87
|
createAttachment: v.ObjectSchema<{
|
|
88
|
-
readonly attachment: v.
|
|
88
|
+
readonly attachment: v.StrictObjectSchema<Omit<{
|
|
89
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
89
90
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
90
91
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
91
92
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
92
93
|
readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
93
94
|
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
94
|
-
}, undefined>;
|
|
95
|
+
}, "status" | "draftId">, undefined>;
|
|
95
96
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
96
97
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
97
98
|
}, undefined>;
|
|
98
99
|
createDraft: v.ObjectSchema<{
|
|
99
100
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
100
|
-
readonly attachments: v.ArraySchema<v.
|
|
101
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<Omit<{
|
|
102
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
101
103
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
102
104
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
103
105
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
104
106
|
readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
105
107
|
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
106
|
-
}, undefined>, undefined>;
|
|
108
|
+
}, "status" | "draftId">, undefined>, undefined>;
|
|
107
109
|
readonly body: v.ObjectSchema<{
|
|
108
110
|
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
109
111
|
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA4D5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqL1B,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { marcoConstants } from '../../constants';
|
|
3
|
-
import {
|
|
3
|
+
import { DRAFT_STATUSES, DRAFT_TYPES, USER_SETTINGS_CUSTOM_VIEW_ICONS } from '../../types';
|
|
4
4
|
import { emailAccount } from '../emailAccount';
|
|
5
5
|
import { id } from '../id';
|
|
6
|
+
import { draftAttachmentSchema } from '../models/draft';
|
|
6
7
|
import { number } from '../number';
|
|
7
8
|
import { string } from '../string';
|
|
8
9
|
const accountAliasSchema = v.object({
|
|
@@ -27,13 +28,7 @@ const draftBodySchema = v.object({
|
|
|
27
28
|
subject: string.nullable(),
|
|
28
29
|
to: v.array(string.email()),
|
|
29
30
|
});
|
|
30
|
-
const
|
|
31
|
-
fileName: string.required(),
|
|
32
|
-
id: id.attachmentId.required(),
|
|
33
|
-
mimeType: string.required(255),
|
|
34
|
-
status: v.picklist(DRAFT_ATTACHMENT_UPLOAD_STATUSES),
|
|
35
|
-
totalSize: number.positiveInteger(),
|
|
36
|
-
});
|
|
31
|
+
const draftAttachmentInputSchema = v.strictObject(v.omit(draftAttachmentSchema, ['draftId', 'status']).entries);
|
|
37
32
|
const userPushNotificationTokenSchema = v.object({
|
|
38
33
|
createdAt: number.positiveInteger(),
|
|
39
34
|
id: id.pushNotificationTokenId.required(),
|
|
@@ -112,13 +107,13 @@ export const mutatorSchemas = {
|
|
|
112
107
|
updatedAt: number.positiveInteger(),
|
|
113
108
|
}),
|
|
114
109
|
createAttachment: v.object({
|
|
115
|
-
attachment:
|
|
110
|
+
attachment: draftAttachmentInputSchema,
|
|
116
111
|
id: id.draftId.required(),
|
|
117
112
|
updatedAt: number.positiveInteger(),
|
|
118
113
|
}),
|
|
119
114
|
createDraft: v.object({
|
|
120
115
|
accountId: id.accountId.required(),
|
|
121
|
-
attachments: v.array(
|
|
116
|
+
attachments: v.array(draftAttachmentInputSchema),
|
|
122
117
|
body: draftBodySchema,
|
|
123
118
|
error: string.nullable(),
|
|
124
119
|
from: string.email(),
|
|
@@ -13,11 +13,21 @@ export declare const endpoints: {
|
|
|
13
13
|
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
14
14
|
}, undefined>;
|
|
15
15
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
16
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
18
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_SIZE_MISMATCH", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
16
21
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
22
|
readonly data: import("valibot").ObjectSchema<{
|
|
18
23
|
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
19
24
|
}, undefined>;
|
|
20
25
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
26
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
27
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
28
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_UPLOAD_FAILED", undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: import("valibot").LiteralSchema<500, undefined>;
|
|
21
31
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
22
32
|
readonly data: import("valibot").ObjectSchema<{
|
|
23
33
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -105,6 +115,128 @@ export declare const endpoints: {
|
|
|
105
115
|
};
|
|
106
116
|
public: {
|
|
107
117
|
auth: {
|
|
118
|
+
browser: {
|
|
119
|
+
deleteSession: EndpointConfig<"/v1/pb/auth/browser/session", GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
120
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
121
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
122
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
123
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
124
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
125
|
+
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>;
|
|
126
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
127
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
128
|
+
}, undefined>;
|
|
129
|
+
}, undefined>;
|
|
130
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
131
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
132
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
133
|
+
}, undefined>], undefined>>;
|
|
134
|
+
refreshAuth: EndpointConfig<"/v1/pb/auth/browser/refresh", GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
135
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
136
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
137
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
138
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
139
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
140
|
+
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>;
|
|
141
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
142
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
143
|
+
}, undefined>;
|
|
144
|
+
}, undefined>;
|
|
145
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
146
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
147
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
148
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
149
|
+
}, undefined>;
|
|
150
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
151
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
152
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
153
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
154
|
+
}, undefined>;
|
|
155
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
156
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
157
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
158
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
159
|
+
user: import("valibot").ObjectSchema<{
|
|
160
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
161
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
162
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
163
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
164
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
165
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
166
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
167
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
168
|
+
}, undefined>;
|
|
169
|
+
}, undefined>;
|
|
170
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
171
|
+
}, undefined>], undefined>>;
|
|
172
|
+
verifyAuthCode: EndpointConfig<"/v1/pb/auth/browser/verify-code", import("valibot").ObjectSchema<{
|
|
173
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
174
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
175
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
176
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
177
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
178
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
179
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
180
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
181
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
182
|
+
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>;
|
|
183
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
184
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
185
|
+
}, undefined>;
|
|
186
|
+
}, undefined>;
|
|
187
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
188
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
189
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
190
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
191
|
+
}, undefined>;
|
|
192
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
193
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
194
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
195
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
196
|
+
}, undefined>;
|
|
197
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
198
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
199
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
200
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
201
|
+
}, undefined>;
|
|
202
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
203
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
204
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
205
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
206
|
+
}, undefined>;
|
|
207
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
208
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
209
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
210
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
211
|
+
}, undefined>;
|
|
212
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
213
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
214
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
215
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
216
|
+
}, undefined>;
|
|
217
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
218
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
219
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
220
|
+
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
221
|
+
}, undefined>;
|
|
222
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
223
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
224
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
225
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
226
|
+
user: import("valibot").ObjectSchema<{
|
|
227
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
228
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
229
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
230
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
231
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
232
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
233
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
234
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
235
|
+
}, undefined>;
|
|
236
|
+
}, undefined>;
|
|
237
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
238
|
+
}, undefined>], undefined>>;
|
|
239
|
+
};
|
|
108
240
|
refreshAuth: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
109
241
|
readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
110
242
|
}, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -129,8 +261,8 @@ export declare const endpoints: {
|
|
|
129
261
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
130
262
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
131
263
|
readonly data: import("valibot").ObjectSchema<{
|
|
132
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
133
264
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
265
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
134
266
|
readonly user: import("valibot").ObjectSchema<{
|
|
135
267
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
136
268
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
@@ -220,8 +352,8 @@ export declare const endpoints: {
|
|
|
220
352
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
221
353
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
222
354
|
readonly data: import("valibot").ObjectSchema<{
|
|
223
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
224
355
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
356
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
225
357
|
readonly user: import("valibot").ObjectSchema<{
|
|
226
358
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
227
359
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -9,11 +9,21 @@ export declare const draftAttachment: {
|
|
|
9
9
|
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
10
|
}, undefined>;
|
|
11
11
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_SIZE_MISMATCH", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
12
17
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
18
|
readonly data: import("valibot").ObjectSchema<{
|
|
14
19
|
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
20
|
}, undefined>;
|
|
16
21
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
22
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
23
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
24
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_UPLOAD_FAILED", undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly status: import("valibot").LiteralSchema<500, undefined>;
|
|
17
27
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
18
28
|
readonly data: import("valibot").ObjectSchema<{
|
|
19
29
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE3B,CAAA"}
|
|
@@ -9,11 +9,21 @@ export declare const uploadDraftAttachment: import("../../../..").EndpointConfig
|
|
|
9
9
|
readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
10
|
}, undefined>;
|
|
11
11
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, v.ObjectSchema<{
|
|
13
|
+
readonly data: v.ObjectSchema<{
|
|
14
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_SIZE_MISMATCH", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
12
17
|
}, undefined>, v.ObjectSchema<{
|
|
13
18
|
readonly data: v.ObjectSchema<{
|
|
14
19
|
readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
20
|
}, undefined>;
|
|
16
21
|
readonly status: v.LiteralSchema<409, undefined>;
|
|
22
|
+
}, undefined>, v.ObjectSchema<{
|
|
23
|
+
readonly data: v.ObjectSchema<{
|
|
24
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_UPLOAD_FAILED", undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly status: v.LiteralSchema<500, undefined>;
|
|
17
27
|
}, undefined>, v.ObjectSchema<{
|
|
18
28
|
readonly data: v.ObjectSchema<{
|
|
19
29
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadDraftAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"uploadDraftAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgBhC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import { attachmentNotFoundErrorSchema, attachmentStateInvalidErrorSchema, authFailedErrorSchema, validationFailedErrorSchema, } from '../../../../sdk/validation/errors';
|
|
3
|
+
import { attachmentNotFoundErrorSchema, attachmentSizeMismatchErrorSchema, attachmentStateInvalidErrorSchema, attachmentUploadFailedErrorSchema, authFailedErrorSchema, validationFailedErrorSchema, } from '../../../../sdk/validation/errors';
|
|
4
4
|
export const uploadDraftAttachment = createEndpoint({
|
|
5
5
|
body: v.blob(),
|
|
6
6
|
bodyType: 'blob',
|
|
@@ -9,7 +9,9 @@ export const uploadDraftAttachment = createEndpoint({
|
|
|
9
9
|
response: v.union([
|
|
10
10
|
authFailedErrorSchema,
|
|
11
11
|
attachmentNotFoundErrorSchema,
|
|
12
|
+
attachmentSizeMismatchErrorSchema,
|
|
12
13
|
attachmentStateInvalidErrorSchema,
|
|
14
|
+
attachmentUploadFailedErrorSchema,
|
|
13
15
|
validationFailedErrorSchema,
|
|
14
16
|
v.object({
|
|
15
17
|
status: v.literal(200),
|
|
@@ -10,11 +10,21 @@ export declare const privateGroup: {
|
|
|
10
10
|
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
11
11
|
}, undefined>;
|
|
12
12
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
13
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
15
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_SIZE_MISMATCH", undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
13
18
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
19
|
readonly data: import("valibot").ObjectSchema<{
|
|
15
20
|
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
16
21
|
}, undefined>;
|
|
17
22
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
23
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
24
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
25
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_UPLOAD_FAILED", undefined>;
|
|
26
|
+
}, undefined>;
|
|
27
|
+
readonly status: import("valibot").LiteralSchema<500, undefined>;
|
|
18
28
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
19
29
|
readonly data: import("valibot").ObjectSchema<{
|
|
20
30
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxB,CAAA"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const createAttachment: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/attachments/create", v.ObjectSchema<{
|
|
3
|
-
readonly attachment: v.
|
|
3
|
+
readonly attachment: v.StrictObjectSchema<Omit<{
|
|
4
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
4
5
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
6
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
6
7
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
8
|
readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
8
9
|
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9
|
-
}, undefined>;
|
|
10
|
+
}, "status" | "draftId">, undefined>;
|
|
10
11
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
11
12
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
12
13
|
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAttachment.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/draft/createAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"createAttachment.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/draft/createAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAc3B,CAAA"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const createDraft: import("../../../../..").EndpointConfig<"/v1/pv/models/drafts/create", v.ObjectSchema<{
|
|
3
3
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
4
|
-
readonly attachments: v.ArraySchema<v.
|
|
4
|
+
readonly attachments: v.ArraySchema<v.StrictObjectSchema<Omit<{
|
|
5
|
+
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
5
6
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
7
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
7
8
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
9
|
readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
9
10
|
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10
|
-
}, undefined>, undefined>;
|
|
11
|
+
}, "status" | "draftId">, undefined>, undefined>;
|
|
11
12
|
readonly body: v.ObjectSchema<{
|
|
12
13
|
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
13
14
|
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDraft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/draft/createDraft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"createDraft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/draft/createDraft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const deleteSession: import("../../../../..").EndpointConfig<"/v1/pb/auth/browser/session", v.GenericSchema | undefined, v.StrictObjectSchema<{
|
|
3
|
+
readonly sessionGeneration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
4
|
+
}, undefined>, v.UnionSchema<[v.StrictObjectSchema<{
|
|
5
|
+
readonly data: v.StrictObjectSchema<{
|
|
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.StrictObjectSchema<{
|
|
15
|
+
readonly status: v.LiteralSchema<204, undefined>;
|
|
16
|
+
}, undefined>], undefined>>;
|
|
17
|
+
//# sourceMappingURL=deleteSession.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;2BAUxB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
+
import { browserAuthQuerySchema, browserErrorSchemas } from '../../../../../sdk/endpoints/public/auth/browser/schemas';
|
|
4
|
+
export const deleteSession = createEndpoint({
|
|
5
|
+
method: 'DELETE',
|
|
6
|
+
path: '/v1/pb/auth/browser/session',
|
|
7
|
+
query: browserAuthQuerySchema,
|
|
8
|
+
response: v.union([
|
|
9
|
+
browserErrorSchemas.validationFailed,
|
|
10
|
+
v.strictObject({
|
|
11
|
+
status: v.literal(204),
|
|
12
|
+
}),
|
|
13
|
+
]),
|
|
14
|
+
});
|