samva 0.28.1 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/AGENTS.md +8 -0
  2. package/dist/client/sdk.gen.d.ts +156 -1
  3. package/dist/client/sdk.gen.js +475 -1
  4. package/dist/client/types.gen.d.ts +1653 -183
  5. package/dist/effect/campaigns.d.ts +32 -0
  6. package/dist/effect/generated/agents.js +36 -36
  7. package/dist/effect/generated/analytics.js +24 -24
  8. package/dist/effect/generated/api-keys.js +29 -29
  9. package/dist/effect/generated/attachments.js +13 -13
  10. package/dist/effect/generated/brands.js +13 -13
  11. package/dist/effect/generated/campaigns.d.ts +178 -60
  12. package/dist/effect/generated/campaigns.js +92 -104
  13. package/dist/effect/generated/contact-events.js +5 -5
  14. package/dist/effect/generated/contact-groups.js +38 -38
  15. package/dist/effect/generated/contacts.js +93 -93
  16. package/dist/effect/generated/conversations.js +38 -38
  17. package/dist/effect/generated/custom-fields.js +15 -15
  18. package/dist/effect/generated/email.js +225 -225
  19. package/dist/effect/generated/events.js +5 -5
  20. package/dist/effect/generated/extension-installations.js +35 -35
  21. package/dist/effect/generated/extensions.js +24 -24
  22. package/dist/effect/generated/feedback.js +6 -6
  23. package/dist/effect/generated/index.d.ts +5 -1
  24. package/dist/effect/generated/journeys.js +67 -67
  25. package/dist/effect/generated/mailboxes.js +286 -286
  26. package/dist/effect/generated/media.js +16 -16
  27. package/dist/effect/generated/messages.js +65 -65
  28. package/dist/effect/generated/namespaces.js +27 -27
  29. package/dist/effect/generated/operations.js +6 -6
  30. package/dist/effect/generated/organizations.js +19 -19
  31. package/dist/effect/generated/publication-domains.d.ts +548 -0
  32. package/dist/effect/generated/publication-domains.js +163 -0
  33. package/dist/effect/generated/scheduled-messages.js +25 -25
  34. package/dist/effect/generated/shared.d.ts +142 -30
  35. package/dist/effect/generated/shared.js +356 -328
  36. package/dist/effect/generated/subscriptions.js +10 -10
  37. package/dist/effect/generated/templates.d.ts +172 -15
  38. package/dist/effect/generated/templates.js +207 -162
  39. package/dist/effect/generated/topic-forms.js +21 -21
  40. package/dist/effect/generated/topic-issues.d.ts +2995 -0
  41. package/dist/effect/generated/topic-issues.js +985 -0
  42. package/dist/effect/generated/topics.d.ts +61 -1
  43. package/dist/effect/generated/topics.js +39 -31
  44. package/dist/effect/generated/webhooks.js +50 -50
  45. package/dist/effect/generated/whoami.js +10 -10
  46. package/dist/effect/generated-metadata.d.ts +70 -0
  47. package/dist/effect/generated-metadata.js +57 -13
  48. package/dist/effect/index.d.ts +2 -0
  49. package/dist/effect/index.js +3 -1
  50. package/dist/effect/journeys.d.ts +112 -112
  51. package/dist/effect/mailboxes.d.ts +78 -78
  52. package/dist/effect/publication-domains.d.ts +14 -0
  53. package/dist/effect/publication-domains.js +17 -0
  54. package/dist/effect/topic-issues.d.ts +57 -0
  55. package/dist/effect/topic-issues.js +33 -0
  56. package/dist/effect/topics.d.ts +6 -2
  57. package/dist/package.js +1 -1
  58. package/dist/promises/index.d.ts +5 -1
  59. package/dist/promises/index.js +5 -1
  60. package/dist/promises/types.gen.d.ts +1 -1
  61. package/dist/service-map.d.ts +74 -0
  62. package/dist/service-map.js +56 -0
  63. package/package.json +11 -3
@@ -2,7 +2,7 @@ import { ApiKeySecurityMiddleware, FlagDisabledError, ForbiddenError, GatewayTim
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  //#region src/effect/generated/topic-forms.ts
5
- const TopicForm = /* @__PURE__ */ Schema.Struct({
5
+ const TopicForm = /* @__PURE__ */ (() => Schema.Struct({
6
6
  id: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })),
7
7
  publicKey: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" })),
8
8
  topicId: TopicId,
@@ -15,68 +15,68 @@ const TopicForm = /* @__PURE__ */ Schema.Struct({
15
15
  linkOrigin: Schema.String,
16
16
  createdAt: Schema.String,
17
17
  updatedAt: Schema.String
18
- }).annotate({ identifier: "TopicForm" });
19
- const TopicFormsListPathParams = /* @__PURE__ */ Schema.Struct({ id: TopicId });
20
- const TopicFormsList200 = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(TopicForm) });
18
+ }).annotate({ identifier: "TopicForm" }))();
19
+ const TopicFormsListPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TopicId }))();
20
+ const TopicFormsList200 = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(TopicForm) }))();
21
21
  const TopicFormsList401 = UnauthorizedError;
22
- const TopicFormsList403 = /* @__PURE__ */ Schema.Union([ForbiddenError, FlagDisabledError]);
22
+ const TopicFormsList403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
23
23
  const TopicFormsList404 = ResourceNotFoundError;
24
24
  const TopicFormsList422 = ValidationError;
25
25
  const TopicFormsList500 = InternalError;
26
26
  const TopicFormsList504 = GatewayTimeoutError;
27
- const TopicFormsCreatePathParams = /* @__PURE__ */ Schema.Struct({ id: TopicId });
28
- const TopicFormsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
27
+ const TopicFormsCreatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: TopicId }))();
28
+ const TopicFormsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
29
29
  allowedOrigins: Schema.Array(Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^https:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" }))).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
30
30
  confirmationTitle: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })),
31
31
  confirmationMessage: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ expected: "a string with at most 2000 code points" })).check(Schema.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
32
32
  successTitle: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })),
33
33
  successMessage: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ expected: "a string with at most 2000 code points" })).check(Schema.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
34
34
  redirectUrl: Schema.Union([Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^https:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })), Schema.Null])
35
- });
35
+ }))();
36
36
  const TopicFormsCreate201 = TopicForm;
37
37
  const TopicFormsCreate401 = UnauthorizedError;
38
- const TopicFormsCreate403 = /* @__PURE__ */ Schema.Union([ForbiddenError, FlagDisabledError]);
38
+ const TopicFormsCreate403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
39
39
  const TopicFormsCreate404 = ResourceNotFoundError;
40
40
  const TopicFormsCreate422 = ValidationError;
41
41
  const TopicFormsCreate500 = InternalError;
42
42
  const TopicFormsCreate504 = GatewayTimeoutError;
43
- const TopicFormsGetPathParams = /* @__PURE__ */ Schema.Struct({
43
+ const TopicFormsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({
44
44
  id: TopicId,
45
45
  formId: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" }))
46
- });
46
+ }))();
47
47
  const TopicFormsGet200 = TopicForm;
48
48
  const TopicFormsGet401 = UnauthorizedError;
49
- const TopicFormsGet403 = /* @__PURE__ */ Schema.Union([ForbiddenError, FlagDisabledError]);
49
+ const TopicFormsGet403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
50
50
  const TopicFormsGet404 = ResourceNotFoundError;
51
51
  const TopicFormsGet422 = ValidationError;
52
52
  const TopicFormsGet500 = InternalError;
53
53
  const TopicFormsGet504 = GatewayTimeoutError;
54
- const TopicFormsRemovePathParams = /* @__PURE__ */ Schema.Struct({
54
+ const TopicFormsRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({
55
55
  id: TopicId,
56
56
  formId: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" }))
57
- });
58
- const TopicFormsRemove200 = /* @__PURE__ */ Schema.Struct({ success: Schema.Boolean });
57
+ }))();
58
+ const TopicFormsRemove200 = /* @__PURE__ */ (() => Schema.Struct({ success: Schema.Boolean }))();
59
59
  const TopicFormsRemove401 = UnauthorizedError;
60
- const TopicFormsRemove403 = /* @__PURE__ */ Schema.Union([ForbiddenError, FlagDisabledError]);
60
+ const TopicFormsRemove403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
61
61
  const TopicFormsRemove404 = ResourceNotFoundError;
62
62
  const TopicFormsRemove422 = ValidationError;
63
63
  const TopicFormsRemove500 = InternalError;
64
64
  const TopicFormsRemove504 = GatewayTimeoutError;
65
- const TopicFormsUpdatePathParams = /* @__PURE__ */ Schema.Struct({
65
+ const TopicFormsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({
66
66
  id: TopicId,
67
67
  formId: Schema.String.annotate({ format: "uuid" }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$", "u")).annotate({ expected: "a string matching the RegExp ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$" }))
68
- });
69
- const TopicFormsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
68
+ }))();
69
+ const TopicFormsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
70
70
  allowedOrigins: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^https:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" }))).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })), Schema.Null])),
71
71
  confirmationTitle: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
72
72
  confirmationMessage: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ expected: "a string with at most 2000 code points" })).check(Schema.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })), Schema.Null])),
73
73
  successTitle: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
74
74
  successMessage: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ expected: "a string with at most 2000 code points" })).check(Schema.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })), Schema.Null])),
75
75
  redirectUrl: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String.check(Schema.isMaxCodePoints(2048).annotate({ expected: "a string with at most 2048 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^https:\\/\\/", "u")).annotate({ expected: "a string matching the RegExp ^https:\\/\\/" })).check(Schema.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })), Schema.Null]), Schema.Null]))
76
- });
76
+ }))();
77
77
  const TopicFormsUpdate200 = TopicForm;
78
78
  const TopicFormsUpdate401 = UnauthorizedError;
79
- const TopicFormsUpdate403 = /* @__PURE__ */ Schema.Union([ForbiddenError, FlagDisabledError]);
79
+ const TopicFormsUpdate403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, FlagDisabledError]))();
80
80
  const TopicFormsUpdate404 = ResourceNotFoundError;
81
81
  const TopicFormsUpdate422 = ValidationError;
82
82
  const TopicFormsUpdate500 = InternalError;