samva 0.28.1 → 0.29.1

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 (64) hide show
  1. package/AGENTS.md +8 -0
  2. package/README.md +1 -1
  3. package/dist/client/sdk.gen.d.ts +156 -1
  4. package/dist/client/sdk.gen.js +475 -1
  5. package/dist/client/types.gen.d.ts +1653 -183
  6. package/dist/effect/campaigns.d.ts +32 -0
  7. package/dist/effect/generated/agents.js +36 -36
  8. package/dist/effect/generated/analytics.js +24 -24
  9. package/dist/effect/generated/api-keys.js +29 -29
  10. package/dist/effect/generated/attachments.js +13 -13
  11. package/dist/effect/generated/brands.js +13 -13
  12. package/dist/effect/generated/campaigns.d.ts +178 -60
  13. package/dist/effect/generated/campaigns.js +92 -104
  14. package/dist/effect/generated/contact-events.js +5 -5
  15. package/dist/effect/generated/contact-groups.js +38 -38
  16. package/dist/effect/generated/contacts.js +93 -93
  17. package/dist/effect/generated/conversations.js +38 -38
  18. package/dist/effect/generated/custom-fields.js +15 -15
  19. package/dist/effect/generated/email.js +225 -225
  20. package/dist/effect/generated/events.js +5 -5
  21. package/dist/effect/generated/extension-installations.js +35 -35
  22. package/dist/effect/generated/extensions.js +24 -24
  23. package/dist/effect/generated/feedback.js +6 -6
  24. package/dist/effect/generated/index.d.ts +5 -1
  25. package/dist/effect/generated/journeys.js +67 -67
  26. package/dist/effect/generated/mailboxes.js +286 -286
  27. package/dist/effect/generated/media.js +16 -16
  28. package/dist/effect/generated/messages.js +65 -65
  29. package/dist/effect/generated/namespaces.js +27 -27
  30. package/dist/effect/generated/operations.js +6 -6
  31. package/dist/effect/generated/organizations.js +19 -19
  32. package/dist/effect/generated/publication-domains.d.ts +548 -0
  33. package/dist/effect/generated/publication-domains.js +163 -0
  34. package/dist/effect/generated/scheduled-messages.js +25 -25
  35. package/dist/effect/generated/shared.d.ts +142 -30
  36. package/dist/effect/generated/shared.js +356 -328
  37. package/dist/effect/generated/subscriptions.js +10 -10
  38. package/dist/effect/generated/templates.d.ts +172 -15
  39. package/dist/effect/generated/templates.js +207 -162
  40. package/dist/effect/generated/topic-forms.js +21 -21
  41. package/dist/effect/generated/topic-issues.d.ts +2995 -0
  42. package/dist/effect/generated/topic-issues.js +985 -0
  43. package/dist/effect/generated/topics.d.ts +61 -1
  44. package/dist/effect/generated/topics.js +39 -31
  45. package/dist/effect/generated/webhooks.js +50 -50
  46. package/dist/effect/generated/whoami.js +10 -10
  47. package/dist/effect/generated-metadata.d.ts +70 -0
  48. package/dist/effect/generated-metadata.js +57 -13
  49. package/dist/effect/index.d.ts +2 -0
  50. package/dist/effect/index.js +3 -1
  51. package/dist/effect/journeys.d.ts +112 -112
  52. package/dist/effect/mailboxes.d.ts +78 -78
  53. package/dist/effect/publication-domains.d.ts +14 -0
  54. package/dist/effect/publication-domains.js +17 -0
  55. package/dist/effect/topic-issues.d.ts +57 -0
  56. package/dist/effect/topic-issues.js +33 -0
  57. package/dist/effect/topics.d.ts +6 -2
  58. package/dist/package.js +1 -1
  59. package/dist/promises/index.d.ts +5 -1
  60. package/dist/promises/index.js +5 -1
  61. package/dist/promises/types.gen.d.ts +1 -1
  62. package/dist/service-map.d.ts +74 -0
  63. package/dist/service-map.js +56 -0
  64. package/package.json +16 -8
@@ -2,11 +2,11 @@ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, Forbidde
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/organizations.ts
5
- const PhoneRegion = /* @__PURE__ */ Schema.String.annotate({ description: "An ISO 3166-1 alpha-2 region code, such as US or IN." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[A-Z]{2}$", "u")).annotate({
5
+ const PhoneRegion = /* @__PURE__ */ (() => Schema.String.annotate({ description: "An ISO 3166-1 alpha-2 region code, such as US or IN." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[A-Z]{2}$", "u")).annotate({
6
6
  expected: "a string matching the RegExp ^[A-Z]{2}$",
7
7
  identifier: "PhoneRegion"
8
- }));
9
- const Organization = /* @__PURE__ */ Schema.Struct({
8
+ })))();
9
+ const Organization = /* @__PURE__ */ (() => Schema.Struct({
10
10
  id: Schema.String,
11
11
  billingAccountId: Schema.String,
12
12
  name: Schema.String,
@@ -29,8 +29,8 @@ const Organization = /* @__PURE__ */ Schema.Struct({
29
29
  conversationsUsed: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
30
30
  teamMembersUsed: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
31
31
  messagesResetAt: Schema.Union([Schema.String, Schema.Null])
32
- }).annotate({ identifier: "Organization" });
33
- const OrganizationsCreateRequestJson = /* @__PURE__ */ Schema.Struct({ name: Schema.String });
32
+ }).annotate({ identifier: "Organization" }))();
33
+ const OrganizationsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({ name: Schema.String }))();
34
34
  const OrganizationsCreate200 = Organization;
35
35
  const OrganizationsCreate401 = UnauthorizedError;
36
36
  const OrganizationsCreate402 = PaymentRequiredError;
@@ -46,7 +46,7 @@ const OrganizationsGet404 = ResourceNotFoundError;
46
46
  const OrganizationsGet422 = ValidationError;
47
47
  const OrganizationsGet500 = InternalError;
48
48
  const OrganizationsGet504 = GatewayTimeoutError;
49
- const OrganizationsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
49
+ const OrganizationsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
50
50
  name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
51
51
  slug: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
52
52
  avatarUrl: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]).annotate({ description: "The `src` returned by an avatar upload (see `POST /v1/organizations/current/avatar-upload`). Null removes the avatar." }), Schema.Null])),
@@ -56,7 +56,7 @@ const OrganizationsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
56
56
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null])),
57
57
  replyToDefault: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
58
58
  emailFooterEnabledDefault: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Boolean, Schema.Null]), Schema.Null]))
59
- });
59
+ }))();
60
60
  const OrganizationsUpdate200 = Organization;
61
61
  const OrganizationsUpdate401 = UnauthorizedError;
62
62
  const OrganizationsUpdate403 = ForbiddenError;
@@ -64,28 +64,28 @@ const OrganizationsUpdate404 = ResourceNotFoundError;
64
64
  const OrganizationsUpdate422 = ValidationError;
65
65
  const OrganizationsUpdate500 = InternalError;
66
66
  const OrganizationsUpdate504 = GatewayTimeoutError;
67
- const OrganizationsCreateAvatarUpload200 = /* @__PURE__ */ Schema.Struct({
67
+ const OrganizationsCreateAvatarUpload200 = /* @__PURE__ */ (() => Schema.Struct({
68
68
  uploadUrl: Schema.String.annotate({ description: "The URL to PUT the image bytes to." }),
69
69
  maxBytes: Schema.Finite.annotate({ description: "The largest image the upload accepts, in bytes." }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
70
70
  contentTypes: Schema.Array(Schema.String).annotate({ description: "The image content types the upload accepts." })
71
- });
71
+ }))();
72
72
  const OrganizationsCreateAvatarUpload401 = UnauthorizedError;
73
73
  const OrganizationsCreateAvatarUpload403 = ForbiddenError;
74
74
  const OrganizationsCreateAvatarUpload422 = ValidationError;
75
75
  const OrganizationsCreateAvatarUpload500 = InternalError;
76
76
  const OrganizationsCreateAvatarUpload504 = GatewayTimeoutError;
77
- const OrganizationsGetProfile200 = /* @__PURE__ */ Schema.Struct({
77
+ const OrganizationsGetProfile200 = /* @__PURE__ */ (() => Schema.Struct({
78
78
  id: Schema.String.annotate({ description: "Opaque identity for your organization membership" }),
79
79
  name: Schema.String.annotate({ description: "Your display name" }),
80
80
  nickname: Schema.String.annotate({ description: "Your display name and organization name" })
81
- });
81
+ }))();
82
82
  const OrganizationsGetProfile401 = UnauthorizedError;
83
83
  const OrganizationsGetProfile403 = ForbiddenError;
84
84
  const OrganizationsGetProfile422 = ValidationError;
85
85
  const OrganizationsGetProfile500 = InternalError;
86
86
  const OrganizationsGetProfile504 = GatewayTimeoutError;
87
- const OrganizationsDeleteHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) });
88
- const OrganizationsDeleteRequestJson = /* @__PURE__ */ Schema.Struct({ confirmationName: Schema.String });
87
+ const OrganizationsDeleteHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })) }))();
88
+ const OrganizationsDeleteRequestJson = /* @__PURE__ */ (() => Schema.Struct({ confirmationName: Schema.String }))();
89
89
  const OrganizationsDelete202 = OperationAccepted;
90
90
  const OrganizationsDelete401 = UnauthorizedError;
91
91
  const OrganizationsDelete403 = ForbiddenError;
@@ -93,7 +93,7 @@ const OrganizationsDelete409 = ConflictError;
93
93
  const OrganizationsDelete422 = ValidationError;
94
94
  const OrganizationsDelete500 = InternalError;
95
95
  const OrganizationsDelete504 = GatewayTimeoutError;
96
- const OrganizationsGetTrustTier200 = /* @__PURE__ */ Schema.Struct({
96
+ const OrganizationsGetTrustTier200 = /* @__PURE__ */ (() => Schema.Struct({
97
97
  tier: Schema.Union([
98
98
  Schema.Literal("screened"),
99
99
  Schema.Literal("probation"),
@@ -132,7 +132,7 @@ const OrganizationsGetTrustTier200 = /* @__PURE__ */ Schema.Struct({
132
132
  Schema.Literal("bounce_rate")
133
133
  ]))
134
134
  }), Schema.Null])
135
- });
135
+ }))();
136
136
  const OrganizationsGetTrustTier401 = UnauthorizedError;
137
137
  const OrganizationsGetTrustTier403 = ForbiddenError;
138
138
  const OrganizationsGetTrustTier404 = ResourceNotFoundError;
@@ -140,11 +140,11 @@ const OrganizationsGetTrustTier422 = ValidationError;
140
140
  const OrganizationsGetTrustTier500 = InternalError;
141
141
  const OrganizationsGetTrustTier502 = BillingProviderError;
142
142
  const OrganizationsGetTrustTier504 = GatewayTimeoutError;
143
- const OrganizationsGetUsageQuery = /* @__PURE__ */ Schema.Struct({
143
+ const OrganizationsGetUsageQuery = /* @__PURE__ */ (() => Schema.Struct({
144
144
  after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
145
145
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
146
- });
147
- const OrganizationsGetUsage200 = /* @__PURE__ */ Schema.Struct({
146
+ }))();
147
+ const OrganizationsGetUsage200 = /* @__PURE__ */ (() => Schema.Struct({
148
148
  usage: Schema.Struct({
149
149
  periodStart: Schema.String,
150
150
  periodEnd: Schema.String,
@@ -166,7 +166,7 @@ const OrganizationsGetUsage200 = /* @__PURE__ */ Schema.Struct({
166
166
  aiResetsAt: Schema.Union([Schema.String, Schema.Null]),
167
167
  creditsResetsAt: Schema.Union([Schema.String, Schema.Null])
168
168
  })
169
- });
169
+ }))();
170
170
  const OrganizationsGetUsage401 = UnauthorizedError;
171
171
  const OrganizationsGetUsage403 = ForbiddenError;
172
172
  const OrganizationsGetUsage422 = ValidationError;
@@ -0,0 +1,548 @@
1
+ import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
+ import * as Schema from "effect/Schema";
3
+ import { ApiKeySecurityMiddleware, ConflictError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, OrganizationId, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared";
4
+ export type TopicPublicationDomainsAddPathParams = {
5
+ readonly id: TopicId;
6
+ };
7
+ export declare const TopicPublicationDomainsAddPathParams: Schema.Struct<{
8
+ readonly id: Schema.brand<Schema.String, "TopicId">;
9
+ }>;
10
+ export type TopicPublicationDomainsAddRequestJson = {
11
+ readonly hostname: string;
12
+ readonly idempotencyKey: string;
13
+ };
14
+ export declare const TopicPublicationDomainsAddRequestJson: Schema.Struct<{
15
+ readonly hostname: Schema.String;
16
+ readonly idempotencyKey: Schema.String;
17
+ }>;
18
+ export type TopicPublicationDomainsAdd200 = {
19
+ readonly organizationId: OrganizationId;
20
+ readonly topicId: TopicId;
21
+ readonly hostname: string;
22
+ readonly canonicalHostname: string;
23
+ readonly phase: "pending" | "active" | "removing" | "removed" | "conflict";
24
+ readonly active: boolean;
25
+ readonly hostnameStatus: string | null;
26
+ readonly sslStatus: string | null;
27
+ readonly cname: {
28
+ readonly type: "CNAME" | "TXT";
29
+ readonly name: string;
30
+ readonly value: string;
31
+ };
32
+ readonly verificationRecords: ReadonlyArray<{
33
+ readonly type: "CNAME" | "TXT";
34
+ readonly name: string;
35
+ readonly value: string;
36
+ }>;
37
+ readonly verificationErrors: ReadonlyArray<string>;
38
+ };
39
+ export declare const TopicPublicationDomainsAdd200: Schema.Struct<{
40
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
41
+ readonly topicId: Schema.brand<Schema.String, "TopicId">;
42
+ readonly hostname: Schema.String;
43
+ readonly canonicalHostname: Schema.String;
44
+ readonly phase: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"active">, Schema.Literal<"removing">, Schema.Literal<"removed">, Schema.Literal<"conflict">]>;
45
+ readonly active: Schema.Boolean;
46
+ readonly hostnameStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
47
+ readonly sslStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
48
+ readonly cname: Schema.Struct<{
49
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
50
+ readonly name: Schema.String;
51
+ readonly value: Schema.String;
52
+ }>;
53
+ readonly verificationRecords: Schema.$Array<Schema.Struct<{
54
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
55
+ readonly name: Schema.String;
56
+ readonly value: Schema.String;
57
+ }>>;
58
+ readonly verificationErrors: Schema.$Array<Schema.String>;
59
+ }>;
60
+ export type TopicPublicationDomainsAdd401 = UnauthorizedError;
61
+ export declare const TopicPublicationDomainsAdd401: typeof UnauthorizedError;
62
+ export type TopicPublicationDomainsAdd403 = ForbiddenError | FlagDisabledError;
63
+ export declare const TopicPublicationDomainsAdd403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
64
+ export type TopicPublicationDomainsAdd404 = ResourceNotFoundError;
65
+ export declare const TopicPublicationDomainsAdd404: typeof ResourceNotFoundError;
66
+ export type TopicPublicationDomainsAdd409 = ConflictError;
67
+ export declare const TopicPublicationDomainsAdd409: typeof ConflictError;
68
+ export type TopicPublicationDomainsAdd422 = ValidationError;
69
+ export declare const TopicPublicationDomainsAdd422: typeof ValidationError;
70
+ export type TopicPublicationDomainsAdd500 = InternalError;
71
+ export declare const TopicPublicationDomainsAdd500: typeof InternalError;
72
+ export type TopicPublicationDomainsAdd504 = GatewayTimeoutError;
73
+ export declare const TopicPublicationDomainsAdd504: typeof GatewayTimeoutError;
74
+ export type TopicPublicationDomainsGetPathParams = {
75
+ readonly id: TopicId;
76
+ readonly hostname: string;
77
+ };
78
+ export declare const TopicPublicationDomainsGetPathParams: Schema.Struct<{
79
+ readonly id: Schema.brand<Schema.String, "TopicId">;
80
+ readonly hostname: Schema.String;
81
+ }>;
82
+ export type TopicPublicationDomainsGet200 = {
83
+ readonly organizationId: OrganizationId;
84
+ readonly topicId: TopicId;
85
+ readonly hostname: string;
86
+ readonly canonicalHostname: string;
87
+ readonly phase: "pending" | "active" | "removing" | "removed" | "conflict";
88
+ readonly active: boolean;
89
+ readonly hostnameStatus: string | null;
90
+ readonly sslStatus: string | null;
91
+ readonly cname: {
92
+ readonly type: "CNAME" | "TXT";
93
+ readonly name: string;
94
+ readonly value: string;
95
+ };
96
+ readonly verificationRecords: ReadonlyArray<{
97
+ readonly type: "CNAME" | "TXT";
98
+ readonly name: string;
99
+ readonly value: string;
100
+ }>;
101
+ readonly verificationErrors: ReadonlyArray<string>;
102
+ };
103
+ export declare const TopicPublicationDomainsGet200: Schema.Struct<{
104
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
105
+ readonly topicId: Schema.brand<Schema.String, "TopicId">;
106
+ readonly hostname: Schema.String;
107
+ readonly canonicalHostname: Schema.String;
108
+ readonly phase: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"active">, Schema.Literal<"removing">, Schema.Literal<"removed">, Schema.Literal<"conflict">]>;
109
+ readonly active: Schema.Boolean;
110
+ readonly hostnameStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
111
+ readonly sslStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
112
+ readonly cname: Schema.Struct<{
113
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
114
+ readonly name: Schema.String;
115
+ readonly value: Schema.String;
116
+ }>;
117
+ readonly verificationRecords: Schema.$Array<Schema.Struct<{
118
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
119
+ readonly name: Schema.String;
120
+ readonly value: Schema.String;
121
+ }>>;
122
+ readonly verificationErrors: Schema.$Array<Schema.String>;
123
+ }>;
124
+ export type TopicPublicationDomainsGet401 = UnauthorizedError;
125
+ export declare const TopicPublicationDomainsGet401: typeof UnauthorizedError;
126
+ export type TopicPublicationDomainsGet403 = ForbiddenError | FlagDisabledError;
127
+ export declare const TopicPublicationDomainsGet403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
128
+ export type TopicPublicationDomainsGet404 = ResourceNotFoundError;
129
+ export declare const TopicPublicationDomainsGet404: typeof ResourceNotFoundError;
130
+ export type TopicPublicationDomainsGet409 = ConflictError;
131
+ export declare const TopicPublicationDomainsGet409: typeof ConflictError;
132
+ export type TopicPublicationDomainsGet422 = ValidationError;
133
+ export declare const TopicPublicationDomainsGet422: typeof ValidationError;
134
+ export type TopicPublicationDomainsGet500 = InternalError;
135
+ export declare const TopicPublicationDomainsGet500: typeof InternalError;
136
+ export type TopicPublicationDomainsGet504 = GatewayTimeoutError;
137
+ export declare const TopicPublicationDomainsGet504: typeof GatewayTimeoutError;
138
+ export type TopicPublicationDomainsRemovePathParams = {
139
+ readonly id: TopicId;
140
+ readonly hostname: string;
141
+ };
142
+ export declare const TopicPublicationDomainsRemovePathParams: Schema.Struct<{
143
+ readonly id: Schema.brand<Schema.String, "TopicId">;
144
+ readonly hostname: Schema.String;
145
+ }>;
146
+ export type TopicPublicationDomainsRemoveQuery = {
147
+ readonly idempotencyKey: string;
148
+ };
149
+ export declare const TopicPublicationDomainsRemoveQuery: Schema.Struct<{
150
+ readonly idempotencyKey: Schema.String;
151
+ }>;
152
+ export type TopicPublicationDomainsRemove200 = {
153
+ readonly organizationId: OrganizationId;
154
+ readonly topicId: TopicId;
155
+ readonly hostname: string;
156
+ readonly canonicalHostname: string;
157
+ readonly phase: "pending" | "active" | "removing" | "removed" | "conflict";
158
+ readonly active: boolean;
159
+ readonly hostnameStatus: string | null;
160
+ readonly sslStatus: string | null;
161
+ readonly cname: {
162
+ readonly type: "CNAME" | "TXT";
163
+ readonly name: string;
164
+ readonly value: string;
165
+ };
166
+ readonly verificationRecords: ReadonlyArray<{
167
+ readonly type: "CNAME" | "TXT";
168
+ readonly name: string;
169
+ readonly value: string;
170
+ }>;
171
+ readonly verificationErrors: ReadonlyArray<string>;
172
+ };
173
+ export declare const TopicPublicationDomainsRemove200: Schema.Struct<{
174
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
175
+ readonly topicId: Schema.brand<Schema.String, "TopicId">;
176
+ readonly hostname: Schema.String;
177
+ readonly canonicalHostname: Schema.String;
178
+ readonly phase: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"active">, Schema.Literal<"removing">, Schema.Literal<"removed">, Schema.Literal<"conflict">]>;
179
+ readonly active: Schema.Boolean;
180
+ readonly hostnameStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
181
+ readonly sslStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
182
+ readonly cname: Schema.Struct<{
183
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
184
+ readonly name: Schema.String;
185
+ readonly value: Schema.String;
186
+ }>;
187
+ readonly verificationRecords: Schema.$Array<Schema.Struct<{
188
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
189
+ readonly name: Schema.String;
190
+ readonly value: Schema.String;
191
+ }>>;
192
+ readonly verificationErrors: Schema.$Array<Schema.String>;
193
+ }>;
194
+ export type TopicPublicationDomainsRemove401 = UnauthorizedError;
195
+ export declare const TopicPublicationDomainsRemove401: typeof UnauthorizedError;
196
+ export type TopicPublicationDomainsRemove403 = ForbiddenError | FlagDisabledError;
197
+ export declare const TopicPublicationDomainsRemove403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
198
+ export type TopicPublicationDomainsRemove404 = ResourceNotFoundError;
199
+ export declare const TopicPublicationDomainsRemove404: typeof ResourceNotFoundError;
200
+ export type TopicPublicationDomainsRemove409 = ConflictError;
201
+ export declare const TopicPublicationDomainsRemove409: typeof ConflictError;
202
+ export type TopicPublicationDomainsRemove422 = ValidationError;
203
+ export declare const TopicPublicationDomainsRemove422: typeof ValidationError;
204
+ export type TopicPublicationDomainsRemove500 = InternalError;
205
+ export declare const TopicPublicationDomainsRemove500: typeof InternalError;
206
+ export type TopicPublicationDomainsRemove504 = GatewayTimeoutError;
207
+ export declare const TopicPublicationDomainsRemove504: typeof GatewayTimeoutError;
208
+ declare const PublicationDomainsGroup_base: HttpApiGroup.HttpApiGroup<"Publication domains", HttpApiEndpoint.HttpApiEndpoint<"topicPublicationDomainsAdd", "POST", "/v1/topics/:id/publication/domains", Schema.toCodecStringTree<Schema.Struct<{
209
+ readonly id: Schema.brand<Schema.String, "TopicId">;
210
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
211
+ readonly hostname: Schema.String;
212
+ readonly idempotencyKey: Schema.String;
213
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
214
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
215
+ readonly topicId: Schema.brand<Schema.String, "TopicId">;
216
+ readonly hostname: Schema.String;
217
+ readonly canonicalHostname: Schema.String;
218
+ readonly phase: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"active">, Schema.Literal<"removing">, Schema.Literal<"removed">, Schema.Literal<"conflict">]>;
219
+ readonly active: Schema.Boolean;
220
+ readonly hostnameStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
221
+ readonly sslStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
222
+ readonly cname: Schema.Struct<{
223
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
224
+ readonly name: Schema.String;
225
+ readonly value: Schema.String;
226
+ }>;
227
+ readonly verificationRecords: Schema.$Array<Schema.Struct<{
228
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
229
+ readonly name: Schema.String;
230
+ readonly value: Schema.String;
231
+ }>>;
232
+ readonly verificationErrors: Schema.$Array<Schema.String>;
233
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
234
+ readonly _tag: "ConflictError";
235
+ readonly message: string;
236
+ readonly resource: string;
237
+ readonly id?: string | null;
238
+ }, readonly [Schema.Struct<{
239
+ readonly _tag: Schema.tag<"ConflictError">;
240
+ readonly message: Schema.String;
241
+ readonly resource: Schema.String;
242
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
243
+ }>], {
244
+ readonly _tag: "ConflictError";
245
+ readonly message: string;
246
+ readonly resource: string;
247
+ readonly id?: string | null;
248
+ }>, Schema.Struct<{
249
+ readonly _tag: Schema.tag<"ConflictError">;
250
+ readonly message: Schema.String;
251
+ readonly resource: Schema.String;
252
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
253
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
254
+ readonly _tag: "GatewayTimeoutError";
255
+ readonly message: string;
256
+ readonly retryAfterSeconds: number;
257
+ }, readonly [Schema.Struct<{
258
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
259
+ readonly message: Schema.String;
260
+ readonly retryAfterSeconds: Schema.Finite;
261
+ }>], {
262
+ readonly _tag: "GatewayTimeoutError";
263
+ readonly message: string;
264
+ readonly retryAfterSeconds: number;
265
+ }>, Schema.Struct<{
266
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
267
+ readonly message: Schema.String;
268
+ readonly retryAfterSeconds: Schema.Finite;
269
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
270
+ readonly _tag: "ResourceNotFoundError";
271
+ readonly resource: string;
272
+ readonly id: string;
273
+ readonly message: string;
274
+ }, readonly [Schema.Struct<{
275
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
276
+ readonly resource: Schema.String;
277
+ readonly id: Schema.String;
278
+ readonly message: Schema.String;
279
+ }>], {
280
+ readonly _tag: "ResourceNotFoundError";
281
+ readonly resource: string;
282
+ readonly id: string;
283
+ readonly message: string;
284
+ }>, Schema.Struct<{
285
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
286
+ readonly resource: Schema.String;
287
+ readonly id: Schema.String;
288
+ readonly message: Schema.String;
289
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
290
+ readonly _tag: "UnauthorizedError";
291
+ readonly message: string;
292
+ }, readonly [Schema.Struct<{
293
+ readonly _tag: Schema.tag<"UnauthorizedError">;
294
+ readonly message: Schema.String;
295
+ }>], {
296
+ readonly _tag: "UnauthorizedError";
297
+ readonly message: string;
298
+ }>, Schema.Struct<{
299
+ readonly _tag: Schema.tag<"UnauthorizedError">;
300
+ readonly message: Schema.String;
301
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
302
+ readonly _tag: "ValidationError";
303
+ readonly message: string;
304
+ readonly fields?: {
305
+ readonly [x: string]: readonly string[];
306
+ } | null;
307
+ }, readonly [Schema.Struct<{
308
+ readonly _tag: Schema.tag<"ValidationError">;
309
+ readonly message: Schema.String;
310
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
311
+ }>], {
312
+ readonly _tag: "ValidationError";
313
+ readonly message: string;
314
+ readonly fields?: {
315
+ readonly [x: string]: readonly string[];
316
+ } | null;
317
+ }>, Schema.Struct<{
318
+ readonly _tag: Schema.tag<"ValidationError">;
319
+ readonly message: Schema.String;
320
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
321
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"topicPublicationDomainsGet", "GET", "/v1/topics/:id/publication/domains/:hostname", Schema.toCodecStringTree<Schema.Struct<{
322
+ readonly id: Schema.brand<Schema.String, "TopicId">;
323
+ readonly hostname: Schema.String;
324
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
325
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
326
+ readonly topicId: Schema.brand<Schema.String, "TopicId">;
327
+ readonly hostname: Schema.String;
328
+ readonly canonicalHostname: Schema.String;
329
+ readonly phase: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"active">, Schema.Literal<"removing">, Schema.Literal<"removed">, Schema.Literal<"conflict">]>;
330
+ readonly active: Schema.Boolean;
331
+ readonly hostnameStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
332
+ readonly sslStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
333
+ readonly cname: Schema.Struct<{
334
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
335
+ readonly name: Schema.String;
336
+ readonly value: Schema.String;
337
+ }>;
338
+ readonly verificationRecords: Schema.$Array<Schema.Struct<{
339
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
340
+ readonly name: Schema.String;
341
+ readonly value: Schema.String;
342
+ }>>;
343
+ readonly verificationErrors: Schema.$Array<Schema.String>;
344
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
345
+ readonly _tag: "ConflictError";
346
+ readonly message: string;
347
+ readonly resource: string;
348
+ readonly id?: string | null;
349
+ }, readonly [Schema.Struct<{
350
+ readonly _tag: Schema.tag<"ConflictError">;
351
+ readonly message: Schema.String;
352
+ readonly resource: Schema.String;
353
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
354
+ }>], {
355
+ readonly _tag: "ConflictError";
356
+ readonly message: string;
357
+ readonly resource: string;
358
+ readonly id?: string | null;
359
+ }>, Schema.Struct<{
360
+ readonly _tag: Schema.tag<"ConflictError">;
361
+ readonly message: Schema.String;
362
+ readonly resource: Schema.String;
363
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
364
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
365
+ readonly _tag: "GatewayTimeoutError";
366
+ readonly message: string;
367
+ readonly retryAfterSeconds: number;
368
+ }, readonly [Schema.Struct<{
369
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
370
+ readonly message: Schema.String;
371
+ readonly retryAfterSeconds: Schema.Finite;
372
+ }>], {
373
+ readonly _tag: "GatewayTimeoutError";
374
+ readonly message: string;
375
+ readonly retryAfterSeconds: number;
376
+ }>, Schema.Struct<{
377
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
378
+ readonly message: Schema.String;
379
+ readonly retryAfterSeconds: Schema.Finite;
380
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
381
+ readonly _tag: "ResourceNotFoundError";
382
+ readonly resource: string;
383
+ readonly id: string;
384
+ readonly message: string;
385
+ }, readonly [Schema.Struct<{
386
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
387
+ readonly resource: Schema.String;
388
+ readonly id: Schema.String;
389
+ readonly message: Schema.String;
390
+ }>], {
391
+ readonly _tag: "ResourceNotFoundError";
392
+ readonly resource: string;
393
+ readonly id: string;
394
+ readonly message: string;
395
+ }>, Schema.Struct<{
396
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
397
+ readonly resource: Schema.String;
398
+ readonly id: Schema.String;
399
+ readonly message: Schema.String;
400
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
401
+ readonly _tag: "UnauthorizedError";
402
+ readonly message: string;
403
+ }, readonly [Schema.Struct<{
404
+ readonly _tag: Schema.tag<"UnauthorizedError">;
405
+ readonly message: Schema.String;
406
+ }>], {
407
+ readonly _tag: "UnauthorizedError";
408
+ readonly message: string;
409
+ }>, Schema.Struct<{
410
+ readonly _tag: Schema.tag<"UnauthorizedError">;
411
+ readonly message: Schema.String;
412
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
413
+ readonly _tag: "ValidationError";
414
+ readonly message: string;
415
+ readonly fields?: {
416
+ readonly [x: string]: readonly string[];
417
+ } | null;
418
+ }, readonly [Schema.Struct<{
419
+ readonly _tag: Schema.tag<"ValidationError">;
420
+ readonly message: Schema.String;
421
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
422
+ }>], {
423
+ readonly _tag: "ValidationError";
424
+ readonly message: string;
425
+ readonly fields?: {
426
+ readonly [x: string]: readonly string[];
427
+ } | null;
428
+ }>, Schema.Struct<{
429
+ readonly _tag: Schema.tag<"ValidationError">;
430
+ readonly message: Schema.String;
431
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
432
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"topicPublicationDomainsRemove", "DELETE", "/v1/topics/:id/publication/domains/:hostname", Schema.toCodecStringTree<Schema.Struct<{
433
+ readonly id: Schema.brand<Schema.String, "TopicId">;
434
+ readonly hostname: Schema.String;
435
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
436
+ readonly idempotencyKey: Schema.String;
437
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
438
+ readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
439
+ readonly topicId: Schema.brand<Schema.String, "TopicId">;
440
+ readonly hostname: Schema.String;
441
+ readonly canonicalHostname: Schema.String;
442
+ readonly phase: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"active">, Schema.Literal<"removing">, Schema.Literal<"removed">, Schema.Literal<"conflict">]>;
443
+ readonly active: Schema.Boolean;
444
+ readonly hostnameStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
445
+ readonly sslStatus: Schema.Union<readonly [Schema.String, Schema.Null]>;
446
+ readonly cname: Schema.Struct<{
447
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
448
+ readonly name: Schema.String;
449
+ readonly value: Schema.String;
450
+ }>;
451
+ readonly verificationRecords: Schema.$Array<Schema.Struct<{
452
+ readonly type: Schema.Union<readonly [Schema.Literal<"CNAME">, Schema.Literal<"TXT">]>;
453
+ readonly name: Schema.String;
454
+ readonly value: Schema.String;
455
+ }>>;
456
+ readonly verificationErrors: Schema.$Array<Schema.String>;
457
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
458
+ readonly _tag: "ConflictError";
459
+ readonly message: string;
460
+ readonly resource: string;
461
+ readonly id?: string | null;
462
+ }, readonly [Schema.Struct<{
463
+ readonly _tag: Schema.tag<"ConflictError">;
464
+ readonly message: Schema.String;
465
+ readonly resource: Schema.String;
466
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
467
+ }>], {
468
+ readonly _tag: "ConflictError";
469
+ readonly message: string;
470
+ readonly resource: string;
471
+ readonly id?: string | null;
472
+ }>, Schema.Struct<{
473
+ readonly _tag: Schema.tag<"ConflictError">;
474
+ readonly message: Schema.String;
475
+ readonly resource: Schema.String;
476
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
477
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
478
+ readonly _tag: "GatewayTimeoutError";
479
+ readonly message: string;
480
+ readonly retryAfterSeconds: number;
481
+ }, readonly [Schema.Struct<{
482
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
483
+ readonly message: Schema.String;
484
+ readonly retryAfterSeconds: Schema.Finite;
485
+ }>], {
486
+ readonly _tag: "GatewayTimeoutError";
487
+ readonly message: string;
488
+ readonly retryAfterSeconds: number;
489
+ }>, Schema.Struct<{
490
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
491
+ readonly message: Schema.String;
492
+ readonly retryAfterSeconds: Schema.Finite;
493
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
494
+ readonly _tag: "ResourceNotFoundError";
495
+ readonly resource: string;
496
+ readonly id: string;
497
+ readonly message: string;
498
+ }, readonly [Schema.Struct<{
499
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
500
+ readonly resource: Schema.String;
501
+ readonly id: Schema.String;
502
+ readonly message: Schema.String;
503
+ }>], {
504
+ readonly _tag: "ResourceNotFoundError";
505
+ readonly resource: string;
506
+ readonly id: string;
507
+ readonly message: string;
508
+ }>, Schema.Struct<{
509
+ readonly _tag: Schema.tag<"ResourceNotFoundError">;
510
+ readonly resource: Schema.String;
511
+ readonly id: Schema.String;
512
+ readonly message: Schema.String;
513
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
514
+ readonly _tag: "UnauthorizedError";
515
+ readonly message: string;
516
+ }, readonly [Schema.Struct<{
517
+ readonly _tag: Schema.tag<"UnauthorizedError">;
518
+ readonly message: Schema.String;
519
+ }>], {
520
+ readonly _tag: "UnauthorizedError";
521
+ readonly message: string;
522
+ }>, Schema.Struct<{
523
+ readonly _tag: Schema.tag<"UnauthorizedError">;
524
+ readonly message: Schema.String;
525
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
526
+ readonly _tag: "ValidationError";
527
+ readonly message: string;
528
+ readonly fields?: {
529
+ readonly [x: string]: readonly string[];
530
+ } | null;
531
+ }, readonly [Schema.Struct<{
532
+ readonly _tag: Schema.tag<"ValidationError">;
533
+ readonly message: Schema.String;
534
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
535
+ }>], {
536
+ readonly _tag: "ValidationError";
537
+ readonly message: string;
538
+ readonly fields?: {
539
+ readonly [x: string]: readonly string[];
540
+ } | null;
541
+ }>, Schema.Struct<{
542
+ readonly _tag: Schema.tag<"ValidationError">;
543
+ readonly message: Schema.String;
544
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
545
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>, false>;
546
+ export declare class PublicationDomainsGroup extends PublicationDomainsGroup_base {
547
+ }
548
+ export {};