@marcoappio/marco-config 7.0.0 → 8.0.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.
Files changed (68) hide show
  1. package/dist/schemas/index.d.ts +2 -59
  2. package/dist/schemas/index.d.ts.map +1 -1
  3. package/dist/schemas/index.js +1 -2
  4. package/dist/schemas/models/index.d.ts +1 -1
  5. package/dist/schemas/models/index.d.ts.map +1 -1
  6. package/dist/schemas/models/index.js +1 -1
  7. package/dist/schemas/models/thread.d.ts +3 -60
  8. package/dist/schemas/models/thread.d.ts.map +1 -1
  9. package/dist/schemas/models/thread.js +1 -7
  10. package/dist/sdk/endpoints/index.d.ts +124 -2
  11. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  12. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +17 -42
  13. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -1
  14. package/dist/sdk/endpoints/private/models/thread/getThread.js +1 -1
  15. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +17 -42
  16. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -1
  17. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +1 -1
  18. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +1 -1
  19. package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.d.ts +43 -0
  20. package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.d.ts.map +1 -0
  21. package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.js +21 -0
  22. package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.d.ts +43 -0
  23. package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.d.ts.map +1 -0
  24. package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.js +21 -0
  25. package/dist/sdk/endpoints/private/models/thread/getThreadMessages.d.ts +47 -0
  26. package/dist/sdk/endpoints/private/models/thread/getThreadMessages.d.ts.map +1 -0
  27. package/dist/sdk/endpoints/private/models/thread/getThreadMessages.js +21 -0
  28. package/dist/sdk/endpoints/private/models/thread/index.d.ts +3 -1
  29. package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +1 -1
  30. package/dist/sdk/endpoints/private/models/thread/index.js +3 -1
  31. package/dist/sdk/endpoints/private/models/thread/threadDetailPagination.d.ts +6 -0
  32. package/dist/sdk/endpoints/private/models/thread/threadDetailPagination.d.ts.map +1 -0
  33. package/dist/sdk/endpoints/private/models/thread/threadDetailPagination.js +7 -0
  34. package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts +17 -0
  35. package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts.map +1 -0
  36. package/dist/sdk/endpoints/public/auth/browser/deleteSession.js +14 -0
  37. package/dist/sdk/endpoints/public/auth/browser/index.d.ts +123 -0
  38. package/dist/sdk/endpoints/public/auth/browser/index.d.ts.map +1 -0
  39. package/dist/sdk/endpoints/public/auth/browser/index.js +8 -0
  40. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts +40 -0
  41. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts.map +1 -0
  42. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.js +14 -0
  43. package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts +82 -0
  44. package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts.map +1 -0
  45. package/dist/sdk/endpoints/public/auth/browser/schemas.js +25 -0
  46. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts +69 -0
  47. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts.map +1 -0
  48. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.js +21 -0
  49. package/dist/sdk/endpoints/public/auth/index.d.ts +124 -2
  50. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
  51. package/dist/sdk/endpoints/public/auth/index.js +2 -0
  52. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
  53. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
  54. package/dist/sdk/endpoints/public/auth/refreshAuth.js +2 -14
  55. package/dist/sdk/endpoints/public/auth/schemas.d.ts +39 -0
  56. package/dist/sdk/endpoints/public/auth/schemas.d.ts.map +1 -0
  57. package/dist/sdk/endpoints/public/auth/schemas.js +20 -0
  58. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
  59. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
  60. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +2 -14
  61. package/dist/sdk/endpoints/public/index.d.ts +124 -2
  62. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  63. package/dist/sdk/index.d.ts +124 -2
  64. package/dist/sdk/index.d.ts.map +1 -1
  65. package/package.json +1 -1
  66. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +0 -83
  67. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +0 -1
  68. package/dist/sdk/endpoints/private/models/thread/getThreads.js +0 -36
@@ -15,48 +15,23 @@ export declare const getThreadByMessageId: import("../../../../..").EndpointConf
15
15
  }, undefined>;
16
16
  readonly status: v.LiteralSchema<404, undefined>;
17
17
  }, undefined>, v.ObjectSchema<{
18
- readonly data: v.ObjectSchema<{
19
- readonly messages: v.ArraySchema<v.ObjectSchema<{
20
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
21
- readonly attachments: v.ArraySchema<v.ObjectSchema<{
22
- readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
24
- readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
25
- readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
26
- readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
27
- }, undefined>, undefined>;
28
- readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
29
- readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
31
- readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
- readonly recipients: v.ArraySchema<v.ObjectSchema<{
33
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
35
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
- readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
37
- readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
38
- }, undefined>, undefined>;
39
- readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
- readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
41
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
42
- readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
43
- }, undefined>, undefined>;
44
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
45
- readonly flagged: v.BooleanSchema<undefined>;
46
- readonly hasAttachments: v.BooleanSchema<undefined>;
47
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
48
- readonly labelIdList: v.StringSchema<undefined>;
49
- readonly latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
50
- readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
51
- readonly messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
52
- readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
53
- readonly seen: v.BooleanSchema<undefined>;
54
- readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
- readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
56
- readonly snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
57
- readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
- readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
59
- readonly words: v.StringSchema<undefined>;
18
+ readonly data: v.StrictObjectSchema<{
19
+ accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
20
+ flagged: v.BooleanSchema<undefined>;
21
+ hasAttachments: v.BooleanSchema<undefined>;
22
+ id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
23
+ labelIdList: v.StringSchema<undefined>;
24
+ latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
25
+ latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
26
+ messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
27
+ previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
+ seen: v.BooleanSchema<undefined>;
29
+ senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
+ senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
+ snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
32
+ subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
+ userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
34
+ words: v.StringSchema<undefined>;
60
35
  }, undefined>;
61
36
  readonly status: v.LiteralSchema<200, undefined>;
62
37
  }, undefined>], undefined>>;
@@ -1 +1 @@
1
- {"version":3,"file":"getThreadByMessageId.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadByMessageId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAY/B,CAAA"}
1
+ {"version":3,"file":"getThreadByMessageId.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadByMessageId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAY/B,CAAA"}
@@ -10,7 +10,7 @@ export const getThreadByMessageId = createEndpoint({
10
10
  userNotFoundErrorSchema,
11
11
  messageNotFoundErrorSchema,
12
12
  v.object({
13
- data: marcoSchemas.models.threadFullSchema,
13
+ data: marcoSchemas.models.threadSchema,
14
14
  status: v.literal(200),
15
15
  }),
16
16
  ]),
@@ -54,7 +54,7 @@ export declare const getThreadList: import("../../../../..").EndpointConfig<"/v1
54
54
  readonly status: v.LiteralSchema<400, undefined>;
55
55
  }, undefined>, v.ObjectSchema<{
56
56
  readonly data: v.ObjectSchema<{
57
- readonly items: v.ArraySchema<v.ObjectSchema<{
57
+ readonly items: v.ArraySchema<v.StrictObjectSchema<{
58
58
  accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
59
59
  flagged: v.BooleanSchema<undefined>;
60
60
  hasAttachments: v.BooleanSchema<undefined>;
@@ -0,0 +1,43 @@
1
+ import * as v from 'valibot';
2
+ export declare const getThreadMessageAttachments: import("../../../../..").EndpointConfig<"/v1/pv/models/thread-message/:messageId/attachments", v.GenericSchema | undefined, v.ObjectSchema<{
3
+ readonly cursor: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 512, undefined>]>, undefined>;
4
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
5
+ }, 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<"MESSAGE_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<"VALIDATION_FAILED", undefined>;
23
+ readonly issues: v.ObjectSchema<{
24
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
25
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
26
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
27
+ }, undefined>;
28
+ }, undefined>;
29
+ readonly status: v.LiteralSchema<400, undefined>;
30
+ }, undefined>, v.ObjectSchema<{
31
+ readonly data: v.ObjectSchema<{
32
+ readonly items: v.ArraySchema<v.ObjectSchema<{
33
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
35
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
37
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
38
+ }, undefined>, undefined>;
39
+ readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
40
+ }, undefined>;
41
+ readonly status: v.LiteralSchema<200, undefined>;
42
+ }, undefined>], undefined>>;
43
+ //# sourceMappingURL=getThreadMessageAttachments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThreadMessageAttachments.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadMessageAttachments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActC,CAAA"}
@@ -0,0 +1,21 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
+ import { authFailedErrorSchema, messageNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
+ import { threadDetailPaginationQuerySchema } from './threadDetailPagination';
7
+ export const getThreadMessageAttachments = createEndpoint({
8
+ method: 'GET',
9
+ path: '/v1/pv/models/thread-message/:messageId/attachments',
10
+ query: threadDetailPaginationQuerySchema,
11
+ response: v.union([
12
+ authFailedErrorSchema,
13
+ userNotFoundErrorSchema,
14
+ messageNotFoundErrorSchema,
15
+ validationFailedErrorSchema,
16
+ v.object({
17
+ data: paginatedResponseSchema(marcoSchemas.models.threadMessageAttachmentSchema),
18
+ status: v.literal(200),
19
+ }),
20
+ ]),
21
+ });
@@ -0,0 +1,43 @@
1
+ import * as v from 'valibot';
2
+ export declare const getThreadMessageRecipients: import("../../../../..").EndpointConfig<"/v1/pv/models/thread-message/:messageId/recipients", v.GenericSchema | undefined, v.ObjectSchema<{
3
+ readonly cursor: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 512, undefined>]>, undefined>;
4
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
5
+ }, 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<"MESSAGE_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<"VALIDATION_FAILED", undefined>;
23
+ readonly issues: v.ObjectSchema<{
24
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
25
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
26
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
27
+ }, undefined>;
28
+ }, undefined>;
29
+ readonly status: v.LiteralSchema<400, undefined>;
30
+ }, undefined>, v.ObjectSchema<{
31
+ readonly data: v.ObjectSchema<{
32
+ readonly items: v.ArraySchema<v.ObjectSchema<{
33
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
35
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
37
+ readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
38
+ }, undefined>, undefined>;
39
+ readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
40
+ }, undefined>;
41
+ readonly status: v.LiteralSchema<200, undefined>;
42
+ }, undefined>], undefined>>;
43
+ //# sourceMappingURL=getThreadMessageRecipients.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThreadMessageRecipients.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadMessageRecipients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcrC,CAAA"}
@@ -0,0 +1,21 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
+ import { authFailedErrorSchema, messageNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
+ import { threadDetailPaginationQuerySchema } from './threadDetailPagination';
7
+ export const getThreadMessageRecipients = createEndpoint({
8
+ method: 'GET',
9
+ path: '/v1/pv/models/thread-message/:messageId/recipients',
10
+ query: threadDetailPaginationQuerySchema,
11
+ response: v.union([
12
+ authFailedErrorSchema,
13
+ userNotFoundErrorSchema,
14
+ messageNotFoundErrorSchema,
15
+ validationFailedErrorSchema,
16
+ v.object({
17
+ data: paginatedResponseSchema(marcoSchemas.models.threadMessageRecipientSchema),
18
+ status: v.literal(200),
19
+ }),
20
+ ]),
21
+ });
@@ -0,0 +1,47 @@
1
+ import * as v from 'valibot';
2
+ export declare const getThreadMessages: import("../../../../..").EndpointConfig<"/v1/pv/models/thread/:threadId/messages", v.GenericSchema | undefined, v.ObjectSchema<{
3
+ readonly cursor: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 512, undefined>]>, undefined>;
4
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
5
+ }, 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<"THREAD_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<"VALIDATION_FAILED", undefined>;
23
+ readonly issues: v.ObjectSchema<{
24
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
25
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
26
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
27
+ }, undefined>;
28
+ }, undefined>;
29
+ readonly status: v.LiteralSchema<400, undefined>;
30
+ }, undefined>, v.ObjectSchema<{
31
+ readonly data: v.ObjectSchema<{
32
+ readonly items: v.ArraySchema<v.ObjectSchema<{
33
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
34
+ readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
35
+ readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
37
+ readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
39
+ readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
41
+ readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
+ }, undefined>, undefined>;
43
+ readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
44
+ }, undefined>;
45
+ readonly status: v.LiteralSchema<200, undefined>;
46
+ }, undefined>], undefined>>;
47
+ //# sourceMappingURL=getThreadMessages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThreadMessages.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAc5B,CAAA"}
@@ -0,0 +1,21 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
+ import { authFailedErrorSchema, threadNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
+ import { threadDetailPaginationQuerySchema } from './threadDetailPagination';
7
+ export const getThreadMessages = createEndpoint({
8
+ method: 'GET',
9
+ path: '/v1/pv/models/thread/:threadId/messages',
10
+ query: threadDetailPaginationQuerySchema,
11
+ response: v.union([
12
+ authFailedErrorSchema,
13
+ userNotFoundErrorSchema,
14
+ threadNotFoundErrorSchema,
15
+ validationFailedErrorSchema,
16
+ v.object({
17
+ data: paginatedResponseSchema(marcoSchemas.models.threadMessageSchema),
18
+ status: v.literal(200),
19
+ }),
20
+ ]),
21
+ });
@@ -1,5 +1,7 @@
1
1
  export { getThread } from './getThread';
2
2
  export { getThreadByMessageId } from './getThreadByMessageId';
3
3
  export { getThreadList } from './getThreadList';
4
- export { getThreads } from './getThreads';
4
+ export { getThreadMessageAttachments } from './getThreadMessageAttachments';
5
+ export { getThreadMessageRecipients } from './getThreadMessageRecipients';
6
+ export { getThreadMessages } from './getThreadMessages';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,4 +1,6 @@
1
1
  export { getThread } from './getThread';
2
2
  export { getThreadByMessageId } from './getThreadByMessageId';
3
3
  export { getThreadList } from './getThreadList';
4
- export { getThreads } from './getThreads';
4
+ export { getThreadMessageAttachments } from './getThreadMessageAttachments';
5
+ export { getThreadMessageRecipients } from './getThreadMessageRecipients';
6
+ export { getThreadMessages } from './getThreadMessages';
@@ -0,0 +1,6 @@
1
+ import * as v from 'valibot';
2
+ export declare const threadDetailPaginationQuerySchema: v.ObjectSchema<{
3
+ readonly cursor: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 512, undefined>]>, undefined>;
4
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
5
+ }, undefined>;
6
+ //# sourceMappingURL=threadDetailPagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threadDetailPagination.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/threadDetailPagination.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,iCAAiC;;;aAK5C,CAAA"}
@@ -0,0 +1,7 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ const MAXIMUM_PAGE_SIZE = 1000;
4
+ export const threadDetailPaginationQuerySchema = v.object({
5
+ cursor: v.optional(v.pipe(v.string(), v.nonEmpty(), v.maxLength(512))),
6
+ limit: v.optional(v.pipe(marcoSchemas.number.positiveIntegerFromString(), v.minValue(1), v.maxValue(MAXIMUM_PAGE_SIZE))),
7
+ });
@@ -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
+ });
@@ -0,0 +1,123 @@
1
+ export declare const browser: {
2
+ deleteSession: import("../../../../..").EndpointConfig<"/v1/pb/auth/browser/session", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
3
+ readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
4
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
5
+ readonly data: import("valibot").StrictObjectSchema<{
6
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
7
+ readonly issues: import("valibot").ObjectSchema<{
8
+ 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>;
9
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
10
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
11
+ }, undefined>;
12
+ }, undefined>;
13
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
14
+ }, undefined>, import("valibot").StrictObjectSchema<{
15
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
16
+ }, undefined>], undefined>>;
17
+ refreshAuth: import("../../../../..").EndpointConfig<"/v1/pb/auth/browser/refresh", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
18
+ readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
19
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
20
+ readonly data: import("valibot").StrictObjectSchema<{
21
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
22
+ readonly issues: import("valibot").ObjectSchema<{
23
+ 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>;
24
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
25
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
26
+ }, undefined>;
27
+ }, undefined>;
28
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
29
+ }, undefined>, import("valibot").StrictObjectSchema<{
30
+ readonly data: import("valibot").StrictObjectSchema<{
31
+ readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
32
+ }, undefined>;
33
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
34
+ }, undefined>, import("valibot").StrictObjectSchema<{
35
+ readonly data: import("valibot").StrictObjectSchema<{
36
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
37
+ }, undefined>;
38
+ readonly status: import("valibot").LiteralSchema<502, undefined>;
39
+ }, undefined>, import("valibot").StrictObjectSchema<{
40
+ readonly data: import("valibot").StrictObjectSchema<{
41
+ accessToken: import("valibot").StringSchema<undefined>;
42
+ user: import("valibot").ObjectSchema<{
43
+ 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>;
44
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
45
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
46
+ 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>;
47
+ 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>;
48
+ 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>;
49
+ 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>;
50
+ 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>;
51
+ }, undefined>;
52
+ }, undefined>;
53
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
54
+ }, undefined>], undefined>>;
55
+ verifyAuthCode: import("../../../../..").EndpointConfig<"/v1/pb/auth/browser/verify-code", import("valibot").ObjectSchema<{
56
+ readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
57
+ readonly code: import("valibot").StringSchema<undefined>;
58
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
59
+ }, undefined>, import("valibot").StrictObjectSchema<{
60
+ readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
61
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
62
+ readonly data: import("valibot").StrictObjectSchema<{
63
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
64
+ readonly issues: import("valibot").ObjectSchema<{
65
+ 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>;
66
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
67
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
68
+ }, undefined>;
69
+ }, undefined>;
70
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
71
+ }, undefined>, import("valibot").StrictObjectSchema<{
72
+ readonly data: import("valibot").StrictObjectSchema<{
73
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
74
+ }, undefined>;
75
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
76
+ }, undefined>, import("valibot").StrictObjectSchema<{
77
+ readonly data: import("valibot").StrictObjectSchema<{
78
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
79
+ }, undefined>;
80
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
81
+ }, undefined>, import("valibot").StrictObjectSchema<{
82
+ readonly data: import("valibot").StrictObjectSchema<{
83
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
84
+ }, undefined>;
85
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
86
+ }, undefined>, import("valibot").StrictObjectSchema<{
87
+ readonly data: import("valibot").StrictObjectSchema<{
88
+ readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
89
+ }, undefined>;
90
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
91
+ }, undefined>, import("valibot").StrictObjectSchema<{
92
+ readonly data: import("valibot").StrictObjectSchema<{
93
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
94
+ }, undefined>;
95
+ readonly status: import("valibot").LiteralSchema<502, undefined>;
96
+ }, undefined>, import("valibot").StrictObjectSchema<{
97
+ readonly data: import("valibot").StrictObjectSchema<{
98
+ readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
99
+ }, undefined>;
100
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
101
+ }, undefined>, import("valibot").StrictObjectSchema<{
102
+ readonly data: import("valibot").StrictObjectSchema<{
103
+ readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
104
+ }, undefined>;
105
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
106
+ }, undefined>, import("valibot").StrictObjectSchema<{
107
+ readonly data: import("valibot").StrictObjectSchema<{
108
+ accessToken: import("valibot").StringSchema<undefined>;
109
+ user: import("valibot").ObjectSchema<{
110
+ 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>;
111
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
112
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
113
+ 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>;
114
+ 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>;
115
+ 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>;
116
+ 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>;
117
+ 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>;
118
+ }, undefined>;
119
+ }, undefined>;
120
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
121
+ }, undefined>], undefined>>;
122
+ };
123
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
1
+ import { deleteSession } from './deleteSession';
2
+ import { refreshAuth } from './refreshAuth';
3
+ import { verifyAuthCode } from './verifyAuthCode';
4
+ export const browser = {
5
+ deleteSession,
6
+ refreshAuth,
7
+ verifyAuthCode,
8
+ };
@@ -0,0 +1,40 @@
1
+ import * as v from 'valibot';
2
+ export declare const refreshAuth: import("../../../../..").EndpointConfig<"/v1/pb/auth/browser/refresh", 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 data: v.StrictObjectSchema<{
16
+ readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<401, undefined>;
19
+ }, undefined>, v.StrictObjectSchema<{
20
+ readonly data: v.StrictObjectSchema<{
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 data: v.StrictObjectSchema<{
26
+ accessToken: v.StringSchema<undefined>;
27
+ user: v.ObjectSchema<{
28
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
+ readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
30
+ readonly emailVerified: v.BooleanSchema<undefined>;
31
+ readonly firstName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
+ readonly lastName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
+ readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ }, undefined>;
37
+ }, undefined>;
38
+ readonly status: v.LiteralSchema<200, undefined>;
39
+ }, undefined>], undefined>>;
40
+ //# sourceMappingURL=refreshAuth.d.ts.map