samva 0.44.0 → 0.45.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 +3 -0
- package/README.md +4 -0
- package/dist/client/sdk.gen.d.ts +281 -1
- package/dist/client/sdk.gen.js +856 -1
- package/dist/client/types.gen.d.ts +1850 -46
- package/dist/effect/agents.d.ts +86 -86
- package/dist/effect/agents.js +2 -2
- package/dist/effect/api-keys.d.ts +36 -36
- package/dist/effect/api-keys.js +2 -2
- package/dist/effect/attachments.d.ts +3 -3
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/campaigns.d.ts +250 -250
- package/dist/effect/campaigns.js +3 -3
- package/dist/effect/categories.d.ts +23 -5
- package/dist/effect/categories.js +11 -20
- package/dist/effect/contact-groups.d.ts +44 -44
- package/dist/effect/contact-groups.js +3 -3
- package/dist/effect/contacts.d.ts +3 -3
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +53 -53
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/email.d.ts +97 -97
- package/dist/effect/email.js +21 -21
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +6 -6
- package/dist/effect/extension-installations.js +1 -1
- package/dist/effect/generated/index.d.ts +9 -1
- package/dist/effect/generated/journeys.d.ts +1 -3
- package/dist/effect/generated/journeys.js +2 -6
- package/dist/effect/generated/messages.d.ts +1 -5
- package/dist/effect/generated/messages.js +2 -10
- package/dist/effect/generated/shared.d.ts +92 -2
- package/dist/effect/generated/shared.js +43 -2
- package/dist/effect/generated/template-registrations.d.ts +651 -0
- package/dist/effect/generated/template-registrations.js +138 -0
- package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
- package/dist/effect/generated/whats-app-flows.js +338 -0
- package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
- package/dist/effect/generated/whats-app-setup-links.js +150 -0
- package/dist/effect/generated/whats-app.d.ts +2089 -0
- package/dist/effect/generated/whats-app.js +633 -0
- package/dist/effect/generated-metadata.d.ts +245 -0
- package/dist/effect/generated-metadata.js +221 -48
- package/dist/effect/index.d.ts +4 -0
- package/dist/effect/index.js +6 -2
- package/dist/effect/mailboxes.d.ts +298 -298
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.d.ts +4 -4
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +4 -4
- package/dist/effect/namespaces.d.ts +5 -5
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-issues.d.ts +8 -8
- package/dist/effect/newsletter-issues.js +2 -2
- package/dist/effect/newsletters.d.ts +3 -3
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/organizations.d.ts +10 -10
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +2 -0
- package/dist/effect/runtime.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +839 -839
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/template-registrations.d.ts +12 -0
- package/dist/effect/template-registrations.js +16 -0
- package/dist/effect/templates.d.ts +66 -66
- package/dist/effect/templates.js +13 -13
- package/dist/effect/topic-forms.d.ts +4 -4
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -2
- package/dist/effect/webhooks.d.ts +18 -18
- package/dist/effect/webhooks.js +3 -3
- package/dist/effect/whatsapp-flows.d.ts +34 -0
- package/dist/effect/whatsapp-flows.js +30 -0
- package/dist/effect/whatsapp-setup-links.d.ts +66 -0
- package/dist/effect/whatsapp-setup-links.js +18 -0
- package/dist/effect/whatsapp.d.ts +51 -0
- package/dist/effect/whatsapp.js +34 -0
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +9 -1
- package/dist/promises/client.js +11 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +160 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +917 -736
- package/dist/service-map.js +288 -235
- package/package.json +19 -3
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
import type * as EffectBrand from "effect/Brand";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
|
+
import * as Schema from "effect/Schema";
|
|
4
|
+
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateId, TemplatePublicationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared";
|
|
5
|
+
export type TemplateRegistrationId = string & EffectBrand.Brand<"TemplateRegistrationId">;
|
|
6
|
+
export declare const TemplateRegistrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
7
|
+
export type WhatsAppRegistrationTarget = {
|
|
8
|
+
readonly provider: "whatsapp";
|
|
9
|
+
readonly wabaId: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const WhatsAppRegistrationTarget: Schema.Struct<{
|
|
12
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
13
|
+
readonly wabaId: Schema.String;
|
|
14
|
+
}>;
|
|
15
|
+
export type DltRegistrationTarget = {
|
|
16
|
+
readonly provider: "dlt";
|
|
17
|
+
readonly entityId: string;
|
|
18
|
+
readonly headerId: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const DltRegistrationTarget: Schema.Struct<{
|
|
21
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
22
|
+
readonly entityId: Schema.String;
|
|
23
|
+
readonly headerId: Schema.String;
|
|
24
|
+
}>;
|
|
25
|
+
export type TemplateRegistrationTarget = WhatsAppRegistrationTarget | DltRegistrationTarget;
|
|
26
|
+
export declare const TemplateRegistrationTarget: Schema.Union<readonly [Schema.Struct<{
|
|
27
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
28
|
+
readonly wabaId: Schema.String;
|
|
29
|
+
}>, Schema.Struct<{
|
|
30
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
31
|
+
readonly entityId: Schema.String;
|
|
32
|
+
readonly headerId: Schema.String;
|
|
33
|
+
}>]>;
|
|
34
|
+
export type TemplateRegistration = {
|
|
35
|
+
readonly id: TemplateRegistrationId;
|
|
36
|
+
readonly templateId: TemplateId;
|
|
37
|
+
readonly publicationId: TemplatePublicationId;
|
|
38
|
+
readonly target: TemplateRegistrationTarget;
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly language: string;
|
|
41
|
+
readonly status: "draft" | "submitted" | "approved" | "rejected" | "paused" | "disabled";
|
|
42
|
+
readonly category: "marketing" | "utility" | "authentication" | "transactional" | "service_implicit" | "service_explicit" | "promotional";
|
|
43
|
+
readonly providerCategory: "marketing" | "utility" | "authentication" | "transactional" | "service_implicit" | "service_explicit" | "promotional" | null;
|
|
44
|
+
readonly providerTemplateId: string | null;
|
|
45
|
+
readonly reason: string | null;
|
|
46
|
+
readonly submittedAt: string | null;
|
|
47
|
+
readonly statusChangedAt: string;
|
|
48
|
+
readonly createdAt: string;
|
|
49
|
+
readonly updatedAt: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const TemplateRegistration: Schema.Struct<{
|
|
52
|
+
readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
53
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
54
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
55
|
+
readonly target: Schema.Union<readonly [Schema.Struct<{
|
|
56
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
57
|
+
readonly wabaId: Schema.String;
|
|
58
|
+
}>, Schema.Struct<{
|
|
59
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
60
|
+
readonly entityId: Schema.String;
|
|
61
|
+
readonly headerId: Schema.String;
|
|
62
|
+
}>]>;
|
|
63
|
+
readonly name: Schema.String;
|
|
64
|
+
readonly language: Schema.String;
|
|
65
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
|
|
66
|
+
readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
|
|
67
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
|
|
68
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
69
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
70
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
71
|
+
readonly statusChangedAt: Schema.String;
|
|
72
|
+
readonly createdAt: Schema.String;
|
|
73
|
+
readonly updatedAt: Schema.String;
|
|
74
|
+
}>;
|
|
75
|
+
export type TemplateRegistrationList = {
|
|
76
|
+
readonly data: ReadonlyArray<TemplateRegistration>;
|
|
77
|
+
};
|
|
78
|
+
export declare const TemplateRegistrationList: Schema.Struct<{
|
|
79
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
80
|
+
readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
81
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
82
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
83
|
+
readonly target: Schema.Union<readonly [Schema.Struct<{
|
|
84
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
85
|
+
readonly wabaId: Schema.String;
|
|
86
|
+
}>, Schema.Struct<{
|
|
87
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
88
|
+
readonly entityId: Schema.String;
|
|
89
|
+
readonly headerId: Schema.String;
|
|
90
|
+
}>]>;
|
|
91
|
+
readonly name: Schema.String;
|
|
92
|
+
readonly language: Schema.String;
|
|
93
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
|
|
94
|
+
readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
|
|
95
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
|
|
96
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
97
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
98
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
99
|
+
readonly statusChangedAt: Schema.String;
|
|
100
|
+
readonly createdAt: Schema.String;
|
|
101
|
+
readonly updatedAt: Schema.String;
|
|
102
|
+
}>>;
|
|
103
|
+
}>;
|
|
104
|
+
export type TemplateRegistrationsListPathParams = {
|
|
105
|
+
readonly id: TemplateId;
|
|
106
|
+
};
|
|
107
|
+
export declare const TemplateRegistrationsListPathParams: Schema.Struct<{
|
|
108
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
109
|
+
}>;
|
|
110
|
+
export type TemplateRegistrationsList200 = TemplateRegistrationList;
|
|
111
|
+
export declare const TemplateRegistrationsList200: Schema.Struct<{
|
|
112
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
113
|
+
readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
114
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
115
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
116
|
+
readonly target: Schema.Union<readonly [Schema.Struct<{
|
|
117
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
118
|
+
readonly wabaId: Schema.String;
|
|
119
|
+
}>, Schema.Struct<{
|
|
120
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
121
|
+
readonly entityId: Schema.String;
|
|
122
|
+
readonly headerId: Schema.String;
|
|
123
|
+
}>]>;
|
|
124
|
+
readonly name: Schema.String;
|
|
125
|
+
readonly language: Schema.String;
|
|
126
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
|
|
127
|
+
readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
|
|
128
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
|
|
129
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
130
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
131
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
132
|
+
readonly statusChangedAt: Schema.String;
|
|
133
|
+
readonly createdAt: Schema.String;
|
|
134
|
+
readonly updatedAt: Schema.String;
|
|
135
|
+
}>>;
|
|
136
|
+
}>;
|
|
137
|
+
export type TemplateRegistrationsList400 = MalformedRequestError;
|
|
138
|
+
export declare const TemplateRegistrationsList400: typeof MalformedRequestError;
|
|
139
|
+
export type TemplateRegistrationsList401 = UnauthorizedError;
|
|
140
|
+
export declare const TemplateRegistrationsList401: typeof UnauthorizedError;
|
|
141
|
+
export type TemplateRegistrationsList403 = FlagDisabledError | ForbiddenError;
|
|
142
|
+
export declare const TemplateRegistrationsList403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
143
|
+
export type TemplateRegistrationsList404 = ResourceNotFoundError;
|
|
144
|
+
export declare const TemplateRegistrationsList404: typeof ResourceNotFoundError;
|
|
145
|
+
export type TemplateRegistrationsList422 = ValidationError;
|
|
146
|
+
export declare const TemplateRegistrationsList422: typeof ValidationError;
|
|
147
|
+
export type TemplateRegistrationsList500 = InternalError;
|
|
148
|
+
export declare const TemplateRegistrationsList500: typeof InternalError;
|
|
149
|
+
export type TemplateRegistrationsList504 = GatewayTimeoutError;
|
|
150
|
+
export declare const TemplateRegistrationsList504: typeof GatewayTimeoutError;
|
|
151
|
+
export type TemplateRegistrationsSubmitPathParams = {
|
|
152
|
+
readonly id: TemplateId;
|
|
153
|
+
};
|
|
154
|
+
export declare const TemplateRegistrationsSubmitPathParams: Schema.Struct<{
|
|
155
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
156
|
+
}>;
|
|
157
|
+
export type TemplateRegistrationsSubmitRequestJson = {
|
|
158
|
+
readonly provider: "whatsapp";
|
|
159
|
+
readonly businessAccountId?: WhatsAppBusinessAccountId;
|
|
160
|
+
};
|
|
161
|
+
export declare const TemplateRegistrationsSubmitRequestJson: Schema.Struct<{
|
|
162
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
163
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
164
|
+
}>;
|
|
165
|
+
export type TemplateRegistrationsSubmit201 = TemplateRegistration;
|
|
166
|
+
export declare const TemplateRegistrationsSubmit201: Schema.Struct<{
|
|
167
|
+
readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
168
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
169
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
170
|
+
readonly target: Schema.Union<readonly [Schema.Struct<{
|
|
171
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
172
|
+
readonly wabaId: Schema.String;
|
|
173
|
+
}>, Schema.Struct<{
|
|
174
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
175
|
+
readonly entityId: Schema.String;
|
|
176
|
+
readonly headerId: Schema.String;
|
|
177
|
+
}>]>;
|
|
178
|
+
readonly name: Schema.String;
|
|
179
|
+
readonly language: Schema.String;
|
|
180
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
|
|
181
|
+
readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
|
|
182
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
|
|
183
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
184
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
185
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
186
|
+
readonly statusChangedAt: Schema.String;
|
|
187
|
+
readonly createdAt: Schema.String;
|
|
188
|
+
readonly updatedAt: Schema.String;
|
|
189
|
+
}>;
|
|
190
|
+
export type TemplateRegistrationsSubmit400 = MalformedRequestError;
|
|
191
|
+
export declare const TemplateRegistrationsSubmit400: typeof MalformedRequestError;
|
|
192
|
+
export type TemplateRegistrationsSubmit401 = UnauthorizedError;
|
|
193
|
+
export declare const TemplateRegistrationsSubmit401: typeof UnauthorizedError;
|
|
194
|
+
export type TemplateRegistrationsSubmit403 = ForbiddenError | FlagDisabledError;
|
|
195
|
+
export declare const TemplateRegistrationsSubmit403: Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]>;
|
|
196
|
+
export type TemplateRegistrationsSubmit404 = ResourceNotFoundError;
|
|
197
|
+
export declare const TemplateRegistrationsSubmit404: typeof ResourceNotFoundError;
|
|
198
|
+
export type TemplateRegistrationsSubmit409 = ConflictError;
|
|
199
|
+
export declare const TemplateRegistrationsSubmit409: typeof ConflictError;
|
|
200
|
+
export type TemplateRegistrationsSubmit422 = ValidationError;
|
|
201
|
+
export declare const TemplateRegistrationsSubmit422: typeof ValidationError;
|
|
202
|
+
export type TemplateRegistrationsSubmit500 = CredentialsError | InternalError;
|
|
203
|
+
export declare const TemplateRegistrationsSubmit500: Schema.Union<readonly [typeof CredentialsError, typeof InternalError]>;
|
|
204
|
+
export type TemplateRegistrationsSubmit502 = WhatsAppChannelError;
|
|
205
|
+
export declare const TemplateRegistrationsSubmit502: typeof WhatsAppChannelError;
|
|
206
|
+
export type TemplateRegistrationsSubmit504 = GatewayTimeoutError;
|
|
207
|
+
export declare const TemplateRegistrationsSubmit504: typeof GatewayTimeoutError;
|
|
208
|
+
export type TemplateRegistrationsGetPathParams = {
|
|
209
|
+
readonly id: TemplateId;
|
|
210
|
+
readonly registrationId: TemplateRegistrationId;
|
|
211
|
+
};
|
|
212
|
+
export declare const TemplateRegistrationsGetPathParams: Schema.Struct<{
|
|
213
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
214
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
215
|
+
}>;
|
|
216
|
+
export type TemplateRegistrationsGet200 = TemplateRegistration;
|
|
217
|
+
export declare const TemplateRegistrationsGet200: Schema.Struct<{
|
|
218
|
+
readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
219
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
220
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
221
|
+
readonly target: Schema.Union<readonly [Schema.Struct<{
|
|
222
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
223
|
+
readonly wabaId: Schema.String;
|
|
224
|
+
}>, Schema.Struct<{
|
|
225
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
226
|
+
readonly entityId: Schema.String;
|
|
227
|
+
readonly headerId: Schema.String;
|
|
228
|
+
}>]>;
|
|
229
|
+
readonly name: Schema.String;
|
|
230
|
+
readonly language: Schema.String;
|
|
231
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
|
|
232
|
+
readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
|
|
233
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
|
|
234
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
235
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
236
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
237
|
+
readonly statusChangedAt: Schema.String;
|
|
238
|
+
readonly createdAt: Schema.String;
|
|
239
|
+
readonly updatedAt: Schema.String;
|
|
240
|
+
}>;
|
|
241
|
+
export type TemplateRegistrationsGet400 = MalformedRequestError;
|
|
242
|
+
export declare const TemplateRegistrationsGet400: typeof MalformedRequestError;
|
|
243
|
+
export type TemplateRegistrationsGet401 = UnauthorizedError;
|
|
244
|
+
export declare const TemplateRegistrationsGet401: typeof UnauthorizedError;
|
|
245
|
+
export type TemplateRegistrationsGet403 = FlagDisabledError | ForbiddenError;
|
|
246
|
+
export declare const TemplateRegistrationsGet403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
247
|
+
export type TemplateRegistrationsGet404 = ResourceNotFoundError;
|
|
248
|
+
export declare const TemplateRegistrationsGet404: typeof ResourceNotFoundError;
|
|
249
|
+
export type TemplateRegistrationsGet422 = ValidationError;
|
|
250
|
+
export declare const TemplateRegistrationsGet422: typeof ValidationError;
|
|
251
|
+
export type TemplateRegistrationsGet500 = InternalError;
|
|
252
|
+
export declare const TemplateRegistrationsGet500: typeof InternalError;
|
|
253
|
+
export type TemplateRegistrationsGet504 = GatewayTimeoutError;
|
|
254
|
+
export declare const TemplateRegistrationsGet504: typeof GatewayTimeoutError;
|
|
255
|
+
declare const TemplateRegistrationsGroup_base: HttpApiGroup.HttpApiGroup<"Template registrations", HttpApiEndpoint.HttpApiEndpoint<"templateRegistrationsGet", "GET", "/v1/templates/:id/registrations/:registrationId", Schema.toCodecStringTree<Schema.Struct<{
|
|
256
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
257
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
258
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
259
|
+
readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
260
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
261
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
262
|
+
readonly target: Schema.Union<readonly [Schema.Struct<{
|
|
263
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
264
|
+
readonly wabaId: Schema.String;
|
|
265
|
+
}>, Schema.Struct<{
|
|
266
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
267
|
+
readonly entityId: Schema.String;
|
|
268
|
+
readonly headerId: Schema.String;
|
|
269
|
+
}>]>;
|
|
270
|
+
readonly name: Schema.String;
|
|
271
|
+
readonly language: Schema.String;
|
|
272
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
|
|
273
|
+
readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
|
|
274
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
|
|
275
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
276
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
277
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
278
|
+
readonly statusChangedAt: Schema.String;
|
|
279
|
+
readonly createdAt: Schema.String;
|
|
280
|
+
readonly updatedAt: Schema.String;
|
|
281
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
282
|
+
readonly _tag: "GatewayTimeoutError";
|
|
283
|
+
readonly message: string;
|
|
284
|
+
readonly retryAfterSeconds: number;
|
|
285
|
+
}, readonly [Schema.Struct<{
|
|
286
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
287
|
+
readonly message: Schema.String;
|
|
288
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
289
|
+
}>], {
|
|
290
|
+
readonly _tag: "GatewayTimeoutError";
|
|
291
|
+
readonly message: string;
|
|
292
|
+
readonly retryAfterSeconds: number;
|
|
293
|
+
}>, Schema.Struct<{
|
|
294
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
295
|
+
readonly message: Schema.String;
|
|
296
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
297
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
298
|
+
readonly _tag: "MalformedRequestError";
|
|
299
|
+
readonly message: string;
|
|
300
|
+
readonly fields: {
|
|
301
|
+
readonly [x: string]: readonly string[];
|
|
302
|
+
};
|
|
303
|
+
}, readonly [Schema.Struct<{
|
|
304
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
305
|
+
readonly message: Schema.String;
|
|
306
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
307
|
+
}>], {
|
|
308
|
+
readonly _tag: "MalformedRequestError";
|
|
309
|
+
readonly message: string;
|
|
310
|
+
readonly fields: {
|
|
311
|
+
readonly [x: string]: readonly string[];
|
|
312
|
+
};
|
|
313
|
+
}>, Schema.Struct<{
|
|
314
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
315
|
+
readonly message: Schema.String;
|
|
316
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
317
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
318
|
+
readonly _tag: "ResourceNotFoundError";
|
|
319
|
+
readonly resource: string;
|
|
320
|
+
readonly id: string;
|
|
321
|
+
readonly message: string;
|
|
322
|
+
}, readonly [Schema.Struct<{
|
|
323
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
324
|
+
readonly resource: Schema.String;
|
|
325
|
+
readonly id: Schema.String;
|
|
326
|
+
readonly message: Schema.String;
|
|
327
|
+
}>], {
|
|
328
|
+
readonly _tag: "ResourceNotFoundError";
|
|
329
|
+
readonly resource: string;
|
|
330
|
+
readonly id: string;
|
|
331
|
+
readonly message: string;
|
|
332
|
+
}>, Schema.Struct<{
|
|
333
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
334
|
+
readonly resource: Schema.String;
|
|
335
|
+
readonly id: Schema.String;
|
|
336
|
+
readonly message: Schema.String;
|
|
337
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
338
|
+
readonly _tag: "UnauthorizedError";
|
|
339
|
+
readonly message: string;
|
|
340
|
+
}, readonly [Schema.Struct<{
|
|
341
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
342
|
+
readonly message: Schema.String;
|
|
343
|
+
}>], {
|
|
344
|
+
readonly _tag: "UnauthorizedError";
|
|
345
|
+
readonly message: string;
|
|
346
|
+
}>, Schema.Struct<{
|
|
347
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
348
|
+
readonly message: Schema.String;
|
|
349
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
350
|
+
readonly _tag: "ValidationError";
|
|
351
|
+
readonly message: string;
|
|
352
|
+
readonly fields?: {
|
|
353
|
+
readonly [x: string]: readonly string[];
|
|
354
|
+
} | null;
|
|
355
|
+
}, readonly [Schema.Struct<{
|
|
356
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
357
|
+
readonly message: Schema.String;
|
|
358
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
359
|
+
}>], {
|
|
360
|
+
readonly _tag: "ValidationError";
|
|
361
|
+
readonly message: string;
|
|
362
|
+
readonly fields?: {
|
|
363
|
+
readonly [x: string]: readonly string[];
|
|
364
|
+
} | null;
|
|
365
|
+
}>, Schema.Struct<{
|
|
366
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
367
|
+
readonly message: Schema.String;
|
|
368
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
369
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templateRegistrationsList", "GET", "/v1/templates/:id/registrations", Schema.toCodecStringTree<Schema.Struct<{
|
|
370
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
371
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
372
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
373
|
+
readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
374
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
375
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
376
|
+
readonly target: Schema.Union<readonly [Schema.Struct<{
|
|
377
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
378
|
+
readonly wabaId: Schema.String;
|
|
379
|
+
}>, Schema.Struct<{
|
|
380
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
381
|
+
readonly entityId: Schema.String;
|
|
382
|
+
readonly headerId: Schema.String;
|
|
383
|
+
}>]>;
|
|
384
|
+
readonly name: Schema.String;
|
|
385
|
+
readonly language: Schema.String;
|
|
386
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
|
|
387
|
+
readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
|
|
388
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
|
|
389
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
390
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
391
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
392
|
+
readonly statusChangedAt: Schema.String;
|
|
393
|
+
readonly createdAt: Schema.String;
|
|
394
|
+
readonly updatedAt: Schema.String;
|
|
395
|
+
}>>;
|
|
396
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
397
|
+
readonly _tag: "GatewayTimeoutError";
|
|
398
|
+
readonly message: string;
|
|
399
|
+
readonly retryAfterSeconds: number;
|
|
400
|
+
}, readonly [Schema.Struct<{
|
|
401
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
402
|
+
readonly message: Schema.String;
|
|
403
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
404
|
+
}>], {
|
|
405
|
+
readonly _tag: "GatewayTimeoutError";
|
|
406
|
+
readonly message: string;
|
|
407
|
+
readonly retryAfterSeconds: number;
|
|
408
|
+
}>, Schema.Struct<{
|
|
409
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
410
|
+
readonly message: Schema.String;
|
|
411
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
412
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
413
|
+
readonly _tag: "MalformedRequestError";
|
|
414
|
+
readonly message: string;
|
|
415
|
+
readonly fields: {
|
|
416
|
+
readonly [x: string]: readonly string[];
|
|
417
|
+
};
|
|
418
|
+
}, readonly [Schema.Struct<{
|
|
419
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
420
|
+
readonly message: Schema.String;
|
|
421
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
422
|
+
}>], {
|
|
423
|
+
readonly _tag: "MalformedRequestError";
|
|
424
|
+
readonly message: string;
|
|
425
|
+
readonly fields: {
|
|
426
|
+
readonly [x: string]: readonly string[];
|
|
427
|
+
};
|
|
428
|
+
}>, Schema.Struct<{
|
|
429
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
430
|
+
readonly message: Schema.String;
|
|
431
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
432
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
433
|
+
readonly _tag: "ResourceNotFoundError";
|
|
434
|
+
readonly resource: string;
|
|
435
|
+
readonly id: string;
|
|
436
|
+
readonly message: string;
|
|
437
|
+
}, readonly [Schema.Struct<{
|
|
438
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
439
|
+
readonly resource: Schema.String;
|
|
440
|
+
readonly id: Schema.String;
|
|
441
|
+
readonly message: Schema.String;
|
|
442
|
+
}>], {
|
|
443
|
+
readonly _tag: "ResourceNotFoundError";
|
|
444
|
+
readonly resource: string;
|
|
445
|
+
readonly id: string;
|
|
446
|
+
readonly message: string;
|
|
447
|
+
}>, Schema.Struct<{
|
|
448
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
449
|
+
readonly resource: Schema.String;
|
|
450
|
+
readonly id: Schema.String;
|
|
451
|
+
readonly message: Schema.String;
|
|
452
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
453
|
+
readonly _tag: "UnauthorizedError";
|
|
454
|
+
readonly message: string;
|
|
455
|
+
}, readonly [Schema.Struct<{
|
|
456
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
457
|
+
readonly message: Schema.String;
|
|
458
|
+
}>], {
|
|
459
|
+
readonly _tag: "UnauthorizedError";
|
|
460
|
+
readonly message: string;
|
|
461
|
+
}>, Schema.Struct<{
|
|
462
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
463
|
+
readonly message: Schema.String;
|
|
464
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
465
|
+
readonly _tag: "ValidationError";
|
|
466
|
+
readonly message: string;
|
|
467
|
+
readonly fields?: {
|
|
468
|
+
readonly [x: string]: readonly string[];
|
|
469
|
+
} | null;
|
|
470
|
+
}, readonly [Schema.Struct<{
|
|
471
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
472
|
+
readonly message: Schema.String;
|
|
473
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
474
|
+
}>], {
|
|
475
|
+
readonly _tag: "ValidationError";
|
|
476
|
+
readonly message: string;
|
|
477
|
+
readonly fields?: {
|
|
478
|
+
readonly [x: string]: readonly string[];
|
|
479
|
+
} | null;
|
|
480
|
+
}>, Schema.Struct<{
|
|
481
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
482
|
+
readonly message: Schema.String;
|
|
483
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
484
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templateRegistrationsSubmit", "POST", "/v1/templates/:id/registrations", Schema.toCodecStringTree<Schema.Struct<{
|
|
485
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
486
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
487
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
488
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
489
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
490
|
+
readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
491
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
492
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
493
|
+
readonly target: Schema.Union<readonly [Schema.Struct<{
|
|
494
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
495
|
+
readonly wabaId: Schema.String;
|
|
496
|
+
}>, Schema.Struct<{
|
|
497
|
+
readonly provider: Schema.Literal<"dlt">;
|
|
498
|
+
readonly entityId: Schema.String;
|
|
499
|
+
readonly headerId: Schema.String;
|
|
500
|
+
}>]>;
|
|
501
|
+
readonly name: Schema.String;
|
|
502
|
+
readonly language: Schema.String;
|
|
503
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
|
|
504
|
+
readonly category: Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>;
|
|
505
|
+
readonly providerCategory: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"marketing">, Schema.Literal<"utility">, Schema.Literal<"authentication">, Schema.Literal<"transactional">, Schema.Literal<"service_implicit">, Schema.Literal<"service_explicit">, Schema.Literal<"promotional">]>, Schema.Null]>;
|
|
506
|
+
readonly providerTemplateId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
507
|
+
readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
508
|
+
readonly submittedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
509
|
+
readonly statusChangedAt: Schema.String;
|
|
510
|
+
readonly createdAt: Schema.String;
|
|
511
|
+
readonly updatedAt: Schema.String;
|
|
512
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof FlagDisabledError]> | Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
513
|
+
readonly _tag: "ConflictError";
|
|
514
|
+
readonly message: string;
|
|
515
|
+
readonly resource: string;
|
|
516
|
+
readonly id?: string | null;
|
|
517
|
+
}, readonly [Schema.Struct<{
|
|
518
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
519
|
+
readonly message: Schema.String;
|
|
520
|
+
readonly resource: Schema.String;
|
|
521
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
522
|
+
}>], {
|
|
523
|
+
readonly _tag: "ConflictError";
|
|
524
|
+
readonly message: string;
|
|
525
|
+
readonly resource: string;
|
|
526
|
+
readonly id?: string | null;
|
|
527
|
+
}>, Schema.Struct<{
|
|
528
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
529
|
+
readonly message: Schema.String;
|
|
530
|
+
readonly resource: Schema.String;
|
|
531
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
532
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
533
|
+
readonly _tag: "GatewayTimeoutError";
|
|
534
|
+
readonly message: string;
|
|
535
|
+
readonly retryAfterSeconds: number;
|
|
536
|
+
}, readonly [Schema.Struct<{
|
|
537
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
538
|
+
readonly message: Schema.String;
|
|
539
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
540
|
+
}>], {
|
|
541
|
+
readonly _tag: "GatewayTimeoutError";
|
|
542
|
+
readonly message: string;
|
|
543
|
+
readonly retryAfterSeconds: number;
|
|
544
|
+
}>, Schema.Struct<{
|
|
545
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
546
|
+
readonly message: Schema.String;
|
|
547
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
548
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
549
|
+
readonly _tag: "MalformedRequestError";
|
|
550
|
+
readonly message: string;
|
|
551
|
+
readonly fields: {
|
|
552
|
+
readonly [x: string]: readonly string[];
|
|
553
|
+
};
|
|
554
|
+
}, readonly [Schema.Struct<{
|
|
555
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
556
|
+
readonly message: Schema.String;
|
|
557
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
558
|
+
}>], {
|
|
559
|
+
readonly _tag: "MalformedRequestError";
|
|
560
|
+
readonly message: string;
|
|
561
|
+
readonly fields: {
|
|
562
|
+
readonly [x: string]: readonly string[];
|
|
563
|
+
};
|
|
564
|
+
}>, Schema.Struct<{
|
|
565
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
566
|
+
readonly message: Schema.String;
|
|
567
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
568
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
569
|
+
readonly _tag: "ResourceNotFoundError";
|
|
570
|
+
readonly resource: string;
|
|
571
|
+
readonly id: string;
|
|
572
|
+
readonly message: string;
|
|
573
|
+
}, readonly [Schema.Struct<{
|
|
574
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
575
|
+
readonly resource: Schema.String;
|
|
576
|
+
readonly id: Schema.String;
|
|
577
|
+
readonly message: Schema.String;
|
|
578
|
+
}>], {
|
|
579
|
+
readonly _tag: "ResourceNotFoundError";
|
|
580
|
+
readonly resource: string;
|
|
581
|
+
readonly id: string;
|
|
582
|
+
readonly message: string;
|
|
583
|
+
}>, Schema.Struct<{
|
|
584
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
585
|
+
readonly resource: Schema.String;
|
|
586
|
+
readonly id: Schema.String;
|
|
587
|
+
readonly message: Schema.String;
|
|
588
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
589
|
+
readonly _tag: "UnauthorizedError";
|
|
590
|
+
readonly message: string;
|
|
591
|
+
}, readonly [Schema.Struct<{
|
|
592
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
593
|
+
readonly message: Schema.String;
|
|
594
|
+
}>], {
|
|
595
|
+
readonly _tag: "UnauthorizedError";
|
|
596
|
+
readonly message: string;
|
|
597
|
+
}>, Schema.Struct<{
|
|
598
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
599
|
+
readonly message: Schema.String;
|
|
600
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
601
|
+
readonly _tag: "ValidationError";
|
|
602
|
+
readonly message: string;
|
|
603
|
+
readonly fields?: {
|
|
604
|
+
readonly [x: string]: readonly string[];
|
|
605
|
+
} | null;
|
|
606
|
+
}, readonly [Schema.Struct<{
|
|
607
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
608
|
+
readonly message: Schema.String;
|
|
609
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
610
|
+
}>], {
|
|
611
|
+
readonly _tag: "ValidationError";
|
|
612
|
+
readonly message: string;
|
|
613
|
+
readonly fields?: {
|
|
614
|
+
readonly [x: string]: readonly string[];
|
|
615
|
+
} | null;
|
|
616
|
+
}>, Schema.Struct<{
|
|
617
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
618
|
+
readonly message: Schema.String;
|
|
619
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
620
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<WhatsAppChannelError, {
|
|
621
|
+
readonly _tag: "WhatsAppChannelError";
|
|
622
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport" | "unsupported";
|
|
623
|
+
readonly message: string;
|
|
624
|
+
readonly provider: string;
|
|
625
|
+
readonly providerCode?: string | null;
|
|
626
|
+
readonly statusCode?: number | null;
|
|
627
|
+
}, readonly [Schema.Struct<{
|
|
628
|
+
readonly _tag: Schema.tag<"WhatsAppChannelError">;
|
|
629
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">, Schema.Literal<"unsupported">]>;
|
|
630
|
+
readonly message: Schema.String;
|
|
631
|
+
readonly provider: Schema.String;
|
|
632
|
+
readonly providerCode: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
633
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
634
|
+
}>], {
|
|
635
|
+
readonly _tag: "WhatsAppChannelError";
|
|
636
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport" | "unsupported";
|
|
637
|
+
readonly message: string;
|
|
638
|
+
readonly provider: string;
|
|
639
|
+
readonly providerCode?: string | null;
|
|
640
|
+
readonly statusCode?: number | null;
|
|
641
|
+
}>, Schema.Struct<{
|
|
642
|
+
readonly _tag: Schema.tag<"WhatsAppChannelError">;
|
|
643
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">, Schema.Literal<"unsupported">]>;
|
|
644
|
+
readonly message: Schema.String;
|
|
645
|
+
readonly provider: Schema.String;
|
|
646
|
+
readonly providerCode: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
647
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
648
|
+
}>, never, never>>, ApiKeySecurityMiddleware, never>, false>;
|
|
649
|
+
export declare class TemplateRegistrationsGroup extends TemplateRegistrationsGroup_base {
|
|
650
|
+
}
|
|
651
|
+
export {};
|