@marcoappio/marco-config 2.0.125 → 2.0.127

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 (79) hide show
  1. package/dist/clients/account.d.ts +3 -4
  2. package/dist/clients/account.d.ts.map +1 -1
  3. package/dist/clients/account.js +3 -4
  4. package/dist/clients/index.d.ts +20 -5
  5. package/dist/clients/index.d.ts.map +1 -1
  6. package/dist/clients/thread.d.ts +17 -3
  7. package/dist/clients/thread.d.ts.map +1 -1
  8. package/dist/clients/thread.js +5 -3
  9. package/dist/clients/utils/index.d.ts +1 -1
  10. package/dist/clients/utils/labelSpecialUseOrdering.d.ts +4 -1
  11. package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +1 -1
  12. package/dist/clients/utils/labelSpecialUseOrdering.js +5 -6
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +0 -1
  16. package/dist/schemas.d.ts +2 -0
  17. package/dist/schemas.d.ts.map +1 -1
  18. package/dist/schemas.js +13 -1
  19. package/dist/sdk/endpoints/index.d.ts +28 -5
  20. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  21. package/dist/sdk/endpoints/private/index.d.ts +28 -5
  22. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  23. package/dist/sdk/endpoints/private/index.js +2 -0
  24. package/dist/sdk/endpoints/private/sync/index.d.ts +20 -5
  25. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  26. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +3 -3
  27. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  28. package/dist/sdk/endpoints/private/sync/pull/account.js +1 -2
  29. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +1 -1
  30. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
  31. package/dist/sdk/endpoints/private/sync/pull/contact.js +1 -2
  32. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +19 -4
  33. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  34. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +18 -3
  35. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
  36. package/dist/sdk/endpoints/private/sync/pull/thread.js +1 -2
  37. package/dist/sdk/endpoints/private/sync/push/account.d.ts +2 -2
  38. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
  39. package/dist/sdk/endpoints/private/sync/push/account.js +1 -2
  40. package/dist/sdk/endpoints/private/sync/push/index.d.ts +1 -1
  41. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +8 -0
  42. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
  43. package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
  44. package/dist/sdk/endpoints/private/user/index.d.ts +9 -0
  45. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
  46. package/dist/sdk/endpoints/private/user/index.js +4 -0
  47. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
  48. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
  49. package/dist/sdk/endpoints/public/auth/refreshAuth.js +1 -2
  50. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +1 -1
  51. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -1
  52. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +1 -2
  53. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
  54. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
  55. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +1 -2
  56. package/dist/sdk/endpoints/public/healthcheck/index.d.ts +1 -1
  57. package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +1 -1
  58. package/dist/sdk/endpoints/public/healthcheck/index.js +1 -2
  59. package/dist/sdk/index.d.ts +28 -5
  60. package/dist/sdk/index.d.ts.map +1 -1
  61. package/dist/types/Endpoint.d.ts +1 -7
  62. package/dist/types/Endpoint.d.ts.map +1 -1
  63. package/dist/types/Endpoint.js +1 -8
  64. package/dist/types/WS.d.ts +1 -4
  65. package/dist/types/WS.d.ts.map +1 -1
  66. package/dist/types/WS.js +1 -4
  67. package/dist/types/index.d.ts +0 -3
  68. package/dist/types/index.d.ts.map +1 -1
  69. package/dist/types/index.js +0 -3
  70. package/package.json +1 -1
  71. package/dist/types/ContactAssociationType.d.ts +0 -8
  72. package/dist/types/ContactAssociationType.d.ts.map +0 -1
  73. package/dist/types/ContactAssociationType.js +0 -8
  74. package/dist/types/IMAPPasswordConfigStatus.d.ts +0 -6
  75. package/dist/types/IMAPPasswordConfigStatus.d.ts.map +0 -1
  76. package/dist/types/IMAPPasswordConfigStatus.js +0 -6
  77. package/dist/types/LabelSpecialUse.d.ts +0 -8
  78. package/dist/types/LabelSpecialUse.d.ts.map +0 -1
  79. package/dist/types/LabelSpecialUse.js +0 -8
@@ -28,13 +28,13 @@ export declare const sync: {
28
28
  readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
29
29
  readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
30
30
  readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
31
- readonly status: import("valibot").EnumSchema<typeof import("../../../..").IMAPPasswordConfigStatus, undefined>;
31
+ readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED", undefined>], undefined>;
32
32
  }, undefined>, undefined>;
33
33
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
34
34
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
35
35
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
36
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
37
- readonly specialUse: import("valibot").NullableSchema<import("valibot").EnumSchema<typeof import("../../../..").LabelSpecialUse, undefined>, undefined>;
37
+ readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
38
38
  }, undefined>, undefined>;
39
39
  }, undefined>;
40
40
  }, undefined>], undefined>, undefined>;
@@ -103,18 +103,33 @@ export declare const sync: {
103
103
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
104
104
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
105
105
  readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
106
- readonly contacts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
107
- readonly associationType: import("valibot").EnumSchema<typeof import("../../../..").ContactAssociationType, undefined>;
106
+ readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
107
+ readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
108
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
109
+ }, undefined>, undefined>;
110
+ readonly cc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
108
111
  readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
109
112
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
110
113
  }, undefined>, undefined>;
111
114
  readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
112
115
  readonly envelopeSubject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
113
116
  readonly flagged: import("valibot").BooleanSchema<undefined>;
117
+ readonly from: import("valibot").ObjectSchema<{
118
+ readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
119
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
120
+ }, undefined>;
114
121
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
115
122
  readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
116
123
  readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
124
+ readonly replyTo: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
125
+ readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
126
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
127
+ }, undefined>, undefined>;
117
128
  readonly seen: import("valibot").BooleanSchema<undefined>;
129
+ readonly to: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
130
+ readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
131
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
132
+ }, undefined>, undefined>;
118
133
  }, undefined>, undefined>;
119
134
  }, undefined>;
120
135
  }, undefined>], undefined>, undefined>;
@@ -129,7 +144,7 @@ export declare const sync: {
129
144
  readonly args: import("valibot").ObjectSchema<{
130
145
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
131
146
  readonly imapPasswordConfig: import("valibot").ObjectSchema<{
132
- readonly status: import("valibot").LiteralSchema<import("../../../..").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
147
+ readonly status: import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>;
133
148
  readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
134
149
  readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
135
150
  readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const syncPullAccount: import("../../../../../types").EndpointConfig<"/v1/pv/sync/pull/account", v.ObjectSchema<{
2
+ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", v.ObjectSchema<{
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
5
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
@@ -27,13 +27,13 @@ export declare const syncPullAccount: import("../../../../../types").EndpointCon
27
27
  readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
28
28
  readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
29
29
  readonly port: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
30
- readonly status: v.EnumSchema<typeof import("../../../../../types").IMAPPasswordConfigStatus, undefined>;
30
+ readonly status: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED", undefined>], undefined>;
31
31
  }, undefined>, undefined>;
32
32
  readonly labels: v.ArraySchema<v.ObjectSchema<{
33
33
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
34
34
  readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
35
35
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
36
- readonly specialUse: v.NullableSchema<v.EnumSchema<typeof import("../../../../../types").LabelSpecialUse, undefined>, undefined>;
36
+ readonly specialUse: v.NullableSchema<v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
37
37
  }, undefined>, undefined>;
38
38
  }, undefined>;
39
39
  }, undefined>], undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
@@ -2,13 +2,12 @@ import * as v from 'valibot';
2
2
  import { account } from '../../../../../clients/account';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
4
  import { errorManifest } from '../../../../../sdk/validation/errors';
5
- import { HTTPMethod } from '../../../../../types';
6
5
  export const syncPullAccount = createEndpoint({
7
6
  body: v.object({
8
7
  clientGroupID: v.string(),
9
8
  cookie: v.nullable(v.number()),
10
9
  }),
11
- method: HTTPMethod.POST,
10
+ method: 'POST',
12
11
  path: account.pullURL,
13
12
  response: v.union([
14
13
  errorManifest.validationFailedErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const syncPullContact: import("../../../../../types").EndpointConfig<"/v1/pv/sync/pull/contact", v.ObjectSchema<{
2
+ export declare const syncPullContact: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", v.ObjectSchema<{
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
5
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
1
+ {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
@@ -2,13 +2,12 @@ import * as v from 'valibot';
2
2
  import { contact } from '../../../../../clients/contact';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
4
  import { errorManifest } from '../../../../../sdk/validation/errors';
5
- import { HTTPMethod } from '../../../../../types';
6
5
  export const syncPullContact = createEndpoint({
7
6
  body: v.object({
8
7
  clientGroupID: v.string(),
9
8
  cookie: v.nullable(v.number()),
10
9
  }),
11
- method: HTTPMethod.POST,
10
+ method: 'POST',
12
11
  path: contact.pullURL,
13
12
  response: v.union([
14
13
  errorManifest.validationFailedErrorSchema,
@@ -27,13 +27,13 @@ export declare const pull: {
27
27
  readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
28
28
  readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
29
29
  readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
30
- readonly status: import("valibot").EnumSchema<typeof import("../../../../..").IMAPPasswordConfigStatus, undefined>;
30
+ readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED", undefined>], undefined>;
31
31
  }, undefined>, undefined>;
32
32
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
33
33
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
34
34
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
35
35
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
- readonly specialUse: import("valibot").NullableSchema<import("valibot").EnumSchema<typeof import("../../../../..").LabelSpecialUse, undefined>, undefined>;
36
+ readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
37
37
  }, undefined>, undefined>;
38
38
  }, undefined>;
39
39
  }, undefined>], undefined>, undefined>;
@@ -102,18 +102,33 @@ export declare const pull: {
102
102
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
103
103
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
104
104
  readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
105
- readonly contacts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
106
- readonly associationType: import("valibot").EnumSchema<typeof import("../../../../..").ContactAssociationType, undefined>;
105
+ readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
106
+ readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
107
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
108
+ }, undefined>, undefined>;
109
+ readonly cc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
107
110
  readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
108
111
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
109
112
  }, undefined>, undefined>;
110
113
  readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
111
114
  readonly envelopeSubject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
112
115
  readonly flagged: import("valibot").BooleanSchema<undefined>;
116
+ readonly from: import("valibot").ObjectSchema<{
117
+ readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
118
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
119
+ }, undefined>;
113
120
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
114
121
  readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
115
122
  readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
123
+ readonly replyTo: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
124
+ readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
125
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
126
+ }, undefined>, undefined>;
116
127
  readonly seen: import("valibot").BooleanSchema<undefined>;
128
+ readonly to: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
129
+ readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
130
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
131
+ }, undefined>, undefined>;
117
132
  }, undefined>, undefined>;
118
133
  }, undefined>;
119
134
  }, undefined>], undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const syncPullThread: import("../../../../../types").EndpointConfig<"/v1/pv/sync/pull/thread", v.ObjectSchema<{
2
+ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", v.ObjectSchema<{
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly cookie: v.NullableSchema<v.ObjectSchema<{
5
5
  readonly id: v.StringSchema<undefined>;
@@ -31,18 +31,33 @@ export declare const syncPullThread: import("../../../../../types").EndpointConf
31
31
  readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
32
32
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
33
33
  readonly messages: v.ArraySchema<v.ObjectSchema<{
34
- readonly contacts: v.ArraySchema<v.ObjectSchema<{
35
- readonly associationType: v.EnumSchema<typeof import("../../../../../types").ContactAssociationType, undefined>;
34
+ readonly bcc: v.ArraySchema<v.ObjectSchema<{
35
+ readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
36
+ readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
37
+ }, undefined>, undefined>;
38
+ readonly cc: v.ArraySchema<v.ObjectSchema<{
36
39
  readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
37
40
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
38
41
  }, undefined>, undefined>;
39
42
  readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
40
43
  readonly envelopeSubject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
41
44
  readonly flagged: v.BooleanSchema<undefined>;
45
+ readonly from: v.ObjectSchema<{
46
+ readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
47
+ readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
48
+ }, undefined>;
42
49
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
43
50
  readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
44
51
  readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
52
+ readonly replyTo: v.ArraySchema<v.ObjectSchema<{
53
+ readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
54
+ readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
55
+ }, undefined>, undefined>;
45
56
  readonly seen: v.BooleanSchema<undefined>;
57
+ readonly to: v.ArraySchema<v.ObjectSchema<{
58
+ readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
59
+ readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
60
+ }, undefined>, undefined>;
46
61
  }, undefined>, undefined>;
47
62
  }, undefined>;
48
63
  }, undefined>], undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BzB,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BzB,CAAA"}
@@ -2,7 +2,6 @@ import * as v from 'valibot';
2
2
  import { thread } from '../../../../../clients/thread';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
4
  import { errorManifest } from '../../../../../sdk/validation/errors';
5
- import { HTTPMethod } from '../../../../../types';
6
5
  export const syncPullThread = createEndpoint({
7
6
  body: v.object({
8
7
  clientGroupID: v.string(),
@@ -11,7 +10,7 @@ export const syncPullThread = createEndpoint({
11
10
  version: v.number(),
12
11
  })),
13
12
  }),
14
- method: HTTPMethod.POST,
13
+ method: 'POST',
15
14
  path: thread.pullURL,
16
15
  response: v.union([
17
16
  errorManifest.validationFailedErrorSchema,
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
- export declare const syncPushAccount: import("../../../../../types").EndpointConfig<"/v1/pv/sync/push/account", v.ObjectSchema<{
2
+ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/account", v.ObjectSchema<{
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly mutations: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly args: v.ObjectSchema<{
6
6
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
7
7
  readonly imapPasswordConfig: v.ObjectSchema<{
8
- readonly status: v.LiteralSchema<import("../../../../../types").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
8
+ readonly status: v.LiteralSchema<"AWAITING_CONNECTION", undefined>;
9
9
  readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
10
10
  readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
11
11
  readonly port: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}
@@ -2,7 +2,6 @@ import * as v from 'valibot';
2
2
  import { account } from '../../../../../clients/account';
3
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
4
  import { errorManifest } from '../../../../../sdk/validation/errors';
5
- import { HTTPMethod } from '../../../../../types';
6
5
  export const syncPushAccount = createEndpoint({
7
6
  body: v.object({
8
7
  clientGroupID: v.string(),
@@ -21,7 +20,7 @@ export const syncPushAccount = createEndpoint({
21
20
  }),
22
21
  ])),
23
22
  }),
24
- method: HTTPMethod.POST,
23
+ method: 'POST',
25
24
  path: account.pushURL,
26
25
  response: v.union([
27
26
  errorManifest.validationFailedErrorSchema,
@@ -5,7 +5,7 @@ export declare const push: {
5
5
  readonly args: import("valibot").ObjectSchema<{
6
6
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
7
7
  readonly imapPasswordConfig: import("valibot").ObjectSchema<{
8
- readonly status: import("valibot").LiteralSchema<import("../../../../..").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
8
+ readonly status: import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>;
9
9
  readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
10
10
  readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
11
11
  readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
@@ -0,0 +1,8 @@
1
+ import * as v from 'valibot';
2
+ export declare const deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
3
+ readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
4
+ readonly status: v.LiteralSchema<401, undefined>;
5
+ }, undefined>, v.ObjectSchema<{
6
+ readonly status: v.LiteralSchema<204, undefined>;
7
+ }, undefined>], undefined>>;
8
+ //# sourceMappingURL=deleteUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/deleteUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,UAAU;;;;;2BASrB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
+ import { notAuthenticatedErrorSchema } from '../../../../sdk/validation/errors';
4
+ export const deleteUser = createEndpoint({
5
+ method: 'DELETE',
6
+ path: '/v1/pv/user',
7
+ response: v.union([
8
+ notAuthenticatedErrorSchema,
9
+ v.object({
10
+ status: v.literal(204),
11
+ }),
12
+ ]),
13
+ });
@@ -0,0 +1,9 @@
1
+ export declare const user: {
2
+ deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
4
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
5
+ }, undefined>, import("valibot").ObjectSchema<{
6
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
7
+ }, undefined>], undefined>>;
8
+ };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;CAEhB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { deleteUser } from './deleteUser';
2
+ export const user = {
3
+ deleteUser,
4
+ };
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const refreshAuth: import("../../../../types/Endpoint").EndpointConfig<"/v1/pb/auth/refresh", v.ObjectSchema<{
2
+ export declare const refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", v.ObjectSchema<{
3
3
  readonly refreshToken: v.StringSchema<undefined>;
4
4
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;2BAmBtB,CAAA"}
1
+ {"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;2BAmBtB,CAAA"}
@@ -1,12 +1,11 @@
1
1
  import * as v from 'valibot';
2
2
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
3
  import { errorManifest } from '../../../../sdk/validation/errors';
4
- import { HTTPMethod } from '../../../../types/Endpoint';
5
4
  export const refreshAuth = createEndpoint({
6
5
  body: v.object({
7
6
  refreshToken: v.string(),
8
7
  }),
9
- method: HTTPMethod.POST,
8
+ method: 'POST',
10
9
  path: '/v1/pb/auth/refresh',
11
10
  response: v.union([
12
11
  errorManifest.validationFailedErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const sendAuthCode: import("../../../../types/Endpoint").EndpointConfig<"/v1/pb/auth/send-code", v.ObjectSchema<{
2
+ export declare const sendAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/send-code", v.ObjectSchema<{
3
3
  readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
4
4
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"sendAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/sendAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,YAAY;;;;;;;2BAYvB,CAAA"}
1
+ {"version":3,"file":"sendAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/sendAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;2BAYvB,CAAA"}
@@ -2,12 +2,11 @@ import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../../../../schemas';
3
3
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
4
  import { errorManifest } from '../../../../sdk/validation/errors';
5
- import { HTTPMethod } from '../../../../types/Endpoint';
6
5
  export const sendAuthCode = createEndpoint({
7
6
  body: v.object({
8
7
  email: marcoSchemas.string.email(),
9
8
  }),
10
- method: HTTPMethod.POST,
9
+ method: 'POST',
11
10
  path: '/v1/pb/auth/send-code',
12
11
  response: v.union([
13
12
  errorManifest.validationFailedErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const verifyAuthCode: import("../../../../types/Endpoint").EndpointConfig<"/v1/pb/auth/verify-code", v.ObjectSchema<{
2
+ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", v.ObjectSchema<{
3
3
  readonly code: v.StringSchema<undefined>;
4
4
  readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
5
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"verifyAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/verifyAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;2BAoBzB,CAAA"}
1
+ {"version":3,"file":"verifyAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/verifyAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;2BAoBzB,CAAA"}
@@ -2,13 +2,12 @@ import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../../../../schemas';
3
3
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
4
  import { errorManifest } from '../../../../sdk/validation/errors';
5
- import { HTTPMethod } from '../../../../types/Endpoint';
6
5
  export const verifyAuthCode = createEndpoint({
7
6
  body: v.object({
8
7
  code: v.string(),
9
8
  email: marcoSchemas.string.email(),
10
9
  }),
11
- method: HTTPMethod.POST,
10
+ method: 'POST',
12
11
  path: '/v1/pb/auth/verify-code',
13
12
  response: v.union([
14
13
  errorManifest.validationFailedErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const healthcheck: import("../../../../types").EndpointConfig<"/v1/pb/healthcheck", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.ObjectSchema<{
2
+ export declare const healthcheck: import("../../../..").EndpointConfig<"/v1/pb/healthcheck", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.ObjectSchema<{
3
3
  readonly data: v.ObjectSchema<{
4
4
  readonly status: v.LiteralSchema<"ok", undefined>;
5
5
  }, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/healthcheck/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,WAAW;;;;;cAOtB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/healthcheck/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,WAAW;;;;;cAOtB,CAAA"}
@@ -1,8 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
- import { HTTPMethod } from '../../../../types';
4
3
  export const healthcheck = createEndpoint({
5
- method: HTTPMethod.GET,
4
+ method: 'GET',
6
5
  path: '/v1/pb/healthcheck',
7
6
  response: v.object({
8
7
  data: v.object({ status: v.literal('ok') }),