samva 0.19.0 → 0.21.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/dist/client/sdk.gen.d.ts +72 -16
- package/dist/client/sdk.gen.js +216 -36
- package/dist/client/types.gen.d.ts +411 -65
- package/dist/effect/api-keys.d.ts +7 -0
- package/dist/effect/campaigns.d.ts +66 -3
- package/dist/effect/contacts.d.ts +24 -4
- package/dist/effect/email.d.ts +22 -6
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/generated/api-keys.d.ts +15 -0
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/campaigns.d.ts +136 -4
- package/dist/effect/generated/campaigns.js +22 -1
- package/dist/effect/generated/contacts.d.ts +131 -1
- package/dist/effect/generated/contacts.js +17 -2
- package/dist/effect/generated/email.d.ts +162 -1
- package/dist/effect/generated/email.js +31 -11
- package/dist/effect/generated/journeys.d.ts +31 -61
- package/dist/effect/generated/journeys.js +9 -5
- package/dist/effect/generated/mailboxes.d.ts +274 -78
- package/dist/effect/generated/mailboxes.js +28 -20
- package/dist/effect/generated/messages.d.ts +4 -1
- package/dist/effect/generated/messages.js +2 -1
- package/dist/effect/generated/namespaces.d.ts +432 -2
- package/dist/effect/generated/namespaces.js +91 -4
- package/dist/effect/generated/shared.d.ts +38 -29
- package/dist/effect/generated/shared.js +28 -23
- package/dist/effect/generated/templates.d.ts +80 -1
- package/dist/effect/generated/templates.js +18 -6
- package/dist/effect/generated/webhooks.d.ts +120 -0
- package/dist/effect/generated/webhooks.js +27 -3
- package/dist/effect/generated-metadata.d.ts +20 -4
- package/dist/effect/generated-metadata.js +4 -4
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +12 -4
- package/dist/effect/mailboxes.d.ts +11 -11
- package/dist/effect/messages.d.ts +3 -0
- package/dist/effect/namespaces.d.ts +29 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/templates.d.ts +28 -1
- package/dist/effect/webhooks.d.ts +7 -0
- package/dist/effect/webhooks.js +3 -1
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +2 -12
- package/dist/promises/errors.gen.js +1 -26
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +20 -0
- package/dist/service-map.js +20 -0
- package/package.json +5 -3
|
@@ -20,6 +20,20 @@ const CampaignRunId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @_
|
|
|
20
20
|
expected: "a string matching the RegExp ^crun_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
21
21
|
identifier: "CampaignRunId"
|
|
22
22
|
})).pipe(Schema.brand("CampaignRunId"));
|
|
23
|
+
const CampaignRunSkippedReason = /* @__PURE__ */ Schema.Struct({
|
|
24
|
+
reason: Schema.Union([
|
|
25
|
+
Schema.Literal("unsubscribed"),
|
|
26
|
+
Schema.Literal("blocked"),
|
|
27
|
+
Schema.Literal("suppressed"),
|
|
28
|
+
Schema.Literal("opted_out"),
|
|
29
|
+
Schema.Literal("unreachable"),
|
|
30
|
+
Schema.Literal("no_identity"),
|
|
31
|
+
Schema.Literal("inactive"),
|
|
32
|
+
Schema.Literal("run_cancelled"),
|
|
33
|
+
Schema.Literal("run_failed")
|
|
34
|
+
]),
|
|
35
|
+
count: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
36
|
+
}).annotate({ identifier: "CampaignRunSkippedReason" });
|
|
23
37
|
const CampaignRecipientId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
24
38
|
expected: "a string matching the RegExp ^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
25
39
|
identifier: "CampaignRecipientId"
|
|
@@ -52,6 +66,7 @@ const CampaignLatestRun = /* @__PURE__ */ Schema.Struct({
|
|
|
52
66
|
dispatchedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
53
67
|
failedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
54
68
|
skippedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
69
|
+
pendingCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
55
70
|
estimatedCompletionAt: Schema.Union([Schema.String, Schema.Null])
|
|
56
71
|
}).annotate({ identifier: "CampaignLatestRun" });
|
|
57
72
|
const CampaignRecipientPage = /* @__PURE__ */ Schema.Struct({
|
|
@@ -72,6 +87,8 @@ const CampaignRecipientPage = /* @__PURE__ */ Schema.Struct({
|
|
|
72
87
|
Schema.Literal("unsubscribed"),
|
|
73
88
|
Schema.Literal("blocked"),
|
|
74
89
|
Schema.Literal("suppressed"),
|
|
90
|
+
Schema.Literal("opted_out"),
|
|
91
|
+
Schema.Literal("unreachable"),
|
|
75
92
|
Schema.Literal("no_identity"),
|
|
76
93
|
Schema.Literal("inactive"),
|
|
77
94
|
Schema.Literal("run_cancelled"),
|
|
@@ -148,10 +165,14 @@ const CampaignRun = /* @__PURE__ */ Schema.Struct({
|
|
|
148
165
|
dispatchedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
149
166
|
failedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
150
167
|
skippedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
168
|
+
pendingCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
169
|
+
skippedReasons: Schema.Array(CampaignRunSkippedReason),
|
|
151
170
|
estimatedCompletionAt: Schema.Union([Schema.String, Schema.Null]),
|
|
152
171
|
failureReason: Schema.Union([Schema.String, Schema.Null]),
|
|
153
172
|
holdReason: Schema.Union([Schema.String, Schema.Null]),
|
|
154
173
|
holdDomainId: Schema.Union([EmailDomainId, Schema.Null]),
|
|
174
|
+
holdUntil: Schema.Union([Schema.String, Schema.Null]),
|
|
175
|
+
capacityWarning: Schema.Union([Schema.String, Schema.Null]),
|
|
155
176
|
lastContactId: Schema.Union([Schema.String, Schema.Null]),
|
|
156
177
|
createdBy: Schema.Union([Schema.String, Schema.Null]),
|
|
157
178
|
actorEmail: Schema.String,
|
|
@@ -486,6 +507,6 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
|
|
|
486
507
|
]
|
|
487
508
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.resumeRun").annotate(OpenApi.Summary, "Resume a campaign run").annotate(OpenApi.Description, "Resumes a paused campaign run and returns the updated run.")).annotate(OpenApi.Description, "Campaign drafts and scheduled campaign runs") {};
|
|
488
509
|
//#endregion
|
|
489
|
-
export { Campaign, CampaignAudience, CampaignContent, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignDefinitionSummary, CampaignId, CampaignLatestRun, CampaignListItem, CampaignPage, CampaignPolicy, CampaignRecipientId, CampaignRecipientPage, CampaignRun, CampaignRunAction, CampaignRunId, CampaignRunPage, CampaignsArchive200, CampaignsArchive401, CampaignsArchive403, CampaignsArchive404, CampaignsArchive409, CampaignsArchive422, CampaignsArchive500, CampaignsArchive504, CampaignsArchivePathParams, CampaignsCancelRun200, CampaignsCancelRun401, CampaignsCancelRun403, CampaignsCancelRun404, CampaignsCancelRun409, CampaignsCancelRun422, CampaignsCancelRun500, CampaignsCancelRun502, CampaignsCancelRun504, CampaignsCancelRunPathParams, CampaignsCreate201, CampaignsCreate401, CampaignsCreate403, CampaignsCreate422, CampaignsCreate500, CampaignsCreate504, CampaignsCreateRequestJson, CampaignsGet200, CampaignsGet401, CampaignsGet403, CampaignsGet404, CampaignsGet422, CampaignsGet500, CampaignsGet504, CampaignsGetPathParams, CampaignsGetRun200, CampaignsGetRun401, CampaignsGetRun403, CampaignsGetRun404, CampaignsGetRun422, CampaignsGetRun500, CampaignsGetRun504, CampaignsGetRunPathParams, CampaignsGroup, CampaignsList200, CampaignsList401, CampaignsList403, CampaignsList422, CampaignsList500, CampaignsList504, CampaignsListQuery, CampaignsListRecipients200, CampaignsListRecipients401, CampaignsListRecipients403, CampaignsListRecipients404, CampaignsListRecipients422, CampaignsListRecipients500, CampaignsListRecipients504, CampaignsListRecipientsPathParams, CampaignsListRecipientsQuery, CampaignsListRuns200, CampaignsListRuns401, CampaignsListRuns403, CampaignsListRuns404, CampaignsListRuns422, CampaignsListRuns500, CampaignsListRuns504, CampaignsListRunsPathParams, CampaignsListRunsQuery, CampaignsPauseRun200, CampaignsPauseRun401, CampaignsPauseRun403, CampaignsPauseRun404, CampaignsPauseRun409, CampaignsPauseRun422, CampaignsPauseRun500, CampaignsPauseRun502, CampaignsPauseRun504, CampaignsPauseRunPathParams, CampaignsResumeRun200, CampaignsResumeRun401, CampaignsResumeRun403, CampaignsResumeRun404, CampaignsResumeRun409, CampaignsResumeRun422, CampaignsResumeRun500, CampaignsResumeRun502, CampaignsResumeRun504, CampaignsResumeRunPathParams, CampaignsScheduleRun201, CampaignsScheduleRun401, CampaignsScheduleRun403, CampaignsScheduleRun404, CampaignsScheduleRun409, CampaignsScheduleRun422, CampaignsScheduleRun500, CampaignsScheduleRun502, CampaignsScheduleRun503, CampaignsScheduleRun504, CampaignsScheduleRunPathParams, CampaignsScheduleRunRequestJson, CampaignsUpdate200, CampaignsUpdate401, CampaignsUpdate403, CampaignsUpdate404, CampaignsUpdate409, CampaignsUpdate422, CampaignsUpdate500, CampaignsUpdate504, CampaignsUpdatePathParams, CampaignsUpdateRequestJson };
|
|
510
|
+
export { Campaign, CampaignAudience, CampaignContent, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignDefinitionSummary, CampaignId, CampaignLatestRun, CampaignListItem, CampaignPage, CampaignPolicy, CampaignRecipientId, CampaignRecipientPage, CampaignRun, CampaignRunAction, CampaignRunId, CampaignRunPage, CampaignRunSkippedReason, CampaignsArchive200, CampaignsArchive401, CampaignsArchive403, CampaignsArchive404, CampaignsArchive409, CampaignsArchive422, CampaignsArchive500, CampaignsArchive504, CampaignsArchivePathParams, CampaignsCancelRun200, CampaignsCancelRun401, CampaignsCancelRun403, CampaignsCancelRun404, CampaignsCancelRun409, CampaignsCancelRun422, CampaignsCancelRun500, CampaignsCancelRun502, CampaignsCancelRun504, CampaignsCancelRunPathParams, CampaignsCreate201, CampaignsCreate401, CampaignsCreate403, CampaignsCreate422, CampaignsCreate500, CampaignsCreate504, CampaignsCreateRequestJson, CampaignsGet200, CampaignsGet401, CampaignsGet403, CampaignsGet404, CampaignsGet422, CampaignsGet500, CampaignsGet504, CampaignsGetPathParams, CampaignsGetRun200, CampaignsGetRun401, CampaignsGetRun403, CampaignsGetRun404, CampaignsGetRun422, CampaignsGetRun500, CampaignsGetRun504, CampaignsGetRunPathParams, CampaignsGroup, CampaignsList200, CampaignsList401, CampaignsList403, CampaignsList422, CampaignsList500, CampaignsList504, CampaignsListQuery, CampaignsListRecipients200, CampaignsListRecipients401, CampaignsListRecipients403, CampaignsListRecipients404, CampaignsListRecipients422, CampaignsListRecipients500, CampaignsListRecipients504, CampaignsListRecipientsPathParams, CampaignsListRecipientsQuery, CampaignsListRuns200, CampaignsListRuns401, CampaignsListRuns403, CampaignsListRuns404, CampaignsListRuns422, CampaignsListRuns500, CampaignsListRuns504, CampaignsListRunsPathParams, CampaignsListRunsQuery, CampaignsPauseRun200, CampaignsPauseRun401, CampaignsPauseRun403, CampaignsPauseRun404, CampaignsPauseRun409, CampaignsPauseRun422, CampaignsPauseRun500, CampaignsPauseRun502, CampaignsPauseRun504, CampaignsPauseRunPathParams, CampaignsResumeRun200, CampaignsResumeRun401, CampaignsResumeRun403, CampaignsResumeRun404, CampaignsResumeRun409, CampaignsResumeRun422, CampaignsResumeRun500, CampaignsResumeRun502, CampaignsResumeRun504, CampaignsResumeRunPathParams, CampaignsScheduleRun201, CampaignsScheduleRun401, CampaignsScheduleRun403, CampaignsScheduleRun404, CampaignsScheduleRun409, CampaignsScheduleRun422, CampaignsScheduleRun500, CampaignsScheduleRun502, CampaignsScheduleRun503, CampaignsScheduleRun504, CampaignsScheduleRunPathParams, CampaignsScheduleRunRequestJson, CampaignsUpdate200, CampaignsUpdate401, CampaignsUpdate403, CampaignsUpdate404, CampaignsUpdate409, CampaignsUpdate422, CampaignsUpdate500, CampaignsUpdate504, CampaignsUpdatePathParams, CampaignsUpdateRequestJson };
|
|
490
511
|
|
|
491
512
|
//# sourceMappingURL=campaigns.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
3
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
4
4
|
export type ContactCustomFields = {
|
|
5
5
|
readonly [x: string]: string | number | boolean | null;
|
|
6
6
|
};
|
|
@@ -183,6 +183,7 @@ export declare const ContactProfileUpdate: Schema.Struct<{
|
|
|
183
183
|
}>;
|
|
184
184
|
export type ContactSummary = {
|
|
185
185
|
readonly id: ContactId;
|
|
186
|
+
readonly namespaceId: NamespaceId | null;
|
|
186
187
|
readonly name: string;
|
|
187
188
|
readonly displayName: string | null;
|
|
188
189
|
readonly status: "active" | "paused" | "blocked" | "archived";
|
|
@@ -196,6 +197,7 @@ export type ContactSummary = {
|
|
|
196
197
|
};
|
|
197
198
|
export declare const ContactSummary: Schema.Struct<{
|
|
198
199
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
200
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
199
201
|
readonly name: Schema.String;
|
|
200
202
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
201
203
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>;
|
|
@@ -218,6 +220,7 @@ export type ContactPage = {
|
|
|
218
220
|
export declare const ContactPage: Schema.Struct<{
|
|
219
221
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
220
222
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
223
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
221
224
|
readonly name: Schema.String;
|
|
222
225
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
223
226
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>;
|
|
@@ -237,6 +240,7 @@ export declare const ContactPage: Schema.Struct<{
|
|
|
237
240
|
}>;
|
|
238
241
|
export type Contact = {
|
|
239
242
|
readonly id: ContactId;
|
|
243
|
+
readonly namespaceId: NamespaceId | null;
|
|
240
244
|
readonly name: string;
|
|
241
245
|
readonly displayName: string | null;
|
|
242
246
|
readonly avatar: string | null;
|
|
@@ -253,6 +257,7 @@ export type Contact = {
|
|
|
253
257
|
};
|
|
254
258
|
export declare const Contact: Schema.Struct<{
|
|
255
259
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
260
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
256
261
|
readonly name: Schema.String;
|
|
257
262
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
258
263
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -309,6 +314,7 @@ export declare const Contact: Schema.Struct<{
|
|
|
309
314
|
export type ContactsListQuery = {
|
|
310
315
|
readonly limit?: string | null;
|
|
311
316
|
readonly cursor?: Cursor | null;
|
|
317
|
+
readonly namespaceId?: NamespaceId | null;
|
|
312
318
|
readonly search?: string | null;
|
|
313
319
|
readonly status?: "active" | "paused" | "blocked" | "archived" | null;
|
|
314
320
|
readonly fields?: string | null;
|
|
@@ -320,6 +326,7 @@ export type ContactsListQuery = {
|
|
|
320
326
|
export declare const ContactsListQuery: Schema.Struct<{
|
|
321
327
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
322
328
|
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
329
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
323
330
|
readonly search: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
324
331
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
325
332
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -332,6 +339,7 @@ export type ContactsList200 = ContactPage;
|
|
|
332
339
|
export declare const ContactsList200: Schema.Struct<{
|
|
333
340
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
334
341
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
342
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
335
343
|
readonly name: Schema.String;
|
|
336
344
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
337
345
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>;
|
|
@@ -360,6 +368,7 @@ export declare const ContactsList500: typeof InternalError;
|
|
|
360
368
|
export type ContactsList504 = GatewayTimeoutError;
|
|
361
369
|
export declare const ContactsList504: typeof GatewayTimeoutError;
|
|
362
370
|
export type ContactsCreateRequestJson = {
|
|
371
|
+
readonly namespaceId?: NamespaceId | null;
|
|
363
372
|
readonly name: string;
|
|
364
373
|
readonly displayName?: string | null | null;
|
|
365
374
|
readonly avatar?: string | null | null;
|
|
@@ -373,6 +382,7 @@ export type ContactsCreateRequestJson = {
|
|
|
373
382
|
readonly metadata?: JsonObject | null | null;
|
|
374
383
|
};
|
|
375
384
|
export declare const ContactsCreateRequestJson: Schema.Struct<{
|
|
385
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
376
386
|
readonly name: Schema.String;
|
|
377
387
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
378
388
|
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
@@ -416,6 +426,7 @@ export declare const ContactsCreateRequestJson: Schema.Struct<{
|
|
|
416
426
|
export type ContactsCreate201 = Contact;
|
|
417
427
|
export declare const ContactsCreate201: Schema.Struct<{
|
|
418
428
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
429
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
419
430
|
readonly name: Schema.String;
|
|
420
431
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
421
432
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -475,6 +486,8 @@ export type ContactsCreate402 = PaymentRequiredError;
|
|
|
475
486
|
export declare const ContactsCreate402: typeof PaymentRequiredError;
|
|
476
487
|
export type ContactsCreate403 = ForbiddenError;
|
|
477
488
|
export declare const ContactsCreate403: typeof ForbiddenError;
|
|
489
|
+
export type ContactsCreate404 = ResourceNotFoundError;
|
|
490
|
+
export declare const ContactsCreate404: typeof ResourceNotFoundError;
|
|
478
491
|
export type ContactsCreate409 = ConflictError;
|
|
479
492
|
export declare const ContactsCreate409: typeof ConflictError;
|
|
480
493
|
export type ContactsCreate422 = ValidationError;
|
|
@@ -494,6 +507,7 @@ export declare const ContactsGetPathParams: Schema.Struct<{
|
|
|
494
507
|
export type ContactsGet200 = Contact;
|
|
495
508
|
export declare const ContactsGet200: Schema.Struct<{
|
|
496
509
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
510
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
497
511
|
readonly name: Schema.String;
|
|
498
512
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
499
513
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -639,6 +653,7 @@ export declare const ContactsUpdateRequestJson: Schema.Struct<{
|
|
|
639
653
|
export type ContactsUpdate200 = Contact;
|
|
640
654
|
export declare const ContactsUpdate200: Schema.Struct<{
|
|
641
655
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
656
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
642
657
|
readonly name: Schema.String;
|
|
643
658
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
644
659
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -843,6 +858,7 @@ export declare const ContactsAddIdentityRequestJson: Schema.Struct<{
|
|
|
843
858
|
export type ContactsAddIdentity200 = Contact;
|
|
844
859
|
export declare const ContactsAddIdentity200: Schema.Struct<{
|
|
845
860
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
861
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
846
862
|
readonly name: Schema.String;
|
|
847
863
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
848
864
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -921,6 +937,7 @@ export declare const ContactsRemoveIdentityPathParams: Schema.Struct<{
|
|
|
921
937
|
export type ContactsRemoveIdentity200 = Contact;
|
|
922
938
|
export declare const ContactsRemoveIdentity200: Schema.Struct<{
|
|
923
939
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
940
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
924
941
|
readonly name: Schema.String;
|
|
925
942
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
926
943
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1011,6 +1028,7 @@ export declare const ContactsSetConsentRequestJson: Schema.Struct<{
|
|
|
1011
1028
|
export type ContactsSetConsent200 = Contact;
|
|
1012
1029
|
export declare const ContactsSetConsent200: Schema.Struct<{
|
|
1013
1030
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1031
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1014
1032
|
readonly name: Schema.String;
|
|
1015
1033
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1016
1034
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1091,6 +1109,7 @@ export declare const ContactsAddTagsRequestJson: Schema.Struct<{
|
|
|
1091
1109
|
export type ContactsAddTags200 = Contact;
|
|
1092
1110
|
export declare const ContactsAddTags200: Schema.Struct<{
|
|
1093
1111
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1112
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1094
1113
|
readonly name: Schema.String;
|
|
1095
1114
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1096
1115
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1171,6 +1190,7 @@ export declare const ContactsRemoveTagsRequestJson: Schema.Struct<{
|
|
|
1171
1190
|
export type ContactsRemoveTags200 = Contact;
|
|
1172
1191
|
export declare const ContactsRemoveTags200: Schema.Struct<{
|
|
1173
1192
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1193
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1174
1194
|
readonly name: Schema.String;
|
|
1175
1195
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1176
1196
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1263,6 +1283,7 @@ export declare const ContactsBulkDelete502: typeof BillingProviderError;
|
|
|
1263
1283
|
export type ContactsBulkDelete504 = GatewayTimeoutError;
|
|
1264
1284
|
export declare const ContactsBulkDelete504: typeof GatewayTimeoutError;
|
|
1265
1285
|
export type ContactsBulkImportRequestJson = {
|
|
1286
|
+
readonly namespaceId?: NamespaceId | null;
|
|
1266
1287
|
readonly contacts: ReadonlyArray<{
|
|
1267
1288
|
readonly name: string;
|
|
1268
1289
|
readonly displayName?: string | null | null;
|
|
@@ -1279,6 +1300,7 @@ export type ContactsBulkImportRequestJson = {
|
|
|
1279
1300
|
readonly onConflict?: "skip" | "update" | null;
|
|
1280
1301
|
};
|
|
1281
1302
|
export declare const ContactsBulkImportRequestJson: Schema.Struct<{
|
|
1303
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1282
1304
|
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
1283
1305
|
readonly name: Schema.String;
|
|
1284
1306
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
@@ -1354,6 +1376,8 @@ export type ContactsBulkImport402 = PaymentRequiredError;
|
|
|
1354
1376
|
export declare const ContactsBulkImport402: typeof PaymentRequiredError;
|
|
1355
1377
|
export type ContactsBulkImport403 = ForbiddenError;
|
|
1356
1378
|
export declare const ContactsBulkImport403: typeof ForbiddenError;
|
|
1379
|
+
export type ContactsBulkImport404 = ResourceNotFoundError;
|
|
1380
|
+
export declare const ContactsBulkImport404: typeof ResourceNotFoundError;
|
|
1357
1381
|
export type ContactsBulkImport422 = ValidationError;
|
|
1358
1382
|
export declare const ContactsBulkImport422: typeof ValidationError;
|
|
1359
1383
|
export type ContactsBulkImport500 = InternalError;
|
|
@@ -1453,11 +1477,13 @@ export declare const ContactsExport500: typeof InternalError;
|
|
|
1453
1477
|
export type ContactsExport504 = GatewayTimeoutError;
|
|
1454
1478
|
export declare const ContactsExport504: typeof GatewayTimeoutError;
|
|
1455
1479
|
export type ContactsFindRequestJson = {
|
|
1480
|
+
readonly namespaceId?: NamespaceId | null;
|
|
1456
1481
|
readonly email?: string | null;
|
|
1457
1482
|
readonly phone?: string | null;
|
|
1458
1483
|
readonly externalId?: string | null;
|
|
1459
1484
|
};
|
|
1460
1485
|
export declare const ContactsFindRequestJson: Schema.Struct<{
|
|
1486
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1461
1487
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1462
1488
|
readonly phone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1463
1489
|
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1465,6 +1491,7 @@ export declare const ContactsFindRequestJson: Schema.Struct<{
|
|
|
1465
1491
|
export type ContactsFind200 = Contact | null;
|
|
1466
1492
|
export declare const ContactsFind200: Schema.Union<readonly [Schema.Struct<{
|
|
1467
1493
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1494
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1468
1495
|
readonly name: Schema.String;
|
|
1469
1496
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1470
1497
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1522,6 +1549,8 @@ export type ContactsFind401 = UnauthorizedError;
|
|
|
1522
1549
|
export declare const ContactsFind401: typeof UnauthorizedError;
|
|
1523
1550
|
export type ContactsFind403 = ForbiddenError;
|
|
1524
1551
|
export declare const ContactsFind403: typeof ForbiddenError;
|
|
1552
|
+
export type ContactsFind404 = ResourceNotFoundError;
|
|
1553
|
+
export declare const ContactsFind404: typeof ResourceNotFoundError;
|
|
1525
1554
|
export type ContactsFind409 = ConflictError;
|
|
1526
1555
|
export declare const ContactsFind409: typeof ConflictError;
|
|
1527
1556
|
export type ContactsFind422 = ValidationError;
|
|
@@ -1531,6 +1560,7 @@ export declare const ContactsFind500: typeof InternalError;
|
|
|
1531
1560
|
export type ContactsFind504 = GatewayTimeoutError;
|
|
1532
1561
|
export declare const ContactsFind504: typeof GatewayTimeoutError;
|
|
1533
1562
|
export type ContactsFindOrCreateRequestJson = {
|
|
1563
|
+
readonly namespaceId?: NamespaceId | null;
|
|
1534
1564
|
readonly lookup: ContactLookup;
|
|
1535
1565
|
readonly create?: {
|
|
1536
1566
|
readonly name?: string | null;
|
|
@@ -1542,6 +1572,7 @@ export type ContactsFindOrCreateRequestJson = {
|
|
|
1542
1572
|
} | null;
|
|
1543
1573
|
};
|
|
1544
1574
|
export declare const ContactsFindOrCreateRequestJson: Schema.Struct<{
|
|
1575
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1545
1576
|
readonly lookup: Schema.Union<readonly [Schema.Struct<{
|
|
1546
1577
|
readonly type: Schema.Literal<"email">;
|
|
1547
1578
|
readonly value: Schema.String;
|
|
@@ -1585,6 +1616,7 @@ export type ContactsFindOrCreate200 = {
|
|
|
1585
1616
|
export declare const ContactsFindOrCreate200: Schema.Struct<{
|
|
1586
1617
|
readonly contact: Schema.Struct<{
|
|
1587
1618
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1619
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1588
1620
|
readonly name: Schema.String;
|
|
1589
1621
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1590
1622
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1646,6 +1678,8 @@ export type ContactsFindOrCreate402 = PaymentRequiredError;
|
|
|
1646
1678
|
export declare const ContactsFindOrCreate402: typeof PaymentRequiredError;
|
|
1647
1679
|
export type ContactsFindOrCreate403 = ForbiddenError;
|
|
1648
1680
|
export declare const ContactsFindOrCreate403: typeof ForbiddenError;
|
|
1681
|
+
export type ContactsFindOrCreate404 = ResourceNotFoundError;
|
|
1682
|
+
export declare const ContactsFindOrCreate404: typeof ResourceNotFoundError;
|
|
1649
1683
|
export type ContactsFindOrCreate409 = ConflictError;
|
|
1650
1684
|
export declare const ContactsFindOrCreate409: typeof ConflictError;
|
|
1651
1685
|
export type ContactsFindOrCreate422 = ValidationError;
|
|
@@ -1664,6 +1698,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
1664
1698
|
readonly verified: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1665
1699
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1666
1700
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1701
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1667
1702
|
readonly name: Schema.String;
|
|
1668
1703
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1669
1704
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1822,6 +1857,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
1822
1857
|
readonly tags: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
1823
1858
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1824
1859
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1860
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1825
1861
|
readonly name: Schema.String;
|
|
1826
1862
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1827
1863
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2032,6 +2068,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2032
2068
|
readonly message: Schema.String;
|
|
2033
2069
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2034
2070
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactsBulkImport", "POST", "/v1/contacts/bulk-import", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2071
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2035
2072
|
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
2036
2073
|
readonly name: Schema.String;
|
|
2037
2074
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
@@ -2150,6 +2187,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2150
2187
|
readonly resource: Schema.String;
|
|
2151
2188
|
readonly currentUsage: Schema.Finite;
|
|
2152
2189
|
readonly limit: Schema.Finite;
|
|
2190
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
2191
|
+
readonly _tag: "ResourceNotFoundError";
|
|
2192
|
+
readonly resource: string;
|
|
2193
|
+
readonly id: string;
|
|
2194
|
+
readonly message: string;
|
|
2195
|
+
}, readonly [Schema.Struct<{
|
|
2196
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
2197
|
+
readonly resource: Schema.String;
|
|
2198
|
+
readonly id: Schema.String;
|
|
2199
|
+
readonly message: Schema.String;
|
|
2200
|
+
}>], {
|
|
2201
|
+
readonly _tag: "ResourceNotFoundError";
|
|
2202
|
+
readonly resource: string;
|
|
2203
|
+
readonly id: string;
|
|
2204
|
+
readonly message: string;
|
|
2205
|
+
}>, Schema.Struct<{
|
|
2206
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
2207
|
+
readonly resource: Schema.String;
|
|
2208
|
+
readonly id: Schema.String;
|
|
2209
|
+
readonly message: Schema.String;
|
|
2153
2210
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
2154
2211
|
readonly _tag: "UnauthorizedError";
|
|
2155
2212
|
readonly message: string;
|
|
@@ -2352,6 +2409,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2352
2409
|
readonly message: Schema.String;
|
|
2353
2410
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2354
2411
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactsCreate", "POST", "/v1/contacts", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2412
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2355
2413
|
readonly name: Schema.String;
|
|
2356
2414
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
2357
2415
|
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
@@ -2393,6 +2451,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2393
2451
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>, Schema.Null]>>;
|
|
2394
2452
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2395
2453
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
2454
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
2396
2455
|
readonly name: Schema.String;
|
|
2397
2456
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2398
2457
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2529,6 +2588,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2529
2588
|
readonly resource: Schema.String;
|
|
2530
2589
|
readonly currentUsage: Schema.Finite;
|
|
2531
2590
|
readonly limit: Schema.Finite;
|
|
2591
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
2592
|
+
readonly _tag: "ResourceNotFoundError";
|
|
2593
|
+
readonly resource: string;
|
|
2594
|
+
readonly id: string;
|
|
2595
|
+
readonly message: string;
|
|
2596
|
+
}, readonly [Schema.Struct<{
|
|
2597
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
2598
|
+
readonly resource: Schema.String;
|
|
2599
|
+
readonly id: Schema.String;
|
|
2600
|
+
readonly message: Schema.String;
|
|
2601
|
+
}>], {
|
|
2602
|
+
readonly _tag: "ResourceNotFoundError";
|
|
2603
|
+
readonly resource: string;
|
|
2604
|
+
readonly id: string;
|
|
2605
|
+
readonly message: string;
|
|
2606
|
+
}>, Schema.Struct<{
|
|
2607
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
2608
|
+
readonly resource: Schema.String;
|
|
2609
|
+
readonly id: Schema.String;
|
|
2610
|
+
readonly message: Schema.String;
|
|
2532
2611
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
2533
2612
|
readonly _tag: "UnauthorizedError";
|
|
2534
2613
|
readonly message: string;
|
|
@@ -2634,11 +2713,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2634
2713
|
readonly message: Schema.String;
|
|
2635
2714
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2636
2715
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactsFind", "POST", "/v1/contacts/find", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2716
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2637
2717
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2638
2718
|
readonly phone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2639
2719
|
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2640
2720
|
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2641
2721
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
2722
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
2642
2723
|
readonly name: Schema.String;
|
|
2643
2724
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2644
2725
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2739,6 +2820,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2739
2820
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2740
2821
|
readonly message: Schema.String;
|
|
2741
2822
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2823
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
2824
|
+
readonly _tag: "ResourceNotFoundError";
|
|
2825
|
+
readonly resource: string;
|
|
2826
|
+
readonly id: string;
|
|
2827
|
+
readonly message: string;
|
|
2828
|
+
}, readonly [Schema.Struct<{
|
|
2829
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
2830
|
+
readonly resource: Schema.String;
|
|
2831
|
+
readonly id: Schema.String;
|
|
2832
|
+
readonly message: Schema.String;
|
|
2833
|
+
}>], {
|
|
2834
|
+
readonly _tag: "ResourceNotFoundError";
|
|
2835
|
+
readonly resource: string;
|
|
2836
|
+
readonly id: string;
|
|
2837
|
+
readonly message: string;
|
|
2838
|
+
}>, Schema.Struct<{
|
|
2839
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
2840
|
+
readonly resource: Schema.String;
|
|
2841
|
+
readonly id: Schema.String;
|
|
2842
|
+
readonly message: Schema.String;
|
|
2742
2843
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
2743
2844
|
readonly _tag: "UnauthorizedError";
|
|
2744
2845
|
readonly message: string;
|
|
@@ -2772,6 +2873,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2772
2873
|
readonly message: Schema.String;
|
|
2773
2874
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2774
2875
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactsFindOrCreate", "POST", "/v1/contacts/find-or-create", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2876
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2775
2877
|
readonly lookup: Schema.Union<readonly [Schema.Struct<{
|
|
2776
2878
|
readonly type: Schema.Literal<"email">;
|
|
2777
2879
|
readonly value: Schema.String;
|
|
@@ -2810,6 +2912,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2810
2912
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2811
2913
|
readonly contact: Schema.Struct<{
|
|
2812
2914
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
2915
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
2813
2916
|
readonly name: Schema.String;
|
|
2814
2917
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2815
2918
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2948,6 +3051,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2948
3051
|
readonly resource: Schema.String;
|
|
2949
3052
|
readonly currentUsage: Schema.Finite;
|
|
2950
3053
|
readonly limit: Schema.Finite;
|
|
3054
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3055
|
+
readonly _tag: "ResourceNotFoundError";
|
|
3056
|
+
readonly resource: string;
|
|
3057
|
+
readonly id: string;
|
|
3058
|
+
readonly message: string;
|
|
3059
|
+
}, readonly [Schema.Struct<{
|
|
3060
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
3061
|
+
readonly resource: Schema.String;
|
|
3062
|
+
readonly id: Schema.String;
|
|
3063
|
+
readonly message: Schema.String;
|
|
3064
|
+
}>], {
|
|
3065
|
+
readonly _tag: "ResourceNotFoundError";
|
|
3066
|
+
readonly resource: string;
|
|
3067
|
+
readonly id: string;
|
|
3068
|
+
readonly message: string;
|
|
3069
|
+
}>, Schema.Struct<{
|
|
3070
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
3071
|
+
readonly resource: Schema.String;
|
|
3072
|
+
readonly id: Schema.String;
|
|
3073
|
+
readonly message: Schema.String;
|
|
2951
3074
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
2952
3075
|
readonly _tag: "UnauthorizedError";
|
|
2953
3076
|
readonly message: string;
|
|
@@ -2984,6 +3107,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2984
3107
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
2985
3108
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2986
3109
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3110
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
2987
3111
|
readonly name: Schema.String;
|
|
2988
3112
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2989
3113
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3401,6 +3525,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3401
3525
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactsList", "GET", "/v1/contacts", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3402
3526
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3403
3527
|
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3528
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
3404
3529
|
readonly search: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3405
3530
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
3406
3531
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3411,6 +3536,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3411
3536
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3412
3537
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
3413
3538
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3539
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3414
3540
|
readonly name: Schema.String;
|
|
3415
3541
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3416
3542
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>;
|
|
@@ -3588,6 +3714,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3588
3714
|
readonly identityId: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
3589
3715
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3590
3716
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3717
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3591
3718
|
readonly name: Schema.String;
|
|
3592
3719
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3593
3720
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3726,6 +3853,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3726
3853
|
readonly tags: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
3727
3854
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3728
3855
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3856
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3729
3857
|
readonly name: Schema.String;
|
|
3730
3858
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3731
3859
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3869,6 +3997,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3869
3997
|
readonly proof: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3870
3998
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3871
3999
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
4000
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3872
4001
|
readonly name: Schema.String;
|
|
3873
4002
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3874
4003
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4038,6 +4167,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4038
4167
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4039
4168
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4040
4169
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
4170
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
4041
4171
|
readonly name: Schema.String;
|
|
4042
4172
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4043
4173
|
readonly avatar: Schema.Union<readonly [Schema.String, Schema.Null]>;
|