samva 0.15.0 → 0.17.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.
- package/AGENTS.md +4 -1
- package/README.md +46 -1
- package/dist/analytics-CaqPRsry.js +207 -0
- package/dist/api-keys-Ce1Y4_Ip.js +274 -0
- package/dist/attachments-DYqVIraC.js +140 -0
- package/dist/brands-ZwuOGIWO.js +175 -0
- package/dist/campaigns-DZlz1E9E.js +522 -0
- package/dist/categories-CA4XIQAb.js +1011 -0
- package/dist/client/sdk.gen.d.ts +234 -49
- package/dist/client/types.gen.d.ts +1521 -348
- package/dist/client-DOzUrdTE.js +1115 -0
- package/dist/contact-groups-BLbFXnjq.js +446 -0
- package/dist/contacts-BbsoXXB4.js +787 -0
- package/dist/conversations-_sRHueML.js +494 -0
- package/dist/custom-fields-BHWbwlKn.js +176 -0
- package/dist/effect/analytics.js +2 -21
- package/dist/effect/api-keys.d.ts +1 -0
- package/dist/effect/api-keys.js +2 -25
- package/dist/effect/attachments.js +2 -17
- package/dist/effect/brands.d.ts +1 -1
- package/dist/effect/brands.js +3 -24
- package/dist/effect/campaigns.js +2 -33
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +3 -4
- package/dist/effect/contact-groups.js +2 -29
- package/dist/effect/contacts.d.ts +52 -0
- package/dist/effect/contacts.js +2 -47
- package/dist/effect/conversations.js +2 -35
- package/dist/effect/custom-fields.js +2 -17
- package/dist/effect/email.d.ts +3 -20
- package/dist/effect/email.js +2 -141
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +3 -0
- package/dist/effect/extension-installations.js +2 -27
- package/dist/effect/extensions.js +2 -19
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +3 -13
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated-metadata.d.ts +1631 -0
- package/dist/effect/index.d.ts +4 -1
- package/dist/effect/index.js +29 -26
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +2 -0
- package/dist/effect/mailboxes.d.ts +255 -205
- package/dist/effect/mailboxes.js +2 -2
- package/dist/effect/media.js +3 -1
- package/dist/effect/messages.d.ts +2 -2
- package/dist/effect/messages.js +3 -1
- package/dist/effect/namespaces.js +2 -19
- package/dist/effect/operations.js +2 -15
- package/dist/effect/organizations.js +2 -23
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.js +2 -19
- package/dist/effect/subscriptions.js +2 -9
- package/dist/effect/templates.d.ts +1 -1
- package/dist/effect/templates.js +3 -78
- package/dist/effect/unsubscribe-groups.js +2 -27
- package/dist/effect/webhooks.d.ts +9 -9
- package/dist/effect/webhooks.js +3 -33
- package/dist/effect/whoami.d.ts +46 -0
- package/dist/effect/whoami.js +2 -0
- package/dist/email-R0NAA9PW.js +2498 -0
- package/dist/events-CxbTUHYT.js +82 -0
- package/dist/extension-installations-CD94LPmk.js +407 -0
- package/dist/extensions-BKyNQLvu.js +220 -0
- package/dist/feedback-Bpa09JOS.js +52 -0
- package/dist/index.js +3 -3
- package/dist/{inline-attachments-UxLeyytJ.js → inline-attachments-Bi1hDltp.js} +2 -2
- package/dist/journeys-CARo_BJT.js +499 -0
- package/dist/mailboxes-BRDn7BIK.js +2470 -0
- package/dist/media-VrrtNnft.js +181 -0
- package/dist/namespaces-CcvEbG-y.js +152 -0
- package/dist/{operation-BZ5Xov-x.js → operation-n_IYgNVK.js} +85 -102
- package/dist/operations-CmB3FHwf.js +93 -0
- package/dist/organizations-A-plufWc.js +252 -0
- package/dist/promises/errors.gen.d.ts +12 -2
- package/dist/promises/index.d.ts +9 -3
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Cd6Jamqk.js → promises---Kbh-7z.js} +745 -195
- package/dist/runtime-P0l1_2-C.js +25 -0
- package/dist/scheduled-messages-DkKZRRaN.js +207 -0
- package/dist/send-Bxc0XfGE.js +722 -0
- package/dist/service-map.d.ts +101 -15
- package/dist/subscriptions-DEXYtMXg.js +67 -0
- package/dist/templates-DZomxsG7.js +2289 -0
- package/dist/unsubscribe-groups-Iqk4Isf9.js +291 -0
- package/dist/webhooks-CPXuu8Xf.js +530 -0
- package/dist/whoami-Ccz0jwlt.js +59 -0
- package/package.json +17 -3
- package/dist/categories-BGUBFdH9.js +0 -183
- package/dist/client-CDg7zJs0.js +0 -13726
- package/dist/effect/generated.d.ts +0 -64059
- package/dist/mailboxes-BH_JPmOE.js +0 -159
|
@@ -0,0 +1,1445 @@
|
|
|
1
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
|
+
import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
4
|
+
export type ContactGroupPage = {
|
|
5
|
+
readonly items: ReadonlyArray<{
|
|
6
|
+
readonly id: ContactGroupId;
|
|
7
|
+
readonly organizationId: OrganizationId;
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly description: string | null;
|
|
10
|
+
readonly type: "static" | "dynamic" | "smart";
|
|
11
|
+
readonly criteria: {
|
|
12
|
+
readonly [x: string]: JsonValue;
|
|
13
|
+
} | null;
|
|
14
|
+
readonly color: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null;
|
|
15
|
+
readonly icon: string | null;
|
|
16
|
+
readonly parentGroupId: ContactGroupId | null;
|
|
17
|
+
readonly contactCount: number;
|
|
18
|
+
readonly lastCalculatedAt: string | null;
|
|
19
|
+
readonly isActive: boolean;
|
|
20
|
+
readonly createdAt: string;
|
|
21
|
+
readonly updatedAt: string;
|
|
22
|
+
}>;
|
|
23
|
+
readonly nextCursor: string | null;
|
|
24
|
+
};
|
|
25
|
+
export declare const ContactGroupPage: Schema.Struct<{
|
|
26
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
27
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
28
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
29
|
+
readonly name: Schema.String;
|
|
30
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
31
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>;
|
|
32
|
+
readonly criteria: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
33
|
+
readonly color: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>;
|
|
34
|
+
readonly icon: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
35
|
+
readonly parentGroupId: Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>;
|
|
36
|
+
readonly contactCount: Schema.Finite;
|
|
37
|
+
readonly lastCalculatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
38
|
+
readonly isActive: Schema.Boolean;
|
|
39
|
+
readonly createdAt: Schema.String;
|
|
40
|
+
readonly updatedAt: Schema.String;
|
|
41
|
+
}>>;
|
|
42
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
43
|
+
}>;
|
|
44
|
+
export type ContactGroupMemberPage = {
|
|
45
|
+
readonly items: ReadonlyArray<{
|
|
46
|
+
readonly id: string;
|
|
47
|
+
readonly organizationId: OrganizationId;
|
|
48
|
+
readonly groupId: ContactGroupId;
|
|
49
|
+
readonly contactId: ContactId;
|
|
50
|
+
readonly role: "member" | "moderator" | "admin";
|
|
51
|
+
readonly joinedAt: string;
|
|
52
|
+
readonly joinedBy: ContactId | null;
|
|
53
|
+
readonly expiresAt: string | null;
|
|
54
|
+
readonly contact: {
|
|
55
|
+
readonly id: ContactId;
|
|
56
|
+
readonly name: string;
|
|
57
|
+
readonly displayName: string | null;
|
|
58
|
+
readonly type: string;
|
|
59
|
+
readonly identities?: ReadonlyArray<ContactIdentity> | null;
|
|
60
|
+
} | null;
|
|
61
|
+
}>;
|
|
62
|
+
readonly nextCursor: string | null;
|
|
63
|
+
};
|
|
64
|
+
export declare const ContactGroupMemberPage: Schema.Struct<{
|
|
65
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
66
|
+
readonly id: Schema.String;
|
|
67
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
68
|
+
readonly groupId: Schema.brand<Schema.String, "ContactGroupId">;
|
|
69
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
70
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"member">, Schema.Literal<"moderator">, Schema.Literal<"admin">]>;
|
|
71
|
+
readonly joinedAt: Schema.String;
|
|
72
|
+
readonly joinedBy: Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>;
|
|
73
|
+
readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
74
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
75
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
76
|
+
readonly name: Schema.String;
|
|
77
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
78
|
+
readonly type: Schema.String;
|
|
79
|
+
readonly identities: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
80
|
+
readonly id: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
81
|
+
readonly channel: Schema.Literal<"email">;
|
|
82
|
+
readonly identifier: Schema.String;
|
|
83
|
+
readonly verified: Schema.Boolean;
|
|
84
|
+
}>>, Schema.Null]>>;
|
|
85
|
+
}>, Schema.Null]>;
|
|
86
|
+
}>>;
|
|
87
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
88
|
+
}>;
|
|
89
|
+
export type ContactGroupsListQuery = {
|
|
90
|
+
readonly limit?: string | null;
|
|
91
|
+
readonly cursor?: Cursor | null;
|
|
92
|
+
readonly type?: "static" | "dynamic" | "smart" | ReadonlyArray<"static" | "dynamic" | "smart"> | null;
|
|
93
|
+
readonly isActive?: string | null;
|
|
94
|
+
};
|
|
95
|
+
export declare const ContactGroupsListQuery: Schema.Struct<{
|
|
96
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
97
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
98
|
+
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.$Array<Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>>]>, Schema.Null]>>;
|
|
99
|
+
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
100
|
+
}>;
|
|
101
|
+
export type ContactGroupsList200 = ContactGroupPage;
|
|
102
|
+
export declare const ContactGroupsList200: Schema.Struct<{
|
|
103
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
104
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
105
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
106
|
+
readonly name: Schema.String;
|
|
107
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
108
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>;
|
|
109
|
+
readonly criteria: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
110
|
+
readonly color: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>;
|
|
111
|
+
readonly icon: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
112
|
+
readonly parentGroupId: Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>;
|
|
113
|
+
readonly contactCount: Schema.Finite;
|
|
114
|
+
readonly lastCalculatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
115
|
+
readonly isActive: Schema.Boolean;
|
|
116
|
+
readonly createdAt: Schema.String;
|
|
117
|
+
readonly updatedAt: Schema.String;
|
|
118
|
+
}>>;
|
|
119
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
120
|
+
}>;
|
|
121
|
+
export type ContactGroupsList401 = UnauthorizedError;
|
|
122
|
+
export declare const ContactGroupsList401: typeof UnauthorizedError;
|
|
123
|
+
export type ContactGroupsList403 = ForbiddenError;
|
|
124
|
+
export declare const ContactGroupsList403: typeof ForbiddenError;
|
|
125
|
+
export type ContactGroupsList422 = ValidationError;
|
|
126
|
+
export declare const ContactGroupsList422: typeof ValidationError;
|
|
127
|
+
export type ContactGroupsList500 = InternalError;
|
|
128
|
+
export declare const ContactGroupsList500: typeof InternalError;
|
|
129
|
+
export type ContactGroupsList504 = GatewayTimeoutError;
|
|
130
|
+
export declare const ContactGroupsList504: typeof GatewayTimeoutError;
|
|
131
|
+
export type ContactGroupsCreateRequestJson = {
|
|
132
|
+
readonly name: string;
|
|
133
|
+
readonly description?: string | null | null;
|
|
134
|
+
readonly type?: "static" | "dynamic" | "smart" | null;
|
|
135
|
+
readonly criteria?: {
|
|
136
|
+
readonly [x: string]: JsonValue;
|
|
137
|
+
} | null | null;
|
|
138
|
+
readonly color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null;
|
|
139
|
+
readonly icon?: string | null | null;
|
|
140
|
+
readonly parentGroupId?: ContactGroupId | null | null;
|
|
141
|
+
readonly isActive?: boolean | null;
|
|
142
|
+
};
|
|
143
|
+
export declare const ContactGroupsCreateRequestJson: Schema.Struct<{
|
|
144
|
+
readonly name: Schema.String;
|
|
145
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
146
|
+
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.Null]>>;
|
|
147
|
+
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>, Schema.Null]>>;
|
|
148
|
+
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>, Schema.Null]>>;
|
|
149
|
+
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
150
|
+
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>, Schema.Null]>>;
|
|
151
|
+
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
152
|
+
}>;
|
|
153
|
+
export type ContactGroupsCreate201 = {
|
|
154
|
+
readonly id: ContactGroupId;
|
|
155
|
+
readonly organizationId: OrganizationId;
|
|
156
|
+
readonly name: string;
|
|
157
|
+
readonly description: string | null;
|
|
158
|
+
readonly type: "static" | "dynamic" | "smart";
|
|
159
|
+
readonly criteria: {
|
|
160
|
+
readonly [x: string]: JsonValue;
|
|
161
|
+
} | null;
|
|
162
|
+
readonly color: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null;
|
|
163
|
+
readonly icon: string | null;
|
|
164
|
+
readonly parentGroupId: ContactGroupId | null;
|
|
165
|
+
readonly contactCount: number;
|
|
166
|
+
readonly lastCalculatedAt: string | null;
|
|
167
|
+
readonly isActive: boolean;
|
|
168
|
+
readonly createdAt: string;
|
|
169
|
+
readonly updatedAt: string;
|
|
170
|
+
};
|
|
171
|
+
export declare const ContactGroupsCreate201: Schema.Struct<{
|
|
172
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
173
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
174
|
+
readonly name: Schema.String;
|
|
175
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
176
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>;
|
|
177
|
+
readonly criteria: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
178
|
+
readonly color: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>;
|
|
179
|
+
readonly icon: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
180
|
+
readonly parentGroupId: Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>;
|
|
181
|
+
readonly contactCount: Schema.Finite;
|
|
182
|
+
readonly lastCalculatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
183
|
+
readonly isActive: Schema.Boolean;
|
|
184
|
+
readonly createdAt: Schema.String;
|
|
185
|
+
readonly updatedAt: Schema.String;
|
|
186
|
+
}>;
|
|
187
|
+
export type ContactGroupsCreate401 = UnauthorizedError;
|
|
188
|
+
export declare const ContactGroupsCreate401: typeof UnauthorizedError;
|
|
189
|
+
export type ContactGroupsCreate403 = ForbiddenError;
|
|
190
|
+
export declare const ContactGroupsCreate403: typeof ForbiddenError;
|
|
191
|
+
export type ContactGroupsCreate422 = ValidationError;
|
|
192
|
+
export declare const ContactGroupsCreate422: typeof ValidationError;
|
|
193
|
+
export type ContactGroupsCreate500 = InternalError;
|
|
194
|
+
export declare const ContactGroupsCreate500: typeof InternalError;
|
|
195
|
+
export type ContactGroupsCreate504 = GatewayTimeoutError;
|
|
196
|
+
export declare const ContactGroupsCreate504: typeof GatewayTimeoutError;
|
|
197
|
+
export type ContactGroupsGetByIdPathParams = {
|
|
198
|
+
readonly id: ContactGroupId;
|
|
199
|
+
};
|
|
200
|
+
export declare const ContactGroupsGetByIdPathParams: Schema.Struct<{
|
|
201
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
202
|
+
}>;
|
|
203
|
+
export type ContactGroupsGetById200 = {
|
|
204
|
+
readonly id: ContactGroupId;
|
|
205
|
+
readonly organizationId: OrganizationId;
|
|
206
|
+
readonly name: string;
|
|
207
|
+
readonly description: string | null;
|
|
208
|
+
readonly type: "static" | "dynamic" | "smart";
|
|
209
|
+
readonly criteria: {
|
|
210
|
+
readonly [x: string]: JsonValue;
|
|
211
|
+
} | null;
|
|
212
|
+
readonly color: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null;
|
|
213
|
+
readonly icon: string | null;
|
|
214
|
+
readonly parentGroupId: ContactGroupId | null;
|
|
215
|
+
readonly contactCount: number;
|
|
216
|
+
readonly lastCalculatedAt: string | null;
|
|
217
|
+
readonly isActive: boolean;
|
|
218
|
+
readonly createdAt: string;
|
|
219
|
+
readonly updatedAt: string;
|
|
220
|
+
};
|
|
221
|
+
export declare const ContactGroupsGetById200: Schema.Struct<{
|
|
222
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
223
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
224
|
+
readonly name: Schema.String;
|
|
225
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
226
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>;
|
|
227
|
+
readonly criteria: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
228
|
+
readonly color: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>;
|
|
229
|
+
readonly icon: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
230
|
+
readonly parentGroupId: Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>;
|
|
231
|
+
readonly contactCount: Schema.Finite;
|
|
232
|
+
readonly lastCalculatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
233
|
+
readonly isActive: Schema.Boolean;
|
|
234
|
+
readonly createdAt: Schema.String;
|
|
235
|
+
readonly updatedAt: Schema.String;
|
|
236
|
+
}>;
|
|
237
|
+
export type ContactGroupsGetById401 = UnauthorizedError;
|
|
238
|
+
export declare const ContactGroupsGetById401: typeof UnauthorizedError;
|
|
239
|
+
export type ContactGroupsGetById403 = ForbiddenError;
|
|
240
|
+
export declare const ContactGroupsGetById403: typeof ForbiddenError;
|
|
241
|
+
export type ContactGroupsGetById404 = ResourceNotFoundError;
|
|
242
|
+
export declare const ContactGroupsGetById404: typeof ResourceNotFoundError;
|
|
243
|
+
export type ContactGroupsGetById422 = ValidationError;
|
|
244
|
+
export declare const ContactGroupsGetById422: typeof ValidationError;
|
|
245
|
+
export type ContactGroupsGetById500 = InternalError;
|
|
246
|
+
export declare const ContactGroupsGetById500: typeof InternalError;
|
|
247
|
+
export type ContactGroupsGetById504 = GatewayTimeoutError;
|
|
248
|
+
export declare const ContactGroupsGetById504: typeof GatewayTimeoutError;
|
|
249
|
+
export type ContactGroupsRemovePathParams = {
|
|
250
|
+
readonly id: ContactGroupId;
|
|
251
|
+
};
|
|
252
|
+
export declare const ContactGroupsRemovePathParams: Schema.Struct<{
|
|
253
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
254
|
+
}>;
|
|
255
|
+
export type ContactGroupsRemove200 = {
|
|
256
|
+
readonly success: boolean;
|
|
257
|
+
};
|
|
258
|
+
export declare const ContactGroupsRemove200: Schema.Struct<{
|
|
259
|
+
readonly success: Schema.Boolean;
|
|
260
|
+
}>;
|
|
261
|
+
export type ContactGroupsRemove401 = UnauthorizedError;
|
|
262
|
+
export declare const ContactGroupsRemove401: typeof UnauthorizedError;
|
|
263
|
+
export type ContactGroupsRemove403 = ForbiddenError;
|
|
264
|
+
export declare const ContactGroupsRemove403: typeof ForbiddenError;
|
|
265
|
+
export type ContactGroupsRemove404 = ResourceNotFoundError;
|
|
266
|
+
export declare const ContactGroupsRemove404: typeof ResourceNotFoundError;
|
|
267
|
+
export type ContactGroupsRemove422 = ValidationError;
|
|
268
|
+
export declare const ContactGroupsRemove422: typeof ValidationError;
|
|
269
|
+
export type ContactGroupsRemove500 = InternalError;
|
|
270
|
+
export declare const ContactGroupsRemove500: typeof InternalError;
|
|
271
|
+
export type ContactGroupsRemove504 = GatewayTimeoutError;
|
|
272
|
+
export declare const ContactGroupsRemove504: typeof GatewayTimeoutError;
|
|
273
|
+
export type ContactGroupsUpdatePathParams = {
|
|
274
|
+
readonly id: ContactGroupId;
|
|
275
|
+
};
|
|
276
|
+
export declare const ContactGroupsUpdatePathParams: Schema.Struct<{
|
|
277
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
278
|
+
}>;
|
|
279
|
+
export type ContactGroupsUpdateRequestJson = {
|
|
280
|
+
readonly name?: string | null;
|
|
281
|
+
readonly description?: string | null | null;
|
|
282
|
+
readonly type?: "static" | "dynamic" | "smart" | null;
|
|
283
|
+
readonly criteria?: {
|
|
284
|
+
readonly [x: string]: JsonValue;
|
|
285
|
+
} | null | null;
|
|
286
|
+
readonly color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null;
|
|
287
|
+
readonly icon?: string | null | null;
|
|
288
|
+
readonly parentGroupId?: ContactGroupId | null | null;
|
|
289
|
+
readonly isActive?: boolean | null;
|
|
290
|
+
};
|
|
291
|
+
export declare const ContactGroupsUpdateRequestJson: Schema.Struct<{
|
|
292
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
293
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
294
|
+
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.Null]>>;
|
|
295
|
+
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>, Schema.Null]>>;
|
|
296
|
+
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>, Schema.Null]>>;
|
|
297
|
+
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
298
|
+
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>, Schema.Null]>>;
|
|
299
|
+
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
300
|
+
}>;
|
|
301
|
+
export type ContactGroupsUpdate200 = {
|
|
302
|
+
readonly id: ContactGroupId;
|
|
303
|
+
readonly organizationId: OrganizationId;
|
|
304
|
+
readonly name: string;
|
|
305
|
+
readonly description: string | null;
|
|
306
|
+
readonly type: "static" | "dynamic" | "smart";
|
|
307
|
+
readonly criteria: {
|
|
308
|
+
readonly [x: string]: JsonValue;
|
|
309
|
+
} | null;
|
|
310
|
+
readonly color: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null;
|
|
311
|
+
readonly icon: string | null;
|
|
312
|
+
readonly parentGroupId: ContactGroupId | null;
|
|
313
|
+
readonly contactCount: number;
|
|
314
|
+
readonly lastCalculatedAt: string | null;
|
|
315
|
+
readonly isActive: boolean;
|
|
316
|
+
readonly createdAt: string;
|
|
317
|
+
readonly updatedAt: string;
|
|
318
|
+
};
|
|
319
|
+
export declare const ContactGroupsUpdate200: Schema.Struct<{
|
|
320
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
321
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
322
|
+
readonly name: Schema.String;
|
|
323
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
324
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>;
|
|
325
|
+
readonly criteria: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
326
|
+
readonly color: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>;
|
|
327
|
+
readonly icon: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
328
|
+
readonly parentGroupId: Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>;
|
|
329
|
+
readonly contactCount: Schema.Finite;
|
|
330
|
+
readonly lastCalculatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
331
|
+
readonly isActive: Schema.Boolean;
|
|
332
|
+
readonly createdAt: Schema.String;
|
|
333
|
+
readonly updatedAt: Schema.String;
|
|
334
|
+
}>;
|
|
335
|
+
export type ContactGroupsUpdate401 = UnauthorizedError;
|
|
336
|
+
export declare const ContactGroupsUpdate401: typeof UnauthorizedError;
|
|
337
|
+
export type ContactGroupsUpdate403 = ForbiddenError;
|
|
338
|
+
export declare const ContactGroupsUpdate403: typeof ForbiddenError;
|
|
339
|
+
export type ContactGroupsUpdate404 = ResourceNotFoundError;
|
|
340
|
+
export declare const ContactGroupsUpdate404: typeof ResourceNotFoundError;
|
|
341
|
+
export type ContactGroupsUpdate422 = ValidationError;
|
|
342
|
+
export declare const ContactGroupsUpdate422: typeof ValidationError;
|
|
343
|
+
export type ContactGroupsUpdate500 = InternalError;
|
|
344
|
+
export declare const ContactGroupsUpdate500: typeof InternalError;
|
|
345
|
+
export type ContactGroupsUpdate504 = GatewayTimeoutError;
|
|
346
|
+
export declare const ContactGroupsUpdate504: typeof GatewayTimeoutError;
|
|
347
|
+
export type ContactGroupsEvaluateDynamicPathParams = {
|
|
348
|
+
readonly id: ContactGroupId;
|
|
349
|
+
};
|
|
350
|
+
export declare const ContactGroupsEvaluateDynamicPathParams: Schema.Struct<{
|
|
351
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
352
|
+
}>;
|
|
353
|
+
export type ContactGroupsEvaluateDynamic200 = {
|
|
354
|
+
readonly added: number;
|
|
355
|
+
readonly removed: number;
|
|
356
|
+
readonly total: number;
|
|
357
|
+
};
|
|
358
|
+
export declare const ContactGroupsEvaluateDynamic200: Schema.Struct<{
|
|
359
|
+
readonly added: Schema.Finite;
|
|
360
|
+
readonly removed: Schema.Finite;
|
|
361
|
+
readonly total: Schema.Finite;
|
|
362
|
+
}>;
|
|
363
|
+
export type ContactGroupsEvaluateDynamic401 = UnauthorizedError;
|
|
364
|
+
export declare const ContactGroupsEvaluateDynamic401: typeof UnauthorizedError;
|
|
365
|
+
export type ContactGroupsEvaluateDynamic403 = ForbiddenError;
|
|
366
|
+
export declare const ContactGroupsEvaluateDynamic403: typeof ForbiddenError;
|
|
367
|
+
export type ContactGroupsEvaluateDynamic404 = ResourceNotFoundError;
|
|
368
|
+
export declare const ContactGroupsEvaluateDynamic404: typeof ResourceNotFoundError;
|
|
369
|
+
export type ContactGroupsEvaluateDynamic422 = ValidationError;
|
|
370
|
+
export declare const ContactGroupsEvaluateDynamic422: typeof ValidationError;
|
|
371
|
+
export type ContactGroupsEvaluateDynamic500 = InternalError;
|
|
372
|
+
export declare const ContactGroupsEvaluateDynamic500: typeof InternalError;
|
|
373
|
+
export type ContactGroupsEvaluateDynamic504 = GatewayTimeoutError;
|
|
374
|
+
export declare const ContactGroupsEvaluateDynamic504: typeof GatewayTimeoutError;
|
|
375
|
+
export type ContactGroupsGetMembersPathParams = {
|
|
376
|
+
readonly id: ContactGroupId;
|
|
377
|
+
};
|
|
378
|
+
export declare const ContactGroupsGetMembersPathParams: Schema.Struct<{
|
|
379
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
380
|
+
}>;
|
|
381
|
+
export type ContactGroupsGetMembersQuery = {
|
|
382
|
+
readonly limit?: string | null;
|
|
383
|
+
readonly cursor?: Cursor | null;
|
|
384
|
+
};
|
|
385
|
+
export declare const ContactGroupsGetMembersQuery: Schema.Struct<{
|
|
386
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
387
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
388
|
+
}>;
|
|
389
|
+
export type ContactGroupsGetMembers200 = ContactGroupMemberPage;
|
|
390
|
+
export declare const ContactGroupsGetMembers200: Schema.Struct<{
|
|
391
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
392
|
+
readonly id: Schema.String;
|
|
393
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
394
|
+
readonly groupId: Schema.brand<Schema.String, "ContactGroupId">;
|
|
395
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
396
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"member">, Schema.Literal<"moderator">, Schema.Literal<"admin">]>;
|
|
397
|
+
readonly joinedAt: Schema.String;
|
|
398
|
+
readonly joinedBy: Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>;
|
|
399
|
+
readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
400
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
401
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
402
|
+
readonly name: Schema.String;
|
|
403
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
404
|
+
readonly type: Schema.String;
|
|
405
|
+
readonly identities: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
406
|
+
readonly id: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
407
|
+
readonly channel: Schema.Literal<"email">;
|
|
408
|
+
readonly identifier: Schema.String;
|
|
409
|
+
readonly verified: Schema.Boolean;
|
|
410
|
+
}>>, Schema.Null]>>;
|
|
411
|
+
}>, Schema.Null]>;
|
|
412
|
+
}>>;
|
|
413
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
414
|
+
}>;
|
|
415
|
+
export type ContactGroupsGetMembers401 = UnauthorizedError;
|
|
416
|
+
export declare const ContactGroupsGetMembers401: typeof UnauthorizedError;
|
|
417
|
+
export type ContactGroupsGetMembers403 = ForbiddenError;
|
|
418
|
+
export declare const ContactGroupsGetMembers403: typeof ForbiddenError;
|
|
419
|
+
export type ContactGroupsGetMembers404 = ResourceNotFoundError;
|
|
420
|
+
export declare const ContactGroupsGetMembers404: typeof ResourceNotFoundError;
|
|
421
|
+
export type ContactGroupsGetMembers422 = ValidationError;
|
|
422
|
+
export declare const ContactGroupsGetMembers422: typeof ValidationError;
|
|
423
|
+
export type ContactGroupsGetMembers500 = InternalError;
|
|
424
|
+
export declare const ContactGroupsGetMembers500: typeof InternalError;
|
|
425
|
+
export type ContactGroupsGetMembers504 = GatewayTimeoutError;
|
|
426
|
+
export declare const ContactGroupsGetMembers504: typeof GatewayTimeoutError;
|
|
427
|
+
export type ContactGroupsAddMembersPathParams = {
|
|
428
|
+
readonly id: ContactGroupId;
|
|
429
|
+
};
|
|
430
|
+
export declare const ContactGroupsAddMembersPathParams: Schema.Struct<{
|
|
431
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
432
|
+
}>;
|
|
433
|
+
export type ContactGroupsAddMembersRequestJson = {
|
|
434
|
+
readonly contactIds: readonly [ContactId, ...Array<ContactId>];
|
|
435
|
+
readonly role?: "member" | "moderator" | "admin" | null;
|
|
436
|
+
};
|
|
437
|
+
export declare const ContactGroupsAddMembersRequestJson: Schema.Struct<{
|
|
438
|
+
readonly contactIds: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "ContactId">]>, readonly [Schema.brand<Schema.String, "ContactId">]>;
|
|
439
|
+
readonly role: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"member">, Schema.Literal<"moderator">, Schema.Literal<"admin">]>, Schema.Null]>>;
|
|
440
|
+
}>;
|
|
441
|
+
export type ContactGroupsAddMembers200 = {
|
|
442
|
+
readonly added: number;
|
|
443
|
+
readonly skipped: number;
|
|
444
|
+
};
|
|
445
|
+
export declare const ContactGroupsAddMembers200: Schema.Struct<{
|
|
446
|
+
readonly added: Schema.Finite;
|
|
447
|
+
readonly skipped: Schema.Finite;
|
|
448
|
+
}>;
|
|
449
|
+
export type ContactGroupsAddMembers401 = UnauthorizedError;
|
|
450
|
+
export declare const ContactGroupsAddMembers401: typeof UnauthorizedError;
|
|
451
|
+
export type ContactGroupsAddMembers403 = ForbiddenError;
|
|
452
|
+
export declare const ContactGroupsAddMembers403: typeof ForbiddenError;
|
|
453
|
+
export type ContactGroupsAddMembers404 = ResourceNotFoundError;
|
|
454
|
+
export declare const ContactGroupsAddMembers404: typeof ResourceNotFoundError;
|
|
455
|
+
export type ContactGroupsAddMembers422 = ValidationError;
|
|
456
|
+
export declare const ContactGroupsAddMembers422: typeof ValidationError;
|
|
457
|
+
export type ContactGroupsAddMembers500 = InternalError;
|
|
458
|
+
export declare const ContactGroupsAddMembers500: typeof InternalError;
|
|
459
|
+
export type ContactGroupsAddMembers504 = GatewayTimeoutError;
|
|
460
|
+
export declare const ContactGroupsAddMembers504: typeof GatewayTimeoutError;
|
|
461
|
+
export type ContactGroupsRemoveMembersPathParams = {
|
|
462
|
+
readonly id: ContactGroupId;
|
|
463
|
+
};
|
|
464
|
+
export declare const ContactGroupsRemoveMembersPathParams: Schema.Struct<{
|
|
465
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
466
|
+
}>;
|
|
467
|
+
export type ContactGroupsRemoveMembersRequestJson = {
|
|
468
|
+
readonly contactIds: readonly [ContactId, ...Array<ContactId>];
|
|
469
|
+
};
|
|
470
|
+
export declare const ContactGroupsRemoveMembersRequestJson: Schema.Struct<{
|
|
471
|
+
readonly contactIds: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "ContactId">]>, readonly [Schema.brand<Schema.String, "ContactId">]>;
|
|
472
|
+
}>;
|
|
473
|
+
export type ContactGroupsRemoveMembers200 = {
|
|
474
|
+
readonly removed: number;
|
|
475
|
+
};
|
|
476
|
+
export declare const ContactGroupsRemoveMembers200: Schema.Struct<{
|
|
477
|
+
readonly removed: Schema.Finite;
|
|
478
|
+
}>;
|
|
479
|
+
export type ContactGroupsRemoveMembers401 = UnauthorizedError;
|
|
480
|
+
export declare const ContactGroupsRemoveMembers401: typeof UnauthorizedError;
|
|
481
|
+
export type ContactGroupsRemoveMembers403 = ForbiddenError;
|
|
482
|
+
export declare const ContactGroupsRemoveMembers403: typeof ForbiddenError;
|
|
483
|
+
export type ContactGroupsRemoveMembers404 = ResourceNotFoundError;
|
|
484
|
+
export declare const ContactGroupsRemoveMembers404: typeof ResourceNotFoundError;
|
|
485
|
+
export type ContactGroupsRemoveMembers422 = ValidationError;
|
|
486
|
+
export declare const ContactGroupsRemoveMembers422: typeof ValidationError;
|
|
487
|
+
export type ContactGroupsRemoveMembers500 = InternalError;
|
|
488
|
+
export declare const ContactGroupsRemoveMembers500: typeof InternalError;
|
|
489
|
+
export type ContactGroupsRemoveMembers504 = GatewayTimeoutError;
|
|
490
|
+
export declare const ContactGroupsRemoveMembers504: typeof GatewayTimeoutError;
|
|
491
|
+
export type ContactGroupsPreviewRequestJson = {
|
|
492
|
+
readonly criteria: {
|
|
493
|
+
readonly tags?: ReadonlyArray<string> | null;
|
|
494
|
+
readonly channels?: ReadonlyArray<string> | null;
|
|
495
|
+
readonly match?: "all" | "any" | null;
|
|
496
|
+
readonly conditions?: ReadonlyArray<{
|
|
497
|
+
readonly field: string;
|
|
498
|
+
readonly operator: string;
|
|
499
|
+
readonly value: JsonValue;
|
|
500
|
+
}> | null;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
export declare const ContactGroupsPreviewRequestJson: Schema.Struct<{
|
|
504
|
+
readonly criteria: Schema.Struct<{
|
|
505
|
+
readonly tags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
506
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
507
|
+
readonly match: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"any">]>, Schema.Null]>>;
|
|
508
|
+
readonly conditions: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
509
|
+
readonly field: Schema.String;
|
|
510
|
+
readonly operator: Schema.String;
|
|
511
|
+
readonly value: Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>;
|
|
512
|
+
}>>, Schema.Null]>>;
|
|
513
|
+
}>;
|
|
514
|
+
}>;
|
|
515
|
+
export type ContactGroupsPreview200 = {
|
|
516
|
+
readonly count: number;
|
|
517
|
+
readonly sample: ReadonlyArray<{
|
|
518
|
+
readonly id: ContactId;
|
|
519
|
+
readonly name: string;
|
|
520
|
+
readonly status: string;
|
|
521
|
+
}>;
|
|
522
|
+
};
|
|
523
|
+
export declare const ContactGroupsPreview200: Schema.Struct<{
|
|
524
|
+
readonly count: Schema.Finite;
|
|
525
|
+
readonly sample: Schema.$Array<Schema.Struct<{
|
|
526
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
527
|
+
readonly name: Schema.String;
|
|
528
|
+
readonly status: Schema.String;
|
|
529
|
+
}>>;
|
|
530
|
+
}>;
|
|
531
|
+
export type ContactGroupsPreview401 = UnauthorizedError;
|
|
532
|
+
export declare const ContactGroupsPreview401: typeof UnauthorizedError;
|
|
533
|
+
export type ContactGroupsPreview403 = ForbiddenError;
|
|
534
|
+
export declare const ContactGroupsPreview403: typeof ForbiddenError;
|
|
535
|
+
export type ContactGroupsPreview422 = ValidationError;
|
|
536
|
+
export declare const ContactGroupsPreview422: typeof ValidationError;
|
|
537
|
+
export type ContactGroupsPreview500 = InternalError;
|
|
538
|
+
export declare const ContactGroupsPreview500: typeof InternalError;
|
|
539
|
+
export type ContactGroupsPreview504 = GatewayTimeoutError;
|
|
540
|
+
export declare const ContactGroupsPreview504: typeof GatewayTimeoutError;
|
|
541
|
+
declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups", HttpApiEndpoint.HttpApiEndpoint<"contactGroupsAddMembers", "POST", "/v1/contact-groups/:id/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
542
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
543
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
544
|
+
readonly contactIds: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "ContactId">]>, readonly [Schema.brand<Schema.String, "ContactId">]>;
|
|
545
|
+
readonly role: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"member">, Schema.Literal<"moderator">, Schema.Literal<"admin">]>, Schema.Null]>>;
|
|
546
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
547
|
+
readonly added: Schema.Finite;
|
|
548
|
+
readonly skipped: Schema.Finite;
|
|
549
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
550
|
+
readonly _tag: "ForbiddenError";
|
|
551
|
+
readonly message: string;
|
|
552
|
+
}, readonly [Schema.Struct<{
|
|
553
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
554
|
+
readonly message: Schema.String;
|
|
555
|
+
}>], {
|
|
556
|
+
readonly _tag: "ForbiddenError";
|
|
557
|
+
readonly message: string;
|
|
558
|
+
}>, Schema.Struct<{
|
|
559
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
560
|
+
readonly message: Schema.String;
|
|
561
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
562
|
+
readonly _tag: "GatewayTimeoutError";
|
|
563
|
+
readonly message: string;
|
|
564
|
+
readonly retryAfterSeconds: number;
|
|
565
|
+
}, readonly [Schema.Struct<{
|
|
566
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
567
|
+
readonly message: Schema.String;
|
|
568
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
569
|
+
}>], {
|
|
570
|
+
readonly _tag: "GatewayTimeoutError";
|
|
571
|
+
readonly message: string;
|
|
572
|
+
readonly retryAfterSeconds: number;
|
|
573
|
+
}>, Schema.Struct<{
|
|
574
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
575
|
+
readonly message: Schema.String;
|
|
576
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
577
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
578
|
+
readonly _tag: "ResourceNotFoundError";
|
|
579
|
+
readonly resource: string;
|
|
580
|
+
readonly id: string;
|
|
581
|
+
readonly message: string;
|
|
582
|
+
}, readonly [Schema.Struct<{
|
|
583
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
584
|
+
readonly resource: Schema.String;
|
|
585
|
+
readonly id: Schema.String;
|
|
586
|
+
readonly message: Schema.String;
|
|
587
|
+
}>], {
|
|
588
|
+
readonly _tag: "ResourceNotFoundError";
|
|
589
|
+
readonly resource: string;
|
|
590
|
+
readonly id: string;
|
|
591
|
+
readonly message: string;
|
|
592
|
+
}>, Schema.Struct<{
|
|
593
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
594
|
+
readonly resource: Schema.String;
|
|
595
|
+
readonly id: Schema.String;
|
|
596
|
+
readonly message: Schema.String;
|
|
597
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
598
|
+
readonly _tag: "UnauthorizedError";
|
|
599
|
+
readonly message: string;
|
|
600
|
+
}, readonly [Schema.Struct<{
|
|
601
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
602
|
+
readonly message: Schema.String;
|
|
603
|
+
}>], {
|
|
604
|
+
readonly _tag: "UnauthorizedError";
|
|
605
|
+
readonly message: string;
|
|
606
|
+
}>, Schema.Struct<{
|
|
607
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
608
|
+
readonly message: Schema.String;
|
|
609
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
610
|
+
readonly _tag: "ValidationError";
|
|
611
|
+
readonly message: string;
|
|
612
|
+
readonly fields?: {
|
|
613
|
+
readonly [x: string]: readonly string[];
|
|
614
|
+
} | null;
|
|
615
|
+
}, readonly [Schema.Struct<{
|
|
616
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
617
|
+
readonly message: Schema.String;
|
|
618
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
619
|
+
}>], {
|
|
620
|
+
readonly _tag: "ValidationError";
|
|
621
|
+
readonly message: string;
|
|
622
|
+
readonly fields?: {
|
|
623
|
+
readonly [x: string]: readonly string[];
|
|
624
|
+
} | null;
|
|
625
|
+
}>, Schema.Struct<{
|
|
626
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
627
|
+
readonly message: Schema.String;
|
|
628
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
629
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsCreate", "POST", "/v1/contact-groups", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
630
|
+
readonly name: Schema.String;
|
|
631
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
632
|
+
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.Null]>>;
|
|
633
|
+
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>, Schema.Null]>>;
|
|
634
|
+
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>, Schema.Null]>>;
|
|
635
|
+
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
636
|
+
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>, Schema.Null]>>;
|
|
637
|
+
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
638
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
639
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
640
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
641
|
+
readonly name: Schema.String;
|
|
642
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
643
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>;
|
|
644
|
+
readonly criteria: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
645
|
+
readonly color: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>;
|
|
646
|
+
readonly icon: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
647
|
+
readonly parentGroupId: Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>;
|
|
648
|
+
readonly contactCount: Schema.Finite;
|
|
649
|
+
readonly lastCalculatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
650
|
+
readonly isActive: Schema.Boolean;
|
|
651
|
+
readonly createdAt: Schema.String;
|
|
652
|
+
readonly updatedAt: Schema.String;
|
|
653
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
654
|
+
readonly _tag: "ForbiddenError";
|
|
655
|
+
readonly message: string;
|
|
656
|
+
}, readonly [Schema.Struct<{
|
|
657
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
658
|
+
readonly message: Schema.String;
|
|
659
|
+
}>], {
|
|
660
|
+
readonly _tag: "ForbiddenError";
|
|
661
|
+
readonly message: string;
|
|
662
|
+
}>, Schema.Struct<{
|
|
663
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
664
|
+
readonly message: Schema.String;
|
|
665
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
666
|
+
readonly _tag: "GatewayTimeoutError";
|
|
667
|
+
readonly message: string;
|
|
668
|
+
readonly retryAfterSeconds: number;
|
|
669
|
+
}, readonly [Schema.Struct<{
|
|
670
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
671
|
+
readonly message: Schema.String;
|
|
672
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
673
|
+
}>], {
|
|
674
|
+
readonly _tag: "GatewayTimeoutError";
|
|
675
|
+
readonly message: string;
|
|
676
|
+
readonly retryAfterSeconds: number;
|
|
677
|
+
}>, Schema.Struct<{
|
|
678
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
679
|
+
readonly message: Schema.String;
|
|
680
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
681
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
682
|
+
readonly _tag: "UnauthorizedError";
|
|
683
|
+
readonly message: string;
|
|
684
|
+
}, readonly [Schema.Struct<{
|
|
685
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
686
|
+
readonly message: Schema.String;
|
|
687
|
+
}>], {
|
|
688
|
+
readonly _tag: "UnauthorizedError";
|
|
689
|
+
readonly message: string;
|
|
690
|
+
}>, Schema.Struct<{
|
|
691
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
692
|
+
readonly message: Schema.String;
|
|
693
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
694
|
+
readonly _tag: "ValidationError";
|
|
695
|
+
readonly message: string;
|
|
696
|
+
readonly fields?: {
|
|
697
|
+
readonly [x: string]: readonly string[];
|
|
698
|
+
} | null;
|
|
699
|
+
}, readonly [Schema.Struct<{
|
|
700
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
701
|
+
readonly message: Schema.String;
|
|
702
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
703
|
+
}>], {
|
|
704
|
+
readonly _tag: "ValidationError";
|
|
705
|
+
readonly message: string;
|
|
706
|
+
readonly fields?: {
|
|
707
|
+
readonly [x: string]: readonly string[];
|
|
708
|
+
} | null;
|
|
709
|
+
}>, Schema.Struct<{
|
|
710
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
711
|
+
readonly message: Schema.String;
|
|
712
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
713
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsEvaluateDynamic", "POST", "/v1/contact-groups/:id/evaluate", Schema.toCodecStringTree<Schema.Struct<{
|
|
714
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
715
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
716
|
+
readonly added: Schema.Finite;
|
|
717
|
+
readonly removed: Schema.Finite;
|
|
718
|
+
readonly total: Schema.Finite;
|
|
719
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
720
|
+
readonly _tag: "ForbiddenError";
|
|
721
|
+
readonly message: string;
|
|
722
|
+
}, readonly [Schema.Struct<{
|
|
723
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
724
|
+
readonly message: Schema.String;
|
|
725
|
+
}>], {
|
|
726
|
+
readonly _tag: "ForbiddenError";
|
|
727
|
+
readonly message: string;
|
|
728
|
+
}>, Schema.Struct<{
|
|
729
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
730
|
+
readonly message: Schema.String;
|
|
731
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
732
|
+
readonly _tag: "GatewayTimeoutError";
|
|
733
|
+
readonly message: string;
|
|
734
|
+
readonly retryAfterSeconds: number;
|
|
735
|
+
}, readonly [Schema.Struct<{
|
|
736
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
737
|
+
readonly message: Schema.String;
|
|
738
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
739
|
+
}>], {
|
|
740
|
+
readonly _tag: "GatewayTimeoutError";
|
|
741
|
+
readonly message: string;
|
|
742
|
+
readonly retryAfterSeconds: number;
|
|
743
|
+
}>, Schema.Struct<{
|
|
744
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
745
|
+
readonly message: Schema.String;
|
|
746
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
747
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
748
|
+
readonly _tag: "ResourceNotFoundError";
|
|
749
|
+
readonly resource: string;
|
|
750
|
+
readonly id: string;
|
|
751
|
+
readonly message: string;
|
|
752
|
+
}, readonly [Schema.Struct<{
|
|
753
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
754
|
+
readonly resource: Schema.String;
|
|
755
|
+
readonly id: Schema.String;
|
|
756
|
+
readonly message: Schema.String;
|
|
757
|
+
}>], {
|
|
758
|
+
readonly _tag: "ResourceNotFoundError";
|
|
759
|
+
readonly resource: string;
|
|
760
|
+
readonly id: string;
|
|
761
|
+
readonly message: string;
|
|
762
|
+
}>, Schema.Struct<{
|
|
763
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
764
|
+
readonly resource: Schema.String;
|
|
765
|
+
readonly id: Schema.String;
|
|
766
|
+
readonly message: Schema.String;
|
|
767
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
768
|
+
readonly _tag: "UnauthorizedError";
|
|
769
|
+
readonly message: string;
|
|
770
|
+
}, readonly [Schema.Struct<{
|
|
771
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
772
|
+
readonly message: Schema.String;
|
|
773
|
+
}>], {
|
|
774
|
+
readonly _tag: "UnauthorizedError";
|
|
775
|
+
readonly message: string;
|
|
776
|
+
}>, Schema.Struct<{
|
|
777
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
778
|
+
readonly message: Schema.String;
|
|
779
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
780
|
+
readonly _tag: "ValidationError";
|
|
781
|
+
readonly message: string;
|
|
782
|
+
readonly fields?: {
|
|
783
|
+
readonly [x: string]: readonly string[];
|
|
784
|
+
} | null;
|
|
785
|
+
}, readonly [Schema.Struct<{
|
|
786
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
787
|
+
readonly message: Schema.String;
|
|
788
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
789
|
+
}>], {
|
|
790
|
+
readonly _tag: "ValidationError";
|
|
791
|
+
readonly message: string;
|
|
792
|
+
readonly fields?: {
|
|
793
|
+
readonly [x: string]: readonly string[];
|
|
794
|
+
} | null;
|
|
795
|
+
}>, Schema.Struct<{
|
|
796
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
797
|
+
readonly message: Schema.String;
|
|
798
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
799
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsGetById", "GET", "/v1/contact-groups/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
800
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
801
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
802
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
803
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
804
|
+
readonly name: Schema.String;
|
|
805
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
806
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>;
|
|
807
|
+
readonly criteria: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
808
|
+
readonly color: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>;
|
|
809
|
+
readonly icon: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
810
|
+
readonly parentGroupId: Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>;
|
|
811
|
+
readonly contactCount: Schema.Finite;
|
|
812
|
+
readonly lastCalculatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
813
|
+
readonly isActive: Schema.Boolean;
|
|
814
|
+
readonly createdAt: Schema.String;
|
|
815
|
+
readonly updatedAt: Schema.String;
|
|
816
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
817
|
+
readonly _tag: "ForbiddenError";
|
|
818
|
+
readonly message: string;
|
|
819
|
+
}, readonly [Schema.Struct<{
|
|
820
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
821
|
+
readonly message: Schema.String;
|
|
822
|
+
}>], {
|
|
823
|
+
readonly _tag: "ForbiddenError";
|
|
824
|
+
readonly message: string;
|
|
825
|
+
}>, Schema.Struct<{
|
|
826
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
827
|
+
readonly message: Schema.String;
|
|
828
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
829
|
+
readonly _tag: "GatewayTimeoutError";
|
|
830
|
+
readonly message: string;
|
|
831
|
+
readonly retryAfterSeconds: number;
|
|
832
|
+
}, readonly [Schema.Struct<{
|
|
833
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
834
|
+
readonly message: Schema.String;
|
|
835
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
836
|
+
}>], {
|
|
837
|
+
readonly _tag: "GatewayTimeoutError";
|
|
838
|
+
readonly message: string;
|
|
839
|
+
readonly retryAfterSeconds: number;
|
|
840
|
+
}>, Schema.Struct<{
|
|
841
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
842
|
+
readonly message: Schema.String;
|
|
843
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
844
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
845
|
+
readonly _tag: "ResourceNotFoundError";
|
|
846
|
+
readonly resource: string;
|
|
847
|
+
readonly id: string;
|
|
848
|
+
readonly message: string;
|
|
849
|
+
}, readonly [Schema.Struct<{
|
|
850
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
851
|
+
readonly resource: Schema.String;
|
|
852
|
+
readonly id: Schema.String;
|
|
853
|
+
readonly message: Schema.String;
|
|
854
|
+
}>], {
|
|
855
|
+
readonly _tag: "ResourceNotFoundError";
|
|
856
|
+
readonly resource: string;
|
|
857
|
+
readonly id: string;
|
|
858
|
+
readonly message: string;
|
|
859
|
+
}>, Schema.Struct<{
|
|
860
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
861
|
+
readonly resource: Schema.String;
|
|
862
|
+
readonly id: Schema.String;
|
|
863
|
+
readonly message: Schema.String;
|
|
864
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
865
|
+
readonly _tag: "UnauthorizedError";
|
|
866
|
+
readonly message: string;
|
|
867
|
+
}, readonly [Schema.Struct<{
|
|
868
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
869
|
+
readonly message: Schema.String;
|
|
870
|
+
}>], {
|
|
871
|
+
readonly _tag: "UnauthorizedError";
|
|
872
|
+
readonly message: string;
|
|
873
|
+
}>, Schema.Struct<{
|
|
874
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
875
|
+
readonly message: Schema.String;
|
|
876
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
877
|
+
readonly _tag: "ValidationError";
|
|
878
|
+
readonly message: string;
|
|
879
|
+
readonly fields?: {
|
|
880
|
+
readonly [x: string]: readonly string[];
|
|
881
|
+
} | null;
|
|
882
|
+
}, readonly [Schema.Struct<{
|
|
883
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
884
|
+
readonly message: Schema.String;
|
|
885
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
886
|
+
}>], {
|
|
887
|
+
readonly _tag: "ValidationError";
|
|
888
|
+
readonly message: string;
|
|
889
|
+
readonly fields?: {
|
|
890
|
+
readonly [x: string]: readonly string[];
|
|
891
|
+
} | null;
|
|
892
|
+
}>, Schema.Struct<{
|
|
893
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
894
|
+
readonly message: Schema.String;
|
|
895
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
896
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsGetMembers", "GET", "/v1/contact-groups/:id/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
897
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
898
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
899
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
900
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
901
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
902
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
903
|
+
readonly id: Schema.String;
|
|
904
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
905
|
+
readonly groupId: Schema.brand<Schema.String, "ContactGroupId">;
|
|
906
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
907
|
+
readonly role: Schema.Union<readonly [Schema.Literal<"member">, Schema.Literal<"moderator">, Schema.Literal<"admin">]>;
|
|
908
|
+
readonly joinedAt: Schema.String;
|
|
909
|
+
readonly joinedBy: Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>;
|
|
910
|
+
readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
911
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
912
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
913
|
+
readonly name: Schema.String;
|
|
914
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
915
|
+
readonly type: Schema.String;
|
|
916
|
+
readonly identities: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
917
|
+
readonly id: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
918
|
+
readonly channel: Schema.Literal<"email">;
|
|
919
|
+
readonly identifier: Schema.String;
|
|
920
|
+
readonly verified: Schema.Boolean;
|
|
921
|
+
}>>, Schema.Null]>>;
|
|
922
|
+
}>, Schema.Null]>;
|
|
923
|
+
}>>;
|
|
924
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
925
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
926
|
+
readonly _tag: "ForbiddenError";
|
|
927
|
+
readonly message: string;
|
|
928
|
+
}, readonly [Schema.Struct<{
|
|
929
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
930
|
+
readonly message: Schema.String;
|
|
931
|
+
}>], {
|
|
932
|
+
readonly _tag: "ForbiddenError";
|
|
933
|
+
readonly message: string;
|
|
934
|
+
}>, Schema.Struct<{
|
|
935
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
936
|
+
readonly message: Schema.String;
|
|
937
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
938
|
+
readonly _tag: "GatewayTimeoutError";
|
|
939
|
+
readonly message: string;
|
|
940
|
+
readonly retryAfterSeconds: number;
|
|
941
|
+
}, readonly [Schema.Struct<{
|
|
942
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
943
|
+
readonly message: Schema.String;
|
|
944
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
945
|
+
}>], {
|
|
946
|
+
readonly _tag: "GatewayTimeoutError";
|
|
947
|
+
readonly message: string;
|
|
948
|
+
readonly retryAfterSeconds: number;
|
|
949
|
+
}>, Schema.Struct<{
|
|
950
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
951
|
+
readonly message: Schema.String;
|
|
952
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
953
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
954
|
+
readonly _tag: "ResourceNotFoundError";
|
|
955
|
+
readonly resource: string;
|
|
956
|
+
readonly id: string;
|
|
957
|
+
readonly message: string;
|
|
958
|
+
}, readonly [Schema.Struct<{
|
|
959
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
960
|
+
readonly resource: Schema.String;
|
|
961
|
+
readonly id: Schema.String;
|
|
962
|
+
readonly message: Schema.String;
|
|
963
|
+
}>], {
|
|
964
|
+
readonly _tag: "ResourceNotFoundError";
|
|
965
|
+
readonly resource: string;
|
|
966
|
+
readonly id: string;
|
|
967
|
+
readonly message: string;
|
|
968
|
+
}>, Schema.Struct<{
|
|
969
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
970
|
+
readonly resource: Schema.String;
|
|
971
|
+
readonly id: Schema.String;
|
|
972
|
+
readonly message: Schema.String;
|
|
973
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
974
|
+
readonly _tag: "UnauthorizedError";
|
|
975
|
+
readonly message: string;
|
|
976
|
+
}, readonly [Schema.Struct<{
|
|
977
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
978
|
+
readonly message: Schema.String;
|
|
979
|
+
}>], {
|
|
980
|
+
readonly _tag: "UnauthorizedError";
|
|
981
|
+
readonly message: string;
|
|
982
|
+
}>, Schema.Struct<{
|
|
983
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
984
|
+
readonly message: Schema.String;
|
|
985
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
986
|
+
readonly _tag: "ValidationError";
|
|
987
|
+
readonly message: string;
|
|
988
|
+
readonly fields?: {
|
|
989
|
+
readonly [x: string]: readonly string[];
|
|
990
|
+
} | null;
|
|
991
|
+
}, readonly [Schema.Struct<{
|
|
992
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
993
|
+
readonly message: Schema.String;
|
|
994
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
995
|
+
}>], {
|
|
996
|
+
readonly _tag: "ValidationError";
|
|
997
|
+
readonly message: string;
|
|
998
|
+
readonly fields?: {
|
|
999
|
+
readonly [x: string]: readonly string[];
|
|
1000
|
+
} | null;
|
|
1001
|
+
}>, Schema.Struct<{
|
|
1002
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1003
|
+
readonly message: Schema.String;
|
|
1004
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1005
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsList", "GET", "/v1/contact-groups", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1006
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1007
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1008
|
+
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.$Array<Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>>]>, Schema.Null]>>;
|
|
1009
|
+
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1010
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1011
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1012
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
1013
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
1014
|
+
readonly name: Schema.String;
|
|
1015
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1016
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>;
|
|
1017
|
+
readonly criteria: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1018
|
+
readonly color: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>;
|
|
1019
|
+
readonly icon: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1020
|
+
readonly parentGroupId: Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>;
|
|
1021
|
+
readonly contactCount: Schema.Finite;
|
|
1022
|
+
readonly lastCalculatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1023
|
+
readonly isActive: Schema.Boolean;
|
|
1024
|
+
readonly createdAt: Schema.String;
|
|
1025
|
+
readonly updatedAt: Schema.String;
|
|
1026
|
+
}>>;
|
|
1027
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1028
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1029
|
+
readonly _tag: "ForbiddenError";
|
|
1030
|
+
readonly message: string;
|
|
1031
|
+
}, readonly [Schema.Struct<{
|
|
1032
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1033
|
+
readonly message: Schema.String;
|
|
1034
|
+
}>], {
|
|
1035
|
+
readonly _tag: "ForbiddenError";
|
|
1036
|
+
readonly message: string;
|
|
1037
|
+
}>, Schema.Struct<{
|
|
1038
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1039
|
+
readonly message: Schema.String;
|
|
1040
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1041
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1042
|
+
readonly message: string;
|
|
1043
|
+
readonly retryAfterSeconds: number;
|
|
1044
|
+
}, readonly [Schema.Struct<{
|
|
1045
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1046
|
+
readonly message: Schema.String;
|
|
1047
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1048
|
+
}>], {
|
|
1049
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1050
|
+
readonly message: string;
|
|
1051
|
+
readonly retryAfterSeconds: number;
|
|
1052
|
+
}>, Schema.Struct<{
|
|
1053
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1054
|
+
readonly message: Schema.String;
|
|
1055
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1056
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1057
|
+
readonly _tag: "UnauthorizedError";
|
|
1058
|
+
readonly message: string;
|
|
1059
|
+
}, readonly [Schema.Struct<{
|
|
1060
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1061
|
+
readonly message: Schema.String;
|
|
1062
|
+
}>], {
|
|
1063
|
+
readonly _tag: "UnauthorizedError";
|
|
1064
|
+
readonly message: string;
|
|
1065
|
+
}>, Schema.Struct<{
|
|
1066
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1067
|
+
readonly message: Schema.String;
|
|
1068
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1069
|
+
readonly _tag: "ValidationError";
|
|
1070
|
+
readonly message: string;
|
|
1071
|
+
readonly fields?: {
|
|
1072
|
+
readonly [x: string]: readonly string[];
|
|
1073
|
+
} | null;
|
|
1074
|
+
}, readonly [Schema.Struct<{
|
|
1075
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1076
|
+
readonly message: Schema.String;
|
|
1077
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1078
|
+
}>], {
|
|
1079
|
+
readonly _tag: "ValidationError";
|
|
1080
|
+
readonly message: string;
|
|
1081
|
+
readonly fields?: {
|
|
1082
|
+
readonly [x: string]: readonly string[];
|
|
1083
|
+
} | null;
|
|
1084
|
+
}>, Schema.Struct<{
|
|
1085
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1086
|
+
readonly message: Schema.String;
|
|
1087
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1088
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsPreview", "POST", "/v1/contact-groups/preview", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1089
|
+
readonly criteria: Schema.Struct<{
|
|
1090
|
+
readonly tags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1091
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1092
|
+
readonly match: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"any">]>, Schema.Null]>>;
|
|
1093
|
+
readonly conditions: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
1094
|
+
readonly field: Schema.String;
|
|
1095
|
+
readonly operator: Schema.String;
|
|
1096
|
+
readonly value: Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>;
|
|
1097
|
+
}>>, Schema.Null]>>;
|
|
1098
|
+
}>;
|
|
1099
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1100
|
+
readonly count: Schema.Finite;
|
|
1101
|
+
readonly sample: Schema.$Array<Schema.Struct<{
|
|
1102
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1103
|
+
readonly name: Schema.String;
|
|
1104
|
+
readonly status: Schema.String;
|
|
1105
|
+
}>>;
|
|
1106
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1107
|
+
readonly _tag: "ForbiddenError";
|
|
1108
|
+
readonly message: string;
|
|
1109
|
+
}, readonly [Schema.Struct<{
|
|
1110
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1111
|
+
readonly message: Schema.String;
|
|
1112
|
+
}>], {
|
|
1113
|
+
readonly _tag: "ForbiddenError";
|
|
1114
|
+
readonly message: string;
|
|
1115
|
+
}>, Schema.Struct<{
|
|
1116
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1117
|
+
readonly message: Schema.String;
|
|
1118
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1119
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1120
|
+
readonly message: string;
|
|
1121
|
+
readonly retryAfterSeconds: number;
|
|
1122
|
+
}, readonly [Schema.Struct<{
|
|
1123
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1124
|
+
readonly message: Schema.String;
|
|
1125
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1126
|
+
}>], {
|
|
1127
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1128
|
+
readonly message: string;
|
|
1129
|
+
readonly retryAfterSeconds: number;
|
|
1130
|
+
}>, Schema.Struct<{
|
|
1131
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1132
|
+
readonly message: Schema.String;
|
|
1133
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1134
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1135
|
+
readonly _tag: "UnauthorizedError";
|
|
1136
|
+
readonly message: string;
|
|
1137
|
+
}, readonly [Schema.Struct<{
|
|
1138
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1139
|
+
readonly message: Schema.String;
|
|
1140
|
+
}>], {
|
|
1141
|
+
readonly _tag: "UnauthorizedError";
|
|
1142
|
+
readonly message: string;
|
|
1143
|
+
}>, Schema.Struct<{
|
|
1144
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1145
|
+
readonly message: Schema.String;
|
|
1146
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1147
|
+
readonly _tag: "ValidationError";
|
|
1148
|
+
readonly message: string;
|
|
1149
|
+
readonly fields?: {
|
|
1150
|
+
readonly [x: string]: readonly string[];
|
|
1151
|
+
} | null;
|
|
1152
|
+
}, readonly [Schema.Struct<{
|
|
1153
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1154
|
+
readonly message: Schema.String;
|
|
1155
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1156
|
+
}>], {
|
|
1157
|
+
readonly _tag: "ValidationError";
|
|
1158
|
+
readonly message: string;
|
|
1159
|
+
readonly fields?: {
|
|
1160
|
+
readonly [x: string]: readonly string[];
|
|
1161
|
+
} | null;
|
|
1162
|
+
}>, Schema.Struct<{
|
|
1163
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1164
|
+
readonly message: Schema.String;
|
|
1165
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1166
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsRemove", "DELETE", "/v1/contact-groups/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
1167
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
1168
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1169
|
+
readonly success: Schema.Boolean;
|
|
1170
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1171
|
+
readonly _tag: "ForbiddenError";
|
|
1172
|
+
readonly message: string;
|
|
1173
|
+
}, readonly [Schema.Struct<{
|
|
1174
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1175
|
+
readonly message: Schema.String;
|
|
1176
|
+
}>], {
|
|
1177
|
+
readonly _tag: "ForbiddenError";
|
|
1178
|
+
readonly message: string;
|
|
1179
|
+
}>, Schema.Struct<{
|
|
1180
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1181
|
+
readonly message: Schema.String;
|
|
1182
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1183
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1184
|
+
readonly message: string;
|
|
1185
|
+
readonly retryAfterSeconds: number;
|
|
1186
|
+
}, readonly [Schema.Struct<{
|
|
1187
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1188
|
+
readonly message: Schema.String;
|
|
1189
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1190
|
+
}>], {
|
|
1191
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1192
|
+
readonly message: string;
|
|
1193
|
+
readonly retryAfterSeconds: number;
|
|
1194
|
+
}>, Schema.Struct<{
|
|
1195
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1196
|
+
readonly message: Schema.String;
|
|
1197
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1198
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1199
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1200
|
+
readonly resource: string;
|
|
1201
|
+
readonly id: string;
|
|
1202
|
+
readonly message: string;
|
|
1203
|
+
}, readonly [Schema.Struct<{
|
|
1204
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1205
|
+
readonly resource: Schema.String;
|
|
1206
|
+
readonly id: Schema.String;
|
|
1207
|
+
readonly message: Schema.String;
|
|
1208
|
+
}>], {
|
|
1209
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1210
|
+
readonly resource: string;
|
|
1211
|
+
readonly id: string;
|
|
1212
|
+
readonly message: string;
|
|
1213
|
+
}>, Schema.Struct<{
|
|
1214
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1215
|
+
readonly resource: Schema.String;
|
|
1216
|
+
readonly id: Schema.String;
|
|
1217
|
+
readonly message: Schema.String;
|
|
1218
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1219
|
+
readonly _tag: "UnauthorizedError";
|
|
1220
|
+
readonly message: string;
|
|
1221
|
+
}, readonly [Schema.Struct<{
|
|
1222
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1223
|
+
readonly message: Schema.String;
|
|
1224
|
+
}>], {
|
|
1225
|
+
readonly _tag: "UnauthorizedError";
|
|
1226
|
+
readonly message: string;
|
|
1227
|
+
}>, Schema.Struct<{
|
|
1228
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1229
|
+
readonly message: Schema.String;
|
|
1230
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1231
|
+
readonly _tag: "ValidationError";
|
|
1232
|
+
readonly message: string;
|
|
1233
|
+
readonly fields?: {
|
|
1234
|
+
readonly [x: string]: readonly string[];
|
|
1235
|
+
} | null;
|
|
1236
|
+
}, readonly [Schema.Struct<{
|
|
1237
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1238
|
+
readonly message: Schema.String;
|
|
1239
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1240
|
+
}>], {
|
|
1241
|
+
readonly _tag: "ValidationError";
|
|
1242
|
+
readonly message: string;
|
|
1243
|
+
readonly fields?: {
|
|
1244
|
+
readonly [x: string]: readonly string[];
|
|
1245
|
+
} | null;
|
|
1246
|
+
}>, Schema.Struct<{
|
|
1247
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1248
|
+
readonly message: Schema.String;
|
|
1249
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1250
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsRemoveMembers", "DELETE", "/v1/contact-groups/:id/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
1251
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
1252
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1253
|
+
readonly contactIds: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "ContactId">]>, readonly [Schema.brand<Schema.String, "ContactId">]>;
|
|
1254
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1255
|
+
readonly removed: Schema.Finite;
|
|
1256
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1257
|
+
readonly _tag: "ForbiddenError";
|
|
1258
|
+
readonly message: string;
|
|
1259
|
+
}, readonly [Schema.Struct<{
|
|
1260
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1261
|
+
readonly message: Schema.String;
|
|
1262
|
+
}>], {
|
|
1263
|
+
readonly _tag: "ForbiddenError";
|
|
1264
|
+
readonly message: string;
|
|
1265
|
+
}>, Schema.Struct<{
|
|
1266
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1267
|
+
readonly message: Schema.String;
|
|
1268
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1269
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1270
|
+
readonly message: string;
|
|
1271
|
+
readonly retryAfterSeconds: number;
|
|
1272
|
+
}, readonly [Schema.Struct<{
|
|
1273
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1274
|
+
readonly message: Schema.String;
|
|
1275
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1276
|
+
}>], {
|
|
1277
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1278
|
+
readonly message: string;
|
|
1279
|
+
readonly retryAfterSeconds: number;
|
|
1280
|
+
}>, Schema.Struct<{
|
|
1281
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1282
|
+
readonly message: Schema.String;
|
|
1283
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1284
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1285
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1286
|
+
readonly resource: string;
|
|
1287
|
+
readonly id: string;
|
|
1288
|
+
readonly message: string;
|
|
1289
|
+
}, readonly [Schema.Struct<{
|
|
1290
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1291
|
+
readonly resource: Schema.String;
|
|
1292
|
+
readonly id: Schema.String;
|
|
1293
|
+
readonly message: Schema.String;
|
|
1294
|
+
}>], {
|
|
1295
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1296
|
+
readonly resource: string;
|
|
1297
|
+
readonly id: string;
|
|
1298
|
+
readonly message: string;
|
|
1299
|
+
}>, Schema.Struct<{
|
|
1300
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1301
|
+
readonly resource: Schema.String;
|
|
1302
|
+
readonly id: Schema.String;
|
|
1303
|
+
readonly message: Schema.String;
|
|
1304
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1305
|
+
readonly _tag: "UnauthorizedError";
|
|
1306
|
+
readonly message: string;
|
|
1307
|
+
}, readonly [Schema.Struct<{
|
|
1308
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1309
|
+
readonly message: Schema.String;
|
|
1310
|
+
}>], {
|
|
1311
|
+
readonly _tag: "UnauthorizedError";
|
|
1312
|
+
readonly message: string;
|
|
1313
|
+
}>, Schema.Struct<{
|
|
1314
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1315
|
+
readonly message: Schema.String;
|
|
1316
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1317
|
+
readonly _tag: "ValidationError";
|
|
1318
|
+
readonly message: string;
|
|
1319
|
+
readonly fields?: {
|
|
1320
|
+
readonly [x: string]: readonly string[];
|
|
1321
|
+
} | null;
|
|
1322
|
+
}, readonly [Schema.Struct<{
|
|
1323
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1324
|
+
readonly message: Schema.String;
|
|
1325
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1326
|
+
}>], {
|
|
1327
|
+
readonly _tag: "ValidationError";
|
|
1328
|
+
readonly message: string;
|
|
1329
|
+
readonly fields?: {
|
|
1330
|
+
readonly [x: string]: readonly string[];
|
|
1331
|
+
} | null;
|
|
1332
|
+
}>, Schema.Struct<{
|
|
1333
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1334
|
+
readonly message: Schema.String;
|
|
1335
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1336
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsUpdate", "PATCH", "/v1/contact-groups/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
1337
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
1338
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1339
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1340
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
1341
|
+
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.Null]>>;
|
|
1342
|
+
readonly criteria: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>, Schema.Null]>>;
|
|
1343
|
+
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>, Schema.Null]>>;
|
|
1344
|
+
readonly icon: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
1345
|
+
readonly parentGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>, Schema.Null]>>;
|
|
1346
|
+
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1347
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1348
|
+
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
1349
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
1350
|
+
readonly name: Schema.String;
|
|
1351
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1352
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>;
|
|
1353
|
+
readonly criteria: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1354
|
+
readonly color: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"clay">, Schema.Literal<"sand">, Schema.Literal<"moss">, Schema.Literal<"sky">, Schema.Literal<"plum">, Schema.Literal<"rose">]>, Schema.Null]>;
|
|
1355
|
+
readonly icon: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1356
|
+
readonly parentGroupId: Schema.Union<readonly [Schema.brand<Schema.String, "ContactGroupId">, Schema.Null]>;
|
|
1357
|
+
readonly contactCount: Schema.Finite;
|
|
1358
|
+
readonly lastCalculatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1359
|
+
readonly isActive: Schema.Boolean;
|
|
1360
|
+
readonly createdAt: Schema.String;
|
|
1361
|
+
readonly updatedAt: Schema.String;
|
|
1362
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1363
|
+
readonly _tag: "ForbiddenError";
|
|
1364
|
+
readonly message: string;
|
|
1365
|
+
}, readonly [Schema.Struct<{
|
|
1366
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1367
|
+
readonly message: Schema.String;
|
|
1368
|
+
}>], {
|
|
1369
|
+
readonly _tag: "ForbiddenError";
|
|
1370
|
+
readonly message: string;
|
|
1371
|
+
}>, Schema.Struct<{
|
|
1372
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1373
|
+
readonly message: Schema.String;
|
|
1374
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1375
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1376
|
+
readonly message: string;
|
|
1377
|
+
readonly retryAfterSeconds: number;
|
|
1378
|
+
}, readonly [Schema.Struct<{
|
|
1379
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1380
|
+
readonly message: Schema.String;
|
|
1381
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1382
|
+
}>], {
|
|
1383
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1384
|
+
readonly message: string;
|
|
1385
|
+
readonly retryAfterSeconds: number;
|
|
1386
|
+
}>, Schema.Struct<{
|
|
1387
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1388
|
+
readonly message: Schema.String;
|
|
1389
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1390
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1391
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1392
|
+
readonly resource: string;
|
|
1393
|
+
readonly id: string;
|
|
1394
|
+
readonly message: string;
|
|
1395
|
+
}, readonly [Schema.Struct<{
|
|
1396
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1397
|
+
readonly resource: Schema.String;
|
|
1398
|
+
readonly id: Schema.String;
|
|
1399
|
+
readonly message: Schema.String;
|
|
1400
|
+
}>], {
|
|
1401
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1402
|
+
readonly resource: string;
|
|
1403
|
+
readonly id: string;
|
|
1404
|
+
readonly message: string;
|
|
1405
|
+
}>, Schema.Struct<{
|
|
1406
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1407
|
+
readonly resource: Schema.String;
|
|
1408
|
+
readonly id: Schema.String;
|
|
1409
|
+
readonly message: Schema.String;
|
|
1410
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1411
|
+
readonly _tag: "UnauthorizedError";
|
|
1412
|
+
readonly message: string;
|
|
1413
|
+
}, readonly [Schema.Struct<{
|
|
1414
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1415
|
+
readonly message: Schema.String;
|
|
1416
|
+
}>], {
|
|
1417
|
+
readonly _tag: "UnauthorizedError";
|
|
1418
|
+
readonly message: string;
|
|
1419
|
+
}>, Schema.Struct<{
|
|
1420
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1421
|
+
readonly message: Schema.String;
|
|
1422
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1423
|
+
readonly _tag: "ValidationError";
|
|
1424
|
+
readonly message: string;
|
|
1425
|
+
readonly fields?: {
|
|
1426
|
+
readonly [x: string]: readonly string[];
|
|
1427
|
+
} | null;
|
|
1428
|
+
}, readonly [Schema.Struct<{
|
|
1429
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1430
|
+
readonly message: Schema.String;
|
|
1431
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1432
|
+
}>], {
|
|
1433
|
+
readonly _tag: "ValidationError";
|
|
1434
|
+
readonly message: string;
|
|
1435
|
+
readonly fields?: {
|
|
1436
|
+
readonly [x: string]: readonly string[];
|
|
1437
|
+
} | null;
|
|
1438
|
+
}>, Schema.Struct<{
|
|
1439
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1440
|
+
readonly message: Schema.String;
|
|
1441
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1442
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>, false>;
|
|
1443
|
+
export declare class ContactGroupsGroup extends ContactGroupsGroup_base {
|
|
1444
|
+
}
|
|
1445
|
+
export {};
|