samva 0.52.0 → 0.54.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 +55 -18
- package/dist/client/sdk.gen.js +165 -45
- package/dist/client/types.gen.d.ts +313 -21
- package/dist/effect/brands.d.ts +8 -1
- package/dist/effect/descriptors/brands.d.ts +4 -4
- package/dist/effect/descriptors/brands.js +4 -4
- package/dist/effect/descriptors/email.d.ts +21 -1
- package/dist/effect/descriptors/email.js +21 -1
- package/dist/effect/email.d.ts +12 -0
- package/dist/effect/email.js +5 -1
- package/dist/effect/events.d.ts +16 -0
- package/dist/effect/generated/api-keys.js +2 -2
- package/dist/effect/generated/brands.d.ts +78 -8
- package/dist/effect/generated/brands.js +21 -12
- package/dist/effect/generated/email.d.ts +473 -2
- package/dist/effect/generated/email.js +106 -7
- package/dist/effect/generated/events.d.ts +48 -0
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/journeys.d.ts +1173 -55
- package/dist/effect/generated/journeys.js +10 -4
- package/dist/effect/generated/logs.d.ts +12 -0
- package/dist/effect/generated/mailboxes.d.ts +8 -0
- package/dist/effect/generated/mailboxes.js +2 -1
- package/dist/effect/generated/messages.d.ts +16 -0
- package/dist/effect/generated/messages.js +7 -1
- package/dist/effect/generated/scheduled-messages.d.ts +36 -0
- package/dist/effect/generated/shared.d.ts +438 -15
- package/dist/effect/generated/shared.js +59 -13
- package/dist/effect/generated/templates.d.ts +34 -1
- package/dist/effect/generated/templates.js +18 -3
- package/dist/effect/generated/whats-app-flows.d.ts +23 -5
- package/dist/effect/generated/whats-app-flows.js +9 -7
- package/dist/effect/generated-metadata.d.ts +12 -0
- package/dist/effect/generated-metadata.js +2 -0
- package/dist/effect/journeys.d.ts +76 -0
- package/dist/effect/mailboxes.d.ts +2 -0
- package/dist/effect/scheduled-messages.d.ts +66 -0
- package/dist/effect/templates.d.ts +1 -0
- package/dist/effect/whatsapp-flows.d.ts +30 -0
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +15 -5
- package/package.json +2 -2
package/dist/effect/brands.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated/shared.js";
|
|
2
|
-
export declare const list: (input?:
|
|
2
|
+
export declare const list: (input?: {
|
|
3
|
+
readonly namespaceId?: string | undefined;
|
|
4
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsList">;
|
|
3
5
|
export declare const create: (input: {
|
|
6
|
+
readonly namespaceId?: string | null | undefined;
|
|
4
7
|
readonly slug: string;
|
|
5
8
|
readonly name: string;
|
|
6
9
|
readonly css?: string | null | undefined;
|
|
@@ -29,9 +32,11 @@ export declare const create: (input: {
|
|
|
29
32
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsCreate">;
|
|
30
33
|
export declare const get: (input: {
|
|
31
34
|
readonly slug: string;
|
|
35
|
+
readonly namespaceId?: string | undefined;
|
|
32
36
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsGet">;
|
|
33
37
|
export declare const update: (input: {
|
|
34
38
|
readonly slug: string;
|
|
39
|
+
readonly namespaceId?: string | null | undefined;
|
|
35
40
|
readonly newSlug?: string | null | undefined;
|
|
36
41
|
readonly name?: string | null | undefined;
|
|
37
42
|
readonly css?: string | null | undefined;
|
|
@@ -59,7 +64,9 @@ export declare const update: (input: {
|
|
|
59
64
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsUpdate">;
|
|
60
65
|
export declare const remove: (input: {
|
|
61
66
|
readonly slug: string;
|
|
67
|
+
readonly namespaceId?: string | undefined;
|
|
62
68
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsRemove">;
|
|
63
69
|
export declare const setDefault: (input: {
|
|
64
70
|
readonly slug: string;
|
|
71
|
+
readonly namespaceId?: string | undefined;
|
|
65
72
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsSetDefault">;
|
|
@@ -5,7 +5,7 @@ export declare const brandsOperations: {
|
|
|
5
5
|
readonly idempotent: false;
|
|
6
6
|
readonly paginated: false;
|
|
7
7
|
readonly call: {
|
|
8
|
-
readonly kind: "
|
|
8
|
+
readonly kind: "params";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
readonly brandsCreate: {
|
|
@@ -23,7 +23,7 @@ export declare const brandsOperations: {
|
|
|
23
23
|
readonly idempotent: false;
|
|
24
24
|
readonly paginated: false;
|
|
25
25
|
readonly call: {
|
|
26
|
-
readonly kind: "
|
|
26
|
+
readonly kind: "pathParams";
|
|
27
27
|
readonly paths: readonly ["slug"];
|
|
28
28
|
};
|
|
29
29
|
};
|
|
@@ -43,7 +43,7 @@ export declare const brandsOperations: {
|
|
|
43
43
|
readonly idempotent: false;
|
|
44
44
|
readonly paginated: false;
|
|
45
45
|
readonly call: {
|
|
46
|
-
readonly kind: "
|
|
46
|
+
readonly kind: "pathParams";
|
|
47
47
|
readonly paths: readonly ["slug"];
|
|
48
48
|
};
|
|
49
49
|
};
|
|
@@ -53,7 +53,7 @@ export declare const brandsOperations: {
|
|
|
53
53
|
readonly idempotent: false;
|
|
54
54
|
readonly paginated: false;
|
|
55
55
|
readonly call: {
|
|
56
|
-
readonly kind: "
|
|
56
|
+
readonly kind: "pathParams";
|
|
57
57
|
readonly paths: readonly ["slug"];
|
|
58
58
|
};
|
|
59
59
|
};
|
|
@@ -5,7 +5,7 @@ const brandsOperations = {
|
|
|
5
5
|
method: "GET",
|
|
6
6
|
idempotent: false,
|
|
7
7
|
paginated: false,
|
|
8
|
-
call: { kind: "
|
|
8
|
+
call: { kind: "params" }
|
|
9
9
|
},
|
|
10
10
|
brandsCreate: {
|
|
11
11
|
group: "Brands",
|
|
@@ -20,7 +20,7 @@ const brandsOperations = {
|
|
|
20
20
|
idempotent: false,
|
|
21
21
|
paginated: false,
|
|
22
22
|
call: {
|
|
23
|
-
kind: "
|
|
23
|
+
kind: "pathParams",
|
|
24
24
|
paths: ["slug"]
|
|
25
25
|
}
|
|
26
26
|
},
|
|
@@ -40,7 +40,7 @@ const brandsOperations = {
|
|
|
40
40
|
idempotent: false,
|
|
41
41
|
paginated: false,
|
|
42
42
|
call: {
|
|
43
|
-
kind: "
|
|
43
|
+
kind: "pathParams",
|
|
44
44
|
paths: ["slug"]
|
|
45
45
|
}
|
|
46
46
|
},
|
|
@@ -50,7 +50,7 @@ const brandsOperations = {
|
|
|
50
50
|
idempotent: false,
|
|
51
51
|
paginated: false,
|
|
52
52
|
call: {
|
|
53
|
-
kind: "
|
|
53
|
+
kind: "pathParams",
|
|
54
54
|
paths: ["slug"]
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -8,6 +8,16 @@ export declare const emailOperations: {
|
|
|
8
8
|
readonly kind: "payload";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
readonly emailGetDeliverabilityInsights: {
|
|
12
|
+
readonly group: "Email";
|
|
13
|
+
readonly method: "GET";
|
|
14
|
+
readonly idempotent: false;
|
|
15
|
+
readonly paginated: false;
|
|
16
|
+
readonly call: {
|
|
17
|
+
readonly kind: "pathParams";
|
|
18
|
+
readonly paths: readonly ["id"];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
11
21
|
readonly emailGetOnboardingReview: {
|
|
12
22
|
readonly group: "Email";
|
|
13
23
|
readonly method: "GET";
|
|
@@ -275,7 +285,7 @@ export declare const emailOperations: {
|
|
|
275
285
|
readonly idempotent: false;
|
|
276
286
|
readonly paginated: false;
|
|
277
287
|
readonly call: {
|
|
278
|
-
readonly kind: "
|
|
288
|
+
readonly kind: "pathParams";
|
|
279
289
|
readonly paths: readonly ["id"];
|
|
280
290
|
};
|
|
281
291
|
};
|
|
@@ -327,6 +337,16 @@ export declare const emailOperations: {
|
|
|
327
337
|
readonly paths: readonly ["id"];
|
|
328
338
|
};
|
|
329
339
|
};
|
|
340
|
+
readonly emailUpdateSender: {
|
|
341
|
+
readonly group: "Email";
|
|
342
|
+
readonly method: "PATCH";
|
|
343
|
+
readonly idempotent: false;
|
|
344
|
+
readonly paginated: false;
|
|
345
|
+
readonly call: {
|
|
346
|
+
readonly kind: "pathPayload";
|
|
347
|
+
readonly paths: readonly ["id"];
|
|
348
|
+
};
|
|
349
|
+
};
|
|
330
350
|
readonly emailRemoveSender: {
|
|
331
351
|
readonly group: "Email";
|
|
332
352
|
readonly method: "DELETE";
|
|
@@ -7,6 +7,16 @@ const emailOperations = {
|
|
|
7
7
|
paginated: false,
|
|
8
8
|
call: { kind: "payload" }
|
|
9
9
|
},
|
|
10
|
+
emailGetDeliverabilityInsights: {
|
|
11
|
+
group: "Email",
|
|
12
|
+
method: "GET",
|
|
13
|
+
idempotent: false,
|
|
14
|
+
paginated: false,
|
|
15
|
+
call: {
|
|
16
|
+
kind: "pathParams",
|
|
17
|
+
paths: ["id"]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
10
20
|
emailGetOnboardingReview: {
|
|
11
21
|
group: "Email",
|
|
12
22
|
method: "GET",
|
|
@@ -256,7 +266,7 @@ const emailOperations = {
|
|
|
256
266
|
idempotent: false,
|
|
257
267
|
paginated: false,
|
|
258
268
|
call: {
|
|
259
|
-
kind: "
|
|
269
|
+
kind: "pathParams",
|
|
260
270
|
paths: ["id"]
|
|
261
271
|
}
|
|
262
272
|
},
|
|
@@ -304,6 +314,16 @@ const emailOperations = {
|
|
|
304
314
|
paths: ["id"]
|
|
305
315
|
}
|
|
306
316
|
},
|
|
317
|
+
emailUpdateSender: {
|
|
318
|
+
group: "Email",
|
|
319
|
+
method: "PATCH",
|
|
320
|
+
idempotent: false,
|
|
321
|
+
paginated: false,
|
|
322
|
+
call: {
|
|
323
|
+
kind: "pathPayload",
|
|
324
|
+
paths: ["id"]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
307
327
|
emailRemoveSender: {
|
|
308
328
|
group: "Email",
|
|
309
329
|
method: "DELETE",
|
package/dist/effect/email.d.ts
CHANGED
|
@@ -14,6 +14,11 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
14
14
|
}[];
|
|
15
15
|
readonly createdAt: string;
|
|
16
16
|
}, import("./errors.js").BillingProviderError | import("./errors.js").ConflictError | import("./errors.js").DeliveryUnavailableError | import("./errors.js").ExternalServiceError | import("./errors.js").FlagDisabledError | import("./errors.js").ForbiddenError | import("./errors.js").FromAddressRequiredError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("../index.js").MediaUploadError | import("./errors.js").OnboardingReviewRequiredError | import("./errors.js").PaymentRequiredError | import("./errors.js").RateLimitedError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").SenderNotReadyError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
17
|
+
export declare const getDeliverabilityInsights: (input: {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly days?: "30" | "7" | undefined;
|
|
20
|
+
readonly mailboxProvider?: string | undefined;
|
|
21
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetDeliverabilityInsights">;
|
|
17
22
|
export declare const getOnboardingReview: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetOnboardingReview">;
|
|
18
23
|
export declare const reapplyOnboardingReview: (input: {
|
|
19
24
|
readonly expectedGeneration: number;
|
|
@@ -135,6 +140,7 @@ export declare const getDomainConnect: (input: {
|
|
|
135
140
|
export declare const buildDomainConnectApplyUrl: (input: {
|
|
136
141
|
readonly id: string;
|
|
137
142
|
readonly mode: "send-and-receive" | "send-only";
|
|
143
|
+
readonly returnUrl?: string | undefined;
|
|
138
144
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailBuildDomainConnectApplyUrl">;
|
|
139
145
|
export declare const completeDomainConnect: (input: {
|
|
140
146
|
readonly id: string;
|
|
@@ -183,6 +189,7 @@ export declare const getCustomTrackingDomainConnect: (input: {
|
|
|
183
189
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetCustomTrackingDomainConnect">;
|
|
184
190
|
export declare const buildCustomTrackingDomainConnectApplyUrl: (input: {
|
|
185
191
|
readonly id: string;
|
|
192
|
+
readonly returnUrl?: string | undefined;
|
|
186
193
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailBuildCustomTrackingDomainConnectApplyUrl">;
|
|
187
194
|
export declare const completeCustomTrackingDomainConnect: (input: {
|
|
188
195
|
readonly id: string;
|
|
@@ -282,6 +289,11 @@ export declare const checkSenderVerification: (input: {
|
|
|
282
289
|
export declare const getSender: (input: {
|
|
283
290
|
readonly id: string;
|
|
284
291
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetSender">;
|
|
292
|
+
export declare const updateSender: (input: {
|
|
293
|
+
readonly id: string;
|
|
294
|
+
readonly name?: string | null | undefined;
|
|
295
|
+
readonly replyToEmails?: readonly string[] | null | undefined;
|
|
296
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailUpdateSender">;
|
|
285
297
|
export declare const removeSender: (input: {
|
|
286
298
|
readonly id: string;
|
|
287
299
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailRemoveSender">;
|
package/dist/effect/email.js
CHANGED
|
@@ -34,6 +34,7 @@ var email_exports = /* @__PURE__ */ __exportAll({
|
|
|
34
34
|
getCatchAllStats: () => getCatchAllStats,
|
|
35
35
|
getCustomTracking: () => getCustomTracking,
|
|
36
36
|
getCustomTrackingDomainConnect: () => getCustomTrackingDomainConnect,
|
|
37
|
+
getDeliverabilityInsights: () => getDeliverabilityInsights,
|
|
37
38
|
getDomainById: () => getDomainById,
|
|
38
39
|
getDomainConnect: () => getDomainConnect,
|
|
39
40
|
getDomainVerification: () => getDomainVerification,
|
|
@@ -69,10 +70,12 @@ var email_exports = /* @__PURE__ */ __exportAll({
|
|
|
69
70
|
updateDomainWarmingPolicy: () => updateDomainWarmingPolicy,
|
|
70
71
|
updateForwardingRule: () => updateForwardingRule,
|
|
71
72
|
updateRecipientTrackingPreference: () => updateRecipientTrackingPreference,
|
|
73
|
+
updateSender: () => updateSender,
|
|
72
74
|
updateTrackingDefaults: () => updateTrackingDefaults
|
|
73
75
|
});
|
|
74
76
|
const make = /* @__PURE__ */ forGroup(EmailGroup, emailOperations);
|
|
75
77
|
const send = sendEmail;
|
|
78
|
+
const getDeliverabilityInsights = /* @__PURE__ */ make("emailGetDeliverabilityInsights");
|
|
76
79
|
const getOnboardingReview = /* @__PURE__ */ make("emailGetOnboardingReview");
|
|
77
80
|
const reapplyOnboardingReview = /* @__PURE__ */ make("emailReapplyOnboardingReview");
|
|
78
81
|
const respondToOnboardingInformationRequest = /* @__PURE__ */ make("emailRespondToOnboardingInformationRequest");
|
|
@@ -106,6 +109,7 @@ const addSender = addEmailSender;
|
|
|
106
109
|
const listSenders = /* @__PURE__ */ make("emailListSenders");
|
|
107
110
|
const checkSenderVerification = /* @__PURE__ */ make("emailCheckSenderVerification");
|
|
108
111
|
const getSender = /* @__PURE__ */ make("emailGetSender");
|
|
112
|
+
const updateSender = /* @__PURE__ */ make("emailUpdateSender");
|
|
109
113
|
const removeSender = /* @__PURE__ */ make("emailRemoveSender");
|
|
110
114
|
const setDefaultSender = /* @__PURE__ */ make("emailSetDefaultSender");
|
|
111
115
|
const getStats = /* @__PURE__ */ make("emailGetStats");
|
|
@@ -135,6 +139,6 @@ const cancelDomainWarmingBatch = /* @__PURE__ */ make("emailCancelDomainWarmingB
|
|
|
135
139
|
const pauseDomainWarming = /* @__PURE__ */ make("emailPauseDomainWarming");
|
|
136
140
|
const resumeDomainWarming = /* @__PURE__ */ make("emailResumeDomainWarming");
|
|
137
141
|
const completeDomainWarming = /* @__PURE__ */ make("emailCompleteDomainWarming");
|
|
138
|
-
export { TrackingRecipientEmail, addBlock, addDomain, addSender, advanceDomainVerification, buildCustomTrackingDomainConnectApplyUrl, buildDomainConnectApplyUrl, cancelDomainWarmingBatch, checkBlocked, checkSenderVerification, completeCustomTrackingDomainConnect, completeDomainConnect, completeDomainWarming, countSuppressions, createDomainWarmingPlan, createForwardingRule, deleteForwardingRule, detectRegistrar, disableCatchAll, disableCustomTracking, email_exports, enableCatchAll, enableCustomTracking, enableReceiving, getBlockLogs, getCatchAllConfig, getCatchAllStats, getCustomTracking, getCustomTrackingDomainConnect, getDomainById, getDomainConnect, getDomainVerification, getDomainWarming, getForwardingLog, getOnboardingReview, getReceivingStatus, getRecipientTrackingPreference, getSender, getStats, getTrackingDefaults, listBlocks, listDomains, listForwardingRules, listSenders, listSuppressions, pauseDomainWarming, reapplyOnboardingReview, recheckCustomTracking, removeBlock, removeDomain, removeSender, removeSuppression, respondToOnboardingInformationRequest, resumeDomainWarming, rotateDomainDkim, send, setDefaultDomain, setDefaultSender, updateBlock, updateCatchAllConfig, updateDomainConfig, updateDomainWarmingPolicy, updateForwardingRule, updateRecipientTrackingPreference, updateTrackingDefaults };
|
|
142
|
+
export { TrackingRecipientEmail, addBlock, addDomain, addSender, advanceDomainVerification, buildCustomTrackingDomainConnectApplyUrl, buildDomainConnectApplyUrl, cancelDomainWarmingBatch, checkBlocked, checkSenderVerification, completeCustomTrackingDomainConnect, completeDomainConnect, completeDomainWarming, countSuppressions, createDomainWarmingPlan, createForwardingRule, deleteForwardingRule, detectRegistrar, disableCatchAll, disableCustomTracking, email_exports, enableCatchAll, enableCustomTracking, enableReceiving, getBlockLogs, getCatchAllConfig, getCatchAllStats, getCustomTracking, getCustomTrackingDomainConnect, getDeliverabilityInsights, getDomainById, getDomainConnect, getDomainVerification, getDomainWarming, getForwardingLog, getOnboardingReview, getReceivingStatus, getRecipientTrackingPreference, getSender, getStats, getTrackingDefaults, listBlocks, listDomains, listForwardingRules, listSenders, listSuppressions, pauseDomainWarming, reapplyOnboardingReview, recheckCustomTracking, removeBlock, removeDomain, removeSender, removeSuppression, respondToOnboardingInformationRequest, resumeDomainWarming, rotateDomainDkim, send, setDefaultDomain, setDefaultSender, updateBlock, updateCatchAllConfig, updateDomainConfig, updateDomainWarmingPolicy, updateForwardingRule, updateRecipientTrackingPreference, updateSender, updateTrackingDefaults };
|
|
139
143
|
|
|
140
144
|
//# sourceMappingURL=email.js.map
|
package/dist/effect/events.d.ts
CHANGED
|
@@ -4,14 +4,22 @@ export declare const create: (input: {
|
|
|
4
4
|
readonly id: string;
|
|
5
5
|
readonly externalId?: undefined;
|
|
6
6
|
readonly email?: undefined;
|
|
7
|
+
readonly phone?: undefined;
|
|
7
8
|
} | {
|
|
8
9
|
readonly externalId: string;
|
|
9
10
|
readonly id?: undefined;
|
|
10
11
|
readonly email?: undefined;
|
|
12
|
+
readonly phone?: undefined;
|
|
11
13
|
} | {
|
|
12
14
|
readonly email: string;
|
|
13
15
|
readonly id?: undefined;
|
|
14
16
|
readonly externalId?: undefined;
|
|
17
|
+
readonly phone?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
readonly phone: string;
|
|
20
|
+
readonly id?: undefined;
|
|
21
|
+
readonly externalId?: undefined;
|
|
22
|
+
readonly email?: undefined;
|
|
15
23
|
};
|
|
16
24
|
readonly name: string;
|
|
17
25
|
readonly properties?: {
|
|
@@ -49,14 +57,22 @@ export declare const batch: (input: {
|
|
|
49
57
|
readonly id: string;
|
|
50
58
|
readonly externalId?: undefined;
|
|
51
59
|
readonly email?: undefined;
|
|
60
|
+
readonly phone?: undefined;
|
|
52
61
|
} | {
|
|
53
62
|
readonly externalId: string;
|
|
54
63
|
readonly id?: undefined;
|
|
55
64
|
readonly email?: undefined;
|
|
65
|
+
readonly phone?: undefined;
|
|
56
66
|
} | {
|
|
57
67
|
readonly email: string;
|
|
58
68
|
readonly id?: undefined;
|
|
59
69
|
readonly externalId?: undefined;
|
|
70
|
+
readonly phone?: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
readonly phone: string;
|
|
73
|
+
readonly id?: undefined;
|
|
74
|
+
readonly externalId?: undefined;
|
|
75
|
+
readonly email?: undefined;
|
|
60
76
|
};
|
|
61
77
|
readonly name: string;
|
|
62
78
|
readonly properties?: {
|
|
@@ -67,7 +67,7 @@ const ApiKeysList422 = ValidationError;
|
|
|
67
67
|
const ApiKeysList500 = InternalError;
|
|
68
68
|
const ApiKeysList504 = GatewayTimeoutError;
|
|
69
69
|
const ApiKeysCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
70
|
-
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })),
|
|
70
|
+
name: Schema.String.annotate({ description: "API key name, up to 32 characters." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })),
|
|
71
71
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
72
72
|
expiresAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
73
73
|
access: Schema.optionalKey(Schema.Union([ApiKeyAccess, Schema.Null]).annotate({ description: "Defaults to full access for an unrestricted member, or namespace grants for a restricted member. A restricted API key creating a key defaults to its own grants and cannot issue full access." }))
|
|
@@ -94,7 +94,7 @@ const ApiKeysGet500 = InternalError;
|
|
|
94
94
|
const ApiKeysGet504 = GatewayTimeoutError;
|
|
95
95
|
const ApiKeysUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
|
|
96
96
|
const ApiKeysUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
97
|
-
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })), Schema.Null])),
|
|
97
|
+
name: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "API key name, up to 32 characters." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })), Schema.Null])),
|
|
98
98
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
99
99
|
}))();
|
|
100
100
|
const ApiKeysUpdate200 = ApiKey;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type * as EffectBrand from "effect/Brand";
|
|
2
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
|
-
export type BrandId = string & EffectBrand.Brand<"BrandId">;
|
|
6
|
-
export declare const BrandId: Schema.brand<Schema.String, "BrandId">;
|
|
3
|
+
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, BrandId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
7
4
|
export type Brand = {
|
|
8
5
|
readonly id: BrandId;
|
|
6
|
+
readonly namespaceId: NamespaceId | null;
|
|
9
7
|
readonly slug: string;
|
|
10
8
|
readonly name: string;
|
|
11
9
|
readonly isDefault: boolean;
|
|
@@ -18,6 +16,7 @@ export type Brand = {
|
|
|
18
16
|
};
|
|
19
17
|
export declare const Brand: Schema.Struct<{
|
|
20
18
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
19
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
21
20
|
readonly slug: Schema.String;
|
|
22
21
|
readonly name: Schema.String;
|
|
23
22
|
readonly isDefault: Schema.Boolean;
|
|
@@ -53,6 +52,7 @@ export type BrandList = {
|
|
|
53
52
|
export declare const BrandList: Schema.Struct<{
|
|
54
53
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
55
54
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
55
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
56
56
|
readonly slug: Schema.String;
|
|
57
57
|
readonly name: Schema.String;
|
|
58
58
|
readonly isDefault: Schema.Boolean;
|
|
@@ -83,10 +83,17 @@ export declare const BrandList: Schema.Struct<{
|
|
|
83
83
|
readonly updatedAt: Schema.String;
|
|
84
84
|
}>>;
|
|
85
85
|
}>;
|
|
86
|
+
export type BrandsListQuery = {
|
|
87
|
+
readonly namespaceId?: NamespaceId;
|
|
88
|
+
};
|
|
89
|
+
export declare const BrandsListQuery: Schema.Struct<{
|
|
90
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
91
|
+
}>;
|
|
86
92
|
export type BrandsList200 = BrandList;
|
|
87
93
|
export declare const BrandsList200: Schema.Struct<{
|
|
88
94
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
89
95
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
96
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
90
97
|
readonly slug: Schema.String;
|
|
91
98
|
readonly name: Schema.String;
|
|
92
99
|
readonly isDefault: Schema.Boolean;
|
|
@@ -130,6 +137,7 @@ export declare const BrandsList500: typeof InternalError;
|
|
|
130
137
|
export type BrandsList504 = GatewayTimeoutError;
|
|
131
138
|
export declare const BrandsList504: typeof GatewayTimeoutError;
|
|
132
139
|
export type BrandsCreateRequestJson = {
|
|
140
|
+
readonly namespaceId?: NamespaceId | null;
|
|
133
141
|
readonly slug: string;
|
|
134
142
|
readonly name: string;
|
|
135
143
|
readonly css?: string | null;
|
|
@@ -138,6 +146,7 @@ export type BrandsCreateRequestJson = {
|
|
|
138
146
|
readonly isDefault?: boolean | null;
|
|
139
147
|
};
|
|
140
148
|
export declare const BrandsCreateRequestJson: Schema.Struct<{
|
|
149
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
141
150
|
readonly slug: Schema.String;
|
|
142
151
|
readonly name: Schema.String;
|
|
143
152
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -167,6 +176,7 @@ export declare const BrandsCreateRequestJson: Schema.Struct<{
|
|
|
167
176
|
export type BrandsCreate201 = Brand;
|
|
168
177
|
export declare const BrandsCreate201: Schema.Struct<{
|
|
169
178
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
179
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
170
180
|
readonly slug: Schema.String;
|
|
171
181
|
readonly name: Schema.String;
|
|
172
182
|
readonly isDefault: Schema.Boolean;
|
|
@@ -202,6 +212,8 @@ export type BrandsCreate401 = UnauthorizedError;
|
|
|
202
212
|
export declare const BrandsCreate401: typeof UnauthorizedError;
|
|
203
213
|
export type BrandsCreate403 = ForbiddenError;
|
|
204
214
|
export declare const BrandsCreate403: typeof ForbiddenError;
|
|
215
|
+
export type BrandsCreate404 = ResourceNotFoundError;
|
|
216
|
+
export declare const BrandsCreate404: typeof ResourceNotFoundError;
|
|
205
217
|
export type BrandsCreate409 = ConflictError;
|
|
206
218
|
export declare const BrandsCreate409: typeof ConflictError;
|
|
207
219
|
export type BrandsCreate422 = ValidationError;
|
|
@@ -216,9 +228,16 @@ export type BrandsGetPathParams = {
|
|
|
216
228
|
export declare const BrandsGetPathParams: Schema.Struct<{
|
|
217
229
|
readonly slug: Schema.String;
|
|
218
230
|
}>;
|
|
231
|
+
export type BrandsGetQuery = {
|
|
232
|
+
readonly namespaceId?: NamespaceId;
|
|
233
|
+
};
|
|
234
|
+
export declare const BrandsGetQuery: Schema.Struct<{
|
|
235
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
236
|
+
}>;
|
|
219
237
|
export type BrandsGet200 = Brand;
|
|
220
238
|
export declare const BrandsGet200: Schema.Struct<{
|
|
221
239
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
240
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
222
241
|
readonly slug: Schema.String;
|
|
223
242
|
readonly name: Schema.String;
|
|
224
243
|
readonly isDefault: Schema.Boolean;
|
|
@@ -268,6 +287,12 @@ export type BrandsRemovePathParams = {
|
|
|
268
287
|
export declare const BrandsRemovePathParams: Schema.Struct<{
|
|
269
288
|
readonly slug: Schema.String;
|
|
270
289
|
}>;
|
|
290
|
+
export type BrandsRemoveQuery = {
|
|
291
|
+
readonly namespaceId?: NamespaceId;
|
|
292
|
+
};
|
|
293
|
+
export declare const BrandsRemoveQuery: Schema.Struct<{
|
|
294
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
295
|
+
}>;
|
|
271
296
|
export type BrandsRemove200 = SuccessResponse;
|
|
272
297
|
export declare const BrandsRemove200: Schema.Struct<{
|
|
273
298
|
readonly success: Schema.Boolean;
|
|
@@ -295,6 +320,7 @@ export declare const BrandsUpdatePathParams: Schema.Struct<{
|
|
|
295
320
|
readonly slug: Schema.String;
|
|
296
321
|
}>;
|
|
297
322
|
export type BrandsUpdateRequestJson = {
|
|
323
|
+
readonly namespaceId?: NamespaceId | null;
|
|
298
324
|
readonly newSlug?: string | null;
|
|
299
325
|
readonly name?: string | null;
|
|
300
326
|
readonly css?: string | null;
|
|
@@ -302,6 +328,7 @@ export type BrandsUpdateRequestJson = {
|
|
|
302
328
|
readonly footer?: BrandFooter | null;
|
|
303
329
|
};
|
|
304
330
|
export declare const BrandsUpdateRequestJson: Schema.Struct<{
|
|
331
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
305
332
|
readonly newSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
306
333
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
307
334
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -330,6 +357,7 @@ export declare const BrandsUpdateRequestJson: Schema.Struct<{
|
|
|
330
357
|
export type BrandsUpdate200 = Brand;
|
|
331
358
|
export declare const BrandsUpdate200: Schema.Struct<{
|
|
332
359
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
360
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
333
361
|
readonly slug: Schema.String;
|
|
334
362
|
readonly name: Schema.String;
|
|
335
363
|
readonly isDefault: Schema.Boolean;
|
|
@@ -381,9 +409,16 @@ export type BrandsSetDefaultPathParams = {
|
|
|
381
409
|
export declare const BrandsSetDefaultPathParams: Schema.Struct<{
|
|
382
410
|
readonly slug: Schema.String;
|
|
383
411
|
}>;
|
|
412
|
+
export type BrandsSetDefaultQuery = {
|
|
413
|
+
readonly namespaceId?: NamespaceId;
|
|
414
|
+
};
|
|
415
|
+
export declare const BrandsSetDefaultQuery: Schema.Struct<{
|
|
416
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
417
|
+
}>;
|
|
384
418
|
export type BrandsSetDefault200 = Brand;
|
|
385
419
|
export declare const BrandsSetDefault200: Schema.Struct<{
|
|
386
420
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
421
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
387
422
|
readonly slug: Schema.String;
|
|
388
423
|
readonly name: Schema.String;
|
|
389
424
|
readonly isDefault: Schema.Boolean;
|
|
@@ -428,6 +463,7 @@ export declare const BrandsSetDefault500: typeof InternalError;
|
|
|
428
463
|
export type BrandsSetDefault504 = GatewayTimeoutError;
|
|
429
464
|
export declare const BrandsSetDefault504: typeof GatewayTimeoutError;
|
|
430
465
|
declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpoint.HttpApiEndpoint<"brandsCreate", "POST", "/v1/brands", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
466
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
431
467
|
readonly slug: Schema.String;
|
|
432
468
|
readonly name: Schema.String;
|
|
433
469
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -455,6 +491,7 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
455
491
|
readonly isDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
456
492
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
457
493
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
494
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
458
495
|
readonly slug: Schema.String;
|
|
459
496
|
readonly name: Schema.String;
|
|
460
497
|
readonly isDefault: Schema.Boolean;
|
|
@@ -551,6 +588,26 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
551
588
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
552
589
|
readonly message: Schema.String;
|
|
553
590
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
591
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
592
|
+
readonly _tag: "ResourceNotFoundError";
|
|
593
|
+
readonly resource: string;
|
|
594
|
+
readonly id: string;
|
|
595
|
+
readonly message: string;
|
|
596
|
+
}, readonly [Schema.Struct<{
|
|
597
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
598
|
+
readonly resource: Schema.String;
|
|
599
|
+
readonly id: Schema.String;
|
|
600
|
+
readonly message: Schema.String;
|
|
601
|
+
}>], {
|
|
602
|
+
readonly _tag: "ResourceNotFoundError";
|
|
603
|
+
readonly resource: string;
|
|
604
|
+
readonly id: string;
|
|
605
|
+
readonly message: string;
|
|
606
|
+
}>, Schema.Struct<{
|
|
607
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
608
|
+
readonly resource: Schema.String;
|
|
609
|
+
readonly id: Schema.String;
|
|
610
|
+
readonly message: Schema.String;
|
|
554
611
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
555
612
|
readonly _tag: "UnauthorizedError";
|
|
556
613
|
readonly message: string;
|
|
@@ -585,8 +642,11 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
585
642
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
586
643
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsGet", "GET", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
|
|
587
644
|
readonly slug: Schema.String;
|
|
588
|
-
}>>,
|
|
645
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
646
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
647
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
589
648
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
649
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
590
650
|
readonly slug: Schema.String;
|
|
591
651
|
readonly name: Schema.String;
|
|
592
652
|
readonly isDefault: Schema.Boolean;
|
|
@@ -715,9 +775,12 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
715
775
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
716
776
|
readonly message: Schema.String;
|
|
717
777
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
718
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsList", "GET", "/v1/brands", never,
|
|
778
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsList", "GET", "/v1/brands", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
779
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
780
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
719
781
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
720
782
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
783
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
721
784
|
readonly slug: Schema.String;
|
|
722
785
|
readonly name: Schema.String;
|
|
723
786
|
readonly isDefault: Schema.Boolean;
|
|
@@ -829,7 +892,9 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
829
892
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
830
893
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsRemove", "DELETE", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
|
|
831
894
|
readonly slug: Schema.String;
|
|
832
|
-
}>>,
|
|
895
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
896
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
897
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
833
898
|
readonly success: Schema.Boolean;
|
|
834
899
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
835
900
|
readonly _tag: "ConflictError";
|
|
@@ -953,8 +1018,11 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
953
1018
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
954
1019
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsSetDefault", "POST", "/v1/brands/:slug/default", Schema.toCodecStringTree<Schema.Struct<{
|
|
955
1020
|
readonly slug: Schema.String;
|
|
956
|
-
}>>,
|
|
1021
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1022
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
1023
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
957
1024
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
1025
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
958
1026
|
readonly slug: Schema.String;
|
|
959
1027
|
readonly name: Schema.String;
|
|
960
1028
|
readonly isDefault: Schema.Boolean;
|
|
@@ -1086,6 +1154,7 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
1086
1154
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsUpdate", "PATCH", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
|
|
1087
1155
|
readonly slug: Schema.String;
|
|
1088
1156
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1157
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1089
1158
|
readonly newSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1090
1159
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1091
1160
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1112,6 +1181,7 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
1112
1181
|
}>, Schema.Null]>>;
|
|
1113
1182
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1114
1183
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
1184
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1115
1185
|
readonly slug: Schema.String;
|
|
1116
1186
|
readonly name: Schema.String;
|
|
1117
1187
|
readonly isDefault: Schema.Boolean;
|