samva 0.2.0 → 0.3.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 +1 -1
- package/README.md +10 -3
- package/dist/client/sdk.gen.d.ts +232 -23
- package/dist/client/types.gen.d.ts +693 -352
- package/dist/{client-BqkU-sFv.js → client-BOghX8fr.js} +1530 -1532
- package/dist/effect/api-keys.d.ts +14 -14
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +134 -853
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +123 -145
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +128 -260
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +11 -11
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +64 -108
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +7346 -8748
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/operation.d.ts +15 -113
- package/dist/effect/media.d.ts +80 -0
- package/dist/effect/media.js +19 -0
- package/dist/effect/messages.d.ts +41 -261
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +7 -7
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +23 -41
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +43 -454
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +175 -649
- package/dist/effect/templates.js +2 -2
- package/dist/effect/webhooks.d.ts +20 -21
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-LkWl4HUF.js → normalize-BKFjbR9t.js} +5 -13
- package/dist/normalize.d.ts +3 -33
- package/dist/{operation-Ccqh_yxb.js → operation-C2Q4cFJL.js} +21 -3
- package/dist/promises/index.d.ts +4 -14
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Dgv8UmCC.js → promises-oiy7mOyu.js} +386 -29
- package/dist/service-map.d.ts +26 -0
- package/package.json +17 -12
|
@@ -27,45 +27,93 @@ const AbsoluteInstant = Schema.String.check(Schema.isPattern(ABSOLUTE_ISO_INSTAN
|
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/effect/generated.ts
|
|
29
29
|
const JsonValue = Schema$1.suspend(() => __recursive_JsonValue);
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}))
|
|
30
|
+
const ApiKeyPermissions = Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Array(Schema$1.String)), Schema$1.Null]).annotate({ identifier: "ApiKeyPermissions" });
|
|
31
|
+
const PaginationMeta = Schema$1.Struct({
|
|
32
|
+
page: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
33
|
+
limit: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
34
|
+
total: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
35
|
+
totalPages: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
36
|
+
}).annotate({ identifier: "PaginationMeta" });
|
|
37
|
+
var UnauthorizedError = class extends Schema$1.TaggedError()("UnauthorizedError", Schema$1.Struct({
|
|
38
|
+
operation: Schema$1.String,
|
|
39
|
+
message: Schema$1.String
|
|
40
|
+
})) {};
|
|
41
|
+
var ForbiddenError = class extends Schema$1.TaggedError()("ForbiddenError", Schema$1.Struct({
|
|
42
|
+
operation: Schema$1.String,
|
|
43
|
+
message: Schema$1.String
|
|
44
|
+
})) {};
|
|
45
|
+
var InternalError = class extends Schema$1.TaggedError()("InternalError", Schema$1.Struct({
|
|
46
|
+
operation: Schema$1.String,
|
|
47
|
+
message: Schema$1.String
|
|
48
|
+
})) {};
|
|
49
|
+
var PaymentRequiredError = class extends Schema$1.TaggedError()("PaymentRequiredError", Schema$1.Struct({
|
|
50
|
+
operation: Schema$1.String,
|
|
51
|
+
resource: Schema$1.String,
|
|
52
|
+
currentUsage: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
53
|
+
limit: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
54
|
+
})) {};
|
|
55
|
+
var ResourceNotFoundError = class extends Schema$1.TaggedError()("ResourceNotFoundError", Schema$1.Struct({
|
|
56
|
+
operation: Schema$1.String,
|
|
57
|
+
resource: Schema$1.String,
|
|
58
|
+
id: Schema$1.String
|
|
59
|
+
})) {};
|
|
60
|
+
var ValidationError = class extends Schema$1.TaggedError()("ValidationError", Schema$1.Struct({
|
|
61
|
+
operation: Schema$1.String,
|
|
62
|
+
message: Schema$1.String,
|
|
63
|
+
fields: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Array(Schema$1.String)), Schema$1.Null]))
|
|
64
|
+
})) {};
|
|
65
|
+
var BillingProviderError = class extends Schema$1.TaggedError()("BillingProviderError", Schema$1.Struct({
|
|
66
|
+
operation: Schema$1.String,
|
|
67
|
+
message: Schema$1.String
|
|
68
|
+
})) {};
|
|
34
69
|
const ApiKeyId = Schema$1.String.pipe(Schema$1.brand("ApiKeyId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^key_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
35
70
|
expected: "a string matching the RegExp ^key_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
36
71
|
identifier: "ApiKeyId"
|
|
37
72
|
}));
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"email"
|
|
43
|
-
])).annotate({ identifier: "Arrays_" });
|
|
44
|
-
const Arrays_1 = Schema$1.Array(Schema$1.String).annotate({ identifier: "Arrays_1" });
|
|
45
|
-
const Arrays_2 = Schema$1.Array(Schema$1.String).annotate({ identifier: "Arrays_2" });
|
|
46
|
-
const Arrays_4 = Schema$1.Array(Schema$1.String).annotate({ identifier: "Arrays_4" });
|
|
47
|
-
const Arrays_5 = Schema$1.Array(Schema$1.String).annotate({ identifier: "Arrays_5" });
|
|
48
|
-
const AttachmentId = Schema$1.String.pipe(Schema$1.brand("AttachmentId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^att_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
49
|
-
expected: "a string matching the RegExp ^att_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
50
|
-
identifier: "AttachmentId"
|
|
73
|
+
const SuccessResponse = Schema$1.Struct({ success: Schema$1.Boolean }).annotate({ identifier: "SuccessResponse" });
|
|
74
|
+
const CampaignId = Schema$1.String.pipe(Schema$1.brand("CampaignId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^camp_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
75
|
+
expected: "a string matching the RegExp ^camp_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
76
|
+
identifier: "CampaignId"
|
|
51
77
|
}));
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
})) {};
|
|
56
|
-
const BlockedEmailId = Schema$1.String.pipe(Schema$1.brand("BlockedEmailId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^blk_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
57
|
-
expected: "a string matching the RegExp ^blk_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
58
|
-
identifier: "BlockedEmailId"
|
|
78
|
+
const MediaId = Schema$1.String.pipe(Schema$1.brand("MediaId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^media_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
79
|
+
expected: "a string matching the RegExp ^media_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
80
|
+
identifier: "MediaId"
|
|
59
81
|
}));
|
|
60
|
-
const
|
|
61
|
-
expected: "a string matching the RegExp ^
|
|
62
|
-
identifier: "
|
|
82
|
+
const TemplateId = Schema$1.String.pipe(Schema$1.brand("TemplateId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
83
|
+
expected: "a string matching the RegExp ^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
84
|
+
identifier: "TemplateId"
|
|
85
|
+
}));
|
|
86
|
+
const JsonObject = Schema$1.Record(Schema$1.String, JsonValue).annotate({ identifier: "JsonObject" });
|
|
87
|
+
const MessageId = Schema$1.String.pipe(Schema$1.brand("MessageId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^msg_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
88
|
+
expected: "a string matching the RegExp ^msg_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
89
|
+
identifier: "MessageId"
|
|
90
|
+
}));
|
|
91
|
+
const ReplyToAddresses = Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null]).annotate({ identifier: "ReplyToAddresses" });
|
|
92
|
+
const UnsubscribeId = Schema$1.String.pipe(Schema$1.brand("UnsubscribeId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^unsub_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
93
|
+
expected: "a string matching the RegExp ^unsub_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
94
|
+
identifier: "UnsubscribeId"
|
|
95
|
+
}));
|
|
96
|
+
const EmailTrackingOverrideV1 = Schema$1.Struct({
|
|
97
|
+
opens: Schema$1.optionalKey(Schema$1.Boolean.annotate({ description: "Override open tracking for this send. Omit to inherit the organization default. A recipient tracking opt-out always disables tracking." })),
|
|
98
|
+
clicks: Schema$1.optionalKey(Schema$1.Boolean.annotate({ description: "Override click tracking for this send. Omit to inherit the organization default. A recipient tracking opt-out always disables tracking." }))
|
|
99
|
+
}).annotate({
|
|
100
|
+
description: "Requested per-send engagement tracking policy. Recipient opt-out takes precedence, then explicit fields, organization defaults, and product defaults.",
|
|
101
|
+
identifier: "EmailTrackingOverrideV1"
|
|
102
|
+
});
|
|
103
|
+
const EmailFooterOverride = Schema$1.Struct({ enabled: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])) }).annotate({ identifier: "EmailFooterOverride" });
|
|
104
|
+
const ConversationId = Schema$1.String.pipe(Schema$1.brand("ConversationId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^conv_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
105
|
+
expected: "a string matching the RegExp ^conv_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
106
|
+
identifier: "ConversationId"
|
|
107
|
+
}));
|
|
108
|
+
const CampaignContentMetadata = Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]).annotate({ identifier: "CampaignContentMetadata" });
|
|
109
|
+
const ContactId = Schema$1.String.pipe(Schema$1.brand("ContactId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^contact_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
110
|
+
expected: "a string matching the RegExp ^contact_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
111
|
+
identifier: "ContactId"
|
|
112
|
+
}));
|
|
113
|
+
const ContactGroupId = Schema$1.String.pipe(Schema$1.brand("ContactGroupId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^cgrp_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
114
|
+
expected: "a string matching the RegExp ^cgrp_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
115
|
+
identifier: "ContactGroupId"
|
|
63
116
|
}));
|
|
64
|
-
const BulkUpdateResult = Schema$1.Struct({
|
|
65
|
-
updated: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
66
|
-
failed: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
67
|
-
}).annotate({ identifier: "BulkUpdateResult" });
|
|
68
|
-
const Objects_6 = Schema$1.Record(Schema$1.String, JsonValue);
|
|
69
117
|
const CampaignDefinitionSummary = Schema$1.Struct({
|
|
70
118
|
state: Schema$1.Literals([
|
|
71
119
|
"editable",
|
|
@@ -74,57 +122,44 @@ const CampaignDefinitionSummary = Schema$1.Struct({
|
|
|
74
122
|
]),
|
|
75
123
|
frozenAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
76
124
|
}).annotate({ identifier: "CampaignDefinitionSummary" });
|
|
77
|
-
const CampaignId = Schema$1.String.pipe(Schema$1.brand("CampaignId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^camp_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
78
|
-
expected: "a string matching the RegExp ^camp_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
79
|
-
identifier: "CampaignId"
|
|
80
|
-
}));
|
|
81
|
-
const CampaignRecipientId = Schema$1.String.pipe(Schema$1.brand("CampaignRecipientId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
82
|
-
expected: "a string matching the RegExp ^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
83
|
-
identifier: "CampaignRecipientId"
|
|
84
|
-
}));
|
|
85
125
|
const CampaignRunId = Schema$1.String.pipe(Schema$1.brand("CampaignRunId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^crun_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
86
126
|
expected: "a string matching the RegExp ^crun_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
87
127
|
identifier: "CampaignRunId"
|
|
88
128
|
}));
|
|
89
|
-
var
|
|
129
|
+
var FlagDisabledError = class extends Schema$1.TaggedError()("FlagDisabledError", Schema$1.Struct({
|
|
130
|
+
operation: Schema$1.String,
|
|
131
|
+
flag: Schema$1.String
|
|
132
|
+
})) {};
|
|
133
|
+
var ConflictError = class extends Schema$1.TaggedError()("ConflictError", Schema$1.Struct({
|
|
90
134
|
operation: Schema$1.String,
|
|
91
135
|
message: Schema$1.String,
|
|
92
136
|
resource: Schema$1.String,
|
|
93
137
|
id: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
94
138
|
})) {};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
})
|
|
99
|
-
const
|
|
100
|
-
expected: "a string matching the RegExp ^
|
|
101
|
-
identifier: "
|
|
139
|
+
var ExternalServiceError = class extends Schema$1.TaggedError()("ExternalServiceError", Schema$1.Struct({
|
|
140
|
+
operation: Schema$1.String,
|
|
141
|
+
message: Schema$1.String
|
|
142
|
+
})) {};
|
|
143
|
+
const CampaignRecipientId = Schema$1.String.pipe(Schema$1.brand("CampaignRecipientId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
144
|
+
expected: "a string matching the RegExp ^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
145
|
+
identifier: "CampaignRecipientId"
|
|
102
146
|
}));
|
|
103
|
-
const
|
|
104
|
-
expected: "a string matching the RegExp ^
|
|
105
|
-
identifier: "
|
|
147
|
+
const OrganizationId = Schema$1.String.pipe(Schema$1.brand("OrganizationId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^org_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
148
|
+
expected: "a string matching the RegExp ^org_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
149
|
+
identifier: "OrganizationId"
|
|
106
150
|
}));
|
|
107
151
|
const ContactIdentity = Schema$1.Struct({
|
|
108
|
-
channel: Schema$1.
|
|
109
|
-
"sms",
|
|
110
|
-
"whatsapp",
|
|
111
|
-
"email"
|
|
112
|
-
]),
|
|
152
|
+
channel: Schema$1.Literal("email"),
|
|
113
153
|
identifier: Schema$1.String,
|
|
114
154
|
verified: Schema$1.Boolean
|
|
115
155
|
}).annotate({ identifier: "ContactIdentity" });
|
|
156
|
+
const UnknownRecord = Schema$1.Record(Schema$1.String, JsonValue).annotate({ identifier: "UnknownRecord" });
|
|
116
157
|
const ContactPreferences = Schema$1.Struct({
|
|
117
|
-
preferredChannels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.
|
|
118
|
-
"sms",
|
|
119
|
-
"whatsapp",
|
|
120
|
-
"email"
|
|
121
|
-
])), Schema$1.Null])),
|
|
158
|
+
preferredChannels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")), Schema$1.Null])),
|
|
122
159
|
language: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
123
160
|
timezone: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
124
161
|
notifications: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
125
162
|
email: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
126
|
-
sms: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
127
|
-
whatsapp: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
128
163
|
quiet_hours: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
129
164
|
start: Schema$1.String,
|
|
130
165
|
end: Schema$1.String
|
|
@@ -136,9 +171,17 @@ const ContactPreferences = Schema$1.Struct({
|
|
|
136
171
|
maxMessageLength: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
137
172
|
}), Schema$1.Null]))
|
|
138
173
|
}).annotate({ identifier: "ContactPreferences" });
|
|
139
|
-
const
|
|
140
|
-
expected: "a
|
|
141
|
-
|
|
174
|
+
const ContactActivitySummary = Schema$1.Struct({
|
|
175
|
+
totalInteractions: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
176
|
+
lastActiveAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
177
|
+
}).annotate({ identifier: "ContactActivitySummary" });
|
|
178
|
+
const BulkUpdateResult = Schema$1.Struct({
|
|
179
|
+
updated: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
180
|
+
failed: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
181
|
+
}).annotate({ identifier: "BulkUpdateResult" });
|
|
182
|
+
const ActorId = Schema$1.String.pipe(Schema$1.brand("ActorId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^actor_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
183
|
+
expected: "a string matching the RegExp ^actor_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
184
|
+
identifier: "ActorId"
|
|
142
185
|
}));
|
|
143
186
|
const ConversationMetrics = Schema$1.Struct({
|
|
144
187
|
messageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
@@ -148,55 +191,42 @@ const ConversationMetrics = Schema$1.Struct({
|
|
|
148
191
|
channelSwitches: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
149
192
|
channelDistribution: Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })))
|
|
150
193
|
}).annotate({ identifier: "ConversationMetrics" });
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
url: Schema$1.String,
|
|
154
|
-
eventTypes: Schema$1.Array(Schema$1.Literals([
|
|
155
|
-
"message.sent",
|
|
156
|
-
"message.delivered",
|
|
157
|
-
"message.read",
|
|
158
|
-
"message.failed",
|
|
159
|
-
"message.bounced",
|
|
160
|
-
"message.complained",
|
|
161
|
-
"message.received",
|
|
162
|
-
"contact.created",
|
|
163
|
-
"contact.updated",
|
|
164
|
-
"contact.deleted",
|
|
165
|
-
"conversation.started",
|
|
166
|
-
"conversation.ended",
|
|
167
|
-
"conversation.created",
|
|
168
|
-
"conversation.updated",
|
|
169
|
-
"conversation.archived",
|
|
170
|
-
"template.created",
|
|
171
|
-
"template.updated",
|
|
172
|
-
"template.deleted",
|
|
173
|
-
"template.approved",
|
|
174
|
-
"template.rejected",
|
|
175
|
-
"webhook.created",
|
|
176
|
-
"webhook.updated",
|
|
177
|
-
"webhook.deleted",
|
|
178
|
-
"webhook.test",
|
|
179
|
-
"domain.updated"
|
|
180
|
-
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
181
|
-
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Literals([
|
|
182
|
-
"sms",
|
|
183
|
-
"whatsapp",
|
|
184
|
-
"email"
|
|
185
|
-
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
186
|
-
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])),
|
|
187
|
-
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["active", "disabled"]), Schema$1.Null]))
|
|
188
|
-
}).annotate({ identifier: "CreateWebhookPayload" });
|
|
189
|
-
const CustomTrackingDnsRecord = Schema$1.Struct({
|
|
194
|
+
const MessageContact = Schema$1.Struct({
|
|
195
|
+
id: Schema$1.String,
|
|
190
196
|
name: Schema$1.String,
|
|
197
|
+
displayName: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
191
198
|
type: Schema$1.String,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
identities: Schema$1.Array(Schema$1.Struct({
|
|
200
|
+
channel: Schema$1.Literal("email"),
|
|
201
|
+
identifier: Schema$1.String,
|
|
202
|
+
verified: Schema$1.Boolean
|
|
203
|
+
}))
|
|
204
|
+
}).annotate({ identifier: "MessageContact" });
|
|
205
|
+
const ThemeColors = Schema$1.Record(Schema$1.String, Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^#[0-9a-f]{6}$")).annotate({ expected: "a string matching the RegExp ^#[0-9a-f]{6}$" }))).annotate({ identifier: "ThemeColors" });
|
|
206
|
+
const BlockedEmailId = Schema$1.String.pipe(Schema$1.brand("BlockedEmailId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^blk_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
207
|
+
expected: "a string matching the RegExp ^blk_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
208
|
+
identifier: "BlockedEmailId"
|
|
209
|
+
}));
|
|
210
|
+
const SuccessResult = Schema$1.Struct({
|
|
211
|
+
success: Schema$1.Boolean,
|
|
212
|
+
message: Schema$1.String
|
|
213
|
+
}).annotate({ identifier: "SuccessResult" });
|
|
214
|
+
const BlockedEmailLogId = Schema$1.String.pipe(Schema$1.brand("BlockedEmailLogId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^blklog_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
215
|
+
expected: "a string matching the RegExp ^blklog_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
216
|
+
identifier: "BlockedEmailLogId"
|
|
217
|
+
}));
|
|
218
|
+
const EmailDomainId = Schema$1.String.pipe(Schema$1.brand("EmailDomainId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^dom_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
219
|
+
expected: "a string matching the RegExp ^dom_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
220
|
+
identifier: "EmailDomainId"
|
|
221
|
+
}));
|
|
222
|
+
const WebhookEndpointId = Schema$1.String.pipe(Schema$1.brand("WebhookEndpointId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^wep_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
223
|
+
expected: "a string matching the RegExp ^wep_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
224
|
+
identifier: "WebhookEndpointId"
|
|
225
|
+
}));
|
|
226
|
+
const EmailSenderId = Schema$1.String.pipe(Schema$1.brand("EmailSenderId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^sender_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
227
|
+
expected: "a string matching the RegExp ^sender_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
228
|
+
identifier: "EmailSenderId"
|
|
229
|
+
}));
|
|
200
230
|
const DeliverabilityFacts = Schema$1.Struct({
|
|
201
231
|
bounceRate: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })),
|
|
202
232
|
complaintRate: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })),
|
|
@@ -207,12 +237,22 @@ const DeliverabilityFacts = Schema$1.Struct({
|
|
|
207
237
|
"unknown"
|
|
208
238
|
])
|
|
209
239
|
}).annotate({ identifier: "DeliverabilityFacts" });
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
240
|
+
var EmailChannelError = class extends Schema$1.TaggedError()("EmailChannelError", Schema$1.Struct({
|
|
241
|
+
operation: Schema$1.String,
|
|
242
|
+
reason: Schema$1.Literals([
|
|
243
|
+
"transport",
|
|
244
|
+
"rejected",
|
|
245
|
+
"rate_limited",
|
|
246
|
+
"auth"
|
|
247
|
+
]),
|
|
248
|
+
message: Schema$1.String,
|
|
249
|
+
statusCode: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })), Schema$1.Null]))
|
|
250
|
+
})) {};
|
|
251
|
+
const CustomTrackingDnsRecord = Schema$1.Struct({
|
|
252
|
+
name: Schema$1.String,
|
|
253
|
+
type: Schema$1.String,
|
|
254
|
+
value: Schema$1.String
|
|
255
|
+
}).annotate({ identifier: "CustomTrackingDnsRecord" });
|
|
216
256
|
const DomainConnectEligibility = Schema$1.Union([Schema$1.Struct({
|
|
217
257
|
eligible: Schema$1.Literal(false),
|
|
218
258
|
reason: Schema$1.Literals([
|
|
@@ -226,198 +266,107 @@ const DomainConnectEligibility = Schema$1.Union([Schema$1.Struct({
|
|
|
226
266
|
eligible: Schema$1.Literal(true),
|
|
227
267
|
providerName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
228
268
|
})]).annotate({ identifier: "DomainConnectEligibility" });
|
|
229
|
-
const
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
269
|
+
const DomainConnectApplyUrlResult = Schema$1.Struct({ url: Schema$1.String }).annotate({ identifier: "DomainConnectApplyUrlResult" });
|
|
270
|
+
const CustomTrackingDomainConnectCompleteResult = Schema$1.Struct({ status: Schema$1.Literals([
|
|
271
|
+
"applied",
|
|
272
|
+
"cancelled",
|
|
273
|
+
"stale",
|
|
274
|
+
"invalid"
|
|
275
|
+
]) }).annotate({ identifier: "CustomTrackingDomainConnectCompleteResult" });
|
|
276
|
+
const DomainConnectCompleteResult = Schema$1.Struct({ status: Schema$1.Literals([
|
|
277
|
+
"applied",
|
|
278
|
+
"cancelled",
|
|
279
|
+
"invalid"
|
|
280
|
+
]) }).annotate({ identifier: "DomainConnectCompleteResult" });
|
|
281
|
+
const OperationId = Schema$1.String.pipe(Schema$1.brand("OperationId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^op_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
282
|
+
expected: "a string matching the RegExp ^op_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
283
|
+
identifier: "OperationId"
|
|
239
284
|
}));
|
|
240
|
-
var
|
|
285
|
+
var RateLimitedError = class extends Schema$1.TaggedError()("RateLimitedError", Schema$1.Struct({
|
|
241
286
|
operation: Schema$1.String,
|
|
242
|
-
|
|
243
|
-
"transport",
|
|
244
|
-
"rejected",
|
|
245
|
-
"rate_limited",
|
|
246
|
-
"auth"
|
|
247
|
-
]),
|
|
248
|
-
message: Schema$1.String,
|
|
249
|
-
statusCode: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })), Schema$1.Null]))
|
|
287
|
+
retryAfterSeconds: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
250
288
|
})) {};
|
|
251
|
-
const EmailDomainId = Schema$1.String.pipe(Schema$1.brand("EmailDomainId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^dom_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
252
|
-
expected: "a string matching the RegExp ^dom_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
253
|
-
identifier: "EmailDomainId"
|
|
254
|
-
}));
|
|
255
|
-
const EmailFooterOverride = Schema$1.Struct({ enabled: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])) }).annotate({ identifier: "EmailFooterOverride" });
|
|
256
289
|
const EmailForwardingRuleId = Schema$1.String.pipe(Schema$1.brand("EmailForwardingRuleId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^fwd_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
257
290
|
expected: "a string matching the RegExp ^fwd_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
258
291
|
identifier: "EmailForwardingRuleId"
|
|
259
292
|
}));
|
|
260
|
-
const Objects_7 = Schema$1.Struct({
|
|
261
|
-
email: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
262
|
-
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
263
|
-
});
|
|
264
|
-
const EmailSenderId = Schema$1.String.pipe(Schema$1.brand("EmailSenderId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^sender_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
265
|
-
expected: "a string matching the RegExp ^sender_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
266
|
-
identifier: "EmailSenderId"
|
|
267
|
-
}));
|
|
268
|
-
const EmailTrackingDefaults = Schema$1.Struct({
|
|
269
|
-
opens: Schema$1.Boolean,
|
|
270
|
-
clicks: Schema$1.Boolean
|
|
271
|
-
}).annotate({ identifier: "EmailTrackingDefaults" });
|
|
272
|
-
const EmailTrackingOverrideV1 = Schema$1.Struct({
|
|
273
|
-
opens: Schema$1.optionalKey(Schema$1.Boolean.annotate({ description: "Override open tracking for this send. Omit to inherit the organization default. A recipient tracking opt-out always disables tracking." })),
|
|
274
|
-
clicks: Schema$1.optionalKey(Schema$1.Boolean.annotate({ description: "Override click tracking for this send. Omit to inherit the organization default. A recipient tracking opt-out always disables tracking." }))
|
|
275
|
-
}).annotate({
|
|
276
|
-
description: "Requested per-send engagement tracking policy. Recipient opt-out takes precedence, then explicit fields, organization defaults, and product defaults.",
|
|
277
|
-
identifier: "EmailTrackingOverrideV1"
|
|
278
|
-
});
|
|
279
|
-
var ExternalServiceError = class extends Schema$1.TaggedErrorClass()("ExternalServiceError", Schema$1.Struct({
|
|
280
|
-
operation: Schema$1.String,
|
|
281
|
-
message: Schema$1.String
|
|
282
|
-
})) {};
|
|
283
|
-
var FlagDisabledError = class extends Schema$1.TaggedErrorClass()("FlagDisabledError", Schema$1.Struct({
|
|
284
|
-
operation: Schema$1.String,
|
|
285
|
-
flag: Schema$1.String
|
|
286
|
-
})) {};
|
|
287
|
-
var ForbiddenError = class extends Schema$1.TaggedErrorClass()("ForbiddenError", Schema$1.Struct({
|
|
288
|
-
operation: Schema$1.String,
|
|
289
|
-
message: Schema$1.String
|
|
290
|
-
})) {};
|
|
291
293
|
const ForwardingConditions = Schema$1.Struct({
|
|
292
294
|
subjectContains: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
293
295
|
fromContains: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
294
296
|
hasAttachments: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
295
297
|
}).annotate({ identifier: "ForwardingConditions" });
|
|
296
|
-
|
|
298
|
+
const SuppressionId = Schema$1.String.pipe(Schema$1.brand("SuppressionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^supp_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
299
|
+
expected: "a string matching the RegExp ^supp_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
300
|
+
identifier: "SuppressionId"
|
|
301
|
+
}));
|
|
302
|
+
const EmailTrackingDefaults = Schema$1.Struct({
|
|
303
|
+
opens: Schema$1.Boolean,
|
|
304
|
+
clicks: Schema$1.Boolean
|
|
305
|
+
}).annotate({ identifier: "EmailTrackingDefaults" });
|
|
306
|
+
const TrackingRecipientEmail = Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$")).annotate({
|
|
307
|
+
expected: "a string matching the RegExp ^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
|
|
308
|
+
identifier: "TrackingRecipientEmail"
|
|
309
|
+
}));
|
|
310
|
+
const MediaUploadInstruction = Schema$1.Struct({
|
|
311
|
+
url: Schema$1.String,
|
|
312
|
+
method: Schema$1.Literal("PUT"),
|
|
313
|
+
headers: Schema$1.Record(Schema$1.String, Schema$1.String),
|
|
314
|
+
expiresAt: Schema$1.String
|
|
315
|
+
}).annotate({ identifier: "MediaUploadInstruction" });
|
|
316
|
+
const MediaDownloadUrl = Schema$1.Struct({
|
|
317
|
+
url: Schema$1.String,
|
|
318
|
+
expiresAt: Schema$1.String
|
|
319
|
+
}).annotate({ identifier: "MediaDownloadUrl" });
|
|
320
|
+
const MessageMetadata = Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]).annotate({ identifier: "MessageMetadata" });
|
|
321
|
+
const EmailSender = Schema$1.Union([Schema$1.Struct({
|
|
322
|
+
email: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
323
|
+
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
324
|
+
}), Schema$1.Null]).annotate({ identifier: "EmailSender" });
|
|
325
|
+
var WebhookEnqueueError = class extends Schema$1.TaggedError()("WebhookEnqueueError", Schema$1.Struct({
|
|
297
326
|
operation: Schema$1.String,
|
|
298
|
-
|
|
327
|
+
reason: Schema$1.String,
|
|
328
|
+
details: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
299
329
|
})) {};
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
"sms",
|
|
309
|
-
"whatsapp",
|
|
310
|
-
"email"
|
|
311
|
-
]),
|
|
312
|
-
identifier: Schema$1.String,
|
|
313
|
-
verified: Schema$1.Boolean
|
|
314
|
-
}))
|
|
315
|
-
}).annotate({ identifier: "MessageContact" });
|
|
330
|
+
const EmailAddress = Schema$1.Struct({
|
|
331
|
+
email: Schema$1.String,
|
|
332
|
+
name: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
333
|
+
}).annotate({ identifier: "EmailAddress" });
|
|
334
|
+
const AttachmentId = Schema$1.String.pipe(Schema$1.brand("AttachmentId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^att_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
335
|
+
expected: "a string matching the RegExp ^att_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
336
|
+
identifier: "AttachmentId"
|
|
337
|
+
}));
|
|
316
338
|
const MessageEventId = Schema$1.String.pipe(Schema$1.brand("MessageEventId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^mevt_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
317
339
|
expected: "a string matching the RegExp ^mevt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
318
340
|
identifier: "MessageEventId"
|
|
319
341
|
}));
|
|
320
|
-
const
|
|
321
|
-
expected: "a string matching the RegExp ^
|
|
322
|
-
identifier: "
|
|
323
|
-
}));
|
|
324
|
-
const Objects_8 = Schema$1.Record(Schema$1.String, JsonValue);
|
|
325
|
-
Schema$1.Struct({
|
|
326
|
-
revision: Schema$1.String,
|
|
327
|
-
variables: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]))
|
|
328
|
-
}).annotate({ identifier: "Objects_2" });
|
|
329
|
-
const Objects_3 = Schema$1.Struct({
|
|
330
|
-
channel: Schema$1.Literals([
|
|
331
|
-
"email",
|
|
332
|
-
"sms",
|
|
333
|
-
"whatsapp"
|
|
334
|
-
]),
|
|
335
|
-
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
336
|
-
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
337
|
-
text: Schema$1.String,
|
|
338
|
-
missingVariables: Schema$1.Array(Schema$1.String)
|
|
339
|
-
}).annotate({ identifier: "Objects_3" });
|
|
340
|
-
const Objects_4 = Schema$1.Struct({ versionId: Schema$1.String }).annotate({ identifier: "Objects_4" });
|
|
341
|
-
const OperationId = Schema$1.String.pipe(Schema$1.brand("OperationId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^op_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
342
|
-
expected: "a string matching the RegExp ^op_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
343
|
-
identifier: "OperationId"
|
|
342
|
+
const ScheduledMessageId = Schema$1.String.pipe(Schema$1.brand("ScheduledMessageId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^sched_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
343
|
+
expected: "a string matching the RegExp ^sched_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
344
|
+
identifier: "ScheduledMessageId"
|
|
344
345
|
}));
|
|
345
346
|
const OperationResource = Schema$1.Struct({
|
|
346
347
|
type: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(80).annotate({ expected: "a value with a length of at most 80" })),
|
|
347
348
|
id: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
348
349
|
}).annotate({ identifier: "OperationResource" });
|
|
349
|
-
const
|
|
350
|
-
expected: "a string matching the RegExp ^
|
|
351
|
-
identifier: "
|
|
350
|
+
const UserId = Schema$1.String.pipe(Schema$1.brand("UserId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^user_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
351
|
+
expected: "a string matching the RegExp ^user_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
352
|
+
identifier: "UserId"
|
|
352
353
|
}));
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
total: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
357
|
-
totalPages: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
358
|
-
}).annotate({ identifier: "PaginationMeta" });
|
|
359
|
-
var PaymentRequiredError = class extends Schema$1.TaggedErrorClass()("PaymentRequiredError", Schema$1.Struct({
|
|
360
|
-
operation: Schema$1.String,
|
|
361
|
-
resource: Schema$1.String,
|
|
362
|
-
currentUsage: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
363
|
-
limit: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
364
|
-
})) {};
|
|
365
|
-
var RateLimitedError = class extends Schema$1.TaggedErrorClass()("RateLimitedError", Schema$1.Struct({
|
|
366
|
-
operation: Schema$1.String,
|
|
367
|
-
retryAfterSeconds: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
368
|
-
})) {};
|
|
369
|
-
const Union_8 = Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]);
|
|
370
|
-
var ResourceNotFoundError = class extends Schema$1.TaggedErrorClass()("ResourceNotFoundError", Schema$1.Struct({
|
|
371
|
-
operation: Schema$1.String,
|
|
372
|
-
resource: Schema$1.String,
|
|
373
|
-
id: Schema$1.String
|
|
374
|
-
})) {};
|
|
375
|
-
const ScheduledMessageId = Schema$1.String.pipe(Schema$1.brand("ScheduledMessageId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^sched_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
376
|
-
expected: "a string matching the RegExp ^sched_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
377
|
-
identifier: "ScheduledMessageId"
|
|
354
|
+
const MailboxExtensionId = Schema$1.String.pipe(Schema$1.brand("MailboxExtensionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^ext_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
355
|
+
expected: "a string matching the RegExp ^ext_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
356
|
+
identifier: "MailboxExtensionId"
|
|
378
357
|
}));
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
message: Schema$1.String
|
|
383
|
-
}).annotate({ identifier: "SuccessResult" });
|
|
384
|
-
const SuppressionId = Schema$1.String.pipe(Schema$1.brand("SuppressionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^supp_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
385
|
-
expected: "a string matching the RegExp ^supp_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
386
|
-
identifier: "SuppressionId"
|
|
358
|
+
const TemplateSourceVersionId = Schema$1.String.pipe(Schema$1.brand("TemplateSourceVersionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^src_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
359
|
+
expected: "a string matching the RegExp ^src_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
360
|
+
identifier: "TemplateSourceVersionId"
|
|
387
361
|
}));
|
|
388
362
|
const TemplateFamilyId = Schema$1.String.pipe(Schema$1.brand("TemplateFamilyId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tfam_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
389
363
|
expected: "a string matching the RegExp ^tfam_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
390
364
|
identifier: "TemplateFamilyId"
|
|
391
365
|
}));
|
|
392
|
-
Schema$1.Struct({ name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }).annotate({ identifier: "TemplateFamilyName" });
|
|
393
366
|
const TemplateFromDefault = Schema$1.Struct({
|
|
394
367
|
email: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
395
368
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
396
369
|
}).annotate({ identifier: "TemplateFromDefault" });
|
|
397
|
-
const TemplateId = Schema$1.String.pipe(Schema$1.brand("TemplateId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
398
|
-
expected: "a string matching the RegExp ^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
399
|
-
identifier: "TemplateId"
|
|
400
|
-
}));
|
|
401
|
-
const TemplatePerformance = Schema$1.Struct({
|
|
402
|
-
deliveryRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
403
|
-
openRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
404
|
-
clickRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
405
|
-
responseRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
406
|
-
conversionRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
407
|
-
averageSatisfaction: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema$1.isLessThanOrEqualTo(5).annotate({ expected: "a value less than or equal to 5" })), Schema$1.Null])),
|
|
408
|
-
totalSent: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
409
|
-
totalDelivered: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
410
|
-
totalOpened: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
411
|
-
totalClicked: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
412
|
-
totalResponses: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
413
|
-
totalConversions: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
414
|
-
lastUsedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
415
|
-
usageCount: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
416
|
-
}).annotate({ identifier: "TemplatePerformance" });
|
|
417
|
-
const TemplateSourceVersionId = Schema$1.String.pipe(Schema$1.brand("TemplateSourceVersionId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^src_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
418
|
-
expected: "a string matching the RegExp ^src_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
419
|
-
identifier: "TemplateSourceVersionId"
|
|
420
|
-
}));
|
|
421
370
|
const TemplateVariable = Schema$1.Struct({
|
|
422
371
|
name: Schema$1.String,
|
|
423
372
|
type: Schema$1.Literals([
|
|
@@ -447,21 +396,77 @@ const TemplateVariable = Schema$1.Struct({
|
|
|
447
396
|
]), Schema$1.Null]))
|
|
448
397
|
}), Schema$1.Null]))
|
|
449
398
|
}).annotate({ identifier: "TemplateVariable" });
|
|
450
|
-
const
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
expected: "a
|
|
454
|
-
|
|
399
|
+
const TemplatePerformance = Schema$1.Struct({
|
|
400
|
+
deliveryRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
401
|
+
openRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
402
|
+
clickRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
403
|
+
responseRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
404
|
+
conversionRate: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1).annotate({ expected: "a value less than or equal to 1" })), Schema$1.Null])),
|
|
405
|
+
averageSatisfaction: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema$1.isLessThanOrEqualTo(5).annotate({ expected: "a value less than or equal to 5" })), Schema$1.Null])),
|
|
406
|
+
totalSent: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
407
|
+
totalDelivered: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
408
|
+
totalOpened: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
409
|
+
totalClicked: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
410
|
+
totalResponses: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
411
|
+
totalConversions: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null])),
|
|
412
|
+
lastUsedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
413
|
+
usageCount: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]))
|
|
414
|
+
}).annotate({ identifier: "TemplatePerformance" });
|
|
415
|
+
const WebhookEventId = Schema$1.String.pipe(Schema$1.brand("WebhookEventId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^whevt_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
416
|
+
expected: "a string matching the RegExp ^whevt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
417
|
+
identifier: "WebhookEventId"
|
|
455
418
|
}));
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
})) {};
|
|
460
|
-
const UnknownRecord = Schema$1.Record(Schema$1.String, JsonValue).annotate({ identifier: "UnknownRecord" });
|
|
461
|
-
const UnsubscribeId = Schema$1.String.pipe(Schema$1.brand("UnsubscribeId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^unsub_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
462
|
-
expected: "a string matching the RegExp ^unsub_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
463
|
-
identifier: "UnsubscribeId"
|
|
419
|
+
const WebhookDeliveryId = Schema$1.String.pipe(Schema$1.brand("WebhookDeliveryId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^whdel_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
420
|
+
expected: "a string matching the RegExp ^whdel_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
421
|
+
identifier: "WebhookDeliveryId"
|
|
464
422
|
}));
|
|
423
|
+
const WebhookAttemptId = Schema$1.String.pipe(Schema$1.brand("WebhookAttemptId")).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^whatt_[0-9a-hjkmnp-tv-z]{16,24}$")).annotate({
|
|
424
|
+
expected: "a string matching the RegExp ^whatt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
425
|
+
identifier: "WebhookAttemptId"
|
|
426
|
+
}));
|
|
427
|
+
Schema$1.Struct({
|
|
428
|
+
filename: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
429
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(127).annotate({ expected: "a value with a length of at most 127" })),
|
|
430
|
+
sizeBytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
431
|
+
purpose: Schema$1.Literals(["attachment", "avatar"]),
|
|
432
|
+
checksumSha256: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
433
|
+
}).annotate({ identifier: "CreateMediaPayload" });
|
|
434
|
+
const CreateWebhookPayload = Schema$1.Struct({
|
|
435
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
436
|
+
url: Schema$1.String,
|
|
437
|
+
eventTypes: Schema$1.Array(Schema$1.Literals([
|
|
438
|
+
"message.sent",
|
|
439
|
+
"message.delivered",
|
|
440
|
+
"message.read",
|
|
441
|
+
"message.failed",
|
|
442
|
+
"message.bounced",
|
|
443
|
+
"message.complained",
|
|
444
|
+
"message.received",
|
|
445
|
+
"contact.created",
|
|
446
|
+
"contact.updated",
|
|
447
|
+
"contact.deleted",
|
|
448
|
+
"conversation.started",
|
|
449
|
+
"conversation.ended",
|
|
450
|
+
"conversation.created",
|
|
451
|
+
"conversation.updated",
|
|
452
|
+
"conversation.archived",
|
|
453
|
+
"template.created",
|
|
454
|
+
"template.updated",
|
|
455
|
+
"template.deleted",
|
|
456
|
+
"template.approved",
|
|
457
|
+
"template.rejected",
|
|
458
|
+
"webhook.created",
|
|
459
|
+
"webhook.updated",
|
|
460
|
+
"webhook.deleted",
|
|
461
|
+
"webhook.test",
|
|
462
|
+
"domain.updated"
|
|
463
|
+
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
464
|
+
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
465
|
+
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])),
|
|
466
|
+
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["active", "disabled"]), Schema$1.Null]))
|
|
467
|
+
}).annotate({ identifier: "CreateWebhookPayload" });
|
|
468
|
+
Schema$1.Struct({ name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }).annotate({ identifier: "TemplateFamilyName" });
|
|
469
|
+
const TestWebhookPayload = Schema$1.Struct({ data: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null])) }).annotate({ identifier: "TestWebhookPayload" });
|
|
465
470
|
const UpdateWebhookPayload = Schema$1.Struct({
|
|
466
471
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })), Schema$1.Null])),
|
|
467
472
|
url: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
@@ -492,95 +497,79 @@ const UpdateWebhookPayload = Schema$1.Struct({
|
|
|
492
497
|
"webhook.test",
|
|
493
498
|
"domain.updated"
|
|
494
499
|
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
495
|
-
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.
|
|
496
|
-
"sms",
|
|
497
|
-
"whatsapp",
|
|
498
|
-
"email"
|
|
499
|
-
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null]), Schema$1.Null])),
|
|
500
|
+
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null]), Schema$1.Null])),
|
|
500
501
|
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])),
|
|
501
502
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["active", "disabled"]), Schema$1.Null]))
|
|
502
503
|
}).annotate({ identifier: "UpdateWebhookPayload" });
|
|
503
|
-
const
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
}));
|
|
516
|
-
const
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
})
|
|
529
|
-
const
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
addedBy: Schema$1.optionalKey(Schema$1.Union([ActorId, Schema$1.Null])),
|
|
553
|
-
removedBy: Schema$1.optionalKey(Schema$1.Union([ActorId, Schema$1.Null])),
|
|
554
|
-
reason: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
555
|
-
})),
|
|
556
|
-
primaryActorIds: Schema$1.Array(ActorId)
|
|
557
|
-
}).annotate({ identifier: "ActorTracking" });
|
|
558
|
-
const ApiKeyPermissions = Schema$1.Union([Objects_5, Schema$1.Null]).annotate({ identifier: "ApiKeyPermissions" });
|
|
559
|
-
const CampaignContentMetadata = Schema$1.Union([Objects_6, Schema$1.Null]).annotate({ identifier: "CampaignContentMetadata" });
|
|
560
|
-
const CampaignLatestRun = Schema$1.Struct({
|
|
561
|
-
id: CampaignRunId,
|
|
504
|
+
const ApiKey = Schema$1.Struct({
|
|
505
|
+
id: Schema$1.String,
|
|
506
|
+
name: Schema$1.String,
|
|
507
|
+
key: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
508
|
+
start: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
509
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
510
|
+
createdAt: Schema$1.String,
|
|
511
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
512
|
+
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
513
|
+
isActive: Schema$1.Boolean,
|
|
514
|
+
permissions: Schema$1.optionalKey(ApiKeyPermissions),
|
|
515
|
+
roleName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
516
|
+
}).annotate({ identifier: "ApiKey" });
|
|
517
|
+
const ApiKeyWithSecret = Schema$1.Struct({
|
|
518
|
+
id: Schema$1.String,
|
|
519
|
+
name: Schema$1.String,
|
|
520
|
+
key: SensitiveString,
|
|
521
|
+
start: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
522
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
523
|
+
createdAt: Schema$1.String,
|
|
524
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
525
|
+
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
526
|
+
isActive: Schema$1.Boolean,
|
|
527
|
+
permissions: Schema$1.optionalKey(ApiKeyPermissions),
|
|
528
|
+
roleName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
529
|
+
}).annotate({ identifier: "ApiKeyWithSecret" });
|
|
530
|
+
const EmailAttachment = Schema$1.Struct({
|
|
531
|
+
filename: Schema$1.String,
|
|
532
|
+
content: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$")).annotate({ expected: "a string matching the RegExp ^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$" })), Schema$1.Null])),
|
|
533
|
+
mediaId: Schema$1.optionalKey(Schema$1.Union([MediaId, Schema$1.Null])),
|
|
534
|
+
contentType: Schema$1.String,
|
|
535
|
+
size: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
536
|
+
}).annotate({ identifier: "EmailAttachment" });
|
|
537
|
+
const TemplateSummary = Schema$1.Struct({
|
|
538
|
+
id: TemplateId,
|
|
539
|
+
name: Schema$1.String,
|
|
540
|
+
slug: Schema$1.String,
|
|
541
|
+
channel: Schema$1.Literal("email"),
|
|
542
|
+
origin: Schema$1.Literals(["dashboard", "tsx"]),
|
|
543
|
+
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
544
|
+
category: Schema$1.Union([Schema$1.Literals([
|
|
545
|
+
"transactional",
|
|
546
|
+
"marketing",
|
|
547
|
+
"support",
|
|
548
|
+
"notification",
|
|
549
|
+
"verification",
|
|
550
|
+
"reminder",
|
|
551
|
+
"alert"
|
|
552
|
+
]), Schema$1.Null]),
|
|
562
553
|
status: Schema$1.Literals([
|
|
563
|
-
"
|
|
564
|
-
"
|
|
565
|
-
"
|
|
566
|
-
"
|
|
567
|
-
"
|
|
568
|
-
"
|
|
569
|
-
"failed"
|
|
554
|
+
"draft",
|
|
555
|
+
"pending",
|
|
556
|
+
"approved",
|
|
557
|
+
"published",
|
|
558
|
+
"rejected",
|
|
559
|
+
"archived"
|
|
570
560
|
]),
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
const
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
}).annotate({ identifier: "CampaignAudience" });
|
|
561
|
+
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
562
|
+
usageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
563
|
+
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
564
|
+
createdAt: Schema$1.String,
|
|
565
|
+
updatedAt: Schema$1.String
|
|
566
|
+
}).annotate({ identifier: "TemplateSummary" });
|
|
567
|
+
const TemplateData = Schema$1.Union([JsonObject, Schema$1.Null]).annotate({ identifier: "TemplateData" });
|
|
568
|
+
const CampaignPolicy = Schema$1.Struct({
|
|
569
|
+
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([UnsubscribeId, Schema$1.Null])),
|
|
570
|
+
pageSize: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema$1.isLessThanOrEqualTo(1e3).annotate({ expected: "a value less than or equal to 1000" })), Schema$1.Null]))
|
|
571
|
+
}).annotate({ identifier: "CampaignPolicy" });
|
|
572
|
+
const CampaignConversationRef = Schema$1.Union([Schema$1.Union([ConversationId, Schema$1.Null]), Schema$1.Null]).annotate({ identifier: "CampaignConversationRef" });
|
|
584
573
|
const ContactAccessConfig = Schema$1.Struct({
|
|
585
574
|
paymentRequired: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
586
575
|
amount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
@@ -605,151 +594,187 @@ const ContactAccessConfig = Schema$1.Struct({
|
|
|
605
594
|
outOfOfficeMessage: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
606
595
|
}), Schema$1.Null]))
|
|
607
596
|
}).annotate({ identifier: "ContactAccessConfig" });
|
|
608
|
-
Schema$1.Struct({ contactIds: Schema$1.TupleWithRest(Schema$1.Tuple([ContactId]), [ContactId]) }).annotate({ identifier: "ConversationContacts" });
|
|
609
597
|
const EmailRecipient = Schema$1.Union([Schema$1.Struct({ contactId: ContactId }), Schema$1.Struct({
|
|
610
598
|
email: Schema$1.String,
|
|
611
599
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
612
600
|
displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null]))
|
|
613
601
|
})]).annotate({ identifier: "EmailRecipient" });
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
status: Schema$1.Literals([
|
|
631
|
-
"pending",
|
|
632
|
-
"caa-blocked",
|
|
633
|
-
"active",
|
|
634
|
-
"teardown-scheduled",
|
|
635
|
-
"disabled"
|
|
636
|
-
]),
|
|
637
|
-
label: Schema$1.String,
|
|
638
|
-
hostname: Schema$1.String,
|
|
639
|
-
region: Schema$1.String,
|
|
640
|
-
sslStatus: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
641
|
-
dnsRecords: Schema$1.Struct({
|
|
642
|
-
tracking: Schema$1.Union([CustomTrackingDnsRecord, Schema$1.Null]),
|
|
643
|
-
dcvDelegation: Schema$1.Union([CustomTrackingDnsRecord, Schema$1.Null])
|
|
644
|
-
}),
|
|
645
|
-
caaBlocked: Schema$1.Boolean,
|
|
646
|
-
verificationErrors: Schema$1.Array(Schema$1.String),
|
|
647
|
-
teardownScheduledAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
648
|
-
}), Schema$1.Null])
|
|
649
|
-
}).annotate({ identifier: "CustomTrackingStatus" });
|
|
650
|
-
const EmailAttachments = Schema$1.Union([Arrays_6, Schema$1.Null]).annotate({ identifier: "EmailAttachments" });
|
|
651
|
-
const EmailSender = Schema$1.Union([Objects_7, Schema$1.Null]).annotate({ identifier: "EmailSender" });
|
|
652
|
-
const EmailDomain = Schema$1.Struct({
|
|
653
|
-
id: EmailDomainId,
|
|
654
|
-
domain: Schema$1.String,
|
|
655
|
-
phase: Schema$1.Literals([
|
|
656
|
-
"dns-setup",
|
|
657
|
-
"provider-setup",
|
|
658
|
-
"provider-verification",
|
|
659
|
-
"ready",
|
|
660
|
-
"degraded",
|
|
602
|
+
Schema$1.Struct({ contactIds: Schema$1.TupleWithRest(Schema$1.Tuple([ContactId]), [ContactId]) }).annotate({ identifier: "ConversationContacts" });
|
|
603
|
+
const CampaignAudience = Schema$1.Struct({
|
|
604
|
+
includeTags: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
605
|
+
excludeTags: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
606
|
+
contactIds: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(ContactId).check(Schema$1.isMaxLength(25e3).annotate({ expected: "a value with a length of at most 25000" })), Schema$1.Null])),
|
|
607
|
+
groupIds: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(ContactGroupId).check(Schema$1.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })), Schema$1.Null]))
|
|
608
|
+
}).annotate({ identifier: "CampaignAudience" });
|
|
609
|
+
const CampaignLatestRun = Schema$1.Struct({
|
|
610
|
+
id: CampaignRunId,
|
|
611
|
+
status: Schema$1.Literals([
|
|
612
|
+
"scheduled",
|
|
613
|
+
"resolving",
|
|
614
|
+
"dispatching",
|
|
615
|
+
"paused",
|
|
616
|
+
"completed",
|
|
617
|
+
"cancelled",
|
|
661
618
|
"failed"
|
|
662
619
|
]),
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
674
|
-
isDefault: Schema$1.Boolean,
|
|
675
|
-
defaultSenderId: Schema$1.Union([EmailSenderId, Schema$1.Null]),
|
|
676
|
-
deliverability: DeliverabilityFacts,
|
|
677
|
-
createdAt: Schema$1.String,
|
|
678
|
-
updatedAt: Schema$1.String
|
|
679
|
-
}).annotate({ identifier: "EmailDomain" });
|
|
680
|
-
const SmsTemplateData = Schema$1.Union([JsonObject, Schema$1.Null]).annotate({ identifier: "SmsTemplateData" });
|
|
681
|
-
const TemplateData = Schema$1.Union([JsonObject, Schema$1.Null]).annotate({ identifier: "TemplateData" });
|
|
682
|
-
const Union_5 = Schema$1.Union([JsonObject, Schema$1.Null]).annotate({ identifier: "Union_5" });
|
|
683
|
-
const WhatsAppTemplateData = Schema$1.Union([JsonObject, Schema$1.Null]).annotate({ identifier: "WhatsAppTemplateData" });
|
|
684
|
-
const ConversationParticipant = Schema$1.Struct({
|
|
685
|
-
actorId: ActorId,
|
|
686
|
-
actorType: Schema$1.Literals([
|
|
687
|
-
"contact",
|
|
688
|
-
"system",
|
|
689
|
-
"sender_identity",
|
|
690
|
-
"agent",
|
|
691
|
-
"user"
|
|
692
|
-
]),
|
|
693
|
-
contact: MessageContact
|
|
694
|
-
}).annotate({ identifier: "ConversationParticipant" });
|
|
695
|
-
const Message = Schema$1.Struct({
|
|
696
|
-
id: Schema$1.String,
|
|
697
|
-
organizationId: Schema$1.String,
|
|
698
|
-
conversationId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
699
|
-
parentMessageId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
700
|
-
fromActorId: Schema$1.String,
|
|
701
|
-
actorMetadata: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]),
|
|
702
|
-
channel: Schema$1.Literals([
|
|
703
|
-
"sms",
|
|
704
|
-
"whatsapp",
|
|
705
|
-
"email"
|
|
706
|
-
]),
|
|
707
|
-
direction: Schema$1.Literals(["outbound", "inbound"]),
|
|
708
|
-
content: JsonValue,
|
|
709
|
-
metadata: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]),
|
|
620
|
+
scheduledFor: Schema$1.String,
|
|
621
|
+
completedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
622
|
+
totalRecipients: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
623
|
+
dispatchedCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
624
|
+
failedCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
625
|
+
skippedCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
626
|
+
}).annotate({ identifier: "CampaignLatestRun" });
|
|
627
|
+
const Media = Schema$1.Struct({
|
|
628
|
+
id: MediaId,
|
|
629
|
+
organizationId: OrganizationId,
|
|
710
630
|
status: Schema$1.Literals([
|
|
711
631
|
"pending",
|
|
712
|
-
"
|
|
713
|
-
"queued",
|
|
632
|
+
"uploading",
|
|
714
633
|
"processing",
|
|
715
|
-
"
|
|
716
|
-
"delivered",
|
|
717
|
-
"read",
|
|
634
|
+
"ready",
|
|
718
635
|
"failed",
|
|
719
|
-
"
|
|
720
|
-
"complained"
|
|
636
|
+
"deleted"
|
|
721
637
|
]),
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
httpMethod: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
732
|
-
apiRequestMetadata: Schema$1.Union([JsonValue, Schema$1.Null]),
|
|
733
|
-
apiResponseMetadata: Schema$1.Union([JsonValue, Schema$1.Null]),
|
|
638
|
+
filename: Schema$1.String,
|
|
639
|
+
contentType: Schema$1.String,
|
|
640
|
+
sizeBytes: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
641
|
+
width: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]),
|
|
642
|
+
height: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]),
|
|
643
|
+
durationMs: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]),
|
|
644
|
+
purpose: Schema$1.Literals(["attachment", "avatar"]),
|
|
645
|
+
checksumSha256: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
646
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
734
647
|
createdAt: Schema$1.String,
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
648
|
+
confirmedAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
649
|
+
}).annotate({ identifier: "Media" });
|
|
650
|
+
const HumanProfile = Schema$1.Struct({
|
|
651
|
+
firstName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
652
|
+
lastName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
653
|
+
email: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
654
|
+
phone: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
655
|
+
company: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
656
|
+
jobTitle: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
657
|
+
location: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
658
|
+
country: Schema$1.String,
|
|
659
|
+
state: Schema$1.String,
|
|
660
|
+
city: Schema$1.String,
|
|
661
|
+
timezone: Schema$1.String
|
|
662
|
+
}), Schema$1.Null])),
|
|
663
|
+
customFields: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null])),
|
|
664
|
+
source: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
665
|
+
"api",
|
|
666
|
+
"import",
|
|
667
|
+
"manual",
|
|
668
|
+
"form"
|
|
669
|
+
]), Schema$1.Null])),
|
|
670
|
+
sourceDetails: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null]))
|
|
671
|
+
}).annotate({ identifier: "HumanProfile" });
|
|
672
|
+
const ConversationMetadata = Schema$1.Struct({
|
|
673
|
+
source: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
674
|
+
tags: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
675
|
+
customFields: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null]))
|
|
676
|
+
}).annotate({ identifier: "ConversationMetadata" });
|
|
677
|
+
const ConversationContext = Schema$1.Struct({
|
|
678
|
+
customerData: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null])),
|
|
679
|
+
previousConversations: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
680
|
+
sessionVariables: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null])),
|
|
681
|
+
workflowState: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
682
|
+
currentStep: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
683
|
+
completedSteps: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
684
|
+
pendingSteps: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
685
|
+
workflowData: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null]))
|
|
686
|
+
}), Schema$1.Null]))
|
|
687
|
+
}).annotate({ identifier: "ConversationContext" });
|
|
688
|
+
const ActorTracking = Schema$1.Struct({
|
|
689
|
+
allActorIds: Schema$1.Array(ActorId),
|
|
690
|
+
activeActorIds: Schema$1.Array(ActorId),
|
|
691
|
+
actorHistory: Schema$1.Array(Schema$1.Struct({
|
|
692
|
+
actorId: ActorId,
|
|
693
|
+
actorType: Schema$1.Literals([
|
|
694
|
+
"contact",
|
|
695
|
+
"system",
|
|
696
|
+
"sender_identity",
|
|
697
|
+
"agent",
|
|
698
|
+
"user"
|
|
699
|
+
]),
|
|
700
|
+
joinedAt: Schema$1.String,
|
|
701
|
+
leftAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
702
|
+
role: Schema$1.Literals([
|
|
703
|
+
"initiator",
|
|
704
|
+
"responder",
|
|
705
|
+
"observer"
|
|
706
|
+
]),
|
|
707
|
+
addedBy: Schema$1.optionalKey(Schema$1.Union([ActorId, Schema$1.Null])),
|
|
708
|
+
removedBy: Schema$1.optionalKey(Schema$1.Union([ActorId, Schema$1.Null])),
|
|
709
|
+
reason: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
710
|
+
})),
|
|
711
|
+
primaryActorIds: Schema$1.Array(ActorId)
|
|
712
|
+
}).annotate({ identifier: "ActorTracking" });
|
|
713
|
+
const ConversationParticipant = Schema$1.Struct({
|
|
714
|
+
actorId: ActorId,
|
|
715
|
+
actorType: Schema$1.Literals([
|
|
716
|
+
"contact",
|
|
717
|
+
"system",
|
|
718
|
+
"sender_identity",
|
|
719
|
+
"agent",
|
|
720
|
+
"user"
|
|
721
|
+
]),
|
|
722
|
+
contact: MessageContact
|
|
723
|
+
}).annotate({ identifier: "ConversationParticipant" });
|
|
724
|
+
const Message = Schema$1.Struct({
|
|
725
|
+
id: Schema$1.String,
|
|
726
|
+
organizationId: Schema$1.String,
|
|
727
|
+
conversationId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
728
|
+
parentMessageId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
729
|
+
fromActorId: Schema$1.String,
|
|
730
|
+
actorMetadata: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]),
|
|
731
|
+
channel: Schema$1.Literal("email"),
|
|
732
|
+
direction: Schema$1.Literals(["outbound", "inbound"]),
|
|
733
|
+
content: JsonValue,
|
|
734
|
+
metadata: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]),
|
|
735
|
+
status: Schema$1.Literals([
|
|
736
|
+
"pending",
|
|
737
|
+
"scheduled",
|
|
738
|
+
"queued",
|
|
739
|
+
"processing",
|
|
740
|
+
"sent",
|
|
741
|
+
"delivered",
|
|
742
|
+
"read",
|
|
743
|
+
"failed",
|
|
744
|
+
"bounced",
|
|
745
|
+
"complained"
|
|
746
|
+
]),
|
|
747
|
+
scheduledAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
748
|
+
tags: Schema$1.Array(Schema$1.String),
|
|
749
|
+
categories: Schema$1.Array(Schema$1.String),
|
|
750
|
+
isTest: Schema$1.Boolean,
|
|
751
|
+
isInternal: Schema$1.Boolean,
|
|
752
|
+
isAutomated: Schema$1.Boolean,
|
|
753
|
+
externalId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
754
|
+
referenceId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
755
|
+
apiKeyId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
756
|
+
httpMethod: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
757
|
+
apiRequestMetadata: Schema$1.Union([JsonValue, Schema$1.Null]),
|
|
758
|
+
apiResponseMetadata: Schema$1.Union([JsonValue, Schema$1.Null]),
|
|
759
|
+
createdAt: Schema$1.String,
|
|
760
|
+
updatedAt: Schema$1.String,
|
|
761
|
+
createdBy: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
762
|
+
fromContact: Schema$1.Union([MessageContact, Schema$1.Null]),
|
|
763
|
+
toContacts: Schema$1.Array(MessageContact),
|
|
764
|
+
recipients: Schema$1.Array(Schema$1.Struct({
|
|
765
|
+
id: Schema$1.String,
|
|
766
|
+
messageId: Schema$1.String,
|
|
767
|
+
actorId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
768
|
+
contactId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
769
|
+
identityId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
770
|
+
kind: Schema$1.Literals([
|
|
771
|
+
"to",
|
|
772
|
+
"cc",
|
|
773
|
+
"bcc"
|
|
774
|
+
]),
|
|
775
|
+
address: Schema$1.String,
|
|
776
|
+
status: Schema$1.Literals([
|
|
777
|
+
"pending",
|
|
753
778
|
"scheduled",
|
|
754
779
|
"queued",
|
|
755
780
|
"processing",
|
|
@@ -768,11 +793,7 @@ const Message = Schema$1.Struct({
|
|
|
768
793
|
id: Schema$1.String,
|
|
769
794
|
messageId: Schema$1.String,
|
|
770
795
|
recipientId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
771
|
-
channel: Schema$1.
|
|
772
|
-
"sms",
|
|
773
|
-
"whatsapp",
|
|
774
|
-
"email"
|
|
775
|
-
]),
|
|
796
|
+
channel: Schema$1.Literal("email"),
|
|
776
797
|
status: Schema$1.Literals([
|
|
777
798
|
"pending",
|
|
778
799
|
"scheduled",
|
|
@@ -844,74 +865,101 @@ const Message = Schema$1.Struct({
|
|
|
844
865
|
processedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
845
866
|
createdAt: Schema$1.String,
|
|
846
867
|
updatedAt: Schema$1.String
|
|
847
|
-
})),
|
|
848
|
-
smsDeliveryDetails: Schema$1.Array(Schema$1.Struct({
|
|
849
|
-
deliveryId: Schema$1.String,
|
|
850
|
-
fromNumber: Schema$1.String,
|
|
851
|
-
toNumber: Schema$1.String,
|
|
852
|
-
segmentCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
853
|
-
encoding: Schema$1.String,
|
|
854
|
-
dltTemplateId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
855
|
-
dltEntityId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
856
|
-
dltContentId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
857
|
-
carrier: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
858
|
-
numSegmentsReported: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })), Schema$1.Null]),
|
|
859
|
-
createdAt: Schema$1.String,
|
|
860
|
-
updatedAt: Schema$1.String
|
|
861
|
-
})),
|
|
862
|
-
whatsappDeliveryDetails: Schema$1.Array(Schema$1.Struct({
|
|
863
|
-
deliveryId: Schema$1.String,
|
|
864
|
-
fromNumber: Schema$1.String,
|
|
865
|
-
toNumber: Schema$1.String,
|
|
866
|
-
messageType: Schema$1.Literals([
|
|
867
|
-
"text",
|
|
868
|
-
"image",
|
|
869
|
-
"video",
|
|
870
|
-
"audio",
|
|
871
|
-
"document",
|
|
872
|
-
"location",
|
|
873
|
-
"contacts",
|
|
874
|
-
"template",
|
|
875
|
-
"interactive",
|
|
876
|
-
"sticker",
|
|
877
|
-
"reaction",
|
|
878
|
-
"order",
|
|
879
|
-
"button",
|
|
880
|
-
"system",
|
|
881
|
-
"unsupported"
|
|
882
|
-
]),
|
|
883
|
-
templateName: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
884
|
-
templateLanguage: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
885
|
-
templateCategory: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
886
|
-
templateParams: Schema$1.Union([JsonObject, Schema$1.Null]),
|
|
887
|
-
mediaUrl: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
888
|
-
mediaType: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
889
|
-
mediaS3Key: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
890
|
-
interactiveType: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
891
|
-
contextMessageId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
892
|
-
conversationType: Schema$1.Union([Schema$1.Literals([
|
|
893
|
-
"marketing",
|
|
894
|
-
"utility",
|
|
895
|
-
"authentication",
|
|
896
|
-
"service"
|
|
897
|
-
]), Schema$1.Null]),
|
|
898
|
-
serviceWindowId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
899
|
-
freeEntryPointId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
900
|
-
isBillable: Schema$1.Boolean,
|
|
901
|
-
pricing: Schema$1.Union([Schema$1.Struct({
|
|
902
|
-
messageCost: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\d+\\.\\d{4}$")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d{4}$" })),
|
|
903
|
-
reason: Schema$1.String,
|
|
904
|
-
sentInServiceWindow: Schema$1.Boolean,
|
|
905
|
-
sentInFreeEntryPoint: Schema$1.Boolean
|
|
906
|
-
}), Schema$1.Null]),
|
|
907
|
-
recipientId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
908
|
-
createdAt: Schema$1.String,
|
|
909
|
-
updatedAt: Schema$1.String
|
|
910
868
|
}))
|
|
911
869
|
}).annotate({ identifier: "Message" });
|
|
912
|
-
const
|
|
913
|
-
|
|
914
|
-
|
|
870
|
+
const Design = Schema$1.Struct({
|
|
871
|
+
theme: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
872
|
+
colors: Schema$1.optionalKey(Schema$1.Union([ThemeColors, Schema$1.Null])),
|
|
873
|
+
colorsDark: Schema$1.optionalKey(Schema$1.Union([ThemeColors, Schema$1.Null])),
|
|
874
|
+
radiusPx: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))), Schema$1.Null])),
|
|
875
|
+
fontFamilies: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Struct({
|
|
876
|
+
source: Schema$1.Literals([
|
|
877
|
+
"system",
|
|
878
|
+
"google",
|
|
879
|
+
"custom"
|
|
880
|
+
]),
|
|
881
|
+
family: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
882
|
+
fallback: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
883
|
+
faces: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Struct({
|
|
884
|
+
weight: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema$1.isLessThanOrEqualTo(900).annotate({ expected: "a value less than or equal to 900" })),
|
|
885
|
+
style: Schema$1.Literals(["normal", "italic"]),
|
|
886
|
+
src: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
887
|
+
unicodeRange: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
888
|
+
})).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null]))
|
|
889
|
+
})), Schema$1.Null])),
|
|
890
|
+
fontWeights: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema$1.isLessThanOrEqualTo(900).annotate({ expected: "a value less than or equal to 900" }))), Schema$1.Null])),
|
|
891
|
+
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Struct({
|
|
892
|
+
sizePx: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
893
|
+
lineHeightPx: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
894
|
+
})), Schema$1.Null])),
|
|
895
|
+
leading: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))), Schema$1.Null])),
|
|
896
|
+
spacingPx: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null])),
|
|
897
|
+
containerPx: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))), Schema$1.Null])),
|
|
898
|
+
tracking: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))), Schema$1.Null]))
|
|
899
|
+
}), Schema$1.Null])),
|
|
900
|
+
assets: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
901
|
+
logoUrl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
902
|
+
logoDarkUrl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
903
|
+
iconUrl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
904
|
+
}), Schema$1.Null])),
|
|
905
|
+
footer: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
906
|
+
companyName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
907
|
+
address: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
908
|
+
street1: Schema$1.String,
|
|
909
|
+
street2: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
910
|
+
city: Schema$1.String,
|
|
911
|
+
region: Schema$1.String,
|
|
912
|
+
postalCode: Schema$1.String,
|
|
913
|
+
country: Schema$1.String
|
|
914
|
+
}), Schema$1.Null])),
|
|
915
|
+
socialLinks: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Struct({
|
|
916
|
+
label: Schema$1.String,
|
|
917
|
+
url: Schema$1.String
|
|
918
|
+
})), Schema$1.Null])),
|
|
919
|
+
customHtml: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
920
|
+
}), Schema$1.Null]))
|
|
921
|
+
}).annotate({ identifier: "Design" });
|
|
922
|
+
const WebhookEndpoint = Schema$1.Struct({
|
|
923
|
+
id: WebhookEndpointId,
|
|
924
|
+
name: Schema$1.String,
|
|
925
|
+
url: Schema$1.String,
|
|
926
|
+
eventTypes: Schema$1.Array(Schema$1.Literals([
|
|
927
|
+
"message.sent",
|
|
928
|
+
"message.delivered",
|
|
929
|
+
"message.read",
|
|
930
|
+
"message.failed",
|
|
931
|
+
"message.bounced",
|
|
932
|
+
"message.complained",
|
|
933
|
+
"message.received",
|
|
934
|
+
"contact.created",
|
|
935
|
+
"contact.updated",
|
|
936
|
+
"contact.deleted",
|
|
937
|
+
"conversation.started",
|
|
938
|
+
"conversation.ended",
|
|
939
|
+
"conversation.created",
|
|
940
|
+
"conversation.updated",
|
|
941
|
+
"conversation.archived",
|
|
942
|
+
"template.created",
|
|
943
|
+
"template.updated",
|
|
944
|
+
"template.deleted",
|
|
945
|
+
"template.approved",
|
|
946
|
+
"template.rejected",
|
|
947
|
+
"webhook.created",
|
|
948
|
+
"webhook.updated",
|
|
949
|
+
"webhook.deleted",
|
|
950
|
+
"webhook.test",
|
|
951
|
+
"domain.updated"
|
|
952
|
+
])),
|
|
953
|
+
channels: Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")), Schema$1.Null]),
|
|
954
|
+
status: Schema$1.Literals(["active", "disabled"]),
|
|
955
|
+
hasCustomHeaders: Schema$1.Boolean,
|
|
956
|
+
failureStartedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
957
|
+
lastSucceededAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
958
|
+
createdAt: Schema$1.String,
|
|
959
|
+
updatedAt: Schema$1.String
|
|
960
|
+
}).annotate({ identifier: "WebhookEndpoint" });
|
|
961
|
+
const EmailDomain = Schema$1.Struct({
|
|
962
|
+
id: EmailDomainId,
|
|
915
963
|
domain: Schema$1.String,
|
|
916
964
|
phase: Schema$1.Literals([
|
|
917
965
|
"dns-setup",
|
|
@@ -921,27 +969,78 @@ const EmailDomainVerification = Schema$1.Struct({
|
|
|
921
969
|
"degraded",
|
|
922
970
|
"failed"
|
|
923
971
|
]),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
status: Schema$1.Literals([
|
|
972
|
+
dkimSelector: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
973
|
+
dkimPublicKey: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
974
|
+
dnsRecords: Schema$1.Array(Schema$1.Struct({
|
|
975
|
+
type: Schema$1.String,
|
|
976
|
+
name: Schema$1.String,
|
|
977
|
+
value: Schema$1.String,
|
|
978
|
+
ttl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
979
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
980
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
981
|
+
})),
|
|
982
|
+
verifiedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
983
|
+
isDefault: Schema$1.Boolean,
|
|
984
|
+
defaultSenderId: Schema$1.Union([EmailSenderId, Schema$1.Null]),
|
|
985
|
+
deliverability: DeliverabilityFacts,
|
|
986
|
+
createdAt: Schema$1.String,
|
|
987
|
+
updatedAt: Schema$1.String
|
|
988
|
+
}).annotate({ identifier: "EmailDomain" });
|
|
989
|
+
const CustomTrackingStatus = Schema$1.Struct({
|
|
990
|
+
enabled: Schema$1.Boolean,
|
|
991
|
+
customTracking: Schema$1.Union([Schema$1.Struct({
|
|
992
|
+
status: Schema$1.Literals([
|
|
993
|
+
"pending",
|
|
994
|
+
"caa-blocked",
|
|
995
|
+
"active",
|
|
996
|
+
"teardown-scheduled",
|
|
997
|
+
"disabled"
|
|
998
|
+
]),
|
|
999
|
+
label: Schema$1.String,
|
|
1000
|
+
hostname: Schema$1.String,
|
|
1001
|
+
region: Schema$1.String,
|
|
1002
|
+
sslStatus: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1003
|
+
dnsRecords: Schema$1.Struct({
|
|
1004
|
+
tracking: Schema$1.Union([CustomTrackingDnsRecord, Schema$1.Null]),
|
|
1005
|
+
dcvDelegation: Schema$1.Union([CustomTrackingDnsRecord, Schema$1.Null])
|
|
1006
|
+
}),
|
|
1007
|
+
caaBlocked: Schema$1.Boolean,
|
|
1008
|
+
verificationErrors: Schema$1.Array(Schema$1.String),
|
|
1009
|
+
teardownScheduledAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
1010
|
+
}), Schema$1.Null])
|
|
1011
|
+
}).annotate({ identifier: "CustomTrackingStatus" });
|
|
1012
|
+
const EmailDomainVerification = Schema$1.Struct({
|
|
1013
|
+
domainId: EmailDomainId,
|
|
1014
|
+
domain: Schema$1.String,
|
|
1015
|
+
phase: Schema$1.Literals([
|
|
1016
|
+
"dns-setup",
|
|
1017
|
+
"provider-setup",
|
|
1018
|
+
"provider-verification",
|
|
1019
|
+
"ready",
|
|
1020
|
+
"degraded",
|
|
1021
|
+
"failed"
|
|
1022
|
+
]),
|
|
1023
|
+
records: Schema$1.Array(Schema$1.Struct({
|
|
1024
|
+
record: Schema$1.Struct({
|
|
1025
|
+
type: Schema$1.Literals([
|
|
1026
|
+
"A",
|
|
1027
|
+
"AAAA",
|
|
1028
|
+
"CNAME",
|
|
1029
|
+
"MX",
|
|
1030
|
+
"NS",
|
|
1031
|
+
"SOA",
|
|
1032
|
+
"PTR",
|
|
1033
|
+
"SRV",
|
|
1034
|
+
"TXT",
|
|
1035
|
+
"CAA"
|
|
1036
|
+
]),
|
|
1037
|
+
name: Schema$1.String,
|
|
1038
|
+
value: Schema$1.String,
|
|
1039
|
+
ttl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1040
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1041
|
+
priority: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })), Schema$1.Null]))
|
|
1042
|
+
}),
|
|
1043
|
+
status: Schema$1.Literals([
|
|
945
1044
|
"unchecked",
|
|
946
1045
|
"missing",
|
|
947
1046
|
"mismatch",
|
|
@@ -983,6 +1082,54 @@ const EmailDomainVerification = Schema$1.Struct({
|
|
|
983
1082
|
failedAt: Schema$1.String
|
|
984
1083
|
}), Schema$1.Null])
|
|
985
1084
|
}).annotate({ identifier: "EmailDomainVerification" });
|
|
1085
|
+
const SuppressionEntry = Schema$1.Struct({
|
|
1086
|
+
id: SuppressionId,
|
|
1087
|
+
email: Schema$1.String,
|
|
1088
|
+
type: Schema$1.Literals([
|
|
1089
|
+
"bounce",
|
|
1090
|
+
"complaint",
|
|
1091
|
+
"unsubscribe",
|
|
1092
|
+
"manual"
|
|
1093
|
+
]),
|
|
1094
|
+
bounceType: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1095
|
+
bounceSubType: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1096
|
+
reason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1097
|
+
messageId: Schema$1.Union([MessageId, Schema$1.Null]),
|
|
1098
|
+
isActive: Schema$1.Boolean,
|
|
1099
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1100
|
+
createdAt: Schema$1.String
|
|
1101
|
+
}).annotate({ identifier: "SuppressionEntry" });
|
|
1102
|
+
const EmailRecipientTrackingPreference = Schema$1.Struct({
|
|
1103
|
+
email: TrackingRecipientEmail,
|
|
1104
|
+
optedOut: Schema$1.Boolean,
|
|
1105
|
+
trackingOptedOutAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1106
|
+
createdAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1107
|
+
updatedAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
1108
|
+
}).annotate({ identifier: "EmailRecipientTrackingPreference" });
|
|
1109
|
+
const CreatedMedia = Schema$1.Struct({
|
|
1110
|
+
id: MediaId,
|
|
1111
|
+
organizationId: OrganizationId,
|
|
1112
|
+
status: Schema$1.Literals([
|
|
1113
|
+
"pending",
|
|
1114
|
+
"uploading",
|
|
1115
|
+
"processing",
|
|
1116
|
+
"ready",
|
|
1117
|
+
"failed",
|
|
1118
|
+
"deleted"
|
|
1119
|
+
]),
|
|
1120
|
+
filename: Schema$1.String,
|
|
1121
|
+
contentType: Schema$1.String,
|
|
1122
|
+
sizeBytes: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1123
|
+
width: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]),
|
|
1124
|
+
height: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]),
|
|
1125
|
+
durationMs: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]),
|
|
1126
|
+
purpose: Schema$1.Literals(["attachment", "avatar"]),
|
|
1127
|
+
checksumSha256: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1128
|
+
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1129
|
+
createdAt: Schema$1.String,
|
|
1130
|
+
confirmedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1131
|
+
upload: MediaUploadInstruction
|
|
1132
|
+
}).annotate({ identifier: "CreatedMedia" });
|
|
986
1133
|
const Operation = Schema$1.Struct({
|
|
987
1134
|
id: OperationId,
|
|
988
1135
|
organizationId: Schema$1.String,
|
|
@@ -1031,216 +1178,7 @@ const OperationResourceLink = Schema$1.Struct({
|
|
|
1031
1178
|
resource: OperationResource,
|
|
1032
1179
|
href: Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/v1\\/")).annotate({ expected: "a string matching the RegExp ^\\/v1\\/" }))
|
|
1033
1180
|
}).annotate({ identifier: "OperationResourceLink" });
|
|
1034
|
-
const ReplyToAddresses = Schema$1.Union([Union_8, Schema$1.Null]).annotate({ identifier: "ReplyToAddresses" });
|
|
1035
|
-
const SuppressionEntry = Schema$1.Struct({
|
|
1036
|
-
id: SuppressionId,
|
|
1037
|
-
email: Schema$1.String,
|
|
1038
|
-
type: Schema$1.Literals([
|
|
1039
|
-
"bounce",
|
|
1040
|
-
"complaint",
|
|
1041
|
-
"unsubscribe",
|
|
1042
|
-
"manual"
|
|
1043
|
-
]),
|
|
1044
|
-
bounceType: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1045
|
-
bounceSubType: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1046
|
-
reason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1047
|
-
messageId: Schema$1.Union([MessageId, Schema$1.Null]),
|
|
1048
|
-
isActive: Schema$1.Boolean,
|
|
1049
|
-
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1050
|
-
createdAt: Schema$1.String
|
|
1051
|
-
}).annotate({ identifier: "SuppressionEntry" });
|
|
1052
|
-
const TemplateSummary = Schema$1.Struct({
|
|
1053
|
-
id: TemplateId,
|
|
1054
|
-
name: Schema$1.String,
|
|
1055
|
-
slug: Schema$1.String,
|
|
1056
|
-
channel: Schema$1.Literals([
|
|
1057
|
-
"sms",
|
|
1058
|
-
"whatsapp",
|
|
1059
|
-
"email"
|
|
1060
|
-
]),
|
|
1061
|
-
origin: Schema$1.Literals(["dashboard", "tsx"]),
|
|
1062
|
-
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1063
|
-
category: Schema$1.Union([Schema$1.Literals([
|
|
1064
|
-
"transactional",
|
|
1065
|
-
"marketing",
|
|
1066
|
-
"support",
|
|
1067
|
-
"notification",
|
|
1068
|
-
"verification",
|
|
1069
|
-
"reminder",
|
|
1070
|
-
"alert"
|
|
1071
|
-
]), Schema$1.Null]),
|
|
1072
|
-
status: Schema$1.Literals([
|
|
1073
|
-
"draft",
|
|
1074
|
-
"pending",
|
|
1075
|
-
"approved",
|
|
1076
|
-
"published",
|
|
1077
|
-
"rejected",
|
|
1078
|
-
"archived"
|
|
1079
|
-
]),
|
|
1080
|
-
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1081
|
-
usageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1082
|
-
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1083
|
-
createdAt: Schema$1.String,
|
|
1084
|
-
updatedAt: Schema$1.String
|
|
1085
|
-
}).annotate({ identifier: "TemplateSummary" });
|
|
1086
|
-
const TemplateFamily = Schema$1.Struct({
|
|
1087
|
-
id: TemplateFamilyId,
|
|
1088
|
-
organizationId: OrganizationId,
|
|
1089
|
-
name: Schema$1.String,
|
|
1090
|
-
members: Schema$1.Array(Schema$1.Struct({
|
|
1091
|
-
id: TemplateId,
|
|
1092
|
-
name: Schema$1.String,
|
|
1093
|
-
slug: Schema$1.String,
|
|
1094
|
-
channel: Schema$1.Literals([
|
|
1095
|
-
"sms",
|
|
1096
|
-
"whatsapp",
|
|
1097
|
-
"email"
|
|
1098
|
-
]),
|
|
1099
|
-
variableSchema: Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]),
|
|
1100
|
-
status: Schema$1.Literals([
|
|
1101
|
-
"draft",
|
|
1102
|
-
"pending",
|
|
1103
|
-
"approved",
|
|
1104
|
-
"published",
|
|
1105
|
-
"rejected",
|
|
1106
|
-
"archived"
|
|
1107
|
-
]),
|
|
1108
|
-
isActive: Schema$1.Boolean,
|
|
1109
|
-
version: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1110
|
-
createdAt: Schema$1.String,
|
|
1111
|
-
updatedAt: Schema$1.String
|
|
1112
|
-
})),
|
|
1113
|
-
createdAt: Schema$1.String,
|
|
1114
|
-
updatedAt: Schema$1.String
|
|
1115
|
-
}).annotate({ identifier: "TemplateFamily" });
|
|
1116
|
-
const Design = Schema$1.Struct({
|
|
1117
|
-
theme: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1118
|
-
colors: Schema$1.optionalKey(Schema$1.Union([ThemeColors, Schema$1.Null])),
|
|
1119
|
-
colorsDark: Schema$1.optionalKey(Schema$1.Union([ThemeColors, Schema$1.Null])),
|
|
1120
|
-
radiusPx: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))), Schema$1.Null])),
|
|
1121
|
-
fontFamilies: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Struct({
|
|
1122
|
-
source: Schema$1.Literals([
|
|
1123
|
-
"system",
|
|
1124
|
-
"google",
|
|
1125
|
-
"custom"
|
|
1126
|
-
]),
|
|
1127
|
-
family: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1128
|
-
fallback: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1129
|
-
faces: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Struct({
|
|
1130
|
-
weight: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema$1.isLessThanOrEqualTo(900).annotate({ expected: "a value less than or equal to 900" })),
|
|
1131
|
-
style: Schema$1.Literals(["normal", "italic"]),
|
|
1132
|
-
src: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1133
|
-
unicodeRange: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1134
|
-
})).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null]))
|
|
1135
|
-
})), Schema$1.Null])),
|
|
1136
|
-
fontWeights: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema$1.isLessThanOrEqualTo(900).annotate({ expected: "a value less than or equal to 900" }))), Schema$1.Null])),
|
|
1137
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Struct({
|
|
1138
|
-
sizePx: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1139
|
-
lineHeightPx: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
1140
|
-
})), Schema$1.Null])),
|
|
1141
|
-
leading: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))), Schema$1.Null])),
|
|
1142
|
-
spacingPx: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null])),
|
|
1143
|
-
containerPx: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))), Schema$1.Null])),
|
|
1144
|
-
tracking: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))), Schema$1.Null]))
|
|
1145
|
-
}), Schema$1.Null])),
|
|
1146
|
-
assets: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1147
|
-
logoUrl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1148
|
-
logoDarkUrl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1149
|
-
iconUrl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1150
|
-
}), Schema$1.Null])),
|
|
1151
|
-
footer: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1152
|
-
companyName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1153
|
-
address: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1154
|
-
street1: Schema$1.String,
|
|
1155
|
-
street2: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1156
|
-
city: Schema$1.String,
|
|
1157
|
-
region: Schema$1.String,
|
|
1158
|
-
postalCode: Schema$1.String,
|
|
1159
|
-
country: Schema$1.String
|
|
1160
|
-
}), Schema$1.Null])),
|
|
1161
|
-
socialLinks: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Struct({
|
|
1162
|
-
label: Schema$1.String,
|
|
1163
|
-
url: Schema$1.String
|
|
1164
|
-
})), Schema$1.Null])),
|
|
1165
|
-
customHtml: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1166
|
-
}), Schema$1.Null]))
|
|
1167
|
-
}).annotate({ identifier: "Design" });
|
|
1168
|
-
const EmailRecipientTrackingPreference = Schema$1.Struct({
|
|
1169
|
-
email: TrackingRecipientEmail,
|
|
1170
|
-
optedOut: Schema$1.Boolean,
|
|
1171
|
-
trackingOptedOutAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1172
|
-
createdAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1173
|
-
updatedAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
1174
|
-
}).annotate({ identifier: "EmailRecipientTrackingPreference" });
|
|
1175
|
-
const ConversationContext = Schema$1.Struct({
|
|
1176
|
-
customerData: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null])),
|
|
1177
|
-
previousConversations: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
1178
|
-
sessionVariables: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null])),
|
|
1179
|
-
workflowState: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1180
|
-
currentStep: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1181
|
-
completedSteps: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
1182
|
-
pendingSteps: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
1183
|
-
workflowData: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null]))
|
|
1184
|
-
}), Schema$1.Null]))
|
|
1185
|
-
}).annotate({ identifier: "ConversationContext" });
|
|
1186
|
-
const ConversationMetadata = Schema$1.Struct({
|
|
1187
|
-
source: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1188
|
-
tags: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
1189
|
-
customFields: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null]))
|
|
1190
|
-
}).annotate({ identifier: "ConversationMetadata" });
|
|
1191
|
-
const HumanProfile = Schema$1.Struct({
|
|
1192
|
-
firstName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1193
|
-
lastName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1194
|
-
email: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1195
|
-
phone: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1196
|
-
company: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1197
|
-
jobTitle: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1198
|
-
location: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1199
|
-
country: Schema$1.String,
|
|
1200
|
-
state: Schema$1.String,
|
|
1201
|
-
city: Schema$1.String,
|
|
1202
|
-
timezone: Schema$1.String
|
|
1203
|
-
}), Schema$1.Null])),
|
|
1204
|
-
customFields: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null])),
|
|
1205
|
-
source: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1206
|
-
"api",
|
|
1207
|
-
"import",
|
|
1208
|
-
"manual",
|
|
1209
|
-
"form"
|
|
1210
|
-
]), Schema$1.Null])),
|
|
1211
|
-
sourceDetails: Schema$1.optionalKey(Schema$1.Union([UnknownRecord, Schema$1.Null]))
|
|
1212
|
-
}).annotate({ identifier: "HumanProfile" });
|
|
1213
|
-
const CampaignPolicy = Schema$1.Struct({
|
|
1214
|
-
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([UnsubscribeId, Schema$1.Null])),
|
|
1215
|
-
pageSize: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(100).annotate({ expected: "a value greater than or equal to 100" })).check(Schema$1.isLessThanOrEqualTo(1e3).annotate({ expected: "a value less than or equal to 1000" })), Schema$1.Null]))
|
|
1216
|
-
}).annotate({ identifier: "CampaignPolicy" });
|
|
1217
|
-
const Objects_1 = Schema$1.Struct({
|
|
1218
|
-
userId: UserId,
|
|
1219
|
-
via: Schema$1.Literals([
|
|
1220
|
-
"api",
|
|
1221
|
-
"mcp",
|
|
1222
|
-
"agent"
|
|
1223
|
-
])
|
|
1224
|
-
}).annotate({ identifier: "Objects_1" });
|
|
1225
1181
|
const TemplateCompliance = Schema$1.Struct({
|
|
1226
|
-
dltTemplateId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1227
|
-
dltStatus: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1228
|
-
"pending",
|
|
1229
|
-
"approved",
|
|
1230
|
-
"rejected",
|
|
1231
|
-
"expired"
|
|
1232
|
-
]), Schema$1.Null])),
|
|
1233
|
-
dltApprovedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1234
|
-
whatsappTemplateId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1235
|
-
whatsappStatus: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1236
|
-
"draft",
|
|
1237
|
-
"pending",
|
|
1238
|
-
"approved",
|
|
1239
|
-
"published",
|
|
1240
|
-
"rejected",
|
|
1241
|
-
"archived"
|
|
1242
|
-
]), Schema$1.Null])),
|
|
1243
|
-
whatsappApprovedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1244
1182
|
metaStatus: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1245
1183
|
submittedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1246
1184
|
qualityScore: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
@@ -1268,480 +1206,110 @@ const TemplateCompliance = Schema$1.Struct({
|
|
|
1268
1206
|
notes: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1269
1207
|
})), Schema$1.Null]))
|
|
1270
1208
|
}).annotate({ identifier: "TemplateCompliance" });
|
|
1271
|
-
const
|
|
1272
|
-
id:
|
|
1273
|
-
|
|
1274
|
-
url: Schema$1.String,
|
|
1275
|
-
eventTypes: Schema$1.Array(Schema$1.Literals([
|
|
1276
|
-
"message.sent",
|
|
1277
|
-
"message.delivered",
|
|
1278
|
-
"message.read",
|
|
1279
|
-
"message.failed",
|
|
1280
|
-
"message.bounced",
|
|
1281
|
-
"message.complained",
|
|
1282
|
-
"message.received",
|
|
1283
|
-
"contact.created",
|
|
1284
|
-
"contact.updated",
|
|
1285
|
-
"contact.deleted",
|
|
1286
|
-
"conversation.started",
|
|
1287
|
-
"conversation.ended",
|
|
1288
|
-
"conversation.created",
|
|
1289
|
-
"conversation.updated",
|
|
1290
|
-
"conversation.archived",
|
|
1291
|
-
"template.created",
|
|
1292
|
-
"template.updated",
|
|
1293
|
-
"template.deleted",
|
|
1294
|
-
"template.approved",
|
|
1295
|
-
"template.rejected",
|
|
1296
|
-
"webhook.created",
|
|
1297
|
-
"webhook.updated",
|
|
1298
|
-
"webhook.deleted",
|
|
1299
|
-
"webhook.test",
|
|
1300
|
-
"domain.updated"
|
|
1301
|
-
])),
|
|
1302
|
-
channels: Schema$1.Union([Schema$1.Array(Schema$1.Literals([
|
|
1303
|
-
"sms",
|
|
1304
|
-
"whatsapp",
|
|
1305
|
-
"email"
|
|
1306
|
-
])), Schema$1.Null]),
|
|
1307
|
-
status: Schema$1.Literals(["active", "disabled"]),
|
|
1308
|
-
hasCustomHeaders: Schema$1.Boolean,
|
|
1309
|
-
failureStartedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1310
|
-
lastSucceededAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1311
|
-
createdAt: Schema$1.String,
|
|
1312
|
-
updatedAt: Schema$1.String
|
|
1313
|
-
}).annotate({ identifier: "WebhookEndpoint" });
|
|
1314
|
-
const ApiKey = Schema$1.Struct({
|
|
1315
|
-
id: Schema$1.String,
|
|
1316
|
-
name: Schema$1.String,
|
|
1317
|
-
key: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1318
|
-
start: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1319
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1320
|
-
createdAt: Schema$1.String,
|
|
1321
|
-
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1322
|
-
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1323
|
-
isActive: Schema$1.Boolean,
|
|
1324
|
-
permissions: Schema$1.optionalKey(ApiKeyPermissions),
|
|
1325
|
-
roleName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1326
|
-
}).annotate({ identifier: "ApiKey" });
|
|
1327
|
-
const ApiKeyWithSecret = Schema$1.Struct({
|
|
1328
|
-
id: Schema$1.String,
|
|
1329
|
-
name: Schema$1.String,
|
|
1330
|
-
key: SensitiveString,
|
|
1331
|
-
start: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1332
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1333
|
-
createdAt: Schema$1.String,
|
|
1334
|
-
expiresAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1335
|
-
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1336
|
-
isActive: Schema$1.Boolean,
|
|
1337
|
-
permissions: Schema$1.optionalKey(ApiKeyPermissions),
|
|
1338
|
-
roleName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1339
|
-
}).annotate({ identifier: "ApiKeyWithSecret" });
|
|
1340
|
-
const Union_3 = Schema$1.Union([ContactAccessConfig, Schema$1.Null]).annotate({ identifier: "Union_3" });
|
|
1341
|
-
const Union_6 = Schema$1.Union([Schema$1.Array(EmailRecipient), Schema$1.Null]);
|
|
1342
|
-
const Union_7 = Schema$1.Union([Schema$1.Array(EmailRecipient), Schema$1.Null]);
|
|
1343
|
-
const EmailRecipients = Schema$1.Array(EmailRecipient).check(Schema$1.isMinLength(1).annotate({
|
|
1344
|
-
expected: "a value with a length of at least 1",
|
|
1345
|
-
identifier: "EmailRecipients"
|
|
1346
|
-
}));
|
|
1347
|
-
const SmsRecipients = Schema$1.Array(SmsRecipient).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1).annotate({
|
|
1348
|
-
expected: "a value with a length of at most 1",
|
|
1349
|
-
identifier: "SmsRecipients"
|
|
1350
|
-
}));
|
|
1351
|
-
const WhatsAppRecipients = Schema$1.Array(WhatsAppRecipient).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1).annotate({
|
|
1352
|
-
expected: "a value with a length of at most 1",
|
|
1353
|
-
identifier: "WhatsAppRecipients"
|
|
1354
|
-
}));
|
|
1355
|
-
const SmsContent = Schema$1.Struct({
|
|
1356
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1357
|
-
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1358
|
-
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1359
|
-
templateData: Schema$1.optionalKey(SmsTemplateData)
|
|
1360
|
-
}).annotate({ identifier: "SmsContent" });
|
|
1361
|
-
const SmsDispatchContent = Schema$1.Struct({
|
|
1362
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1363
|
-
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1364
|
-
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1365
|
-
templateData: Schema$1.optionalKey(SmsTemplateData)
|
|
1366
|
-
}).annotate({ identifier: "SmsDispatchContent" });
|
|
1367
|
-
const WhatsAppContent = Schema$1.Struct({
|
|
1368
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1369
|
-
mediaUrl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1370
|
-
mediaType: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1371
|
-
"image",
|
|
1372
|
-
"video",
|
|
1373
|
-
"audio",
|
|
1374
|
-
"document"
|
|
1375
|
-
]), Schema$1.Null])),
|
|
1376
|
-
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1377
|
-
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1378
|
-
templateCategory: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1379
|
-
"marketing",
|
|
1380
|
-
"utility",
|
|
1381
|
-
"authentication"
|
|
1382
|
-
]), Schema$1.Null])),
|
|
1383
|
-
templateData: Schema$1.optionalKey(WhatsAppTemplateData)
|
|
1384
|
-
}).annotate({ identifier: "WhatsAppContent" });
|
|
1385
|
-
const WhatsAppDispatchContent = Schema$1.Struct({
|
|
1386
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1387
|
-
mediaUrl: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1388
|
-
mediaType: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1389
|
-
"image",
|
|
1390
|
-
"video",
|
|
1391
|
-
"audio",
|
|
1392
|
-
"document"
|
|
1393
|
-
]), Schema$1.Null])),
|
|
1394
|
-
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1395
|
-
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1396
|
-
templateCategory: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1397
|
-
"marketing",
|
|
1398
|
-
"utility",
|
|
1399
|
-
"authentication"
|
|
1400
|
-
]), Schema$1.Null])),
|
|
1401
|
-
templateData: Schema$1.optionalKey(WhatsAppTemplateData)
|
|
1402
|
-
}).annotate({ identifier: "WhatsAppDispatchContent" });
|
|
1403
|
-
const OperationAccepted = Schema$1.Struct({
|
|
1404
|
-
operation: Operation,
|
|
1405
|
-
links: Schema$1.Struct({
|
|
1406
|
-
self: Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/v1\\/")).annotate({ expected: "a string matching the RegExp ^\\/v1\\/" })),
|
|
1407
|
-
resource: OperationResourceLink
|
|
1408
|
-
})
|
|
1409
|
-
}).annotate({ identifier: "OperationAccepted" });
|
|
1410
|
-
const EmailContent = Schema$1.Struct({
|
|
1411
|
-
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1412
|
-
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1413
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1414
|
-
attachments: Schema$1.optionalKey(EmailAttachments),
|
|
1415
|
-
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1416
|
-
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1417
|
-
templateData: Schema$1.optionalKey(TemplateData),
|
|
1418
|
-
inReplyToMessageId: Schema$1.optionalKey(Schema$1.Union([MessageId, Schema$1.Null])),
|
|
1419
|
-
replyTo: Schema$1.optionalKey(ReplyToAddresses),
|
|
1420
|
-
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([UnsubscribeId, Schema$1.Null])),
|
|
1421
|
-
tracking: Schema$1.optionalKey(EmailTrackingOverrideV1),
|
|
1422
|
-
footer: Schema$1.optionalKey(EmailFooterOverride)
|
|
1423
|
-
}).annotate({ identifier: "EmailContent" });
|
|
1424
|
-
const EmailDispatchContent = Schema$1.Struct({
|
|
1425
|
-
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1426
|
-
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1427
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1428
|
-
attachments: Schema$1.optionalKey(EmailAttachments),
|
|
1429
|
-
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1430
|
-
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1431
|
-
templateData: Schema$1.optionalKey(TemplateData),
|
|
1432
|
-
inReplyToMessageId: Schema$1.optionalKey(Schema$1.Union([MessageId, Schema$1.Null])),
|
|
1433
|
-
replyTo: Schema$1.optionalKey(ReplyToAddresses),
|
|
1434
|
-
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([UnsubscribeId, Schema$1.Null])),
|
|
1435
|
-
tracking: Schema$1.optionalKey(EmailTrackingOverrideV1),
|
|
1436
|
-
footer: Schema$1.optionalKey(EmailFooterOverride)
|
|
1437
|
-
}).annotate({ identifier: "EmailDispatchContent" });
|
|
1438
|
-
const DesignSettings = Schema$1.Struct({
|
|
1439
|
-
design: Schema$1.Union([Design, Schema$1.Null]),
|
|
1440
|
-
footerCompleteness: Schema$1.Struct({ missingAddress: Schema$1.Boolean })
|
|
1441
|
-
}).annotate({ identifier: "DesignSettings" });
|
|
1442
|
-
const Organization = Schema$1.Struct({
|
|
1443
|
-
id: Schema$1.String,
|
|
1444
|
-
billingAccountId: Schema$1.String,
|
|
1209
|
+
const TemplateFamily = Schema$1.Struct({
|
|
1210
|
+
id: TemplateFamilyId,
|
|
1211
|
+
organizationId: OrganizationId,
|
|
1445
1212
|
name: Schema$1.String,
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
})
|
|
1473
|
-
const
|
|
1474
|
-
const
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1477
|
-
|
|
1213
|
+
members: Schema$1.Array(Schema$1.Struct({
|
|
1214
|
+
id: TemplateId,
|
|
1215
|
+
name: Schema$1.String,
|
|
1216
|
+
slug: Schema$1.String,
|
|
1217
|
+
channel: Schema$1.Literal("email"),
|
|
1218
|
+
variableSchema: Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]),
|
|
1219
|
+
status: Schema$1.Literals([
|
|
1220
|
+
"draft",
|
|
1221
|
+
"pending",
|
|
1222
|
+
"approved",
|
|
1223
|
+
"published",
|
|
1224
|
+
"rejected",
|
|
1225
|
+
"archived"
|
|
1226
|
+
]),
|
|
1227
|
+
isActive: Schema$1.Boolean,
|
|
1228
|
+
version: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1229
|
+
createdAt: Schema$1.String,
|
|
1230
|
+
updatedAt: Schema$1.String
|
|
1231
|
+
})),
|
|
1232
|
+
createdAt: Schema$1.String,
|
|
1233
|
+
updatedAt: Schema$1.String
|
|
1234
|
+
}).annotate({ identifier: "TemplateFamily" });
|
|
1235
|
+
const EmailAttachments = Schema$1.Union([Schema$1.Array(EmailAttachment).check(Schema$1.isMaxLength(10).annotate({ expected: "a value with a length of at most 10" })), Schema$1.Null]).annotate({ identifier: "EmailAttachments" });
|
|
1236
|
+
const EmailRecipients = Schema$1.Array(EmailRecipient).check(Schema$1.isMinLength(1).annotate({
|
|
1237
|
+
expected: "a value with a length of at least 1",
|
|
1238
|
+
identifier: "EmailRecipients"
|
|
1239
|
+
}));
|
|
1240
|
+
const EmailCcRecipients = Schema$1.Union([Schema$1.Union([Schema$1.Array(EmailRecipient), Schema$1.Null]), Schema$1.Null]).annotate({ identifier: "EmailCcRecipients" });
|
|
1241
|
+
const EmailBccRecipients = Schema$1.Union([Schema$1.Union([Schema$1.Array(EmailRecipient), Schema$1.Null]), Schema$1.Null]).annotate({ identifier: "EmailBccRecipients" });
|
|
1242
|
+
const CompletedMedia = Schema$1.Struct({
|
|
1243
|
+
media: Media,
|
|
1244
|
+
downloadUrl: Schema$1.String
|
|
1245
|
+
}).annotate({ identifier: "CompletedMedia" });
|
|
1246
|
+
const ContactListItem = Schema$1.Struct({
|
|
1247
|
+
id: ContactId,
|
|
1478
1248
|
organizationId: OrganizationId,
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1249
|
+
type: Schema$1.Literals(["human", "system"]),
|
|
1250
|
+
name: Schema$1.String,
|
|
1251
|
+
displayName: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1252
|
+
avatar: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1253
|
+
identities: Schema$1.Array(ContactIdentity),
|
|
1254
|
+
humanProfile: Schema$1.Union([HumanProfile, Schema$1.Null]),
|
|
1255
|
+
capabilities: Schema$1.Array(Schema$1.String),
|
|
1256
|
+
tags: Schema$1.Array(Schema$1.String),
|
|
1257
|
+
accessLevel: Schema$1.Literals([
|
|
1258
|
+
"public",
|
|
1259
|
+
"authenticated",
|
|
1260
|
+
"vip",
|
|
1261
|
+
"internal"
|
|
1483
1262
|
]),
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1263
|
+
accessConfig: Schema$1.Union([ContactAccessConfig, Schema$1.Null]),
|
|
1264
|
+
preferences: Schema$1.Union([ContactPreferences, Schema$1.Null]),
|
|
1265
|
+
status: Schema$1.Literals([
|
|
1266
|
+
"active",
|
|
1267
|
+
"paused",
|
|
1268
|
+
"blocked",
|
|
1269
|
+
"archived"
|
|
1270
|
+
]),
|
|
1271
|
+
statusReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1272
|
+
externalId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1273
|
+
metadata: Schema$1.Union([JsonObject, Schema$1.Null]),
|
|
1487
1274
|
createdAt: Schema$1.String,
|
|
1488
1275
|
updatedAt: Schema$1.String,
|
|
1489
|
-
createdBy:
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
1496
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1497
|
-
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1498
|
-
"transactional",
|
|
1499
|
-
"marketing",
|
|
1500
|
-
"support",
|
|
1501
|
-
"notification",
|
|
1502
|
-
"verification",
|
|
1503
|
-
"reminder",
|
|
1504
|
-
"alert"
|
|
1505
|
-
]), Schema$1.Null]), Schema$1.Null])),
|
|
1506
|
-
source: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1507
|
-
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1508
|
-
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1509
|
-
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
1510
|
-
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
1511
|
-
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
1512
|
-
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
1513
|
-
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1514
|
-
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1515
|
-
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
1516
|
-
}).annotate({ identifier: "CreateTemplatePayload" });
|
|
1517
|
-
const Template = Schema$1.Struct({
|
|
1518
|
-
id: TemplateId,
|
|
1276
|
+
createdBy: Schema$1.Union([ContactId, Schema$1.Null]),
|
|
1277
|
+
lastModifiedBy: Schema$1.Union([ContactId, Schema$1.Null]),
|
|
1278
|
+
engagement: ContactActivitySummary
|
|
1279
|
+
}).annotate({ identifier: "ContactListItem" });
|
|
1280
|
+
const Contact = Schema$1.Struct({
|
|
1281
|
+
id: ContactId,
|
|
1519
1282
|
organizationId: OrganizationId,
|
|
1283
|
+
type: Schema$1.Literals(["human", "system"]),
|
|
1520
1284
|
name: Schema$1.String,
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1285
|
+
displayName: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1286
|
+
avatar: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1287
|
+
identities: Schema$1.Array(ContactIdentity),
|
|
1288
|
+
humanProfile: Schema$1.Union([HumanProfile, Schema$1.Null]),
|
|
1289
|
+
capabilities: Schema$1.Array(Schema$1.String),
|
|
1290
|
+
tags: Schema$1.Array(Schema$1.String),
|
|
1291
|
+
accessLevel: Schema$1.Literals([
|
|
1292
|
+
"public",
|
|
1293
|
+
"authenticated",
|
|
1294
|
+
"vip",
|
|
1295
|
+
"internal"
|
|
1527
1296
|
]),
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
preheader: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1540
|
-
headers: Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])
|
|
1541
|
-
}), Schema$1.Null]),
|
|
1542
|
-
sms: Schema$1.Union([Schema$1.Struct({
|
|
1543
|
-
body: Schema$1.String,
|
|
1544
|
-
encoding: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1545
|
-
estimatedSegments: Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })), Schema$1.Null]),
|
|
1546
|
-
category: Schema$1.Union([Schema$1.Literals([
|
|
1547
|
-
"transactional",
|
|
1548
|
-
"promotional",
|
|
1549
|
-
"service_implicit"
|
|
1550
|
-
]), Schema$1.Null])
|
|
1551
|
-
}), Schema$1.Null]),
|
|
1552
|
-
whatsapp: Schema$1.Union([Schema$1.Struct({
|
|
1553
|
-
name: Schema$1.String,
|
|
1554
|
-
language: Schema$1.String,
|
|
1555
|
-
category: Schema$1.Literals([
|
|
1556
|
-
"marketing",
|
|
1557
|
-
"utility",
|
|
1558
|
-
"authentication",
|
|
1559
|
-
"service"
|
|
1560
|
-
]),
|
|
1561
|
-
headerType: Schema$1.Union([Schema$1.Literals([
|
|
1562
|
-
"text",
|
|
1563
|
-
"image",
|
|
1564
|
-
"video",
|
|
1565
|
-
"document",
|
|
1566
|
-
"none"
|
|
1567
|
-
]), Schema$1.Null]),
|
|
1568
|
-
headerMediaType: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1569
|
-
headerContent: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1570
|
-
bodyContent: Schema$1.String,
|
|
1571
|
-
footerContent: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1572
|
-
components: Schema$1.Union([Schema$1.Array(Schema$1.Struct({
|
|
1573
|
-
type: Schema$1.Literals([
|
|
1574
|
-
"header",
|
|
1575
|
-
"body",
|
|
1576
|
-
"footer",
|
|
1577
|
-
"button"
|
|
1578
|
-
]),
|
|
1579
|
-
format: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
1580
|
-
"TEXT",
|
|
1581
|
-
"IMAGE",
|
|
1582
|
-
"VIDEO",
|
|
1583
|
-
"DOCUMENT"
|
|
1584
|
-
]), Schema$1.Null])),
|
|
1585
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1586
|
-
example: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1587
|
-
header_text: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
1588
|
-
body_text: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Array(Schema$1.String)), Schema$1.Null]))
|
|
1589
|
-
}), Schema$1.Null])),
|
|
1590
|
-
buttons: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Struct({
|
|
1591
|
-
type: Schema$1.Literals([
|
|
1592
|
-
"QUICK_REPLY",
|
|
1593
|
-
"URL",
|
|
1594
|
-
"PHONE_NUMBER",
|
|
1595
|
-
"COPY_CODE"
|
|
1596
|
-
]),
|
|
1597
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1598
|
-
url: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1599
|
-
phone_number: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1600
|
-
example: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1601
|
-
})), Schema$1.Null])),
|
|
1602
|
-
parameters: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Struct({
|
|
1603
|
-
type: Schema$1.Literals([
|
|
1604
|
-
"text",
|
|
1605
|
-
"currency",
|
|
1606
|
-
"date_time",
|
|
1607
|
-
"image",
|
|
1608
|
-
"document",
|
|
1609
|
-
"video"
|
|
1610
|
-
]),
|
|
1611
|
-
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1612
|
-
currency: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1613
|
-
fallback_value: Schema$1.String,
|
|
1614
|
-
code: Schema$1.String,
|
|
1615
|
-
amount_1000: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
1616
|
-
}), Schema$1.Null])),
|
|
1617
|
-
date_time: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({ fallback_value: Schema$1.String }), Schema$1.Null])),
|
|
1618
|
-
image: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({ link: Schema$1.String }), Schema$1.Null])),
|
|
1619
|
-
document: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1620
|
-
link: Schema$1.String,
|
|
1621
|
-
filename: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
1622
|
-
}), Schema$1.Null])),
|
|
1623
|
-
video: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({ link: Schema$1.String }), Schema$1.Null]))
|
|
1624
|
-
})), Schema$1.Null]))
|
|
1625
|
-
})), Schema$1.Null]),
|
|
1626
|
-
buttons: Schema$1.Union([Schema$1.Array(Schema$1.Record(Schema$1.String, JsonValue)), Schema$1.Null]),
|
|
1627
|
-
examples: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null])
|
|
1628
|
-
}), Schema$1.Null]),
|
|
1629
|
-
variableSchema: Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]),
|
|
1630
|
-
compliance: Schema$1.Union([TemplateCompliance, Schema$1.Null]),
|
|
1631
|
-
designOverrides: Schema$1.Union([Design, Schema$1.Null]),
|
|
1632
|
-
usageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1633
|
-
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1634
|
-
status: Schema$1.String,
|
|
1635
|
-
isActive: Schema$1.Boolean,
|
|
1636
|
-
isDefault: Schema$1.Boolean,
|
|
1637
|
-
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1638
|
-
publishedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1639
|
-
publishedBy: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1297
|
+
accessConfig: Schema$1.Union([ContactAccessConfig, Schema$1.Null]),
|
|
1298
|
+
preferences: Schema$1.Union([ContactPreferences, Schema$1.Null]),
|
|
1299
|
+
status: Schema$1.Literals([
|
|
1300
|
+
"active",
|
|
1301
|
+
"paused",
|
|
1302
|
+
"blocked",
|
|
1303
|
+
"archived"
|
|
1304
|
+
]),
|
|
1305
|
+
statusReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1306
|
+
externalId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1307
|
+
metadata: Schema$1.Union([JsonObject, Schema$1.Null]),
|
|
1640
1308
|
createdAt: Schema$1.String,
|
|
1641
|
-
updatedAt: Schema$1.String
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1646
|
-
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
1647
|
-
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1648
|
-
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1649
|
-
"transactional",
|
|
1650
|
-
"marketing",
|
|
1651
|
-
"support",
|
|
1652
|
-
"notification",
|
|
1653
|
-
"verification",
|
|
1654
|
-
"reminder",
|
|
1655
|
-
"alert"
|
|
1656
|
-
]), Schema$1.Null]), Schema$1.Null])),
|
|
1657
|
-
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
1658
|
-
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1659
|
-
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
1660
|
-
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
1661
|
-
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
1662
|
-
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
1663
|
-
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1664
|
-
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1665
|
-
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
1666
|
-
}) }).annotate({ identifier: "UpdateTemplatePayload" });
|
|
1667
|
-
const EmailBccRecipients = Schema$1.Union([Union_6, Schema$1.Null]).annotate({ identifier: "EmailBccRecipients" });
|
|
1668
|
-
const EmailCcRecipients = Schema$1.Union([Union_7, Schema$1.Null]).annotate({ identifier: "EmailCcRecipients" });
|
|
1669
|
-
const SmsCampaignContent = Schema$1.Struct({
|
|
1670
|
-
channel: Schema$1.Literal("sms"),
|
|
1671
|
-
sms: SmsContent,
|
|
1672
|
-
conversationId: Schema$1.optionalKey(CampaignConversationRef),
|
|
1673
|
-
metadata: Schema$1.optionalKey(CampaignContentMetadata)
|
|
1674
|
-
}).annotate({ identifier: "SmsCampaignContent" });
|
|
1675
|
-
const SmsSendMessagePayload = Schema$1.Struct({
|
|
1676
|
-
conversationId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ConversationId, Schema$1.Null]), Schema$1.Null])),
|
|
1677
|
-
metadata: Schema$1.optionalKey(MessageMetadata),
|
|
1678
|
-
channel: Schema$1.Literal("sms"),
|
|
1679
|
-
to: SmsRecipients,
|
|
1680
|
-
sms: SmsContent
|
|
1681
|
-
}).annotate({
|
|
1682
|
-
description: "SMS sending is coming soon. The payload is accepted by the contract today and the endpoint answers 403 until the channel launches for your organization.",
|
|
1683
|
-
identifier: "SmsSendMessagePayload"
|
|
1684
|
-
});
|
|
1685
|
-
const SmsCampaignContentInput = Schema$1.Struct({
|
|
1686
|
-
channel: Schema$1.Literal("sms"),
|
|
1687
|
-
sms: SmsDispatchContent,
|
|
1688
|
-
conversationId: Schema$1.optionalKey(CampaignConversationRef),
|
|
1689
|
-
metadata: Schema$1.optionalKey(CampaignContentMetadata)
|
|
1690
|
-
}).annotate({ identifier: "SmsCampaignContentInput" });
|
|
1691
|
-
const SmsDispatchSendMessagePayload = Schema$1.Struct({
|
|
1692
|
-
conversationId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ConversationId, Schema$1.Null]), Schema$1.Null])),
|
|
1693
|
-
metadata: Schema$1.optionalKey(MessageMetadata),
|
|
1694
|
-
channel: Schema$1.Literal("sms"),
|
|
1695
|
-
to: SmsRecipients,
|
|
1696
|
-
sms: SmsDispatchContent
|
|
1697
|
-
}).annotate({
|
|
1698
|
-
description: "SMS sending is coming soon. The payload is accepted by the contract today and the endpoint answers 403 until the channel launches for your organization.",
|
|
1699
|
-
identifier: "SmsDispatchSendMessagePayload"
|
|
1700
|
-
});
|
|
1701
|
-
const WhatsAppCampaignContent = Schema$1.Struct({
|
|
1702
|
-
channel: Schema$1.Literal("whatsapp"),
|
|
1703
|
-
whatsapp: WhatsAppContent,
|
|
1704
|
-
conversationId: Schema$1.optionalKey(CampaignConversationRef),
|
|
1705
|
-
metadata: Schema$1.optionalKey(CampaignContentMetadata)
|
|
1706
|
-
}).annotate({ identifier: "WhatsAppCampaignContent" });
|
|
1707
|
-
const WhatsAppSendMessagePayload = Schema$1.Struct({
|
|
1708
|
-
conversationId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ConversationId, Schema$1.Null]), Schema$1.Null])),
|
|
1709
|
-
metadata: Schema$1.optionalKey(MessageMetadata),
|
|
1710
|
-
channel: Schema$1.Literal("whatsapp"),
|
|
1711
|
-
to: WhatsAppRecipients,
|
|
1712
|
-
whatsapp: WhatsAppContent
|
|
1713
|
-
}).annotate({
|
|
1714
|
-
description: "WhatsApp sending is coming soon. The payload is accepted by the contract today and the endpoint answers 403 until the channel launches for your organization.",
|
|
1715
|
-
identifier: "WhatsAppSendMessagePayload"
|
|
1716
|
-
});
|
|
1717
|
-
const WhatsAppCampaignContentInput = Schema$1.Struct({
|
|
1718
|
-
channel: Schema$1.Literal("whatsapp"),
|
|
1719
|
-
whatsapp: WhatsAppDispatchContent,
|
|
1720
|
-
conversationId: Schema$1.optionalKey(CampaignConversationRef),
|
|
1721
|
-
metadata: Schema$1.optionalKey(CampaignContentMetadata)
|
|
1722
|
-
}).annotate({ identifier: "WhatsAppCampaignContentInput" });
|
|
1723
|
-
const WhatsAppDispatchSendMessagePayload = Schema$1.Struct({
|
|
1724
|
-
conversationId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ConversationId, Schema$1.Null]), Schema$1.Null])),
|
|
1725
|
-
metadata: Schema$1.optionalKey(MessageMetadata),
|
|
1726
|
-
channel: Schema$1.Literal("whatsapp"),
|
|
1727
|
-
to: WhatsAppRecipients,
|
|
1728
|
-
whatsapp: WhatsAppDispatchContent
|
|
1729
|
-
}).annotate({
|
|
1730
|
-
description: "WhatsApp sending is coming soon. The payload is accepted by the contract today and the endpoint answers 403 until the channel launches for your organization.",
|
|
1731
|
-
identifier: "WhatsAppDispatchSendMessagePayload"
|
|
1732
|
-
});
|
|
1733
|
-
const EmailCampaignContent = Schema$1.Struct({
|
|
1734
|
-
channel: Schema$1.Literal("email"),
|
|
1735
|
-
email: EmailContent,
|
|
1736
|
-
conversationId: Schema$1.optionalKey(CampaignConversationRef),
|
|
1737
|
-
metadata: Schema$1.optionalKey(CampaignContentMetadata)
|
|
1738
|
-
}).annotate({ identifier: "EmailCampaignContent" });
|
|
1739
|
-
const EmailCampaignContentInput = Schema$1.Struct({
|
|
1740
|
-
channel: Schema$1.Literal("email"),
|
|
1741
|
-
email: EmailDispatchContent,
|
|
1742
|
-
conversationId: Schema$1.optionalKey(CampaignConversationRef),
|
|
1743
|
-
metadata: Schema$1.optionalKey(CampaignContentMetadata)
|
|
1744
|
-
}).annotate({ identifier: "EmailCampaignContentInput" });
|
|
1309
|
+
updatedAt: Schema$1.String,
|
|
1310
|
+
createdBy: Schema$1.Union([ContactId, Schema$1.Null]),
|
|
1311
|
+
lastModifiedBy: Schema$1.Union([ContactId, Schema$1.Null])
|
|
1312
|
+
}).annotate({ identifier: "Contact" });
|
|
1745
1313
|
const Conversation = Schema$1.Struct({
|
|
1746
1314
|
id: ConversationId,
|
|
1747
1315
|
organizationId: OrganizationId,
|
|
@@ -1749,12 +1317,8 @@ const Conversation = Schema$1.Struct({
|
|
|
1749
1317
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1750
1318
|
externalId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1751
1319
|
parentConversationId: Schema$1.Union([ConversationId, Schema$1.Null]),
|
|
1752
|
-
channels:
|
|
1753
|
-
primaryChannel: Schema$1.
|
|
1754
|
-
"sms",
|
|
1755
|
-
"whatsapp",
|
|
1756
|
-
"email"
|
|
1757
|
-
]),
|
|
1320
|
+
channels: Schema$1.Array(Schema$1.Literal("email")),
|
|
1321
|
+
primaryChannel: Schema$1.Literal("email"),
|
|
1758
1322
|
status: Schema$1.Literals([
|
|
1759
1323
|
"active",
|
|
1760
1324
|
"waiting",
|
|
@@ -1775,12 +1339,12 @@ const Conversation = Schema$1.Struct({
|
|
|
1775
1339
|
"moderate",
|
|
1776
1340
|
"complex"
|
|
1777
1341
|
]),
|
|
1778
|
-
metadata:
|
|
1342
|
+
metadata: Schema$1.Union([ConversationMetadata, Schema$1.Null]),
|
|
1779
1343
|
actorTracking: ActorTracking,
|
|
1780
1344
|
metrics: ConversationMetrics,
|
|
1781
|
-
context:
|
|
1782
|
-
tags:
|
|
1783
|
-
categories:
|
|
1345
|
+
context: Schema$1.Union([ConversationContext, Schema$1.Null]),
|
|
1346
|
+
tags: Schema$1.Array(Schema$1.String),
|
|
1347
|
+
categories: Schema$1.Array(Schema$1.String),
|
|
1784
1348
|
isTest: Schema$1.Boolean,
|
|
1785
1349
|
isInternal: Schema$1.Boolean,
|
|
1786
1350
|
isPrivate: Schema$1.Boolean,
|
|
@@ -1809,12 +1373,8 @@ const ConversationDetail = Schema$1.Struct({
|
|
|
1809
1373
|
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1810
1374
|
externalId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1811
1375
|
parentConversationId: Schema$1.Union([ConversationId, Schema$1.Null]),
|
|
1812
|
-
channels:
|
|
1813
|
-
primaryChannel: Schema$1.
|
|
1814
|
-
"sms",
|
|
1815
|
-
"whatsapp",
|
|
1816
|
-
"email"
|
|
1817
|
-
]),
|
|
1376
|
+
channels: Schema$1.Array(Schema$1.Literal("email")),
|
|
1377
|
+
primaryChannel: Schema$1.Literal("email"),
|
|
1818
1378
|
status: Schema$1.Literals([
|
|
1819
1379
|
"active",
|
|
1820
1380
|
"waiting",
|
|
@@ -1835,12 +1395,12 @@ const ConversationDetail = Schema$1.Struct({
|
|
|
1835
1395
|
"moderate",
|
|
1836
1396
|
"complex"
|
|
1837
1397
|
]),
|
|
1838
|
-
metadata:
|
|
1398
|
+
metadata: Schema$1.Union([ConversationMetadata, Schema$1.Null]),
|
|
1839
1399
|
actorTracking: ActorTracking,
|
|
1840
1400
|
metrics: ConversationMetrics,
|
|
1841
|
-
context:
|
|
1842
|
-
tags:
|
|
1843
|
-
categories:
|
|
1401
|
+
context: Schema$1.Union([ConversationContext, Schema$1.Null]),
|
|
1402
|
+
tags: Schema$1.Array(Schema$1.String),
|
|
1403
|
+
categories: Schema$1.Array(Schema$1.String),
|
|
1844
1404
|
isTest: Schema$1.Boolean,
|
|
1845
1405
|
isInternal: Schema$1.Boolean,
|
|
1846
1406
|
isPrivate: Schema$1.Boolean,
|
|
@@ -1863,74 +1423,163 @@ const ConversationDetail = Schema$1.Struct({
|
|
|
1863
1423
|
createdBy: Schema$1.Union([ActorId, Schema$1.Null]),
|
|
1864
1424
|
participants: Schema$1.Array(ConversationParticipant)
|
|
1865
1425
|
}).annotate({ identifier: "ConversationDetail" });
|
|
1866
|
-
const
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1426
|
+
const DesignSettings = Schema$1.Struct({
|
|
1427
|
+
design: Schema$1.Union([Design, Schema$1.Null]),
|
|
1428
|
+
footerCompleteness: Schema$1.Struct({ missingAddress: Schema$1.Boolean })
|
|
1429
|
+
}).annotate({ identifier: "DesignSettings" });
|
|
1430
|
+
const Organization = Schema$1.Struct({
|
|
1431
|
+
id: Schema$1.String,
|
|
1432
|
+
billingAccountId: Schema$1.String,
|
|
1870
1433
|
name: Schema$1.String,
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
"public",
|
|
1879
|
-
"authenticated",
|
|
1880
|
-
"vip",
|
|
1881
|
-
"internal"
|
|
1882
|
-
]),
|
|
1883
|
-
accessConfig: Union_3,
|
|
1884
|
-
preferences: Union_4,
|
|
1885
|
-
status: Schema$1.Literals([
|
|
1886
|
-
"active",
|
|
1887
|
-
"paused",
|
|
1888
|
-
"blocked",
|
|
1889
|
-
"archived"
|
|
1890
|
-
]),
|
|
1891
|
-
statusReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1892
|
-
externalId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1893
|
-
metadata: Union_5,
|
|
1434
|
+
slug: Schema$1.String,
|
|
1435
|
+
defaultCurrency: Schema$1.String,
|
|
1436
|
+
countryCode: Schema$1.String,
|
|
1437
|
+
timezone: Schema$1.String,
|
|
1438
|
+
billingEmail: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1439
|
+
plan: Schema$1.String,
|
|
1440
|
+
isActive: Schema$1.Boolean,
|
|
1894
1441
|
createdAt: Schema$1.String,
|
|
1895
1442
|
updatedAt: Schema$1.String,
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1443
|
+
metadata: Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]),
|
|
1444
|
+
design: Schema$1.Union([Design, Schema$1.Null]),
|
|
1445
|
+
replyToDefault: Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]),
|
|
1446
|
+
defaultUnsubscribeGroupId: Schema$1.Union([UnsubscribeId, Schema$1.Null]),
|
|
1447
|
+
emailFooterEnabledDefault: Schema$1.Union([Schema$1.Boolean, Schema$1.Null]),
|
|
1448
|
+
messagesUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1449
|
+
messagesUsedThisMonth: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1450
|
+
emailUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1451
|
+
emailUsedThisMonth: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1452
|
+
contactsUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1453
|
+
conversationsUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1454
|
+
teamMembersUsed: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
1455
|
+
messagesResetAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
|
|
1456
|
+
}).annotate({ identifier: "Organization" });
|
|
1457
|
+
const OperationAccepted = Schema$1.Struct({
|
|
1458
|
+
operation: Operation,
|
|
1459
|
+
links: Schema$1.Struct({
|
|
1460
|
+
self: Schema$1.String.check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/v1\\/")).annotate({ expected: "a string matching the RegExp ^\\/v1\\/" })),
|
|
1461
|
+
resource: OperationResourceLink
|
|
1462
|
+
})
|
|
1463
|
+
}).annotate({ identifier: "OperationAccepted" });
|
|
1464
|
+
const Template = Schema$1.Struct({
|
|
1465
|
+
id: TemplateId,
|
|
1901
1466
|
organizationId: OrganizationId,
|
|
1902
|
-
type: Schema$1.Literals(["human", "system"]),
|
|
1903
1467
|
name: Schema$1.String,
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
]),
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
]),
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1468
|
+
slug: Schema$1.String,
|
|
1469
|
+
familyId: Schema$1.Union([TemplateFamilyId, Schema$1.Null]),
|
|
1470
|
+
channel: Schema$1.Literal("email"),
|
|
1471
|
+
origin: Schema$1.Literals(["dashboard", "tsx"]),
|
|
1472
|
+
description: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1473
|
+
category: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1474
|
+
fromDefault: Schema$1.optionalKey(Schema$1.Union([TemplateFromDefault, Schema$1.Null])),
|
|
1475
|
+
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
1476
|
+
trackingDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
|
|
1477
|
+
opens: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1478
|
+
clicks: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null]))
|
|
1479
|
+
}), Schema$1.Null])),
|
|
1480
|
+
email: Schema$1.Union([Schema$1.Struct({
|
|
1481
|
+
subject: Schema$1.String,
|
|
1482
|
+
preheader: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1483
|
+
headers: Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])
|
|
1484
|
+
}), Schema$1.Null]),
|
|
1485
|
+
variableSchema: Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]),
|
|
1486
|
+
compliance: Schema$1.Union([TemplateCompliance, Schema$1.Null]),
|
|
1487
|
+
designOverrides: Schema$1.Union([Design, Schema$1.Null]),
|
|
1488
|
+
usageCount: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
1489
|
+
lastUsedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1490
|
+
status: Schema$1.String,
|
|
1491
|
+
isActive: Schema$1.Boolean,
|
|
1492
|
+
isDefault: Schema$1.Boolean,
|
|
1493
|
+
version: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
1494
|
+
publishedAt: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1495
|
+
publishedBy: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1927
1496
|
createdAt: Schema$1.String,
|
|
1928
|
-
updatedAt: Schema$1.String
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
}).annotate({
|
|
1933
|
-
|
|
1497
|
+
updatedAt: Schema$1.String
|
|
1498
|
+
}).annotate({ identifier: "Template" });
|
|
1499
|
+
const CreateTemplatePayload = Schema$1.Struct({
|
|
1500
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1501
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1502
|
+
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
1503
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1504
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1505
|
+
"transactional",
|
|
1506
|
+
"marketing",
|
|
1507
|
+
"support",
|
|
1508
|
+
"notification",
|
|
1509
|
+
"verification",
|
|
1510
|
+
"reminder",
|
|
1511
|
+
"alert"
|
|
1512
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
1513
|
+
source: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
1514
|
+
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1515
|
+
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1516
|
+
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
1517
|
+
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
1518
|
+
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
1519
|
+
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
1520
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1521
|
+
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1522
|
+
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
1523
|
+
}).annotate({ identifier: "CreateTemplatePayload" });
|
|
1524
|
+
const UpdateTemplatePayload = Schema$1.Struct({ data: Schema$1.Struct({
|
|
1525
|
+
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1526
|
+
slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1527
|
+
origin: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["dashboard", "tsx"]), Schema$1.Null])),
|
|
1528
|
+
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
1529
|
+
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Literals([
|
|
1530
|
+
"transactional",
|
|
1531
|
+
"marketing",
|
|
1532
|
+
"support",
|
|
1533
|
+
"notification",
|
|
1534
|
+
"verification",
|
|
1535
|
+
"reminder",
|
|
1536
|
+
"alert"
|
|
1537
|
+
]), Schema$1.Null]), Schema$1.Null])),
|
|
1538
|
+
fromDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateFromDefault, Schema$1.Null]), Schema$1.Null])),
|
|
1539
|
+
replyToDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null]), Schema$1.Null])),
|
|
1540
|
+
variableSchema: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(TemplateVariable), Schema$1.Null]), Schema$1.Null])),
|
|
1541
|
+
compliance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplateCompliance, Schema$1.Null]), Schema$1.Null])),
|
|
1542
|
+
performance: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([TemplatePerformance, Schema$1.Null]), Schema$1.Null])),
|
|
1543
|
+
designOverrides: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Design, Schema$1.Null]), Schema$1.Null])),
|
|
1544
|
+
isActive: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1545
|
+
isDefault: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
1546
|
+
version: Schema$1.optionalKey(Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema$1.Null]))
|
|
1547
|
+
}) }).annotate({ identifier: "UpdateTemplatePayload" });
|
|
1548
|
+
const EmailContent = Schema$1.Struct({
|
|
1549
|
+
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1550
|
+
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1551
|
+
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1552
|
+
attachments: Schema$1.optionalKey(EmailAttachments),
|
|
1553
|
+
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1554
|
+
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1555
|
+
templateData: Schema$1.optionalKey(TemplateData),
|
|
1556
|
+
inReplyToMessageId: Schema$1.optionalKey(Schema$1.Union([MessageId, Schema$1.Null])),
|
|
1557
|
+
replyTo: Schema$1.optionalKey(ReplyToAddresses),
|
|
1558
|
+
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([UnsubscribeId, Schema$1.Null])),
|
|
1559
|
+
tracking: Schema$1.optionalKey(EmailTrackingOverrideV1),
|
|
1560
|
+
footer: Schema$1.optionalKey(EmailFooterOverride)
|
|
1561
|
+
}).annotate({ identifier: "EmailContent" });
|
|
1562
|
+
const EmailDispatchContent = Schema$1.Struct({
|
|
1563
|
+
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1564
|
+
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1565
|
+
text: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
1566
|
+
attachments: Schema$1.optionalKey(EmailAttachments),
|
|
1567
|
+
templateId: Schema$1.optionalKey(Schema$1.Union([TemplateId, Schema$1.Null])),
|
|
1568
|
+
templateSlug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^(?=.{1,100}$)[a-z0-9]+(?:-[a-z0-9]+)*$" })), Schema$1.Null])),
|
|
1569
|
+
templateData: Schema$1.optionalKey(TemplateData),
|
|
1570
|
+
inReplyToMessageId: Schema$1.optionalKey(Schema$1.Union([MessageId, Schema$1.Null])),
|
|
1571
|
+
replyTo: Schema$1.optionalKey(ReplyToAddresses),
|
|
1572
|
+
unsubscribeGroupId: Schema$1.optionalKey(Schema$1.Union([UnsubscribeId, Schema$1.Null])),
|
|
1573
|
+
tracking: Schema$1.optionalKey(EmailTrackingOverrideV1),
|
|
1574
|
+
footer: Schema$1.optionalKey(EmailFooterOverride)
|
|
1575
|
+
}).annotate({ identifier: "EmailDispatchContent" });
|
|
1576
|
+
const EmailCampaignContent = Schema$1.Struct({
|
|
1577
|
+
channel: Schema$1.Literal("email"),
|
|
1578
|
+
email: EmailContent,
|
|
1579
|
+
conversationId: Schema$1.optionalKey(CampaignConversationRef),
|
|
1580
|
+
metadata: Schema$1.optionalKey(CampaignContentMetadata)
|
|
1581
|
+
}).annotate({ identifier: "EmailCampaignContent" });
|
|
1582
|
+
const EmailSendMessagePayload = Schema$1.Struct({
|
|
1934
1583
|
conversationId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ConversationId, Schema$1.Null]), Schema$1.Null])),
|
|
1935
1584
|
metadata: Schema$1.optionalKey(MessageMetadata),
|
|
1936
1585
|
channel: Schema$1.Literal("email"),
|
|
@@ -1938,9 +1587,15 @@ const EmailDispatchSendMessagePayload = Schema$1.Struct({
|
|
|
1938
1587
|
cc: Schema$1.optionalKey(EmailCcRecipients),
|
|
1939
1588
|
bcc: Schema$1.optionalKey(EmailBccRecipients),
|
|
1940
1589
|
from: Schema$1.optionalKey(EmailSender),
|
|
1941
|
-
email:
|
|
1942
|
-
}).annotate({ identifier: "
|
|
1943
|
-
const
|
|
1590
|
+
email: EmailContent
|
|
1591
|
+
}).annotate({ identifier: "EmailSendMessagePayload" });
|
|
1592
|
+
const EmailCampaignContentInput = Schema$1.Struct({
|
|
1593
|
+
channel: Schema$1.Literal("email"),
|
|
1594
|
+
email: EmailDispatchContent,
|
|
1595
|
+
conversationId: Schema$1.optionalKey(CampaignConversationRef),
|
|
1596
|
+
metadata: Schema$1.optionalKey(CampaignContentMetadata)
|
|
1597
|
+
}).annotate({ identifier: "EmailCampaignContentInput" });
|
|
1598
|
+
const EmailDispatchSendMessagePayload = Schema$1.Struct({
|
|
1944
1599
|
conversationId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ConversationId, Schema$1.Null]), Schema$1.Null])),
|
|
1945
1600
|
metadata: Schema$1.optionalKey(MessageMetadata),
|
|
1946
1601
|
channel: Schema$1.Literal("email"),
|
|
@@ -1948,42 +1603,22 @@ const EmailSendMessagePayload = Schema$1.Struct({
|
|
|
1948
1603
|
cc: Schema$1.optionalKey(EmailCcRecipients),
|
|
1949
1604
|
bcc: Schema$1.optionalKey(EmailBccRecipients),
|
|
1950
1605
|
from: Schema$1.optionalKey(EmailSender),
|
|
1951
|
-
email:
|
|
1952
|
-
}).annotate({ identifier: "
|
|
1953
|
-
const CampaignContent = Schema$1.Union([
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
]).annotate({ identifier: "CampaignContent" });
|
|
1958
|
-
const CampaignContentInput = Schema$1.Union([
|
|
1959
|
-
EmailCampaignContentInput,
|
|
1960
|
-
SmsCampaignContentInput,
|
|
1961
|
-
WhatsAppCampaignContentInput
|
|
1962
|
-
]).annotate({ identifier: "CampaignContentInput" });
|
|
1963
|
-
const DispatchSendMessagePayload = Schema$1.Union([
|
|
1964
|
-
EmailDispatchSendMessagePayload,
|
|
1965
|
-
SmsDispatchSendMessagePayload,
|
|
1966
|
-
WhatsAppDispatchSendMessagePayload
|
|
1967
|
-
]).annotate({ identifier: "DispatchSendMessagePayload" });
|
|
1968
|
-
const SendMessagePayload = Schema$1.Union([
|
|
1969
|
-
EmailSendMessagePayload,
|
|
1970
|
-
SmsSendMessagePayload,
|
|
1971
|
-
WhatsAppSendMessagePayload
|
|
1972
|
-
]).annotate({ identifier: "SendMessagePayload" });
|
|
1606
|
+
email: EmailDispatchContent
|
|
1607
|
+
}).annotate({ identifier: "EmailDispatchSendMessagePayload" });
|
|
1608
|
+
const CampaignContent = Schema$1.Union([EmailCampaignContent]).annotate({ identifier: "CampaignContent" });
|
|
1609
|
+
const SendMessagePayload = Schema$1.Union([EmailSendMessagePayload]).annotate({ identifier: "SendMessagePayload" });
|
|
1610
|
+
const CampaignContentInput = Schema$1.Union([EmailCampaignContentInput]).annotate({ identifier: "CampaignContentInput" });
|
|
1611
|
+
const DispatchSendMessagePayload = Schema$1.Union([EmailDispatchSendMessagePayload]).annotate({ identifier: "DispatchSendMessagePayload" });
|
|
1973
1612
|
const Campaign = Schema$1.Struct({
|
|
1974
1613
|
id: CampaignId,
|
|
1975
1614
|
name: Schema$1.String,
|
|
1976
|
-
channel: Schema$1.
|
|
1977
|
-
"sms",
|
|
1978
|
-
"whatsapp",
|
|
1979
|
-
"email"
|
|
1980
|
-
]),
|
|
1615
|
+
channel: Schema$1.Literal("email"),
|
|
1981
1616
|
content: CampaignContent,
|
|
1982
1617
|
audience: CampaignAudience,
|
|
1983
1618
|
policy: CampaignPolicy,
|
|
1984
1619
|
definition: CampaignDefinitionSummary,
|
|
1985
1620
|
latestRun: Schema$1.Union([CampaignLatestRun, Schema$1.Null]),
|
|
1986
|
-
createdBy: Schema$1.String,
|
|
1621
|
+
createdBy: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
1987
1622
|
actorEmail: Schema$1.String,
|
|
1988
1623
|
memberRole: Schema$1.String,
|
|
1989
1624
|
createdAt: Schema$1.String,
|
|
@@ -2014,7 +1649,7 @@ const CampaignRun = Schema$1.Struct({
|
|
|
2014
1649
|
skippedCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
2015
1650
|
failureReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2016
1651
|
lastContactId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2017
|
-
createdBy: Schema$1.String,
|
|
1652
|
+
createdBy: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2018
1653
|
actorEmail: Schema$1.String,
|
|
2019
1654
|
memberRole: Schema$1.String,
|
|
2020
1655
|
createdAt: Schema$1.String,
|
|
@@ -2037,7 +1672,7 @@ const ScheduledMessage = Schema$1.Struct({
|
|
|
2037
1672
|
referenceId: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2038
1673
|
failureReason: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2039
1674
|
attempts: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
2040
|
-
createdBy: Schema$1.String,
|
|
1675
|
+
createdBy: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
2041
1676
|
actorEmail: Schema$1.String,
|
|
2042
1677
|
memberRole: Schema$1.String,
|
|
2043
1678
|
createdAt: Schema$1.String,
|
|
@@ -2077,8 +1712,9 @@ const ApiKeysCreateRequestJson = Schema$1.Struct({
|
|
|
2077
1712
|
const ApiKeysCreate201 = ApiKeyWithSecret;
|
|
2078
1713
|
const ApiKeysCreate401 = UnauthorizedError;
|
|
2079
1714
|
const ApiKeysCreate402 = PaymentRequiredError;
|
|
2080
|
-
const ApiKeysCreate403 = ForbiddenError;
|
|
1715
|
+
const ApiKeysCreate403 = Schema$1.Union([ForbiddenError]);
|
|
2081
1716
|
const ApiKeysCreate404 = ResourceNotFoundError;
|
|
1717
|
+
const ApiKeysCreate422 = ValidationError;
|
|
2082
1718
|
const ApiKeysCreate500 = InternalError;
|
|
2083
1719
|
const ApiKeysCreate502 = BillingProviderError;
|
|
2084
1720
|
const ApiKeysGetPathParams = Schema$1.Struct({ id: ApiKeyId });
|
|
@@ -2135,8 +1771,9 @@ const ApiKeysRemove502 = BillingProviderError;
|
|
|
2135
1771
|
const ApiKeysRotatePathParams = Schema$1.Struct({ id: ApiKeyId });
|
|
2136
1772
|
const ApiKeysRotate200 = ApiKeyWithSecret;
|
|
2137
1773
|
const ApiKeysRotate401 = UnauthorizedError;
|
|
2138
|
-
const ApiKeysRotate403 = ForbiddenError;
|
|
1774
|
+
const ApiKeysRotate403 = Schema$1.Union([ForbiddenError]);
|
|
2139
1775
|
const ApiKeysRotate404 = ResourceNotFoundError;
|
|
1776
|
+
const ApiKeysRotate422 = ValidationError;
|
|
2140
1777
|
const ApiKeysRotate500 = InternalError;
|
|
2141
1778
|
const ApiKeysGetStatsPathParams = Schema$1.Struct({ id: ApiKeyId });
|
|
2142
1779
|
const ApiKeysGetStatsQuery = Schema$1.Struct({ period: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
@@ -2171,11 +1808,7 @@ const CampaignsList403 = ForbiddenError;
|
|
|
2171
1808
|
const CampaignsList500 = InternalError;
|
|
2172
1809
|
const CampaignsCreateRequestJson = Schema$1.Struct({
|
|
2173
1810
|
name: Schema$1.String,
|
|
2174
|
-
channel: Schema$1.
|
|
2175
|
-
"sms",
|
|
2176
|
-
"whatsapp",
|
|
2177
|
-
"email"
|
|
2178
|
-
]),
|
|
1811
|
+
channel: Schema$1.Literal("email"),
|
|
2179
1812
|
content: CampaignContentInput,
|
|
2180
1813
|
audience: CampaignAudience,
|
|
2181
1814
|
policy: Schema$1.optionalKey(Schema$1.Union([CampaignPolicy, Schema$1.Null]))
|
|
@@ -2448,11 +2081,7 @@ const ContactsGetActivityTimelinePathParams = Schema$1.Struct({ id: ContactId })
|
|
|
2448
2081
|
const ContactsGetActivityTimelineQuery = Schema$1.Struct({
|
|
2449
2082
|
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2450
2083
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2451
|
-
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.
|
|
2452
|
-
"sms",
|
|
2453
|
-
"whatsapp",
|
|
2454
|
-
"email"
|
|
2455
|
-
]), Schema$1.Null]))
|
|
2084
|
+
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null]))
|
|
2456
2085
|
});
|
|
2457
2086
|
const ContactsGetActivityTimeline200 = Schema$1.Struct({
|
|
2458
2087
|
items: Schema$1.Array(Schema$1.Struct({
|
|
@@ -2597,7 +2226,6 @@ const ContactsExport500 = InternalError;
|
|
|
2597
2226
|
const ContactsFindRequestJson = Schema$1.Struct({
|
|
2598
2227
|
email: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2599
2228
|
phone: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2600
|
-
whatsapp: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2601
2229
|
externalId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
2602
2230
|
});
|
|
2603
2231
|
const ContactsFind200 = Schema$1.Union([Contact, Schema$1.Null]);
|
|
@@ -2609,7 +2237,6 @@ const ContactsFind500 = InternalError;
|
|
|
2609
2237
|
const ContactsFindOrCreateRequestJson = Schema$1.Struct({
|
|
2610
2238
|
email: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2611
2239
|
phone: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2612
|
-
whatsapp: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2613
2240
|
externalId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2614
2241
|
name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2615
2242
|
displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null]))
|
|
@@ -2632,11 +2259,7 @@ const ConversationsListQuery = Schema$1.Struct({
|
|
|
2632
2259
|
"escalated",
|
|
2633
2260
|
"archived"
|
|
2634
2261
|
]), Schema$1.Null])),
|
|
2635
|
-
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.
|
|
2636
|
-
"sms",
|
|
2637
|
-
"whatsapp",
|
|
2638
|
-
"email"
|
|
2639
|
-
]), Schema$1.Null])),
|
|
2262
|
+
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
|
|
2640
2263
|
contactId: Schema$1.optionalKey(Schema$1.Union([ContactId, Schema$1.Null])),
|
|
2641
2264
|
startDate: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2642
2265
|
endDate: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
@@ -2653,16 +2276,8 @@ const ConversationsCreateRequestJson = Schema$1.Struct({
|
|
|
2653
2276
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2654
2277
|
externalId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
2655
2278
|
parentConversationId: Schema$1.optionalKey(Schema$1.Union([ConversationId, Schema$1.Null])),
|
|
2656
|
-
channels: Schema$1.Array(Schema$1.
|
|
2657
|
-
|
|
2658
|
-
"whatsapp",
|
|
2659
|
-
"email"
|
|
2660
|
-
])),
|
|
2661
|
-
primaryChannel: Schema$1.Literals([
|
|
2662
|
-
"sms",
|
|
2663
|
-
"whatsapp",
|
|
2664
|
-
"email"
|
|
2665
|
-
]),
|
|
2279
|
+
channels: Schema$1.Array(Schema$1.Literal("email")),
|
|
2280
|
+
primaryChannel: Schema$1.Literal("email"),
|
|
2666
2281
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
2667
2282
|
"active",
|
|
2668
2283
|
"waiting",
|
|
@@ -2710,11 +2325,7 @@ const ConversationsUpdateRequestJson = Schema$1.Struct({
|
|
|
2710
2325
|
description: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
2711
2326
|
externalId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.String, Schema$1.Null]), Schema$1.Null])),
|
|
2712
2327
|
parentConversationId: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ConversationId, Schema$1.Null]), Schema$1.Null])),
|
|
2713
|
-
primaryChannel: Schema$1.optionalKey(Schema$1.Union([Schema$1.
|
|
2714
|
-
"sms",
|
|
2715
|
-
"whatsapp",
|
|
2716
|
-
"email"
|
|
2717
|
-
]), Schema$1.Null])),
|
|
2328
|
+
primaryChannel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
|
|
2718
2329
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
2719
2330
|
"active",
|
|
2720
2331
|
"waiting",
|
|
@@ -2739,11 +2350,7 @@ const ConversationsUpdateRequestJson = Schema$1.Struct({
|
|
|
2739
2350
|
metadata: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([ConversationMetadata, Schema$1.Null]), Schema$1.Null])),
|
|
2740
2351
|
metrics: Schema$1.optionalKey(Schema$1.Union([ConversationMetrics, Schema$1.Null])),
|
|
2741
2352
|
actorTracking: Schema$1.optionalKey(Schema$1.Union([ActorTracking, Schema$1.Null])),
|
|
2742
|
-
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.
|
|
2743
|
-
"sms",
|
|
2744
|
-
"whatsapp",
|
|
2745
|
-
"email"
|
|
2746
|
-
])), Schema$1.Null])),
|
|
2353
|
+
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")), Schema$1.Null])),
|
|
2747
2354
|
tags: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
2748
2355
|
categories: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.String), Schema$1.Null])),
|
|
2749
2356
|
isTest: Schema$1.optionalKey(Schema$1.Union([Schema$1.Boolean, Schema$1.Null])),
|
|
@@ -3051,7 +2658,7 @@ const EmailEnableCustomTrackingPathParams = Schema$1.Struct({ id: EmailDomainId
|
|
|
3051
2658
|
const EmailEnableCustomTrackingRequestJson = Schema$1.Struct({ label: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])) });
|
|
3052
2659
|
const EmailEnableCustomTracking200 = CustomTrackingStatus;
|
|
3053
2660
|
const EmailEnableCustomTracking401 = UnauthorizedError;
|
|
3054
|
-
const EmailEnableCustomTracking403 = Schema$1.Union([ForbiddenError
|
|
2661
|
+
const EmailEnableCustomTracking403 = Schema$1.Union([ForbiddenError]);
|
|
3055
2662
|
const EmailEnableCustomTracking409 = ConflictError;
|
|
3056
2663
|
const EmailEnableCustomTracking422 = ValidationError;
|
|
3057
2664
|
const EmailEnableCustomTracking500 = InternalError;
|
|
@@ -3059,7 +2666,7 @@ const EmailEnableCustomTracking502 = Schema$1.Union([EmailChannelError, BillingP
|
|
|
3059
2666
|
const EmailDisableCustomTrackingPathParams = Schema$1.Struct({ id: EmailDomainId });
|
|
3060
2667
|
const EmailDisableCustomTracking200 = SuccessResult;
|
|
3061
2668
|
const EmailDisableCustomTracking401 = UnauthorizedError;
|
|
3062
|
-
const EmailDisableCustomTracking403 = Schema$1.Union([ForbiddenError
|
|
2669
|
+
const EmailDisableCustomTracking403 = Schema$1.Union([ForbiddenError]);
|
|
3063
2670
|
const EmailDisableCustomTracking409 = ConflictError;
|
|
3064
2671
|
const EmailDisableCustomTracking500 = InternalError;
|
|
3065
2672
|
const EmailDisableCustomTracking502 = EmailChannelError;
|
|
@@ -3462,14 +3069,49 @@ const EmailUpdateRecipientTrackingPreference401 = UnauthorizedError;
|
|
|
3462
3069
|
const EmailUpdateRecipientTrackingPreference403 = ForbiddenError;
|
|
3463
3070
|
const EmailUpdateRecipientTrackingPreference422 = ValidationError;
|
|
3464
3071
|
const EmailUpdateRecipientTrackingPreference500 = InternalError;
|
|
3072
|
+
const MediaCreateRequestJson = Schema$1.Struct({
|
|
3073
|
+
filename: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
|
|
3074
|
+
contentType: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(127).annotate({ expected: "a value with a length of at most 127" })),
|
|
3075
|
+
sizeBytes: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
|
|
3076
|
+
purpose: Schema$1.Literals(["attachment", "avatar"]),
|
|
3077
|
+
checksumSha256: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
|
|
3078
|
+
});
|
|
3079
|
+
const MediaCreate201 = CreatedMedia;
|
|
3080
|
+
const MediaCreate401 = UnauthorizedError;
|
|
3081
|
+
const MediaCreate403 = ForbiddenError;
|
|
3082
|
+
const MediaCreate422 = ValidationError;
|
|
3083
|
+
const MediaCreate500 = InternalError;
|
|
3084
|
+
const MediaGetByIdPathParams = Schema$1.Struct({ mediaId: MediaId });
|
|
3085
|
+
const MediaGetById200 = Media;
|
|
3086
|
+
const MediaGetById401 = UnauthorizedError;
|
|
3087
|
+
const MediaGetById403 = ForbiddenError;
|
|
3088
|
+
const MediaGetById404 = ResourceNotFoundError;
|
|
3089
|
+
const MediaGetById500 = InternalError;
|
|
3090
|
+
const MediaRemovePathParams = Schema$1.Struct({ mediaId: MediaId });
|
|
3091
|
+
const MediaRemove200 = SuccessResponse;
|
|
3092
|
+
const MediaRemove401 = UnauthorizedError;
|
|
3093
|
+
const MediaRemove403 = ForbiddenError;
|
|
3094
|
+
const MediaRemove404 = ResourceNotFoundError;
|
|
3095
|
+
const MediaRemove422 = ValidationError;
|
|
3096
|
+
const MediaRemove500 = InternalError;
|
|
3097
|
+
const MediaCompletePathParams = Schema$1.Struct({ mediaId: MediaId });
|
|
3098
|
+
const MediaComplete200 = CompletedMedia;
|
|
3099
|
+
const MediaComplete401 = UnauthorizedError;
|
|
3100
|
+
const MediaComplete403 = ForbiddenError;
|
|
3101
|
+
const MediaComplete404 = ResourceNotFoundError;
|
|
3102
|
+
const MediaComplete422 = ValidationError;
|
|
3103
|
+
const MediaComplete500 = InternalError;
|
|
3104
|
+
const MediaDownloadUrlPathParams = Schema$1.Struct({ mediaId: MediaId });
|
|
3105
|
+
const MediaDownloadUrl200 = MediaDownloadUrl;
|
|
3106
|
+
const MediaDownloadUrl401 = UnauthorizedError;
|
|
3107
|
+
const MediaDownloadUrl403 = ForbiddenError;
|
|
3108
|
+
const MediaDownloadUrl404 = ResourceNotFoundError;
|
|
3109
|
+
const MediaDownloadUrl422 = ValidationError;
|
|
3110
|
+
const MediaDownloadUrl500 = InternalError;
|
|
3465
3111
|
const MessagesListQuery = Schema$1.Struct({
|
|
3466
3112
|
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3467
3113
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3468
|
-
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.
|
|
3469
|
-
"sms",
|
|
3470
|
-
"whatsapp",
|
|
3471
|
-
"email"
|
|
3472
|
-
]), Schema$1.Null])),
|
|
3114
|
+
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
|
|
3473
3115
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
3474
3116
|
"pending",
|
|
3475
3117
|
"scheduled",
|
|
@@ -3495,19 +3137,11 @@ const MessagesList401 = UnauthorizedError;
|
|
|
3495
3137
|
const MessagesList403 = ForbiddenError;
|
|
3496
3138
|
const MessagesList500 = InternalError;
|
|
3497
3139
|
const MessagesSendHeaders = Schema$1.Struct({ "idempotency-key": Schema$1.optionalKey(Schema$1.Union([Schema$1.String.annotate({ description: "Optional org-scoped key that makes a send idempotent. Repeating a request with the same key and identical payload replays the original 201 response; reusing the key with different content returns 409." }).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema$1.Null])) });
|
|
3498
|
-
const MessagesSendRequestJson = Schema$1.Union([
|
|
3499
|
-
EmailSendMessagePayload,
|
|
3500
|
-
SmsSendMessagePayload,
|
|
3501
|
-
WhatsAppSendMessagePayload
|
|
3502
|
-
]);
|
|
3140
|
+
const MessagesSendRequestJson = Schema$1.Union([EmailSendMessagePayload]);
|
|
3503
3141
|
const MessagesSend201 = Message;
|
|
3504
3142
|
const MessagesSend401 = UnauthorizedError;
|
|
3505
3143
|
const MessagesSend402 = PaymentRequiredError;
|
|
3506
|
-
const MessagesSend403 = Schema$1.Union([
|
|
3507
|
-
ForbiddenError,
|
|
3508
|
-
FlagDisabledError,
|
|
3509
|
-
ForbiddenError
|
|
3510
|
-
]);
|
|
3144
|
+
const MessagesSend403 = Schema$1.Union([FlagDisabledError, ForbiddenError]);
|
|
3511
3145
|
const MessagesSend404 = ResourceNotFoundError;
|
|
3512
3146
|
const MessagesSend409 = ConflictError;
|
|
3513
3147
|
const MessagesSend422 = ValidationError;
|
|
@@ -3550,11 +3184,7 @@ const MessagesGetEmail200 = Schema$1.Struct({
|
|
|
3550
3184
|
"bounced",
|
|
3551
3185
|
"complained"
|
|
3552
3186
|
]),
|
|
3553
|
-
channel: Schema$1.
|
|
3554
|
-
"sms",
|
|
3555
|
-
"whatsapp",
|
|
3556
|
-
"email"
|
|
3557
|
-
]),
|
|
3187
|
+
channel: Schema$1.Literal("email"),
|
|
3558
3188
|
direction: Schema$1.Literals(["outbound", "inbound"]),
|
|
3559
3189
|
subject: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
3560
3190
|
fromEmail: Schema$1.String,
|
|
@@ -3753,7 +3383,7 @@ const OperationsGet500 = InternalError;
|
|
|
3753
3383
|
const OperationsRetryPathParams = Schema$1.Struct({ operationId: OperationId });
|
|
3754
3384
|
const OperationsRetry202 = OperationAccepted;
|
|
3755
3385
|
const OperationsRetry401 = UnauthorizedError;
|
|
3756
|
-
const OperationsRetry403 = Schema$1.Union([ForbiddenError
|
|
3386
|
+
const OperationsRetry403 = Schema$1.Union([ForbiddenError]);
|
|
3757
3387
|
const OperationsRetry404 = ResourceNotFoundError;
|
|
3758
3388
|
const OperationsRetry409 = ConflictError;
|
|
3759
3389
|
const OperationsRetry500 = InternalError;
|
|
@@ -3768,7 +3398,7 @@ const OrganizationsCreate502 = BillingProviderError;
|
|
|
3768
3398
|
const OrganizationsBootstrapRequestJson = Schema$1.Struct({ name: Schema$1.String });
|
|
3769
3399
|
const OrganizationsBootstrap200 = Organization;
|
|
3770
3400
|
const OrganizationsBootstrap401 = UnauthorizedError;
|
|
3771
|
-
const OrganizationsBootstrap403 = Schema$1.Union([ForbiddenError
|
|
3401
|
+
const OrganizationsBootstrap403 = Schema$1.Union([ForbiddenError]);
|
|
3772
3402
|
const OrganizationsBootstrap422 = ValidationError;
|
|
3773
3403
|
const OrganizationsBootstrap500 = InternalError;
|
|
3774
3404
|
const OrganizationsBootstrap502 = BillingProviderError;
|
|
@@ -3801,7 +3431,7 @@ const OrganizationsDeleteHeaders = Schema$1.Struct({ "idempotency-key": Schema$1
|
|
|
3801
3431
|
const OrganizationsDeleteRequestJson = Schema$1.Struct({ confirmationName: Schema$1.String });
|
|
3802
3432
|
const OrganizationsDelete202 = OperationAccepted;
|
|
3803
3433
|
const OrganizationsDelete401 = UnauthorizedError;
|
|
3804
|
-
const OrganizationsDelete403 = Schema$1.Union([ForbiddenError
|
|
3434
|
+
const OrganizationsDelete403 = Schema$1.Union([ForbiddenError]);
|
|
3805
3435
|
const OrganizationsDelete409 = ConflictError;
|
|
3806
3436
|
const OrganizationsDelete422 = ValidationError;
|
|
3807
3437
|
const OrganizationsDelete500 = InternalError;
|
|
@@ -3815,9 +3445,7 @@ const OrganizationsGetUsage200 = Schema$1.Struct({
|
|
|
3815
3445
|
usage: Schema$1.Struct({
|
|
3816
3446
|
periodStart: Schema$1.String,
|
|
3817
3447
|
periodEnd: Schema$1.String,
|
|
3818
|
-
smsCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
3819
3448
|
emailCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
3820
|
-
whatsappCount: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })),
|
|
3821
3449
|
totalMessages: Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" }))
|
|
3822
3450
|
}),
|
|
3823
3451
|
billing: Schema$1.Struct({
|
|
@@ -3832,15 +3460,239 @@ const OrganizationsGetUsage401 = UnauthorizedError;
|
|
|
3832
3460
|
const OrganizationsGetUsage403 = ForbiddenError;
|
|
3833
3461
|
const OrganizationsGetUsage500 = InternalError;
|
|
3834
3462
|
const TemplateDocumentsGetPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3835
|
-
const TemplateDocumentsGet200 =
|
|
3463
|
+
const TemplateDocumentsGet200 = Schema$1.Struct({
|
|
3464
|
+
templateId: TemplateId,
|
|
3465
|
+
organizationId: OrganizationId,
|
|
3466
|
+
channel: Schema$1.Literal("email"),
|
|
3467
|
+
source: Schema$1.String,
|
|
3468
|
+
revision: Schema$1.String,
|
|
3469
|
+
sourceDigest: Schema$1.String,
|
|
3470
|
+
createdAt: Schema$1.String,
|
|
3471
|
+
updatedAt: Schema$1.String,
|
|
3472
|
+
createdBy: Schema$1.Struct({
|
|
3473
|
+
userId: UserId,
|
|
3474
|
+
via: Schema$1.Literals([
|
|
3475
|
+
"api",
|
|
3476
|
+
"mcp",
|
|
3477
|
+
"agent"
|
|
3478
|
+
])
|
|
3479
|
+
}),
|
|
3480
|
+
updatedBy: Schema$1.Struct({
|
|
3481
|
+
userId: UserId,
|
|
3482
|
+
via: Schema$1.Literals([
|
|
3483
|
+
"api",
|
|
3484
|
+
"mcp",
|
|
3485
|
+
"agent"
|
|
3486
|
+
])
|
|
3487
|
+
})
|
|
3488
|
+
});
|
|
3836
3489
|
const TemplateDocumentsGet401 = UnauthorizedError;
|
|
3837
3490
|
const TemplateDocumentsGet403 = ForbiddenError;
|
|
3838
3491
|
const TemplateDocumentsGet404 = ResourceNotFoundError;
|
|
3839
3492
|
const TemplateDocumentsGet409 = ConflictError;
|
|
3840
3493
|
const TemplateDocumentsGet422 = ValidationError;
|
|
3841
3494
|
const TemplateDocumentsGet500 = InternalError;
|
|
3495
|
+
const TemplateDocumentsIssueAgentAdmissionPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3496
|
+
const TemplateDocumentsIssueAgentAdmissionRequestJson = Schema$1.Struct({
|
|
3497
|
+
method: Schema$1.Literals([
|
|
3498
|
+
"GET",
|
|
3499
|
+
"HEAD",
|
|
3500
|
+
"POST"
|
|
3501
|
+
]),
|
|
3502
|
+
route: Schema$1.Literals([
|
|
3503
|
+
"prompt",
|
|
3504
|
+
"read",
|
|
3505
|
+
"abort",
|
|
3506
|
+
"clear"
|
|
3507
|
+
]),
|
|
3508
|
+
referenceDigest: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))),
|
|
3509
|
+
research: Schema$1.optionalKey(Schema$1.Union([
|
|
3510
|
+
Schema$1.Struct({
|
|
3511
|
+
kind: Schema$1.Literal("query"),
|
|
3512
|
+
query: Schema$1.String.check(Schema$1.isMinLength(3).annotate({ expected: "a value with a length of at least 3" })).check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" }))
|
|
3513
|
+
}),
|
|
3514
|
+
Schema$1.Struct({
|
|
3515
|
+
kind: Schema$1.Literal("url"),
|
|
3516
|
+
url: Schema$1.String.check(Schema$1.isMinLength(8).annotate({ expected: "a value with a length of at least 8" })).check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" }))
|
|
3517
|
+
}),
|
|
3518
|
+
Schema$1.Struct({
|
|
3519
|
+
kind: Schema$1.Literal("styleguide"),
|
|
3520
|
+
domain: Schema$1.String.check(Schema$1.isMinLength(3).annotate({ expected: "a value with a length of at least 3" })).check(Schema$1.isMaxLength(253).annotate({ expected: "a value with a length of at most 253" }))
|
|
3521
|
+
})
|
|
3522
|
+
])),
|
|
3523
|
+
competitorMessage: Schema$1.optionalKey(Schema$1.Struct({
|
|
3524
|
+
watchId: MailboxExtensionId,
|
|
3525
|
+
messageId: MessageId
|
|
3526
|
+
}))
|
|
3527
|
+
});
|
|
3528
|
+
const TemplateDocumentsIssueAgentAdmission200 = Schema$1.Struct({
|
|
3529
|
+
token: Schema$1.String,
|
|
3530
|
+
conversationId: Schema$1.String,
|
|
3531
|
+
snapshot: Schema$1.Struct({
|
|
3532
|
+
templateId: TemplateId,
|
|
3533
|
+
organizationId: OrganizationId,
|
|
3534
|
+
channel: Schema$1.Literal("email"),
|
|
3535
|
+
source: Schema$1.String,
|
|
3536
|
+
revision: Schema$1.String,
|
|
3537
|
+
sourceDigest: Schema$1.String
|
|
3538
|
+
}),
|
|
3539
|
+
reference: Schema$1.optionalKey(Schema$1.Union([
|
|
3540
|
+
Schema$1.Struct({
|
|
3541
|
+
version: Schema$1.Literal(1),
|
|
3542
|
+
referenceId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
3543
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })),
|
|
3544
|
+
description: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
|
|
3545
|
+
galleryPath: Schema$1.String.check(Schema$1.isMinLength(2).annotate({ expected: "a value with a length of at least 2" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
3546
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3547
|
+
citation: Schema$1.Struct({
|
|
3548
|
+
kind: Schema$1.String,
|
|
3549
|
+
digest: Schema$1.String,
|
|
3550
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3551
|
+
}),
|
|
3552
|
+
policy: Schema$1.Literal("samva-owned-source"),
|
|
3553
|
+
source: Schema$1.String.check(Schema$1.isMaxLength(5e5).annotate({ expected: "a value with a length of at most 500000" }))
|
|
3554
|
+
}),
|
|
3555
|
+
Schema$1.Struct({
|
|
3556
|
+
version: Schema$1.Literal(1),
|
|
3557
|
+
referenceId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
3558
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })),
|
|
3559
|
+
description: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
|
|
3560
|
+
galleryPath: Schema$1.String.check(Schema$1.isMinLength(2).annotate({ expected: "a value with a length of at least 2" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" })).check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*$" })),
|
|
3561
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3562
|
+
citation: Schema$1.Struct({
|
|
3563
|
+
kind: Schema$1.String,
|
|
3564
|
+
digest: Schema$1.String,
|
|
3565
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3566
|
+
}),
|
|
3567
|
+
policy: Schema$1.Literal("reviewed-public-structure"),
|
|
3568
|
+
structure: Schema$1.Struct({
|
|
3569
|
+
nodes: Schema$1.Array(Schema$1.Struct({
|
|
3570
|
+
tag: Schema$1.String,
|
|
3571
|
+
depth: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3572
|
+
childIndex: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
3573
|
+
})).check(Schema$1.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })),
|
|
3574
|
+
components: Schema$1.Array(Schema$1.Struct({
|
|
3575
|
+
tag: Schema$1.String,
|
|
3576
|
+
count: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
|
|
3577
|
+
})).check(Schema$1.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })),
|
|
3578
|
+
palette: Schema$1.Array(Schema$1.String).check(Schema$1.isMaxLength(24).annotate({ expected: "a value with a length of at most 24" }))
|
|
3579
|
+
})
|
|
3580
|
+
}),
|
|
3581
|
+
Schema$1.Struct({
|
|
3582
|
+
version: Schema$1.Literal(1),
|
|
3583
|
+
policy: Schema$1.Literal("authorized-message-structure"),
|
|
3584
|
+
referenceId: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
|
|
3585
|
+
name: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(256).annotate({ expected: "a value with a length of at most 256" })),
|
|
3586
|
+
description: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
|
|
3587
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3588
|
+
citation: Schema$1.Struct({
|
|
3589
|
+
kind: Schema$1.String,
|
|
3590
|
+
digest: Schema$1.String,
|
|
3591
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3592
|
+
}),
|
|
3593
|
+
structure: Schema$1.Struct({
|
|
3594
|
+
sections: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3595
|
+
headings: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3596
|
+
images: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3597
|
+
links: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3598
|
+
buttons: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3599
|
+
textLength: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3600
|
+
subjectLength: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
3601
|
+
palette: Schema$1.Array(Schema$1.String).check(Schema$1.isMaxLength(24).annotate({ expected: "a value with a length of at most 24" }))
|
|
3602
|
+
})
|
|
3603
|
+
}),
|
|
3604
|
+
Schema$1.Struct({
|
|
3605
|
+
version: Schema$1.Literal(1),
|
|
3606
|
+
policy: Schema$1.Literal("public-research"),
|
|
3607
|
+
request: Schema$1.Union([
|
|
3608
|
+
Schema$1.Struct({
|
|
3609
|
+
kind: Schema$1.Literal("query"),
|
|
3610
|
+
query: Schema$1.String.check(Schema$1.isMinLength(3).annotate({ expected: "a value with a length of at least 3" })).check(Schema$1.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" }))
|
|
3611
|
+
}),
|
|
3612
|
+
Schema$1.Struct({
|
|
3613
|
+
kind: Schema$1.Literal("url"),
|
|
3614
|
+
url: Schema$1.String.check(Schema$1.isMinLength(8).annotate({ expected: "a value with a length of at least 8" })).check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" }))
|
|
3615
|
+
}),
|
|
3616
|
+
Schema$1.Struct({
|
|
3617
|
+
kind: Schema$1.Literal("styleguide"),
|
|
3618
|
+
domain: Schema$1.String.check(Schema$1.isMinLength(3).annotate({ expected: "a value with a length of at least 3" })).check(Schema$1.isMaxLength(253).annotate({ expected: "a value with a length of at most 253" }))
|
|
3619
|
+
})
|
|
3620
|
+
]),
|
|
3621
|
+
digest: Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
|
|
3622
|
+
citations: Schema$1.Array(Schema$1.Struct({
|
|
3623
|
+
title: Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(300).annotate({ expected: "a value with a length of at most 300" })),
|
|
3624
|
+
url: Schema$1.String.check(Schema$1.isMinLength(8).annotate({ expected: "a value with a length of at least 8" })).check(Schema$1.isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })),
|
|
3625
|
+
excerpts: Schema$1.Array(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(1200).annotate({ expected: "a value with a length of at most 1200" }))).check(Schema$1.isMaxLength(4).annotate({ expected: "a value with a length of at most 4" }))
|
|
3626
|
+
})).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxLength(4).annotate({ expected: "a value with a length of at most 4" })),
|
|
3627
|
+
citation: Schema$1.Struct({
|
|
3628
|
+
kind: Schema$1.String,
|
|
3629
|
+
digest: Schema$1.String,
|
|
3630
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3631
|
+
})
|
|
3632
|
+
})
|
|
3633
|
+
])),
|
|
3634
|
+
proposalBinding: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isMaxLength(8192).annotate({ expected: "a value with a length of at most 8192" })))
|
|
3635
|
+
});
|
|
3636
|
+
const TemplateDocumentsIssueAgentAdmission401 = UnauthorizedError;
|
|
3637
|
+
const TemplateDocumentsIssueAgentAdmission403 = ForbiddenError;
|
|
3638
|
+
const TemplateDocumentsIssueAgentAdmission404 = ResourceNotFoundError;
|
|
3639
|
+
const TemplateDocumentsIssueAgentAdmission409 = ConflictError;
|
|
3640
|
+
const TemplateDocumentsIssueAgentAdmission422 = ValidationError;
|
|
3641
|
+
const TemplateDocumentsIssueAgentAdmission500 = InternalError;
|
|
3642
|
+
const TemplateDocumentsCompleteAgentConversationClearPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3643
|
+
const TemplateDocumentsCompleteAgentConversationClearRequestJson = Schema$1.Struct({ conversationId: Schema$1.String });
|
|
3644
|
+
const TemplateDocumentsCompleteAgentConversationClear401 = UnauthorizedError;
|
|
3645
|
+
const TemplateDocumentsCompleteAgentConversationClear403 = ForbiddenError;
|
|
3646
|
+
const TemplateDocumentsCompleteAgentConversationClear404 = ResourceNotFoundError;
|
|
3647
|
+
const TemplateDocumentsCompleteAgentConversationClear409 = ConflictError;
|
|
3648
|
+
const TemplateDocumentsCompleteAgentConversationClear500 = InternalError;
|
|
3649
|
+
const TemplateDocumentsApplyAgentProposalPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3650
|
+
const TemplateDocumentsApplyAgentProposalRequestJson = Schema$1.Struct({
|
|
3651
|
+
expectedRevision: Schema$1.String,
|
|
3652
|
+
sourceDigest: Schema$1.String,
|
|
3653
|
+
idempotencyKey: Schema$1.String,
|
|
3654
|
+
source: Schema$1.String,
|
|
3655
|
+
references: Schema$1.Array(Schema$1.Struct({
|
|
3656
|
+
kind: Schema$1.String,
|
|
3657
|
+
digest: Schema$1.String,
|
|
3658
|
+
locator: Schema$1.optionalKey(Schema$1.String)
|
|
3659
|
+
})).check(Schema$1.isMaxLength(1).annotate({ expected: "a value with a length of at most 1" })),
|
|
3660
|
+
proposalBinding: Schema$1.optionalKey(Schema$1.String.check(Schema$1.isMaxLength(8192).annotate({ expected: "a value with a length of at most 8192" })))
|
|
3661
|
+
});
|
|
3662
|
+
const TemplateDocumentsApplyAgentProposal200 = Schema$1.Struct({
|
|
3663
|
+
templateId: TemplateId,
|
|
3664
|
+
organizationId: OrganizationId,
|
|
3665
|
+
channel: Schema$1.Literal("email"),
|
|
3666
|
+
source: Schema$1.String,
|
|
3667
|
+
revision: Schema$1.String,
|
|
3668
|
+
sourceDigest: Schema$1.String,
|
|
3669
|
+
createdAt: Schema$1.String,
|
|
3670
|
+
updatedAt: Schema$1.String,
|
|
3671
|
+
createdBy: Schema$1.Struct({
|
|
3672
|
+
userId: UserId,
|
|
3673
|
+
via: Schema$1.Literals([
|
|
3674
|
+
"api",
|
|
3675
|
+
"mcp",
|
|
3676
|
+
"agent"
|
|
3677
|
+
])
|
|
3678
|
+
}),
|
|
3679
|
+
updatedBy: Schema$1.Struct({
|
|
3680
|
+
userId: UserId,
|
|
3681
|
+
via: Schema$1.Literals([
|
|
3682
|
+
"api",
|
|
3683
|
+
"mcp",
|
|
3684
|
+
"agent"
|
|
3685
|
+
])
|
|
3686
|
+
})
|
|
3687
|
+
});
|
|
3688
|
+
const TemplateDocumentsApplyAgentProposal401 = UnauthorizedError;
|
|
3689
|
+
const TemplateDocumentsApplyAgentProposal403 = ForbiddenError;
|
|
3690
|
+
const TemplateDocumentsApplyAgentProposal404 = ResourceNotFoundError;
|
|
3691
|
+
const TemplateDocumentsApplyAgentProposal409 = ConflictError;
|
|
3692
|
+
const TemplateDocumentsApplyAgentProposal422 = ValidationError;
|
|
3693
|
+
const TemplateDocumentsApplyAgentProposal500 = InternalError;
|
|
3842
3694
|
const TemplateDocumentsPublishPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3843
|
-
const TemplateDocumentsPublish200 =
|
|
3695
|
+
const TemplateDocumentsPublish200 = Schema$1.Struct({ versionId: Schema$1.String });
|
|
3844
3696
|
const TemplateDocumentsPublish401 = UnauthorizedError;
|
|
3845
3697
|
const TemplateDocumentsPublish403 = ForbiddenError;
|
|
3846
3698
|
const TemplateDocumentsPublish404 = ResourceNotFoundError;
|
|
@@ -3852,7 +3704,13 @@ const TemplateDocumentsRenderRequestJson = Schema$1.Struct({
|
|
|
3852
3704
|
revision: Schema$1.String,
|
|
3853
3705
|
variables: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null]))
|
|
3854
3706
|
});
|
|
3855
|
-
const TemplateDocumentsRender200 =
|
|
3707
|
+
const TemplateDocumentsRender200 = Schema$1.Struct({
|
|
3708
|
+
channel: Schema$1.Literal("email"),
|
|
3709
|
+
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3710
|
+
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3711
|
+
text: Schema$1.String,
|
|
3712
|
+
missingVariables: Schema$1.Array(Schema$1.String)
|
|
3713
|
+
});
|
|
3856
3714
|
const TemplateDocumentsRender401 = UnauthorizedError;
|
|
3857
3715
|
const TemplateDocumentsRender403 = ForbiddenError;
|
|
3858
3716
|
const TemplateDocumentsRender404 = ResourceNotFoundError;
|
|
@@ -3897,11 +3755,7 @@ const TemplateDocumentsSend200 = Schema$1.Union([Schema$1.Struct({
|
|
|
3897
3755
|
})]);
|
|
3898
3756
|
const TemplateDocumentsSend401 = UnauthorizedError;
|
|
3899
3757
|
const TemplateDocumentsSend402 = PaymentRequiredError;
|
|
3900
|
-
const TemplateDocumentsSend403 = Schema$1.Union([
|
|
3901
|
-
ForbiddenError,
|
|
3902
|
-
FlagDisabledError,
|
|
3903
|
-
ForbiddenError
|
|
3904
|
-
]);
|
|
3758
|
+
const TemplateDocumentsSend403 = Schema$1.Union([FlagDisabledError, ForbiddenError]);
|
|
3905
3759
|
const TemplateDocumentsSend404 = ResourceNotFoundError;
|
|
3906
3760
|
const TemplateDocumentsSend409 = ConflictError;
|
|
3907
3761
|
const TemplateDocumentsSend422 = ValidationError;
|
|
@@ -3917,7 +3771,13 @@ const TemplateDocumentsTestSendRequestJson = Schema$1.Struct({
|
|
|
3917
3771
|
const TemplateDocumentsTestSend200 = Schema$1.Struct({
|
|
3918
3772
|
messageId: Schema$1.String,
|
|
3919
3773
|
status: Schema$1.String,
|
|
3920
|
-
rendered:
|
|
3774
|
+
rendered: Schema$1.Struct({
|
|
3775
|
+
channel: Schema$1.Literal("email"),
|
|
3776
|
+
subject: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3777
|
+
html: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
3778
|
+
text: Schema$1.String,
|
|
3779
|
+
missingVariables: Schema$1.Array(Schema$1.String)
|
|
3780
|
+
})
|
|
3921
3781
|
});
|
|
3922
3782
|
const TemplateDocumentsTestSend401 = UnauthorizedError;
|
|
3923
3783
|
const TemplateDocumentsTestSend402 = PaymentRequiredError;
|
|
@@ -3925,6 +3785,7 @@ const TemplateDocumentsTestSend403 = ForbiddenError;
|
|
|
3925
3785
|
const TemplateDocumentsTestSend404 = ResourceNotFoundError;
|
|
3926
3786
|
const TemplateDocumentsTestSend409 = ConflictError;
|
|
3927
3787
|
const TemplateDocumentsTestSend422 = ValidationError;
|
|
3788
|
+
const TemplateDocumentsTestSend429 = RateLimitedError;
|
|
3928
3789
|
const TemplateDocumentsTestSend500 = Schema$1.Union([InternalError, WebhookEnqueueError]);
|
|
3929
3790
|
const TemplateDocumentsTestSend502 = BillingProviderError;
|
|
3930
3791
|
const TemplateDocumentsReplacePathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
@@ -3932,7 +3793,32 @@ const TemplateDocumentsReplaceRequestJson = Schema$1.Struct({
|
|
|
3932
3793
|
expectedRevision: Schema$1.String,
|
|
3933
3794
|
source: Schema$1.String
|
|
3934
3795
|
});
|
|
3935
|
-
const TemplateDocumentsReplace200 =
|
|
3796
|
+
const TemplateDocumentsReplace200 = Schema$1.Struct({
|
|
3797
|
+
templateId: TemplateId,
|
|
3798
|
+
organizationId: OrganizationId,
|
|
3799
|
+
channel: Schema$1.Literal("email"),
|
|
3800
|
+
source: Schema$1.String,
|
|
3801
|
+
revision: Schema$1.String,
|
|
3802
|
+
sourceDigest: Schema$1.String,
|
|
3803
|
+
createdAt: Schema$1.String,
|
|
3804
|
+
updatedAt: Schema$1.String,
|
|
3805
|
+
createdBy: Schema$1.Struct({
|
|
3806
|
+
userId: UserId,
|
|
3807
|
+
via: Schema$1.Literals([
|
|
3808
|
+
"api",
|
|
3809
|
+
"mcp",
|
|
3810
|
+
"agent"
|
|
3811
|
+
])
|
|
3812
|
+
}),
|
|
3813
|
+
updatedBy: Schema$1.Struct({
|
|
3814
|
+
userId: UserId,
|
|
3815
|
+
via: Schema$1.Literals([
|
|
3816
|
+
"api",
|
|
3817
|
+
"mcp",
|
|
3818
|
+
"agent"
|
|
3819
|
+
])
|
|
3820
|
+
})
|
|
3821
|
+
});
|
|
3936
3822
|
const TemplateDocumentsReplace401 = UnauthorizedError;
|
|
3937
3823
|
const TemplateDocumentsReplace403 = ForbiddenError;
|
|
3938
3824
|
const TemplateDocumentsReplace404 = ResourceNotFoundError;
|
|
@@ -3970,7 +3856,7 @@ const TemplateDocumentsSpamCheck409 = ConflictError;
|
|
|
3970
3856
|
const TemplateDocumentsSpamCheck422 = ValidationError;
|
|
3971
3857
|
const TemplateDocumentsSpamCheck500 = InternalError;
|
|
3972
3858
|
const TemplateDocumentsUnpublishPathParams = Schema$1.Struct({ templateId: TemplateId });
|
|
3973
|
-
const TemplateDocumentsUnpublish200 =
|
|
3859
|
+
const TemplateDocumentsUnpublish200 = Schema$1.Struct({ versionId: Schema$1.String });
|
|
3974
3860
|
const TemplateDocumentsUnpublish401 = UnauthorizedError;
|
|
3975
3861
|
const TemplateDocumentsUnpublish403 = ForbiddenError;
|
|
3976
3862
|
const TemplateDocumentsUnpublish404 = ResourceNotFoundError;
|
|
@@ -4002,7 +3888,32 @@ const TemplateDocumentsRestorePathParams = Schema$1.Struct({
|
|
|
4002
3888
|
versionId: TemplateSourceVersionId
|
|
4003
3889
|
});
|
|
4004
3890
|
const TemplateDocumentsRestoreRequestJson = Schema$1.Struct({ expectedRevision: Schema$1.String });
|
|
4005
|
-
const TemplateDocumentsRestore200 =
|
|
3891
|
+
const TemplateDocumentsRestore200 = Schema$1.Struct({
|
|
3892
|
+
templateId: TemplateId,
|
|
3893
|
+
organizationId: OrganizationId,
|
|
3894
|
+
channel: Schema$1.Literal("email"),
|
|
3895
|
+
source: Schema$1.String,
|
|
3896
|
+
revision: Schema$1.String,
|
|
3897
|
+
sourceDigest: Schema$1.String,
|
|
3898
|
+
createdAt: Schema$1.String,
|
|
3899
|
+
updatedAt: Schema$1.String,
|
|
3900
|
+
createdBy: Schema$1.Struct({
|
|
3901
|
+
userId: UserId,
|
|
3902
|
+
via: Schema$1.Literals([
|
|
3903
|
+
"api",
|
|
3904
|
+
"mcp",
|
|
3905
|
+
"agent"
|
|
3906
|
+
])
|
|
3907
|
+
}),
|
|
3908
|
+
updatedBy: Schema$1.Struct({
|
|
3909
|
+
userId: UserId,
|
|
3910
|
+
via: Schema$1.Literals([
|
|
3911
|
+
"api",
|
|
3912
|
+
"mcp",
|
|
3913
|
+
"agent"
|
|
3914
|
+
])
|
|
3915
|
+
})
|
|
3916
|
+
});
|
|
4006
3917
|
const TemplateDocumentsRestore401 = UnauthorizedError;
|
|
4007
3918
|
const TemplateDocumentsRestore403 = ForbiddenError;
|
|
4008
3919
|
const TemplateDocumentsRestore404 = ResourceNotFoundError;
|
|
@@ -4010,7 +3921,32 @@ const TemplateDocumentsRestore409 = ConflictError;
|
|
|
4010
3921
|
const TemplateDocumentsRestore422 = ValidationError;
|
|
4011
3922
|
const TemplateDocumentsRestore500 = InternalError;
|
|
4012
3923
|
const TemplateDocumentsBootstrapRequestJson = Schema$1.Struct({ templateId: TemplateId });
|
|
4013
|
-
const TemplateDocumentsBootstrap200 =
|
|
3924
|
+
const TemplateDocumentsBootstrap200 = Schema$1.Struct({
|
|
3925
|
+
templateId: TemplateId,
|
|
3926
|
+
organizationId: OrganizationId,
|
|
3927
|
+
channel: Schema$1.Literal("email"),
|
|
3928
|
+
source: Schema$1.String,
|
|
3929
|
+
revision: Schema$1.String,
|
|
3930
|
+
sourceDigest: Schema$1.String,
|
|
3931
|
+
createdAt: Schema$1.String,
|
|
3932
|
+
updatedAt: Schema$1.String,
|
|
3933
|
+
createdBy: Schema$1.Struct({
|
|
3934
|
+
userId: UserId,
|
|
3935
|
+
via: Schema$1.Literals([
|
|
3936
|
+
"api",
|
|
3937
|
+
"mcp",
|
|
3938
|
+
"agent"
|
|
3939
|
+
])
|
|
3940
|
+
}),
|
|
3941
|
+
updatedBy: Schema$1.Struct({
|
|
3942
|
+
userId: UserId,
|
|
3943
|
+
via: Schema$1.Literals([
|
|
3944
|
+
"api",
|
|
3945
|
+
"mcp",
|
|
3946
|
+
"agent"
|
|
3947
|
+
])
|
|
3948
|
+
})
|
|
3949
|
+
});
|
|
4014
3950
|
const TemplateDocumentsBootstrap401 = UnauthorizedError;
|
|
4015
3951
|
const TemplateDocumentsBootstrap403 = ForbiddenError;
|
|
4016
3952
|
const TemplateDocumentsBootstrap404 = ResourceNotFoundError;
|
|
@@ -4029,11 +3965,7 @@ const TemplatesListQuery = Schema$1.Struct({
|
|
|
4029
3965
|
"reminder",
|
|
4030
3966
|
"alert"
|
|
4031
3967
|
]), Schema$1.Null])),
|
|
4032
|
-
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.
|
|
4033
|
-
"sms",
|
|
4034
|
-
"whatsapp",
|
|
4035
|
-
"email"
|
|
4036
|
-
]), Schema$1.Null])),
|
|
3968
|
+
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
|
|
4037
3969
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
4038
3970
|
"draft",
|
|
4039
3971
|
"pending",
|
|
@@ -4144,15 +4076,7 @@ const TemplatesApprove500 = InternalError;
|
|
|
4144
4076
|
const TemplatesListDashboardQuery = Schema$1.Struct({
|
|
4145
4077
|
page: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4146
4078
|
limit: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
|
|
4147
|
-
allowedChannels: Schema$1.Union([Schema$1.
|
|
4148
|
-
"sms",
|
|
4149
|
-
"whatsapp",
|
|
4150
|
-
"email"
|
|
4151
|
-
]), Schema$1.Array(Schema$1.Literals([
|
|
4152
|
-
"sms",
|
|
4153
|
-
"whatsapp",
|
|
4154
|
-
"email"
|
|
4155
|
-
]))]),
|
|
4079
|
+
allowedChannels: Schema$1.Union([Schema$1.Literal("email"), Schema$1.Array(Schema$1.Literal("email"))]),
|
|
4156
4080
|
category: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
4157
4081
|
"transactional",
|
|
4158
4082
|
"marketing",
|
|
@@ -4162,11 +4086,7 @@ const TemplatesListDashboardQuery = Schema$1.Struct({
|
|
|
4162
4086
|
"reminder",
|
|
4163
4087
|
"alert"
|
|
4164
4088
|
]), Schema$1.Null])),
|
|
4165
|
-
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.
|
|
4166
|
-
"sms",
|
|
4167
|
-
"whatsapp",
|
|
4168
|
-
"email"
|
|
4169
|
-
]), Schema$1.Null])),
|
|
4089
|
+
channel: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literal("email"), Schema$1.Null])),
|
|
4170
4090
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals([
|
|
4171
4091
|
"draft",
|
|
4172
4092
|
"pending",
|
|
@@ -4243,11 +4163,7 @@ const TemplatesRenameFamily422 = ValidationError;
|
|
|
4243
4163
|
const TemplatesRenameFamily500 = InternalError;
|
|
4244
4164
|
const TemplatesAddFamilyChannelPathParams = Schema$1.Struct({
|
|
4245
4165
|
familyId: TemplateFamilyId,
|
|
4246
|
-
channel: Schema$1.
|
|
4247
|
-
"sms",
|
|
4248
|
-
"whatsapp",
|
|
4249
|
-
"email"
|
|
4250
|
-
])
|
|
4166
|
+
channel: Schema$1.Literal("email")
|
|
4251
4167
|
});
|
|
4252
4168
|
const TemplatesAddFamilyChannel201 = TemplateFamily;
|
|
4253
4169
|
const TemplatesAddFamilyChannel401 = UnauthorizedError;
|
|
@@ -4328,11 +4244,7 @@ const WebhooksCreateRequestJson = Schema$1.Struct({
|
|
|
4328
4244
|
"webhook.test",
|
|
4329
4245
|
"domain.updated"
|
|
4330
4246
|
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
4331
|
-
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.
|
|
4332
|
-
"sms",
|
|
4333
|
-
"whatsapp",
|
|
4334
|
-
"email"
|
|
4335
|
-
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
4247
|
+
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
4336
4248
|
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])),
|
|
4337
4249
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["active", "disabled"]), Schema$1.Null]))
|
|
4338
4250
|
});
|
|
@@ -4344,6 +4256,7 @@ const WebhooksCreate401 = UnauthorizedError;
|
|
|
4344
4256
|
const WebhooksCreate402 = PaymentRequiredError;
|
|
4345
4257
|
const WebhooksCreate403 = ForbiddenError;
|
|
4346
4258
|
const WebhooksCreate409 = ConflictError;
|
|
4259
|
+
const WebhooksCreate422 = ValidationError;
|
|
4347
4260
|
const WebhooksCreate500 = InternalError;
|
|
4348
4261
|
const WebhooksCreate502 = BillingProviderError;
|
|
4349
4262
|
const WebhooksGetPathParams = Schema$1.Struct({ id: WebhookEndpointId });
|
|
@@ -4390,11 +4303,7 @@ const WebhooksUpdateRequestJson = Schema$1.Struct({
|
|
|
4390
4303
|
"webhook.test",
|
|
4391
4304
|
"domain.updated"
|
|
4392
4305
|
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
|
|
4393
|
-
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.
|
|
4394
|
-
"sms",
|
|
4395
|
-
"whatsapp",
|
|
4396
|
-
"email"
|
|
4397
|
-
])).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null]), Schema$1.Null])),
|
|
4306
|
+
channels: Schema$1.optionalKey(Schema$1.Union([Schema$1.Union([Schema$1.Array(Schema$1.Literal("email")).check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null]), Schema$1.Null])),
|
|
4398
4307
|
headers: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null])),
|
|
4399
4308
|
status: Schema$1.optionalKey(Schema$1.Union([Schema$1.Literals(["active", "disabled"]), Schema$1.Null]))
|
|
4400
4309
|
});
|
|
@@ -4403,6 +4312,7 @@ const WebhooksUpdate401 = UnauthorizedError;
|
|
|
4403
4312
|
const WebhooksUpdate403 = ForbiddenError;
|
|
4404
4313
|
const WebhooksUpdate404 = ResourceNotFoundError;
|
|
4405
4314
|
const WebhooksUpdate409 = ConflictError;
|
|
4315
|
+
const WebhooksUpdate422 = ValidationError;
|
|
4406
4316
|
const WebhooksUpdate500 = InternalError;
|
|
4407
4317
|
const WebhooksTestPathParams = Schema$1.Struct({ id: WebhookEndpointId });
|
|
4408
4318
|
const WebhooksTestRequestJson = Schema$1.Struct({ data: Schema$1.optionalKey(Schema$1.Union([Schema$1.Record(Schema$1.String, JsonValue), Schema$1.Null])) });
|
|
@@ -4463,7 +4373,6 @@ const WebhooksGetLogs200 = Schema$1.Struct({
|
|
|
4463
4373
|
attemptedAt: Schema$1.String,
|
|
4464
4374
|
responseStatus: Schema$1.Union([Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })), Schema$1.Null]),
|
|
4465
4375
|
responseHeaders: Schema$1.Union([Schema$1.Record(Schema$1.String, Schema$1.String), Schema$1.Null]),
|
|
4466
|
-
responseBody: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4467
4376
|
durationMs: Schema$1.Union([Schema$1.Finite.check(Schema$1.isFinite().annotate({ expected: "a finite number" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })), Schema$1.Null]),
|
|
4468
4377
|
errorCode: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
4469
4378
|
errorMessage: Schema$1.Union([Schema$1.String, Schema$1.Null]),
|
|
@@ -4516,6 +4425,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
|
|
|
4516
4425
|
ApiKeysCreate402.pipe(HttpApiSchema.status(402)),
|
|
4517
4426
|
ApiKeysCreate403.pipe(HttpApiSchema.status(403)),
|
|
4518
4427
|
ApiKeysCreate404.pipe(HttpApiSchema.status(404)),
|
|
4428
|
+
ApiKeysCreate422.pipe(HttpApiSchema.status(422)),
|
|
4519
4429
|
ApiKeysCreate500,
|
|
4520
4430
|
ApiKeysCreate502.pipe(HttpApiSchema.status(502))
|
|
4521
4431
|
]
|
|
@@ -4575,9 +4485,10 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
|
|
|
4575
4485
|
ApiKeysRotate401.pipe(HttpApiSchema.status(401)),
|
|
4576
4486
|
ApiKeysRotate403.pipe(HttpApiSchema.status(403)),
|
|
4577
4487
|
ApiKeysRotate404.pipe(HttpApiSchema.status(404)),
|
|
4488
|
+
ApiKeysRotate422.pipe(HttpApiSchema.status(422)),
|
|
4578
4489
|
ApiKeysRotate500
|
|
4579
4490
|
]
|
|
4580
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.rotate").annotate(OpenApi.Summary, "Rotate an API key").annotate(OpenApi.Description, "
|
|
4491
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.rotate").annotate(OpenApi.Summary, "Rotate an API key").annotate(OpenApi.Description, "Issues a replacement with the same owner, name, and permissions, then deactivates the existing key. Returns the new key, including the plaintext secret."), HttpApiEndpoint.get("apiKeysGetStats", "/v1/api-keys/:id/stats", {
|
|
4581
4492
|
params: ApiKeysGetStatsPathParams,
|
|
4582
4493
|
query: ApiKeysGetStatsQuery,
|
|
4583
4494
|
success: ApiKeysGetStats200,
|
|
@@ -4847,7 +4758,7 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
|
|
|
4847
4758
|
ContactsFind422.pipe(HttpApiSchema.status(422)),
|
|
4848
4759
|
ContactsFind500
|
|
4849
4760
|
]
|
|
4850
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.find").annotate(OpenApi.Summary, "Find a contact").annotate(OpenApi.Description, "
|
|
4761
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.find").annotate(OpenApi.Summary, "Find a contact").annotate(OpenApi.Description, "Samva API operation."), HttpApiEndpoint.post("contactsFindOrCreate", "/v1/contacts/find-or-create", {
|
|
4851
4762
|
payload: ContactsFindOrCreateRequestJson,
|
|
4852
4763
|
success: ContactsFindOrCreate200,
|
|
4853
4764
|
error: [
|
|
@@ -4929,7 +4840,7 @@ var ConversationsGroup = class extends HttpApiGroup.make("Conversations").add(Ht
|
|
|
4929
4840
|
ConversationsListMessages404.pipe(HttpApiSchema.status(404)),
|
|
4930
4841
|
ConversationsListMessages500
|
|
4931
4842
|
]
|
|
4932
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "conversations.listMessages").annotate(OpenApi.Summary, "List conversation messages").annotate(OpenApi.Description, "Returns the messages in a conversation using the canonical message schema and page-based pagination.")).annotate(OpenApi.Description, "
|
|
4843
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "conversations.listMessages").annotate(OpenApi.Summary, "List conversation messages").annotate(OpenApi.Description, "Returns the messages in a conversation using the canonical message schema and page-based pagination.")).annotate(OpenApi.Description, "Samva API operation.") {};
|
|
4933
4844
|
var DesignGroup = class extends HttpApiGroup.make("Design").add(HttpApiEndpoint.get("designGet", "/v1/design", {
|
|
4934
4845
|
success: DesignGet200,
|
|
4935
4846
|
error: [
|
|
@@ -5415,6 +5326,55 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
5415
5326
|
EmailUpdateRecipientTrackingPreference500
|
|
5416
5327
|
]
|
|
5417
5328
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.updateRecipientTrackingPreference").annotate(OpenApi.Summary, "Update a recipient tracking preference").annotate(OpenApi.Description, "Opts a normalized recipient email in or out of open and click tracking. Opt-out takes precedence over per-send overrides and organization defaults without changing suppression or send eligibility.")).annotate(OpenApi.Description, "Unified email domain for sending, domains, templates, threads, catch-all, blocking, forwarding, and onboarding") {};
|
|
5329
|
+
var MediaGroup = class extends HttpApiGroup.make("Media").add(HttpApiEndpoint.post("mediaCreate", "/v1/media", {
|
|
5330
|
+
payload: MediaCreateRequestJson,
|
|
5331
|
+
success: MediaCreate201.pipe(HttpApiSchema.status(201)),
|
|
5332
|
+
error: [
|
|
5333
|
+
MediaCreate401.pipe(HttpApiSchema.status(401)),
|
|
5334
|
+
MediaCreate403.pipe(HttpApiSchema.status(403)),
|
|
5335
|
+
MediaCreate422.pipe(HttpApiSchema.status(422)),
|
|
5336
|
+
MediaCreate500
|
|
5337
|
+
]
|
|
5338
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "media.create").annotate(OpenApi.Summary, "Create a media object").annotate(OpenApi.Description, "Creates the media object in the pending state and returns it with the upload instruction — URL, method, and headers — for putting its bytes into storage."), HttpApiEndpoint.get("mediaGetById", "/v1/media/:mediaId", {
|
|
5339
|
+
params: MediaGetByIdPathParams,
|
|
5340
|
+
success: MediaGetById200,
|
|
5341
|
+
error: [
|
|
5342
|
+
MediaGetById401.pipe(HttpApiSchema.status(401)),
|
|
5343
|
+
MediaGetById403.pipe(HttpApiSchema.status(403)),
|
|
5344
|
+
MediaGetById404.pipe(HttpApiSchema.status(404)),
|
|
5345
|
+
MediaGetById500
|
|
5346
|
+
]
|
|
5347
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "media.getById").annotate(OpenApi.Summary, "Get a media object").annotate(OpenApi.Description, "Returns the media object's metadata, including status, dimensions, and confirmation timestamps."), HttpApiEndpoint.delete("mediaRemove", "/v1/media/:mediaId", {
|
|
5348
|
+
params: MediaRemovePathParams,
|
|
5349
|
+
success: MediaRemove200,
|
|
5350
|
+
error: [
|
|
5351
|
+
MediaRemove401.pipe(HttpApiSchema.status(401)),
|
|
5352
|
+
MediaRemove403.pipe(HttpApiSchema.status(403)),
|
|
5353
|
+
MediaRemove404.pipe(HttpApiSchema.status(404)),
|
|
5354
|
+
MediaRemove422.pipe(HttpApiSchema.status(422)),
|
|
5355
|
+
MediaRemove500
|
|
5356
|
+
]
|
|
5357
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "media.remove").annotate(OpenApi.Summary, "Delete a media object").annotate(OpenApi.Description, "Deletes a pending media object and the bytes stored for it. Fails if the media object is already ready."), HttpApiEndpoint.post("mediaComplete", "/v1/media/:mediaId/complete", {
|
|
5358
|
+
params: MediaCompletePathParams,
|
|
5359
|
+
success: MediaComplete200,
|
|
5360
|
+
error: [
|
|
5361
|
+
MediaComplete401.pipe(HttpApiSchema.status(401)),
|
|
5362
|
+
MediaComplete403.pipe(HttpApiSchema.status(403)),
|
|
5363
|
+
MediaComplete404.pipe(HttpApiSchema.status(404)),
|
|
5364
|
+
MediaComplete422.pipe(HttpApiSchema.status(422)),
|
|
5365
|
+
MediaComplete500
|
|
5366
|
+
]
|
|
5367
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "media.complete").annotate(OpenApi.Summary, "Complete a media upload").annotate(OpenApi.Description, "Verifies the uploaded object exists in storage, marks the media object ready, and returns it with a download URL."), HttpApiEndpoint.get("mediaDownloadUrl", "/v1/media/:mediaId/url", {
|
|
5368
|
+
params: MediaDownloadUrlPathParams,
|
|
5369
|
+
success: MediaDownloadUrl200,
|
|
5370
|
+
error: [
|
|
5371
|
+
MediaDownloadUrl401.pipe(HttpApiSchema.status(401)),
|
|
5372
|
+
MediaDownloadUrl403.pipe(HttpApiSchema.status(403)),
|
|
5373
|
+
MediaDownloadUrl404.pipe(HttpApiSchema.status(404)),
|
|
5374
|
+
MediaDownloadUrl422.pipe(HttpApiSchema.status(422)),
|
|
5375
|
+
MediaDownloadUrl500
|
|
5376
|
+
]
|
|
5377
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "media.downloadUrl").annotate(OpenApi.Summary, "Get a media download URL").annotate(OpenApi.Description, "Generates a presigned, time-limited download URL for a ready media object.")).annotate(OpenApi.Description, "Media objects and the presigned uploads that fill them") {};
|
|
5418
5378
|
var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpoint.get("messagesList", "/v1/messages", {
|
|
5419
5379
|
query: MessagesListQuery,
|
|
5420
5380
|
success: MessagesList200,
|
|
@@ -5438,7 +5398,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
5438
5398
|
MessagesSend500,
|
|
5439
5399
|
MessagesSend502.pipe(HttpApiSchema.status(502))
|
|
5440
5400
|
]
|
|
5441
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.send").annotate(OpenApi.Summary, "Send a message").annotate(OpenApi.Description, "Sends a message on the requested channel and returns the created message with a 201 Created status. `channel` selects the payload variant.
|
|
5401
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.send").annotate(OpenApi.Summary, "Send a message").annotate(OpenApi.Description, "Sends a message on the requested channel and returns the created message with a 201 Created status. `channel` selects the payload variant. Repeating an identical request with the same optional `Idempotency-Key` header returns the original message; reusing the key for different content returns a conflict."), HttpApiEndpoint.get("messagesGet", "/v1/messages/:id", {
|
|
5442
5402
|
params: MessagesGetPathParams,
|
|
5443
5403
|
success: MessagesGet200,
|
|
5444
5404
|
error: [
|
|
@@ -5466,7 +5426,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
5466
5426
|
MessagesGetEmail404.pipe(HttpApiSchema.status(404)),
|
|
5467
5427
|
MessagesGetEmail500
|
|
5468
5428
|
]
|
|
5469
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.getEmail").annotate(OpenApi.Summary, "Get email message details").annotate(OpenApi.Description, "Returns
|
|
5429
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.getEmail").annotate(OpenApi.Summary, "Get email message details").annotate(OpenApi.Description, "Returns email delivery details for a message, optionally including signed URLs for its raw MIME, HTML, and text content."), HttpApiEndpoint.get("messagesGetEvents", "/v1/messages/:id/events", {
|
|
5470
5430
|
params: MessagesGetEventsPathParams,
|
|
5471
5431
|
success: MessagesGetEvents200,
|
|
5472
5432
|
error: [
|
|
@@ -5484,7 +5444,7 @@ var MessagesGroup = class extends HttpApiGroup.make("Messages").add(HttpApiEndpo
|
|
|
5484
5444
|
MessagesGetStatus404.pipe(HttpApiSchema.status(404)),
|
|
5485
5445
|
MessagesGetStatus500
|
|
5486
5446
|
]
|
|
5487
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.getStatus").annotate(OpenApi.Summary, "Get message delivery status").annotate(OpenApi.Description, "Returns the current delivery status of a message by its ID.")).annotate(OpenApi.Description, "
|
|
5447
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "messages.getStatus").annotate(OpenApi.Summary, "Get message delivery status").annotate(OpenApi.Description, "Returns the current delivery status of a message by its ID.")).annotate(OpenApi.Description, "Samva API operation.") {};
|
|
5488
5448
|
var ScheduledMessagesGroup = class extends HttpApiGroup.make("Scheduled Messages").add(HttpApiEndpoint.get("scheduledMessagesList", "/v1/messages/scheduled", {
|
|
5489
5449
|
query: ScheduledMessagesListQuery,
|
|
5490
5450
|
success: ScheduledMessagesList200,
|
|
@@ -5504,7 +5464,7 @@ var ScheduledMessagesGroup = class extends HttpApiGroup.make("Scheduled Messages
|
|
|
5504
5464
|
ScheduledMessagesCreate500,
|
|
5505
5465
|
ScheduledMessagesCreate502.pipe(HttpApiSchema.status(502))
|
|
5506
5466
|
]
|
|
5507
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.create").annotate(OpenApi.Summary, "Schedule a message").annotate(OpenApi.Description, "Schedules a message at the absolute ISO-8601 instant in scheduledFor.
|
|
5467
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "scheduledMessages.create").annotate(OpenApi.Summary, "Schedule a message").annotate(OpenApi.Description, "Schedules a message at the absolute ISO-8601 instant in scheduledFor. Optional timezone is validated IANA display metadata only and never changes the execution instant."), HttpApiEndpoint.get("scheduledMessagesGet", "/v1/messages/scheduled/:id", {
|
|
5508
5468
|
params: ScheduledMessagesGetPathParams,
|
|
5509
5469
|
success: ScheduledMessagesGet200,
|
|
5510
5470
|
error: [
|
|
@@ -5622,7 +5582,42 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5622
5582
|
TemplateDocumentsGet422.pipe(HttpApiSchema.status(422)),
|
|
5623
5583
|
TemplateDocumentsGet500
|
|
5624
5584
|
]
|
|
5625
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.get"), HttpApiEndpoint.post("
|
|
5585
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.get").annotate(OpenApi.Summary, "Get a template document").annotate(OpenApi.Description, "Returns the current authoritative source, revision, and metadata for a template document."), HttpApiEndpoint.post("templateDocumentsIssueAgentAdmission", "/v1/template-documents/:templateId/agent-admission", {
|
|
5586
|
+
params: TemplateDocumentsIssueAgentAdmissionPathParams,
|
|
5587
|
+
payload: TemplateDocumentsIssueAgentAdmissionRequestJson,
|
|
5588
|
+
success: TemplateDocumentsIssueAgentAdmission200,
|
|
5589
|
+
error: [
|
|
5590
|
+
TemplateDocumentsIssueAgentAdmission401.pipe(HttpApiSchema.status(401)),
|
|
5591
|
+
TemplateDocumentsIssueAgentAdmission403.pipe(HttpApiSchema.status(403)),
|
|
5592
|
+
TemplateDocumentsIssueAgentAdmission404.pipe(HttpApiSchema.status(404)),
|
|
5593
|
+
TemplateDocumentsIssueAgentAdmission409.pipe(HttpApiSchema.status(409)),
|
|
5594
|
+
TemplateDocumentsIssueAgentAdmission422.pipe(HttpApiSchema.status(422)),
|
|
5595
|
+
TemplateDocumentsIssueAgentAdmission500
|
|
5596
|
+
]
|
|
5597
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.issueAgentAdmission").annotate(OpenApi.Summary, "Issue an agent admission").annotate(OpenApi.Description, "Authorizes a bounded template-agent operation against the current document and returns the admission context."), HttpApiEndpoint.post("templateDocumentsCompleteAgentConversationClear", "/v1/template-documents/:templateId/agent-conversation/clear-completion", {
|
|
5598
|
+
params: TemplateDocumentsCompleteAgentConversationClearPathParams,
|
|
5599
|
+
payload: TemplateDocumentsCompleteAgentConversationClearRequestJson,
|
|
5600
|
+
success: HttpApiSchema.Empty(200),
|
|
5601
|
+
error: [
|
|
5602
|
+
TemplateDocumentsCompleteAgentConversationClear401.pipe(HttpApiSchema.status(401)),
|
|
5603
|
+
TemplateDocumentsCompleteAgentConversationClear403.pipe(HttpApiSchema.status(403)),
|
|
5604
|
+
TemplateDocumentsCompleteAgentConversationClear404.pipe(HttpApiSchema.status(404)),
|
|
5605
|
+
TemplateDocumentsCompleteAgentConversationClear409.pipe(HttpApiSchema.status(409)),
|
|
5606
|
+
TemplateDocumentsCompleteAgentConversationClear500
|
|
5607
|
+
]
|
|
5608
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.completeAgentConversationClear").annotate(OpenApi.Summary, "Complete an agent conversation clear").annotate(OpenApi.Description, "Records completion of an admitted agent conversation-clear operation for the template document."), HttpApiEndpoint.post("templateDocumentsApplyAgentProposal", "/v1/template-documents/:templateId/agent-proposals/apply", {
|
|
5609
|
+
params: TemplateDocumentsApplyAgentProposalPathParams,
|
|
5610
|
+
payload: TemplateDocumentsApplyAgentProposalRequestJson,
|
|
5611
|
+
success: TemplateDocumentsApplyAgentProposal200,
|
|
5612
|
+
error: [
|
|
5613
|
+
TemplateDocumentsApplyAgentProposal401.pipe(HttpApiSchema.status(401)),
|
|
5614
|
+
TemplateDocumentsApplyAgentProposal403.pipe(HttpApiSchema.status(403)),
|
|
5615
|
+
TemplateDocumentsApplyAgentProposal404.pipe(HttpApiSchema.status(404)),
|
|
5616
|
+
TemplateDocumentsApplyAgentProposal409.pipe(HttpApiSchema.status(409)),
|
|
5617
|
+
TemplateDocumentsApplyAgentProposal422.pipe(HttpApiSchema.status(422)),
|
|
5618
|
+
TemplateDocumentsApplyAgentProposal500
|
|
5619
|
+
]
|
|
5620
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.applyAgentProposal").annotate(OpenApi.Summary, "Apply an agent proposal").annotate(OpenApi.Description, "Applies an admitted agent-authored source proposal when its revision and source digest still match the document."), HttpApiEndpoint.post("templateDocumentsPublish", "/v1/template-documents/:templateId/publish", {
|
|
5626
5621
|
params: TemplateDocumentsPublishPathParams,
|
|
5627
5622
|
success: TemplateDocumentsPublish200,
|
|
5628
5623
|
error: [
|
|
@@ -5633,7 +5628,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5633
5628
|
TemplateDocumentsPublish422.pipe(HttpApiSchema.status(422)),
|
|
5634
5629
|
TemplateDocumentsPublish500
|
|
5635
5630
|
]
|
|
5636
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.publish"), HttpApiEndpoint.post("templateDocumentsRender", "/v1/template-documents/:templateId/render", {
|
|
5631
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.publish").annotate(OpenApi.Summary, "Publish a template document").annotate(OpenApi.Description, "Publishes the current saved template source version and returns its lifecycle receipt."), HttpApiEndpoint.post("templateDocumentsRender", "/v1/template-documents/:templateId/render", {
|
|
5637
5632
|
params: TemplateDocumentsRenderPathParams,
|
|
5638
5633
|
payload: TemplateDocumentsRenderRequestJson,
|
|
5639
5634
|
success: TemplateDocumentsRender200,
|
|
@@ -5645,7 +5640,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5645
5640
|
TemplateDocumentsRender422.pipe(HttpApiSchema.status(422)),
|
|
5646
5641
|
TemplateDocumentsRender500
|
|
5647
5642
|
]
|
|
5648
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.render"), HttpApiEndpoint.post("templateDocumentsSave", "/v1/template-documents/:templateId/save", {
|
|
5643
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.render").annotate(OpenApi.Summary, "Render a template document").annotate(OpenApi.Description, "Renders the specified document revision with optional variables and reports any missing variables."), HttpApiEndpoint.post("templateDocumentsSave", "/v1/template-documents/:templateId/save", {
|
|
5649
5644
|
params: TemplateDocumentsSavePathParams,
|
|
5650
5645
|
payload: TemplateDocumentsSaveRequestJson,
|
|
5651
5646
|
success: TemplateDocumentsSave200,
|
|
@@ -5657,7 +5652,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5657
5652
|
TemplateDocumentsSave422.pipe(HttpApiSchema.status(422)),
|
|
5658
5653
|
TemplateDocumentsSave500
|
|
5659
5654
|
]
|
|
5660
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.save"), HttpApiEndpoint.post("templateDocumentsSend", "/v1/template-documents/:templateId/send", {
|
|
5655
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.save").annotate(OpenApi.Summary, "Save a template document").annotate(OpenApi.Description, "Materializes the specified document revision as a durable template source version and returns its receipt."), HttpApiEndpoint.post("templateDocumentsSend", "/v1/template-documents/:templateId/send", {
|
|
5661
5656
|
params: TemplateDocumentsSendPathParams,
|
|
5662
5657
|
payload: TemplateDocumentsSendRequestJson,
|
|
5663
5658
|
success: TemplateDocumentsSend200,
|
|
@@ -5672,7 +5667,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5672
5667
|
TemplateDocumentsSend500,
|
|
5673
5668
|
TemplateDocumentsSend502.pipe(HttpApiSchema.status(502))
|
|
5674
5669
|
]
|
|
5675
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.send"), HttpApiEndpoint.post("templateDocumentsTestSend", "/v1/template-documents/:templateId/send-test", {
|
|
5670
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.send").annotate(OpenApi.Summary, "Send a template document").annotate(OpenApi.Description, "Sends or schedules the specified document revision for one or more recipients with optional variables."), HttpApiEndpoint.post("templateDocumentsTestSend", "/v1/template-documents/:templateId/send-test", {
|
|
5676
5671
|
params: TemplateDocumentsTestSendPathParams,
|
|
5677
5672
|
payload: TemplateDocumentsTestSendRequestJson,
|
|
5678
5673
|
success: TemplateDocumentsTestSend200,
|
|
@@ -5683,10 +5678,11 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5683
5678
|
TemplateDocumentsTestSend404.pipe(HttpApiSchema.status(404)),
|
|
5684
5679
|
TemplateDocumentsTestSend409.pipe(HttpApiSchema.status(409)),
|
|
5685
5680
|
TemplateDocumentsTestSend422.pipe(HttpApiSchema.status(422)),
|
|
5681
|
+
TemplateDocumentsTestSend429.pipe(HttpApiSchema.status(429)),
|
|
5686
5682
|
TemplateDocumentsTestSend500,
|
|
5687
5683
|
TemplateDocumentsTestSend502.pipe(HttpApiSchema.status(502))
|
|
5688
5684
|
]
|
|
5689
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.testSend"), HttpApiEndpoint.post("templateDocumentsReplace", "/v1/template-documents/:templateId/source", {
|
|
5685
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.testSend").annotate(OpenApi.Summary, "Send a template test").annotate(OpenApi.Description, "Renders the specified document revision and sends a test message to one recipient without publishing it."), HttpApiEndpoint.post("templateDocumentsReplace", "/v1/template-documents/:templateId/source", {
|
|
5690
5686
|
params: TemplateDocumentsReplacePathParams,
|
|
5691
5687
|
payload: TemplateDocumentsReplaceRequestJson,
|
|
5692
5688
|
success: TemplateDocumentsReplace200,
|
|
@@ -5698,7 +5694,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5698
5694
|
TemplateDocumentsReplace422.pipe(HttpApiSchema.status(422)),
|
|
5699
5695
|
TemplateDocumentsReplace500
|
|
5700
5696
|
]
|
|
5701
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.replace"), HttpApiEndpoint.post("templateDocumentsSpamCheck", "/v1/template-documents/:templateId/spam-check", {
|
|
5697
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.replace").annotate(OpenApi.Summary, "Replace template source").annotate(OpenApi.Description, "Replaces the editable SML source when the expected revision matches and returns the updated document snapshot."), HttpApiEndpoint.post("templateDocumentsSpamCheck", "/v1/template-documents/:templateId/spam-check", {
|
|
5702
5698
|
params: TemplateDocumentsSpamCheckPathParams,
|
|
5703
5699
|
payload: TemplateDocumentsSpamCheckRequestJson,
|
|
5704
5700
|
success: TemplateDocumentsSpamCheck200,
|
|
@@ -5710,7 +5706,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5710
5706
|
TemplateDocumentsSpamCheck422.pipe(HttpApiSchema.status(422)),
|
|
5711
5707
|
TemplateDocumentsSpamCheck500
|
|
5712
5708
|
]
|
|
5713
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.spamCheck"), HttpApiEndpoint.post("templateDocumentsUnpublish", "/v1/template-documents/:templateId/unpublish", {
|
|
5709
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.spamCheck").annotate(OpenApi.Summary, "Check a template document for spam").annotate(OpenApi.Description, "Renders and analyzes the specified document revision for spam risks, returning issues and recommendations."), HttpApiEndpoint.post("templateDocumentsUnpublish", "/v1/template-documents/:templateId/unpublish", {
|
|
5714
5710
|
params: TemplateDocumentsUnpublishPathParams,
|
|
5715
5711
|
success: TemplateDocumentsUnpublish200,
|
|
5716
5712
|
error: [
|
|
@@ -5721,7 +5717,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5721
5717
|
TemplateDocumentsUnpublish422.pipe(HttpApiSchema.status(422)),
|
|
5722
5718
|
TemplateDocumentsUnpublish500
|
|
5723
5719
|
]
|
|
5724
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.unpublish"), HttpApiEndpoint.get("templateDocumentsVersions", "/v1/template-documents/:templateId/versions", {
|
|
5720
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.unpublish").annotate(OpenApi.Summary, "Unpublish a template document").annotate(OpenApi.Description, "Unpublishes the current template source version and returns its lifecycle receipt."), HttpApiEndpoint.get("templateDocumentsVersions", "/v1/template-documents/:templateId/versions", {
|
|
5725
5721
|
params: TemplateDocumentsVersionsPathParams,
|
|
5726
5722
|
success: TemplateDocumentsVersions200,
|
|
5727
5723
|
error: [
|
|
@@ -5732,7 +5728,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5732
5728
|
TemplateDocumentsVersions422.pipe(HttpApiSchema.status(422)),
|
|
5733
5729
|
TemplateDocumentsVersions500
|
|
5734
5730
|
]
|
|
5735
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.versions"), HttpApiEndpoint.post("templateDocumentsRestore", "/v1/template-documents/:templateId/versions/:versionId/restore", {
|
|
5731
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.versions").annotate(OpenApi.Summary, "List template document versions").annotate(OpenApi.Description, "Returns the saved source-version history for a template document."), HttpApiEndpoint.post("templateDocumentsRestore", "/v1/template-documents/:templateId/versions/:versionId/restore", {
|
|
5736
5732
|
params: TemplateDocumentsRestorePathParams,
|
|
5737
5733
|
payload: TemplateDocumentsRestoreRequestJson,
|
|
5738
5734
|
success: TemplateDocumentsRestore200,
|
|
@@ -5744,7 +5740,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5744
5740
|
TemplateDocumentsRestore422.pipe(HttpApiSchema.status(422)),
|
|
5745
5741
|
TemplateDocumentsRestore500
|
|
5746
5742
|
]
|
|
5747
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.restore"), HttpApiEndpoint.post("templateDocumentsBootstrap", "/v1/template-documents/bootstrap", {
|
|
5743
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.restore").annotate(OpenApi.Summary, "Restore a template document version").annotate(OpenApi.Description, "Restores a saved source version into the editable document when the expected revision matches."), HttpApiEndpoint.post("templateDocumentsBootstrap", "/v1/template-documents/bootstrap", {
|
|
5748
5744
|
payload: TemplateDocumentsBootstrapRequestJson,
|
|
5749
5745
|
success: TemplateDocumentsBootstrap200,
|
|
5750
5746
|
error: [
|
|
@@ -5755,7 +5751,7 @@ var TemplateDocumentsGroup = class extends HttpApiGroup.make("Template Documents
|
|
|
5755
5751
|
TemplateDocumentsBootstrap422.pipe(HttpApiSchema.status(422)),
|
|
5756
5752
|
TemplateDocumentsBootstrap500
|
|
5757
5753
|
]
|
|
5758
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.bootstrap")).annotate(OpenApi.Description, "Authenticated document-authoritative template drafting and explicit Save") {};
|
|
5754
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateDocuments.bootstrap").annotate(OpenApi.Summary, "Bootstrap a template document").annotate(OpenApi.Description, "Creates or loads the authoritative editable document for a template and returns its current snapshot.")).annotate(OpenApi.Description, "Authenticated document-authoritative template drafting and explicit Save") {};
|
|
5759
5755
|
var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEndpoint.get("templatesList", "/v1/templates", {
|
|
5760
5756
|
query: TemplatesListQuery,
|
|
5761
5757
|
success: TemplatesList200,
|
|
@@ -5822,7 +5818,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5822
5818
|
TemplatesListDashboard403.pipe(HttpApiSchema.status(403)),
|
|
5823
5819
|
TemplatesListDashboard500
|
|
5824
5820
|
]
|
|
5825
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.listDashboard"), HttpApiEndpoint.get("templatesListFamilies", "/v1/templates/families", {
|
|
5821
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.listDashboard").annotate(OpenApi.Summary, "List templates for the dashboard").annotate(OpenApi.Description, "Returns a paginated dashboard view that groups related channel templates into families and leaves standalone templates ungrouped."), HttpApiEndpoint.get("templatesListFamilies", "/v1/templates/families", {
|
|
5826
5822
|
query: TemplatesListFamiliesQuery,
|
|
5827
5823
|
success: TemplatesListFamilies200,
|
|
5828
5824
|
error: [
|
|
@@ -5830,7 +5826,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5830
5826
|
TemplatesListFamilies403.pipe(HttpApiSchema.status(403)),
|
|
5831
5827
|
TemplatesListFamilies500
|
|
5832
5828
|
]
|
|
5833
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.listFamilies"), HttpApiEndpoint.post("templatesCreateFamily", "/v1/templates/families", {
|
|
5829
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.listFamilies").annotate(OpenApi.Summary, "List template families").annotate(OpenApi.Description, "Returns a paginated list of the organization's template families and members."), HttpApiEndpoint.post("templatesCreateFamily", "/v1/templates/families", {
|
|
5834
5830
|
payload: TemplatesCreateFamilyRequestJson,
|
|
5835
5831
|
success: TemplatesCreateFamily201.pipe(HttpApiSchema.status(201)),
|
|
5836
5832
|
error: [
|
|
@@ -5839,7 +5835,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5839
5835
|
TemplatesCreateFamily422.pipe(HttpApiSchema.status(422)),
|
|
5840
5836
|
TemplatesCreateFamily500
|
|
5841
5837
|
]
|
|
5842
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFamily"), HttpApiEndpoint.get("templatesGetFamily", "/v1/templates/families/:familyId", {
|
|
5838
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFamily").annotate(OpenApi.Summary, "Create a template family").annotate(OpenApi.Description, "Creates an empty template family with the supplied name and returns it with status 201."), HttpApiEndpoint.get("templatesGetFamily", "/v1/templates/families/:familyId", {
|
|
5843
5839
|
params: TemplatesGetFamilyPathParams,
|
|
5844
5840
|
success: TemplatesGetFamily200,
|
|
5845
5841
|
error: [
|
|
@@ -5848,7 +5844,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5848
5844
|
TemplatesGetFamily404.pipe(HttpApiSchema.status(404)),
|
|
5849
5845
|
TemplatesGetFamily500
|
|
5850
5846
|
]
|
|
5851
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getFamily"), HttpApiEndpoint.delete("templatesDeleteFamily", "/v1/templates/families/:familyId", {
|
|
5847
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.getFamily").annotate(OpenApi.Summary, "Get a template family").annotate(OpenApi.Description, "Returns a template family and its channel-specific member templates."), HttpApiEndpoint.delete("templatesDeleteFamily", "/v1/templates/families/:familyId", {
|
|
5852
5848
|
params: TemplatesDeleteFamilyPathParams,
|
|
5853
5849
|
success: TemplatesDeleteFamily200,
|
|
5854
5850
|
error: [
|
|
@@ -5857,7 +5853,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5857
5853
|
TemplatesDeleteFamily404.pipe(HttpApiSchema.status(404)),
|
|
5858
5854
|
TemplatesDeleteFamily500
|
|
5859
5855
|
]
|
|
5860
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.deleteFamily"), HttpApiEndpoint.patch("templatesRenameFamily", "/v1/templates/families/:familyId", {
|
|
5856
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.deleteFamily").annotate(OpenApi.Summary, "Delete a template family").annotate(OpenApi.Description, "Deletes a template family without deleting its member templates."), HttpApiEndpoint.patch("templatesRenameFamily", "/v1/templates/families/:familyId", {
|
|
5861
5857
|
params: TemplatesRenameFamilyPathParams,
|
|
5862
5858
|
payload: TemplatesRenameFamilyRequestJson,
|
|
5863
5859
|
success: TemplatesRenameFamily200,
|
|
@@ -5868,7 +5864,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5868
5864
|
TemplatesRenameFamily422.pipe(HttpApiSchema.status(422)),
|
|
5869
5865
|
TemplatesRenameFamily500
|
|
5870
5866
|
]
|
|
5871
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.renameFamily"), HttpApiEndpoint.post("templatesAddFamilyChannel", "/v1/templates/families/:familyId/channels/:channel", {
|
|
5867
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.renameFamily").annotate(OpenApi.Summary, "Rename a template family").annotate(OpenApi.Description, "Changes a template family's name and returns the updated family."), HttpApiEndpoint.post("templatesAddFamilyChannel", "/v1/templates/families/:familyId/channels/:channel", {
|
|
5872
5868
|
params: TemplatesAddFamilyChannelPathParams,
|
|
5873
5869
|
success: TemplatesAddFamilyChannel201.pipe(HttpApiSchema.status(201)),
|
|
5874
5870
|
error: [
|
|
@@ -5879,7 +5875,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5879
5875
|
TemplatesAddFamilyChannel422.pipe(HttpApiSchema.status(422)),
|
|
5880
5876
|
TemplatesAddFamilyChannel500
|
|
5881
5877
|
]
|
|
5882
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addFamilyChannel"), HttpApiEndpoint.post("templatesAttachFamilyMember", "/v1/templates/families/:familyId/members/:templateId", {
|
|
5878
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addFamilyChannel").annotate(OpenApi.Summary, "Add a channel to a template family").annotate(OpenApi.Description, "Creates a template for the requested channel in the family and returns the updated family with status 201."), HttpApiEndpoint.post("templatesAttachFamilyMember", "/v1/templates/families/:familyId/members/:templateId", {
|
|
5883
5879
|
params: TemplatesAttachFamilyMemberPathParams,
|
|
5884
5880
|
success: TemplatesAttachFamilyMember200,
|
|
5885
5881
|
error: [
|
|
@@ -5890,7 +5886,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5890
5886
|
TemplatesAttachFamilyMember422.pipe(HttpApiSchema.status(422)),
|
|
5891
5887
|
TemplatesAttachFamilyMember500
|
|
5892
5888
|
]
|
|
5893
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.attachFamilyMember"), HttpApiEndpoint.delete("templatesDetachFamilyMember", "/v1/templates/families/:familyId/members/:templateId", {
|
|
5889
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.attachFamilyMember").annotate(OpenApi.Summary, "Attach a template to a family").annotate(OpenApi.Description, "Adds an existing template as a channel member of the family and returns the updated family."), HttpApiEndpoint.delete("templatesDetachFamilyMember", "/v1/templates/families/:familyId/members/:templateId", {
|
|
5894
5890
|
params: TemplatesDetachFamilyMemberPathParams,
|
|
5895
5891
|
success: TemplatesDetachFamilyMember200,
|
|
5896
5892
|
error: [
|
|
@@ -5900,7 +5896,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5900
5896
|
TemplatesDetachFamilyMember409.pipe(HttpApiSchema.status(409)),
|
|
5901
5897
|
TemplatesDetachFamilyMember500
|
|
5902
5898
|
]
|
|
5903
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.detachFamilyMember"), HttpApiEndpoint.post("templatesCreateFamilyFromTemplate", "/v1/templates/families/from-template/:templateId", {
|
|
5899
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.detachFamilyMember").annotate(OpenApi.Summary, "Detach a template from a family").annotate(OpenApi.Description, "Removes a member template from the family without deleting the template."), HttpApiEndpoint.post("templatesCreateFamilyFromTemplate", "/v1/templates/families/from-template/:templateId", {
|
|
5904
5900
|
params: TemplatesCreateFamilyFromTemplatePathParams,
|
|
5905
5901
|
payload: TemplatesCreateFamilyFromTemplateRequestJson,
|
|
5906
5902
|
success: TemplatesCreateFamilyFromTemplate201.pipe(HttpApiSchema.status(201)),
|
|
@@ -5912,7 +5908,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
5912
5908
|
TemplatesCreateFamilyFromTemplate422.pipe(HttpApiSchema.status(422)),
|
|
5913
5909
|
TemplatesCreateFamilyFromTemplate500
|
|
5914
5910
|
]
|
|
5915
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFamilyFromTemplate")).annotate(OpenApi.Description, "
|
|
5911
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.createFamilyFromTemplate").annotate(OpenApi.Summary, "Create a family from a template").annotate(OpenApi.Description, "Creates a template family containing the specified template and returns the new family with status 201.")).annotate(OpenApi.Description, "Samva API operation.") {};
|
|
5916
5912
|
var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpoint.get("webhooksList", "/v1/webhooks", {
|
|
5917
5913
|
query: WebhooksListQuery,
|
|
5918
5914
|
success: WebhooksList200,
|
|
@@ -5929,6 +5925,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
5929
5925
|
WebhooksCreate402.pipe(HttpApiSchema.status(402)),
|
|
5930
5926
|
WebhooksCreate403.pipe(HttpApiSchema.status(403)),
|
|
5931
5927
|
WebhooksCreate409.pipe(HttpApiSchema.status(409)),
|
|
5928
|
+
WebhooksCreate422.pipe(HttpApiSchema.status(422)),
|
|
5932
5929
|
WebhooksCreate500,
|
|
5933
5930
|
WebhooksCreate502.pipe(HttpApiSchema.status(502))
|
|
5934
5931
|
]
|
|
@@ -5960,6 +5957,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
5960
5957
|
WebhooksUpdate403.pipe(HttpApiSchema.status(403)),
|
|
5961
5958
|
WebhooksUpdate404.pipe(HttpApiSchema.status(404)),
|
|
5962
5959
|
WebhooksUpdate409.pipe(HttpApiSchema.status(409)),
|
|
5960
|
+
WebhooksUpdate422.pipe(HttpApiSchema.status(422)),
|
|
5963
5961
|
WebhooksUpdate500
|
|
5964
5962
|
]
|
|
5965
5963
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.update").annotate(OpenApi.Summary, "Update a webhook").annotate(OpenApi.Description, "Updates a webhook's name, URL, subscribed events, channels, custom headers, or status and returns the updated endpoint."), HttpApiEndpoint.post("webhooksTest", "/v1/webhooks/:id/test", {
|
|
@@ -6012,7 +6010,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
6012
6010
|
WebhooksGetStats500
|
|
6013
6011
|
]
|
|
6014
6012
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getStats").annotate(OpenApi.Summary, "Get webhook delivery statistics").annotate(OpenApi.Description, "Returns aggregate pending, delivered, exhausted, and cancelled delivery counts for a webhook endpoint.")).annotate(OpenApi.Description, "Customer event webhook management, testing, and delivery logs") {};
|
|
6015
|
-
var SamvaApi = class extends HttpApi.make("SamvaApi").annotate(OpenApi.Title, "Samva SDK").annotate(OpenApi.Version, "1.0.0").annotate(OpenApi.Description, "Samva
|
|
6013
|
+
var SamvaApi = class extends HttpApi.make("SamvaApi").annotate(OpenApi.Title, "Samva SDK").annotate(OpenApi.Version, "1.0.0").annotate(OpenApi.Description, "Samva email API for programmatic email delivery").add(APIKeysGroup, CampaignsGroup, ContactsGroup, ConversationsGroup, DesignGroup, EmailGroup, MediaGroup, MessagesGroup, ScheduledMessagesGroup, OperationsGroup, OrganizationsGroup, TemplateDocumentsGroup, TemplatesGroup, WebhooksGroup) {};
|
|
6016
6014
|
//#endregion
|
|
6017
6015
|
//#region src/effect/internal/client.ts
|
|
6018
6016
|
const DEFAULT_BASE_URL = "https://api.samva.dev";
|
|
@@ -6046,4 +6044,4 @@ const raw = Effect.map(Service, (client) => client.raw);
|
|
|
6046
6044
|
//#endregion
|
|
6047
6045
|
export { ValidationError as C, UpdateWebhookPayload as S, SamvaApi as _, BillingProviderError as a, UnauthorizedError as b, CreateWebhookPayload as c, FlagDisabledError as d, ForbiddenError as f, ResourceNotFoundError as g, RateLimitedError as h, raw as i, EmailChannelError as l, PaymentRequiredError as m, layer as n, ConflictError as o, InternalError as p, layerFetch as r, CreateTemplatePayload as s, Service as t, ExternalServiceError as u, TestWebhookPayload as v, WebhookEnqueueError as w, UpdateTemplatePayload as x, TrackingRecipientEmail as y };
|
|
6048
6046
|
|
|
6049
|
-
//# sourceMappingURL=client-
|
|
6047
|
+
//# sourceMappingURL=client-BOghX8fr.js.map
|