@marcoappio/marco-config 2.0.539 → 2.0.541

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 (94) hide show
  1. package/dist/constants/index.d.ts +0 -4
  2. package/dist/constants/index.d.ts.map +1 -1
  3. package/dist/constants/index.js +0 -2
  4. package/dist/index.d.ts +0 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +0 -1
  7. package/dist/marcoPublicConfig.d.ts +0 -3
  8. package/dist/marcoPublicConfig.d.ts.map +1 -1
  9. package/dist/marcoPublicConfig.js +0 -9
  10. package/dist/schemas/index.d.ts +2 -0
  11. package/dist/schemas/index.d.ts.map +1 -1
  12. package/dist/schemas/index.js +2 -0
  13. package/dist/schemas/mutators/index.d.ts +2 -0
  14. package/dist/schemas/mutators/index.d.ts.map +1 -0
  15. package/dist/schemas/mutators/index.js +1 -0
  16. package/dist/{zero → schemas/mutators}/mutatorSchemas.d.ts +4 -4
  17. package/dist/{zero → schemas/mutators}/mutatorSchemas.d.ts.map +1 -1
  18. package/dist/{zero → schemas/mutators}/mutatorSchemas.js +4 -4
  19. package/dist/sdk/endpoints/private/mutations/account/createAccount.js +1 -1
  20. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +1 -1
  21. package/dist/sdk/endpoints/private/mutations/account/createAlias.js +2 -2
  22. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +1 -1
  23. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.js +2 -2
  24. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +1 -1
  25. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.js +2 -2
  26. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +1 -1
  27. package/dist/sdk/endpoints/private/mutations/account/setAliasName.js +2 -2
  28. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +1 -1
  29. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.js +2 -2
  30. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +1 -1
  31. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.js +2 -2
  32. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +1 -1
  33. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.js +2 -2
  34. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +1 -1
  35. package/dist/sdk/endpoints/private/mutations/account/setSettings.js +2 -2
  36. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +1 -1
  37. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.js +2 -2
  38. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +1 -1
  39. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.js +2 -2
  40. package/dist/sdk/endpoints/private/mutations/draft/createDraft.js +1 -1
  41. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +1 -1
  42. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.js +2 -2
  43. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +1 -1
  44. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.js +2 -2
  45. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +1 -1
  46. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.js +2 -2
  47. package/dist/sdk/endpoints/private/mutations/draft/setContent.d.ts +1 -1
  48. package/dist/sdk/endpoints/private/mutations/draft/setContent.js +2 -2
  49. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +3 -3
  50. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.js +2 -2
  51. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +1 -1
  52. package/dist/sdk/endpoints/private/mutations/draft/setFrom.js +2 -2
  53. package/dist/sdk/endpoints/private/mutations/thread/addLabel.js +1 -1
  54. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.js +1 -1
  55. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.js +1 -1
  56. package/dist/sdk/endpoints/private/mutations/thread/setArchive.js +1 -1
  57. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.js +1 -1
  58. package/dist/sdk/endpoints/private/mutations/thread/setInbox.js +1 -1
  59. package/dist/sdk/endpoints/private/mutations/thread/setSeen.js +1 -1
  60. package/dist/sdk/endpoints/private/mutations/thread/setSpam.js +1 -1
  61. package/dist/sdk/endpoints/private/mutations/thread/setTrash.js +1 -1
  62. package/dist/sdk/endpoints/private/mutations/user/createView.js +1 -1
  63. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.js +1 -1
  64. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +1 -1
  65. package/dist/sdk/endpoints/private/mutations/user/deleteView.js +2 -2
  66. package/dist/sdk/endpoints/private/mutations/user/setPushToken.js +1 -1
  67. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.js +1 -1
  68. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +1 -1
  69. package/dist/sdk/endpoints/private/mutations/user/updateView.js +2 -2
  70. package/dist/types/index.d.ts +0 -1
  71. package/dist/types/index.d.ts.map +1 -1
  72. package/dist/types/index.js +0 -1
  73. package/package.json +1 -2
  74. package/dist/constants/zero.d.ts +0 -5
  75. package/dist/constants/zero.d.ts.map +0 -1
  76. package/dist/constants/zero.js +0 -4
  77. package/dist/types/Zero.d.ts +0 -17
  78. package/dist/types/Zero.d.ts.map +0 -1
  79. package/dist/types/Zero.js +0 -5
  80. package/dist/zero/index.d.ts +0 -5072
  81. package/dist/zero/index.d.ts.map +0 -1
  82. package/dist/zero/index.js +0 -12
  83. package/dist/zero/mutators.d.ts +0 -1523
  84. package/dist/zero/mutators.d.ts.map +0 -1
  85. package/dist/zero/mutators.js +0 -560
  86. package/dist/zero/mutators.test.d.ts +0 -2
  87. package/dist/zero/mutators.test.d.ts.map +0 -1
  88. package/dist/zero/mutators.test.js +0 -1158
  89. package/dist/zero/queries.d.ts +0 -1372
  90. package/dist/zero/queries.d.ts.map +0 -1
  91. package/dist/zero/queries.js +0 -173
  92. package/dist/zero/schema.d.ts +0 -1821
  93. package/dist/zero/schema.d.ts.map +0 -1
  94. package/dist/zero/schema.js +0 -434
@@ -53,9 +53,5 @@ export declare const marcoConstants: {
53
53
  maxViews: number;
54
54
  };
55
55
  };
56
- zero: {
57
- mutateURL: string;
58
- queryURL: string;
59
- };
60
56
  };
61
57
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ1B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO1B,CAAA"}
@@ -4,7 +4,6 @@ import { emailProvider } from './emailProvider';
4
4
  import { messages } from './messages';
5
5
  import { oauth } from './oauth';
6
6
  import { user } from './user';
7
- import { zero } from './zero';
8
7
  export const marcoConstants = {
9
8
  api,
10
9
  emailAccounts,
@@ -12,5 +11,4 @@ export const marcoConstants = {
12
11
  messages,
13
12
  oauth,
14
13
  user,
15
- zero,
16
14
  };
package/dist/index.d.ts CHANGED
@@ -4,5 +4,4 @@ export { type Account, type AccountAlias, type AccountLabel, type Contact, type
4
4
  export { marcoSDK } from './sdk';
5
5
  export * from './types';
6
6
  export { accountUtils, labelUtils, stringPatch, threadsUtils } from './utils';
7
- export { marcoZero } from './zero';
8
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
package/dist/index.js CHANGED
@@ -4,4 +4,3 @@ export { marcoSchemas, } from './schemas';
4
4
  export { marcoSDK } from './sdk';
5
5
  export * from './types';
6
6
  export { accountUtils, labelUtils, stringPatch, threadsUtils } from './utils';
7
- export { marcoZero } from './zero';
@@ -27,9 +27,6 @@ type MarcoPublicConfig = {
27
27
  tenantId: string;
28
28
  };
29
29
  };
30
- zero: {
31
- cacheUrl: string;
32
- };
33
30
  workOS: {
34
31
  clientId: string;
35
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAGP,CAAA;AAEf,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;YACf,UAAU,EAAE,MAAM,CAAA;SACnB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,CAAA;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA;AA2GD,eAAO,MAAM,iBAAiB,SAAS,gBAAgB,sBAAmC,CAAA"}
1
+ {"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAGP,CAAA;AAEf,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;YACf,UAAU,EAAE,MAAM,CAAA;SACnB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,CAAA;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA;AAkGD,eAAO,MAAM,iBAAiB,SAAS,gBAAgB,sBAAmC,CAAA"}
@@ -32,9 +32,6 @@ const configMap = {
32
32
  workOS: {
33
33
  clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
34
34
  },
35
- zero: {
36
- cacheUrl: 'https://zero.staging.marcoapp.io',
37
- },
38
35
  },
39
36
  production: {
40
37
  marco: {
@@ -66,9 +63,6 @@ const configMap = {
66
63
  workOS: {
67
64
  clientId: 'client_01J51ET6RT5WCS3NNQYBB7FAE7',
68
65
  },
69
- zero: {
70
- cacheUrl: 'https://zero.marcoapp.io',
71
- },
72
66
  },
73
67
  staging: {
74
68
  marco: {
@@ -100,9 +94,6 @@ const configMap = {
100
94
  workOS: {
101
95
  clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
102
96
  },
103
- zero: {
104
- cacheUrl: 'https://zero.staging.marcoapp.io',
105
- },
106
97
  },
107
98
  };
108
99
  export const marcoPublicConfig = (env = 'development') => configMap[env];
@@ -1,4 +1,6 @@
1
+ import { mutatorSchemas } from '../schemas/mutators';
1
2
  export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, User, UserPushNotificationToken, UserView, } from './models';
3
+ export { mutatorSchemas };
2
4
  export declare const marcoSchemas: {
3
5
  app: {
4
6
  platform: () => import("valibot").PicklistSchema<readonly ["ios", "osx", "web"], undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA+BA,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AAEjB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AA+B/D,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAE,cAAc,EAAE,CAAA;AAEzB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxB,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { boolean } from '../schemas/boolean';
2
+ import { mutatorSchemas } from '../schemas/mutators';
2
3
  import { string } from '../schemas/string';
3
4
  import { app } from './app';
4
5
  import { auth } from './auth';
@@ -10,6 +11,7 @@ import { number } from './number';
10
11
  import { oauth } from './oauth';
11
12
  import { pushNotifications } from './pushNotifications';
12
13
  import { websocket } from './websocket';
14
+ export { mutatorSchemas };
13
15
  export const marcoSchemas = {
14
16
  app,
15
17
  auth,
@@ -0,0 +1,2 @@
1
+ export { mutatorSchemas } from './mutatorSchemas';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1 @@
1
+ export { mutatorSchemas } from './mutatorSchemas';
@@ -161,7 +161,7 @@ export declare const mutatorSchemas: {
161
161
  cc: string[];
162
162
  to: string[];
163
163
  subject: string | null;
164
- }, v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue>;
164
+ }, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.NonOptionalIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number>>;
165
165
  readonly '~types'?: {
166
166
  readonly input: {
167
167
  bcc: string[];
@@ -175,7 +175,7 @@ export declare const mutatorSchemas: {
175
175
  to: string[];
176
176
  subject: string | null;
177
177
  };
178
- readonly issue: v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue;
178
+ readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.NonOptionalIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number>;
179
179
  } | undefined;
180
180
  };
181
181
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -246,7 +246,7 @@ export declare const mutatorSchemas: {
246
246
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
247
247
  readonly view: v.ObjectSchema<{
248
248
  readonly aliasEmails: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>, v.MinLengthAction<string[], 2, undefined>, v.MaxLengthAction<string[], number, undefined>]>;
249
- readonly icon: v.PicklistSchema<readonly [import("../types").CustomViewIcon.AIRPLANE, import("../types").CustomViewIcon.BELL, import("../types").CustomViewIcon.BRIEFCASE, import("../types").CustomViewIcon.CLOCK, import("../types").CustomViewIcon.CREDIT_CARD, import("../types").CustomViewIcon.HEART, import("../types").CustomViewIcon.HOME, import("../types").CustomViewIcon.KEY, import("../types").CustomViewIcon.MOON, import("../types").CustomViewIcon.PERSON, import("../types").CustomViewIcon.SHOPPING_CART, import("../types").CustomViewIcon.STAR], undefined>;
249
+ readonly icon: v.PicklistSchema<readonly [import("../../types").CustomViewIcon.AIRPLANE, import("../../types").CustomViewIcon.BELL, import("../../types").CustomViewIcon.BRIEFCASE, import("../../types").CustomViewIcon.CLOCK, import("../../types").CustomViewIcon.CREDIT_CARD, import("../../types").CustomViewIcon.HEART, import("../../types").CustomViewIcon.HOME, import("../../types").CustomViewIcon.KEY, import("../../types").CustomViewIcon.MOON, import("../../types").CustomViewIcon.PERSON, import("../../types").CustomViewIcon.SHOPPING_CART, import("../../types").CustomViewIcon.STAR], undefined>;
250
250
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
251
251
  readonly name: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
252
252
  }, undefined>;
@@ -275,7 +275,7 @@ export declare const mutatorSchemas: {
275
275
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
276
276
  readonly view: v.ObjectSchema<{
277
277
  readonly aliasEmails: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>, v.MinLengthAction<string[], 2, undefined>, v.MaxLengthAction<string[], number, undefined>]>;
278
- readonly icon: v.PicklistSchema<readonly [import("../types").CustomViewIcon.AIRPLANE, import("../types").CustomViewIcon.BELL, import("../types").CustomViewIcon.BRIEFCASE, import("../types").CustomViewIcon.CLOCK, import("../types").CustomViewIcon.CREDIT_CARD, import("../types").CustomViewIcon.HEART, import("../types").CustomViewIcon.HOME, import("../types").CustomViewIcon.KEY, import("../types").CustomViewIcon.MOON, import("../types").CustomViewIcon.PERSON, import("../types").CustomViewIcon.SHOPPING_CART, import("../types").CustomViewIcon.STAR], undefined>;
278
+ readonly icon: v.PicklistSchema<readonly [import("../../types").CustomViewIcon.AIRPLANE, import("../../types").CustomViewIcon.BELL, import("../../types").CustomViewIcon.BRIEFCASE, import("../../types").CustomViewIcon.CLOCK, import("../../types").CustomViewIcon.CREDIT_CARD, import("../../types").CustomViewIcon.HEART, import("../../types").CustomViewIcon.HOME, import("../../types").CustomViewIcon.KEY, import("../../types").CustomViewIcon.MOON, import("../../types").CustomViewIcon.PERSON, import("../../types").CustomViewIcon.SHOPPING_CART, import("../../types").CustomViewIcon.STAR], undefined>;
279
279
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
280
280
  readonly name: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
281
281
  }, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../src/zero/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsF5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsJ1B,CAAA"}
1
+ {"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsF5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsJ1B,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import * as v from 'valibot';
2
- import { marcoConstants } from '../constants';
3
- import { marcoSchemas } from '../schemas';
4
- import { socketTypeSchema } from '../schemas/emailAccount';
5
- import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES, USER_SETTINGS_CUSTOM_VIEW_ICONS, } from '../types';
2
+ import { marcoConstants } from '../../constants';
3
+ import { marcoSchemas } from '../../schemas';
4
+ import { socketTypeSchema } from '../../schemas/emailAccount';
5
+ import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES, USER_SETTINGS_CUSTOM_VIEW_ICONS, } from '../../types';
6
6
  const accountAliasSchema = v.object({
7
7
  emailAddress: marcoSchemas.string.email(),
8
8
  id: marcoSchemas.string.required(),
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const createAccount = createEndpoint({
6
6
  body: mutatorSchemas.account.createAccount,
7
7
  method: 'POST',
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const createAlias: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/:accountId/aliases/create", v.ObjectSchema<{
2
+ export declare const createAlias: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/aliases/create", v.ObjectSchema<{
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly alias: v.ObjectSchema<{
5
5
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const createAlias = createEndpoint({
6
6
  body: mutatorSchemas.account.createAlias,
7
7
  method: 'POST',
8
- path: '/v1/pv/models/accounts/:accountId/aliases/create',
8
+ path: '/v1/pv/models/account/:accountId/aliases/create',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const deleteAccount: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/:accountId/delete", v.ObjectSchema<{
2
+ export declare const deleteAccount: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/delete", v.ObjectSchema<{
3
3
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly data: v.ObjectSchema<{
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const deleteAccount = createEndpoint({
6
6
  body: mutatorSchemas.account.deleteAccount,
7
7
  method: 'DELETE',
8
- path: '/v1/pv/models/accounts/:accountId/delete',
8
+ path: '/v1/pv/models/account/:accountId/delete',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const deleteAlias: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/:accountId/aliases/:aliasId/delete", v.ObjectSchema<{
2
+ export declare const deleteAlias: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/alias/:aliasId/delete", v.ObjectSchema<{
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
5
  }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { accountNotFoundErrorSchema, aliasNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const deleteAlias = createEndpoint({
6
6
  body: mutatorSchemas.account.deleteAlias,
7
7
  method: 'DELETE',
8
- path: '/v1/pv/models/accounts/:accountId/aliases/:aliasId/delete',
8
+ path: '/v1/pv/models/account/:accountId/alias/:aliasId/delete',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const setAliasName: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/:accountId/aliases/:aliasId/set-name", v.ObjectSchema<{
2
+ export declare const setAliasName: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/alias/:aliasId/set-name", v.ObjectSchema<{
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
5
  readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { accountNotFoundErrorSchema, aliasNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const setAliasName = createEndpoint({
6
6
  body: mutatorSchemas.account.setAliasName,
7
7
  method: 'PATCH',
8
- path: '/v1/pv/models/accounts/:accountId/aliases/:aliasId/set-name',
8
+ path: '/v1/pv/models/account/:accountId/alias/:aliasId/set-name',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const setAliasPrimary: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/:accountId/aliases/:aliasId/set-primary", v.ObjectSchema<{
2
+ export declare const setAliasPrimary: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/alias/:aliasId/set-primary", v.ObjectSchema<{
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
5
  }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { accountNotFoundErrorSchema, aliasNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const setAliasPrimary = createEndpoint({
6
6
  body: mutatorSchemas.account.setAliasPrimary,
7
7
  method: 'PATCH',
8
- path: '/v1/pv/models/accounts/:accountId/aliases/:aliasId/set-primary',
8
+ path: '/v1/pv/models/account/:accountId/alias/:aliasId/set-primary',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const setConnectionConfigImap: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/:accountId/connection/set-imap", v.ObjectSchema<{
2
+ export declare const setConnectionConfigImap: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/connection/set-imap", v.ObjectSchema<{
3
3
  readonly connectionConfig: v.ObjectSchema<{
4
4
  readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
5
  readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const setConnectionConfigImap = createEndpoint({
6
6
  body: mutatorSchemas.account.setConnectionConfigImapRaw,
7
7
  method: 'POST',
8
- path: '/v1/pv/models/accounts/:accountId/connection/set-imap',
8
+ path: '/v1/pv/models/account/:accountId/connection/set-imap',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const setConnectionConfigOauth: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/:accountId/connection/set-oauth", v.ObjectSchema<{
2
+ export declare const setConnectionConfigOauth: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/connection/set-oauth", v.ObjectSchema<{
3
3
  readonly connectionConfig: v.ObjectSchema<{
4
4
  readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
5
  readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const setConnectionConfigOauth = createEndpoint({
6
6
  body: mutatorSchemas.account.setConnectionConfigOauth,
7
7
  method: 'POST',
8
- path: '/v1/pv/models/accounts/:accountId/connection/set-oauth',
8
+ path: '/v1/pv/models/account/:accountId/connection/set-oauth',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const setSettings: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/:accountId/set-settings", v.ObjectSchema<{
2
+ export declare const setSettings: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/set-settings", v.ObjectSchema<{
3
3
  readonly color: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
4
4
  readonly displayName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
5
5
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const setSettings = createEndpoint({
6
6
  body: mutatorSchemas.account.setSettings,
7
7
  method: 'PATCH',
8
- path: '/v1/pv/models/accounts/:accountId/set-settings',
8
+ path: '/v1/pv/models/account/:accountId/set-settings',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const cancelSend: import("../../../../..").EndpointConfig<"/v1/pv/models/drafts/:draftId/cancel-send", v.ObjectSchema<{
2
+ export declare const cancelSend: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/cancel-send", v.ObjectSchema<{
3
3
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
5
5
  }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const cancelSend = createEndpoint({
6
6
  body: mutatorSchemas.draft.cancelSend,
7
7
  method: 'POST',
8
- path: '/v1/pv/models/drafts/:draftId/cancel-send',
8
+ path: '/v1/pv/models/draft/:draftId/cancel-send',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const createAttachment: import("../../../../..").EndpointConfig<"/v1/pv/models/drafts/:draftId/attachments/create", v.ObjectSchema<{
2
+ export declare const createAttachment: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/attachments/create", v.ObjectSchema<{
3
3
  readonly attachment: v.ObjectSchema<{
4
4
  readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
5
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const createAttachment = createEndpoint({
6
6
  body: mutatorSchemas.draft.createAttachment,
7
7
  method: 'POST',
8
- path: '/v1/pv/models/drafts/:draftId/attachments/create',
8
+ path: '/v1/pv/models/draft/:draftId/attachments/create',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const createDraft = createEndpoint({
6
6
  body: mutatorSchemas.draft.createDraft,
7
7
  method: 'POST',
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const deleteAttachment: import("../../../../..").EndpointConfig<"/v1/pv/models/drafts/:draftId/attachments/:attachmentId/delete", v.ObjectSchema<{
2
+ export declare const deleteAttachment: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/attachment/:attachmentId/delete", v.ObjectSchema<{
3
3
  readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
5
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { attachmentNotFoundErrorSchema, authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const deleteAttachment = createEndpoint({
6
6
  body: mutatorSchemas.draft.deleteAttachment,
7
7
  method: 'DELETE',
8
- path: '/v1/pv/models/drafts/:draftId/attachments/:attachmentId/delete',
8
+ path: '/v1/pv/models/draft/:draftId/attachment/:attachmentId/delete',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const deleteDraft: import("../../../../..").EndpointConfig<"/v1/pv/models/drafts/:draftId/delete", v.ObjectSchema<{
2
+ export declare const deleteDraft: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/delete", v.ObjectSchema<{
3
3
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly data: v.ObjectSchema<{
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const deleteDraft = createEndpoint({
6
6
  body: mutatorSchemas.draft.deleteDraft,
7
7
  method: 'DELETE',
8
- path: '/v1/pv/models/drafts/:draftId/delete',
8
+ path: '/v1/pv/models/draft/:draftId/delete',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const scheduleSend: import("../../../../..").EndpointConfig<"/v1/pv/models/drafts/:draftId/schedule-send", v.UnionSchema<[v.ObjectSchema<{
2
+ export declare const scheduleSend: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/schedule-send", v.UnionSchema<[v.ObjectSchema<{
3
3
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly kind: v.LiteralSchema<"IMMEDIATE", undefined>;
5
5
  readonly undoMs: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const scheduleSend = createEndpoint({
6
6
  body: mutatorSchemas.draft.scheduleSend,
7
7
  method: 'POST',
8
- path: '/v1/pv/models/drafts/:draftId/schedule-send',
8
+ path: '/v1/pv/models/draft/:draftId/schedule-send',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const setContent: import("../../../../..").EndpointConfig<"/v1/pv/models/drafts/:draftId/set-content", v.ObjectSchema<{
2
+ export declare const setContent: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/set-content", v.ObjectSchema<{
3
3
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly patch: v.ArraySchema<v.ObjectSchema<{
5
5
  readonly index: v.NumberSchema<undefined>;
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
2
3
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
- import { mutatorSchemas } from '../../../../../zero';
5
5
  export const setContent = createEndpoint({
6
6
  body: mutatorSchemas.draft.setContent,
7
7
  method: 'PATCH',
8
- path: '/v1/pv/models/drafts/:draftId/set-content',
8
+ path: '/v1/pv/models/draft/:draftId/set-content',
9
9
  response: v.union([
10
10
  authFailedErrorSchema,
11
11
  userNotFoundErrorSchema,
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const setEnvelope: import("../../../../..").EndpointConfig<"/v1/pv/models/drafts/:draftId/set-envelope", v.ObjectSchema<{
2
+ export declare const setEnvelope: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/set-envelope", v.ObjectSchema<{
3
3
  readonly envelope: Omit<v.ObjectSchema<{
4
4
  readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
5
5
  readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
@@ -30,7 +30,7 @@ export declare const setEnvelope: import("../../../../..").EndpointConfig<"/v1/p
30
30
  cc: string[];
31
31
  to: string[];
32
32
  subject: string | null;
33
- }, v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue>;
33
+ }, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.NonOptionalIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number>>;
34
34
  readonly '~types'?: {
35
35
  readonly input: {
36
36
  bcc: string[];
@@ -44,7 +44,7 @@ export declare const setEnvelope: import("../../../../..").EndpointConfig<"/v1/p
44
44
  to: string[];
45
45
  subject: string | null;
46
46
  };
47
- readonly issue: v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue;
47
+ readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.NonOptionalIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number>;
48
48
  } | undefined;
49
49
  };
50
50
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;