samva 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -1
- package/README.md +44 -1
- package/dist/analytics-CaqPRsry.js +207 -0
- package/dist/api-keys-Ce1Y4_Ip.js +274 -0
- package/dist/attachments-DYqVIraC.js +140 -0
- package/dist/brands-ZwuOGIWO.js +175 -0
- package/dist/campaigns-DZlz1E9E.js +522 -0
- package/dist/categories-CA4XIQAb.js +1011 -0
- package/dist/client/sdk.gen.d.ts +174 -3
- package/dist/client/types.gen.d.ts +1126 -11
- package/dist/client-DOzUrdTE.js +1115 -0
- package/dist/contact-groups-BLbFXnjq.js +446 -0
- package/dist/contacts-BbsoXXB4.js +787 -0
- package/dist/conversations-_sRHueML.js +494 -0
- package/dist/custom-fields-BHWbwlKn.js +176 -0
- package/dist/effect/analytics.js +2 -21
- package/dist/effect/api-keys.d.ts +1 -1
- package/dist/effect/api-keys.js +2 -28
- package/dist/effect/attachments.js +2 -17
- package/dist/effect/brands.d.ts +1 -1
- package/dist/effect/brands.js +3 -24
- package/dist/effect/campaigns.js +2 -33
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +3 -4
- package/dist/effect/contact-groups.js +2 -29
- package/dist/effect/contacts.d.ts +52 -0
- package/dist/effect/contacts.js +2 -47
- package/dist/effect/conversations.js +2 -35
- package/dist/effect/custom-fields.js +2 -17
- package/dist/effect/email.d.ts +3 -2
- package/dist/effect/email.js +2 -137
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +3 -0
- package/dist/effect/extension-installations.js +2 -27
- package/dist/effect/extensions.js +2 -19
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +3 -13
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated-metadata.d.ts +1627 -0
- package/dist/effect/index.d.ts +3 -1
- package/dist/effect/index.js +29 -27
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +2 -0
- package/dist/effect/mailboxes.d.ts +112 -112
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/media.js +3 -1
- package/dist/effect/messages.d.ts +2 -2
- package/dist/effect/messages.js +3 -1
- package/dist/effect/namespaces.js +2 -19
- package/dist/effect/operations.js +2 -15
- package/dist/effect/organizations.js +2 -23
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.js +2 -19
- package/dist/effect/subscriptions.js +2 -9
- package/dist/effect/templates.d.ts +1 -1
- package/dist/effect/templates.js +3 -78
- package/dist/effect/unsubscribe-groups.js +2 -27
- package/dist/effect/webhooks.d.ts +9 -9
- package/dist/effect/webhooks.js +3 -33
- package/dist/effect/whoami.d.ts +8 -8
- package/dist/effect/whoami.js +2 -9
- package/dist/email-R0NAA9PW.js +2498 -0
- package/dist/events-CxbTUHYT.js +82 -0
- package/dist/extension-installations-CD94LPmk.js +407 -0
- package/dist/extensions-BKyNQLvu.js +220 -0
- package/dist/feedback-Bpa09JOS.js +52 -0
- package/dist/index.js +2 -2
- package/dist/{inline-attachments-Cegg6tTF.js → inline-attachments-Bi1hDltp.js} +2 -2
- package/dist/journeys-CARo_BJT.js +499 -0
- package/dist/mailboxes-BRDn7BIK.js +2470 -0
- package/dist/media-VrrtNnft.js +181 -0
- package/dist/namespaces-CcvEbG-y.js +152 -0
- package/dist/{operation-BTXjPrwf.js → operation-n_IYgNVK.js} +75 -90
- package/dist/operations-CmB3FHwf.js +93 -0
- package/dist/organizations-A-plufWc.js +252 -0
- package/dist/promises/index.d.ts +7 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-KrA2nSLg.js → promises---Kbh-7z.js} +467 -3
- package/dist/runtime-P0l1_2-C.js +25 -0
- package/dist/scheduled-messages-DkKZRRaN.js +207 -0
- package/dist/send-Bxc0XfGE.js +722 -0
- package/dist/service-map.d.ts +85 -0
- package/dist/subscriptions-DEXYtMXg.js +67 -0
- package/dist/templates-DZomxsG7.js +2289 -0
- package/dist/unsubscribe-groups-Iqk4Isf9.js +291 -0
- package/dist/webhooks-CPXuu8Xf.js +530 -0
- package/dist/whoami-Ccz0jwlt.js +59 -0
- package/package.json +13 -3
- package/dist/categories-DV51kr2H.js +0 -187
- package/dist/client-BMUew5Wp.js +0 -13794
- package/dist/effect/generated.d.ts +0 -64004
- package/dist/mailboxes-Thp5z0oX.js +0 -161
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
|
+
import { ApiKeySecurityMiddleware, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, Operation, OperationAccepted, OperationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
4
|
+
export type OperationPage = {
|
|
5
|
+
readonly items: ReadonlyArray<Operation>;
|
|
6
|
+
readonly nextCursor: string | null;
|
|
7
|
+
};
|
|
8
|
+
export declare const OperationPage: Schema.Struct<{
|
|
9
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
10
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
11
|
+
readonly organizationId: Schema.String;
|
|
12
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"email-domain-provisioning">, Schema.Literal<"organization-deletion">]>;
|
|
13
|
+
readonly subject: Schema.Struct<{
|
|
14
|
+
readonly type: Schema.String;
|
|
15
|
+
readonly id: Schema.String;
|
|
16
|
+
}>;
|
|
17
|
+
readonly actor: Schema.Struct<{
|
|
18
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"api-key">, Schema.Literal<"system">]>;
|
|
19
|
+
readonly id: Schema.String;
|
|
20
|
+
}>;
|
|
21
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"running">, Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
22
|
+
readonly phase: Schema.Union<readonly [Schema.Literal<"accepted">, Schema.Literal<"dispatching">, Schema.Literal<"provisioning">, Schema.Literal<"deleting">, Schema.Literal<"finalizing">, Schema.Literal<"completed">]>;
|
|
23
|
+
readonly error: Schema.Union<readonly [Schema.Struct<{
|
|
24
|
+
readonly code: Schema.Union<readonly [Schema.Literal<"validation-failed">, Schema.Literal<"conflict">, Schema.Literal<"capacity-unavailable">, Schema.Literal<"rejected">, Schema.Literal<"unavailable">, Schema.Literal<"timed-out">, Schema.Literal<"internal">]>;
|
|
25
|
+
readonly message: Schema.String;
|
|
26
|
+
}>, Schema.Null]>;
|
|
27
|
+
readonly createdAt: Schema.String;
|
|
28
|
+
readonly updatedAt: Schema.String;
|
|
29
|
+
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
30
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
31
|
+
}>>;
|
|
32
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
33
|
+
}>;
|
|
34
|
+
export type OperationsListQuery = {
|
|
35
|
+
readonly limit?: string | null;
|
|
36
|
+
readonly cursor?: Cursor | null;
|
|
37
|
+
readonly kind?: "email-domain-provisioning" | "organization-deletion" | null;
|
|
38
|
+
readonly status?: "pending" | "running" | "succeeded" | "failed" | null;
|
|
39
|
+
};
|
|
40
|
+
export declare const OperationsListQuery: Schema.Struct<{
|
|
41
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
42
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
43
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"email-domain-provisioning">, Schema.Literal<"organization-deletion">]>, Schema.Null]>>;
|
|
44
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"running">, Schema.Literal<"succeeded">, Schema.Literal<"failed">]>, Schema.Null]>>;
|
|
45
|
+
}>;
|
|
46
|
+
export type OperationsList200 = OperationPage;
|
|
47
|
+
export declare const OperationsList200: Schema.Struct<{
|
|
48
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
49
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
50
|
+
readonly organizationId: Schema.String;
|
|
51
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"email-domain-provisioning">, Schema.Literal<"organization-deletion">]>;
|
|
52
|
+
readonly subject: Schema.Struct<{
|
|
53
|
+
readonly type: Schema.String;
|
|
54
|
+
readonly id: Schema.String;
|
|
55
|
+
}>;
|
|
56
|
+
readonly actor: Schema.Struct<{
|
|
57
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"api-key">, Schema.Literal<"system">]>;
|
|
58
|
+
readonly id: Schema.String;
|
|
59
|
+
}>;
|
|
60
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"running">, Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
61
|
+
readonly phase: Schema.Union<readonly [Schema.Literal<"accepted">, Schema.Literal<"dispatching">, Schema.Literal<"provisioning">, Schema.Literal<"deleting">, Schema.Literal<"finalizing">, Schema.Literal<"completed">]>;
|
|
62
|
+
readonly error: Schema.Union<readonly [Schema.Struct<{
|
|
63
|
+
readonly code: Schema.Union<readonly [Schema.Literal<"validation-failed">, Schema.Literal<"conflict">, Schema.Literal<"capacity-unavailable">, Schema.Literal<"rejected">, Schema.Literal<"unavailable">, Schema.Literal<"timed-out">, Schema.Literal<"internal">]>;
|
|
64
|
+
readonly message: Schema.String;
|
|
65
|
+
}>, Schema.Null]>;
|
|
66
|
+
readonly createdAt: Schema.String;
|
|
67
|
+
readonly updatedAt: Schema.String;
|
|
68
|
+
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
69
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
70
|
+
}>>;
|
|
71
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
72
|
+
}>;
|
|
73
|
+
export type OperationsList401 = UnauthorizedError;
|
|
74
|
+
export declare const OperationsList401: typeof UnauthorizedError;
|
|
75
|
+
export type OperationsList403 = ForbiddenError;
|
|
76
|
+
export declare const OperationsList403: typeof ForbiddenError;
|
|
77
|
+
export type OperationsList422 = ValidationError;
|
|
78
|
+
export declare const OperationsList422: typeof ValidationError;
|
|
79
|
+
export type OperationsList500 = InternalError;
|
|
80
|
+
export declare const OperationsList500: typeof InternalError;
|
|
81
|
+
export type OperationsList504 = GatewayTimeoutError;
|
|
82
|
+
export declare const OperationsList504: typeof GatewayTimeoutError;
|
|
83
|
+
export type OperationsGetPathParams = {
|
|
84
|
+
readonly id: OperationId;
|
|
85
|
+
};
|
|
86
|
+
export declare const OperationsGetPathParams: Schema.Struct<{
|
|
87
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
88
|
+
}>;
|
|
89
|
+
export type OperationsGet200 = Operation;
|
|
90
|
+
export declare const OperationsGet200: Schema.Struct<{
|
|
91
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
92
|
+
readonly organizationId: Schema.String;
|
|
93
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"email-domain-provisioning">, Schema.Literal<"organization-deletion">]>;
|
|
94
|
+
readonly subject: Schema.Struct<{
|
|
95
|
+
readonly type: Schema.String;
|
|
96
|
+
readonly id: Schema.String;
|
|
97
|
+
}>;
|
|
98
|
+
readonly actor: Schema.Struct<{
|
|
99
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"api-key">, Schema.Literal<"system">]>;
|
|
100
|
+
readonly id: Schema.String;
|
|
101
|
+
}>;
|
|
102
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"running">, Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
103
|
+
readonly phase: Schema.Union<readonly [Schema.Literal<"accepted">, Schema.Literal<"dispatching">, Schema.Literal<"provisioning">, Schema.Literal<"deleting">, Schema.Literal<"finalizing">, Schema.Literal<"completed">]>;
|
|
104
|
+
readonly error: Schema.Union<readonly [Schema.Struct<{
|
|
105
|
+
readonly code: Schema.Union<readonly [Schema.Literal<"validation-failed">, Schema.Literal<"conflict">, Schema.Literal<"capacity-unavailable">, Schema.Literal<"rejected">, Schema.Literal<"unavailable">, Schema.Literal<"timed-out">, Schema.Literal<"internal">]>;
|
|
106
|
+
readonly message: Schema.String;
|
|
107
|
+
}>, Schema.Null]>;
|
|
108
|
+
readonly createdAt: Schema.String;
|
|
109
|
+
readonly updatedAt: Schema.String;
|
|
110
|
+
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
111
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
112
|
+
}>;
|
|
113
|
+
export type OperationsGet401 = UnauthorizedError;
|
|
114
|
+
export declare const OperationsGet401: typeof UnauthorizedError;
|
|
115
|
+
export type OperationsGet403 = ForbiddenError;
|
|
116
|
+
export declare const OperationsGet403: typeof ForbiddenError;
|
|
117
|
+
export type OperationsGet404 = ResourceNotFoundError;
|
|
118
|
+
export declare const OperationsGet404: typeof ResourceNotFoundError;
|
|
119
|
+
export type OperationsGet422 = ValidationError;
|
|
120
|
+
export declare const OperationsGet422: typeof ValidationError;
|
|
121
|
+
export type OperationsGet500 = InternalError;
|
|
122
|
+
export declare const OperationsGet500: typeof InternalError;
|
|
123
|
+
export type OperationsGet504 = GatewayTimeoutError;
|
|
124
|
+
export declare const OperationsGet504: typeof GatewayTimeoutError;
|
|
125
|
+
export type OperationsRetryPathParams = {
|
|
126
|
+
readonly id: OperationId;
|
|
127
|
+
};
|
|
128
|
+
export declare const OperationsRetryPathParams: Schema.Struct<{
|
|
129
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
130
|
+
}>;
|
|
131
|
+
export type OperationsRetry202 = OperationAccepted;
|
|
132
|
+
export declare const OperationsRetry202: Schema.Struct<{
|
|
133
|
+
readonly operation: Schema.Struct<{
|
|
134
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
135
|
+
readonly organizationId: Schema.String;
|
|
136
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"email-domain-provisioning">, Schema.Literal<"organization-deletion">]>;
|
|
137
|
+
readonly subject: Schema.Struct<{
|
|
138
|
+
readonly type: Schema.String;
|
|
139
|
+
readonly id: Schema.String;
|
|
140
|
+
}>;
|
|
141
|
+
readonly actor: Schema.Struct<{
|
|
142
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"api-key">, Schema.Literal<"system">]>;
|
|
143
|
+
readonly id: Schema.String;
|
|
144
|
+
}>;
|
|
145
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"running">, Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
146
|
+
readonly phase: Schema.Union<readonly [Schema.Literal<"accepted">, Schema.Literal<"dispatching">, Schema.Literal<"provisioning">, Schema.Literal<"deleting">, Schema.Literal<"finalizing">, Schema.Literal<"completed">]>;
|
|
147
|
+
readonly error: Schema.Union<readonly [Schema.Struct<{
|
|
148
|
+
readonly code: Schema.Union<readonly [Schema.Literal<"validation-failed">, Schema.Literal<"conflict">, Schema.Literal<"capacity-unavailable">, Schema.Literal<"rejected">, Schema.Literal<"unavailable">, Schema.Literal<"timed-out">, Schema.Literal<"internal">]>;
|
|
149
|
+
readonly message: Schema.String;
|
|
150
|
+
}>, Schema.Null]>;
|
|
151
|
+
readonly createdAt: Schema.String;
|
|
152
|
+
readonly updatedAt: Schema.String;
|
|
153
|
+
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
154
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
155
|
+
}>;
|
|
156
|
+
readonly links: Schema.Struct<{
|
|
157
|
+
readonly self: Schema.String;
|
|
158
|
+
readonly resource: Schema.Struct<{
|
|
159
|
+
readonly resource: Schema.Struct<{
|
|
160
|
+
readonly type: Schema.String;
|
|
161
|
+
readonly id: Schema.String;
|
|
162
|
+
}>;
|
|
163
|
+
readonly href: Schema.String;
|
|
164
|
+
}>;
|
|
165
|
+
}>;
|
|
166
|
+
}>;
|
|
167
|
+
export type OperationsRetry401 = UnauthorizedError;
|
|
168
|
+
export declare const OperationsRetry401: typeof UnauthorizedError;
|
|
169
|
+
export type OperationsRetry403 = ForbiddenError;
|
|
170
|
+
export declare const OperationsRetry403: typeof ForbiddenError;
|
|
171
|
+
export type OperationsRetry404 = ResourceNotFoundError;
|
|
172
|
+
export declare const OperationsRetry404: typeof ResourceNotFoundError;
|
|
173
|
+
export type OperationsRetry409 = ConflictError;
|
|
174
|
+
export declare const OperationsRetry409: typeof ConflictError;
|
|
175
|
+
export type OperationsRetry422 = ValidationError;
|
|
176
|
+
export declare const OperationsRetry422: typeof ValidationError;
|
|
177
|
+
export type OperationsRetry500 = InternalError;
|
|
178
|
+
export declare const OperationsRetry500: typeof InternalError;
|
|
179
|
+
export type OperationsRetry504 = GatewayTimeoutError;
|
|
180
|
+
export declare const OperationsRetry504: typeof GatewayTimeoutError;
|
|
181
|
+
declare const OperationsGroup_base: HttpApiGroup.HttpApiGroup<"Operations", HttpApiEndpoint.HttpApiEndpoint<"operationsGet", "GET", "/v1/operations/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
182
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
183
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
184
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
185
|
+
readonly organizationId: Schema.String;
|
|
186
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"email-domain-provisioning">, Schema.Literal<"organization-deletion">]>;
|
|
187
|
+
readonly subject: Schema.Struct<{
|
|
188
|
+
readonly type: Schema.String;
|
|
189
|
+
readonly id: Schema.String;
|
|
190
|
+
}>;
|
|
191
|
+
readonly actor: Schema.Struct<{
|
|
192
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"api-key">, Schema.Literal<"system">]>;
|
|
193
|
+
readonly id: Schema.String;
|
|
194
|
+
}>;
|
|
195
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"running">, Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
196
|
+
readonly phase: Schema.Union<readonly [Schema.Literal<"accepted">, Schema.Literal<"dispatching">, Schema.Literal<"provisioning">, Schema.Literal<"deleting">, Schema.Literal<"finalizing">, Schema.Literal<"completed">]>;
|
|
197
|
+
readonly error: Schema.Union<readonly [Schema.Struct<{
|
|
198
|
+
readonly code: Schema.Union<readonly [Schema.Literal<"validation-failed">, Schema.Literal<"conflict">, Schema.Literal<"capacity-unavailable">, Schema.Literal<"rejected">, Schema.Literal<"unavailable">, Schema.Literal<"timed-out">, Schema.Literal<"internal">]>;
|
|
199
|
+
readonly message: Schema.String;
|
|
200
|
+
}>, Schema.Null]>;
|
|
201
|
+
readonly createdAt: Schema.String;
|
|
202
|
+
readonly updatedAt: Schema.String;
|
|
203
|
+
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
204
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
205
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
206
|
+
readonly _tag: "ForbiddenError";
|
|
207
|
+
readonly message: string;
|
|
208
|
+
}, readonly [Schema.Struct<{
|
|
209
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
210
|
+
readonly message: Schema.String;
|
|
211
|
+
}>], {
|
|
212
|
+
readonly _tag: "ForbiddenError";
|
|
213
|
+
readonly message: string;
|
|
214
|
+
}>, Schema.Struct<{
|
|
215
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
216
|
+
readonly message: Schema.String;
|
|
217
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
218
|
+
readonly _tag: "GatewayTimeoutError";
|
|
219
|
+
readonly message: string;
|
|
220
|
+
readonly retryAfterSeconds: number;
|
|
221
|
+
}, readonly [Schema.Struct<{
|
|
222
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
223
|
+
readonly message: Schema.String;
|
|
224
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
225
|
+
}>], {
|
|
226
|
+
readonly _tag: "GatewayTimeoutError";
|
|
227
|
+
readonly message: string;
|
|
228
|
+
readonly retryAfterSeconds: number;
|
|
229
|
+
}>, Schema.Struct<{
|
|
230
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
231
|
+
readonly message: Schema.String;
|
|
232
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
233
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
234
|
+
readonly _tag: "ResourceNotFoundError";
|
|
235
|
+
readonly resource: string;
|
|
236
|
+
readonly id: string;
|
|
237
|
+
readonly message: string;
|
|
238
|
+
}, readonly [Schema.Struct<{
|
|
239
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
240
|
+
readonly resource: Schema.String;
|
|
241
|
+
readonly id: Schema.String;
|
|
242
|
+
readonly message: Schema.String;
|
|
243
|
+
}>], {
|
|
244
|
+
readonly _tag: "ResourceNotFoundError";
|
|
245
|
+
readonly resource: string;
|
|
246
|
+
readonly id: string;
|
|
247
|
+
readonly message: string;
|
|
248
|
+
}>, Schema.Struct<{
|
|
249
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
250
|
+
readonly resource: Schema.String;
|
|
251
|
+
readonly id: Schema.String;
|
|
252
|
+
readonly message: Schema.String;
|
|
253
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
254
|
+
readonly _tag: "UnauthorizedError";
|
|
255
|
+
readonly message: string;
|
|
256
|
+
}, readonly [Schema.Struct<{
|
|
257
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
258
|
+
readonly message: Schema.String;
|
|
259
|
+
}>], {
|
|
260
|
+
readonly _tag: "UnauthorizedError";
|
|
261
|
+
readonly message: string;
|
|
262
|
+
}>, Schema.Struct<{
|
|
263
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
264
|
+
readonly message: Schema.String;
|
|
265
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
266
|
+
readonly _tag: "ValidationError";
|
|
267
|
+
readonly message: string;
|
|
268
|
+
readonly fields?: {
|
|
269
|
+
readonly [x: string]: readonly string[];
|
|
270
|
+
} | null;
|
|
271
|
+
}, readonly [Schema.Struct<{
|
|
272
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
273
|
+
readonly message: Schema.String;
|
|
274
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
275
|
+
}>], {
|
|
276
|
+
readonly _tag: "ValidationError";
|
|
277
|
+
readonly message: string;
|
|
278
|
+
readonly fields?: {
|
|
279
|
+
readonly [x: string]: readonly string[];
|
|
280
|
+
} | null;
|
|
281
|
+
}>, Schema.Struct<{
|
|
282
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
283
|
+
readonly message: Schema.String;
|
|
284
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
285
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"operationsList", "GET", "/v1/operations", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
286
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
287
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
288
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"email-domain-provisioning">, Schema.Literal<"organization-deletion">]>, Schema.Null]>>;
|
|
289
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"running">, Schema.Literal<"succeeded">, Schema.Literal<"failed">]>, Schema.Null]>>;
|
|
290
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
291
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
292
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
293
|
+
readonly organizationId: Schema.String;
|
|
294
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"email-domain-provisioning">, Schema.Literal<"organization-deletion">]>;
|
|
295
|
+
readonly subject: Schema.Struct<{
|
|
296
|
+
readonly type: Schema.String;
|
|
297
|
+
readonly id: Schema.String;
|
|
298
|
+
}>;
|
|
299
|
+
readonly actor: Schema.Struct<{
|
|
300
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"api-key">, Schema.Literal<"system">]>;
|
|
301
|
+
readonly id: Schema.String;
|
|
302
|
+
}>;
|
|
303
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"running">, Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
304
|
+
readonly phase: Schema.Union<readonly [Schema.Literal<"accepted">, Schema.Literal<"dispatching">, Schema.Literal<"provisioning">, Schema.Literal<"deleting">, Schema.Literal<"finalizing">, Schema.Literal<"completed">]>;
|
|
305
|
+
readonly error: Schema.Union<readonly [Schema.Struct<{
|
|
306
|
+
readonly code: Schema.Union<readonly [Schema.Literal<"validation-failed">, Schema.Literal<"conflict">, Schema.Literal<"capacity-unavailable">, Schema.Literal<"rejected">, Schema.Literal<"unavailable">, Schema.Literal<"timed-out">, Schema.Literal<"internal">]>;
|
|
307
|
+
readonly message: Schema.String;
|
|
308
|
+
}>, Schema.Null]>;
|
|
309
|
+
readonly createdAt: Schema.String;
|
|
310
|
+
readonly updatedAt: Schema.String;
|
|
311
|
+
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
312
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
313
|
+
}>>;
|
|
314
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
315
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
316
|
+
readonly _tag: "ForbiddenError";
|
|
317
|
+
readonly message: string;
|
|
318
|
+
}, readonly [Schema.Struct<{
|
|
319
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
320
|
+
readonly message: Schema.String;
|
|
321
|
+
}>], {
|
|
322
|
+
readonly _tag: "ForbiddenError";
|
|
323
|
+
readonly message: string;
|
|
324
|
+
}>, Schema.Struct<{
|
|
325
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
326
|
+
readonly message: Schema.String;
|
|
327
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
328
|
+
readonly _tag: "GatewayTimeoutError";
|
|
329
|
+
readonly message: string;
|
|
330
|
+
readonly retryAfterSeconds: number;
|
|
331
|
+
}, readonly [Schema.Struct<{
|
|
332
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
333
|
+
readonly message: Schema.String;
|
|
334
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
335
|
+
}>], {
|
|
336
|
+
readonly _tag: "GatewayTimeoutError";
|
|
337
|
+
readonly message: string;
|
|
338
|
+
readonly retryAfterSeconds: number;
|
|
339
|
+
}>, Schema.Struct<{
|
|
340
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
341
|
+
readonly message: Schema.String;
|
|
342
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
343
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
344
|
+
readonly _tag: "UnauthorizedError";
|
|
345
|
+
readonly message: string;
|
|
346
|
+
}, readonly [Schema.Struct<{
|
|
347
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
348
|
+
readonly message: Schema.String;
|
|
349
|
+
}>], {
|
|
350
|
+
readonly _tag: "UnauthorizedError";
|
|
351
|
+
readonly message: string;
|
|
352
|
+
}>, Schema.Struct<{
|
|
353
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
354
|
+
readonly message: Schema.String;
|
|
355
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
356
|
+
readonly _tag: "ValidationError";
|
|
357
|
+
readonly message: string;
|
|
358
|
+
readonly fields?: {
|
|
359
|
+
readonly [x: string]: readonly string[];
|
|
360
|
+
} | null;
|
|
361
|
+
}, readonly [Schema.Struct<{
|
|
362
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
363
|
+
readonly message: Schema.String;
|
|
364
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
365
|
+
}>], {
|
|
366
|
+
readonly _tag: "ValidationError";
|
|
367
|
+
readonly message: string;
|
|
368
|
+
readonly fields?: {
|
|
369
|
+
readonly [x: string]: readonly string[];
|
|
370
|
+
} | null;
|
|
371
|
+
}>, Schema.Struct<{
|
|
372
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
373
|
+
readonly message: Schema.String;
|
|
374
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
375
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"operationsRetry", "POST", "/v1/operations/:id/retry", Schema.toCodecStringTree<Schema.Struct<{
|
|
376
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
377
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
378
|
+
readonly operation: Schema.Struct<{
|
|
379
|
+
readonly id: Schema.brand<Schema.String, "OperationId">;
|
|
380
|
+
readonly organizationId: Schema.String;
|
|
381
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"email-domain-provisioning">, Schema.Literal<"organization-deletion">]>;
|
|
382
|
+
readonly subject: Schema.Struct<{
|
|
383
|
+
readonly type: Schema.String;
|
|
384
|
+
readonly id: Schema.String;
|
|
385
|
+
}>;
|
|
386
|
+
readonly actor: Schema.Struct<{
|
|
387
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"api-key">, Schema.Literal<"system">]>;
|
|
388
|
+
readonly id: Schema.String;
|
|
389
|
+
}>;
|
|
390
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"running">, Schema.Literal<"succeeded">, Schema.Literal<"failed">]>;
|
|
391
|
+
readonly phase: Schema.Union<readonly [Schema.Literal<"accepted">, Schema.Literal<"dispatching">, Schema.Literal<"provisioning">, Schema.Literal<"deleting">, Schema.Literal<"finalizing">, Schema.Literal<"completed">]>;
|
|
392
|
+
readonly error: Schema.Union<readonly [Schema.Struct<{
|
|
393
|
+
readonly code: Schema.Union<readonly [Schema.Literal<"validation-failed">, Schema.Literal<"conflict">, Schema.Literal<"capacity-unavailable">, Schema.Literal<"rejected">, Schema.Literal<"unavailable">, Schema.Literal<"timed-out">, Schema.Literal<"internal">]>;
|
|
394
|
+
readonly message: Schema.String;
|
|
395
|
+
}>, Schema.Null]>;
|
|
396
|
+
readonly createdAt: Schema.String;
|
|
397
|
+
readonly updatedAt: Schema.String;
|
|
398
|
+
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
399
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
400
|
+
}>;
|
|
401
|
+
readonly links: Schema.Struct<{
|
|
402
|
+
readonly self: Schema.String;
|
|
403
|
+
readonly resource: Schema.Struct<{
|
|
404
|
+
readonly resource: Schema.Struct<{
|
|
405
|
+
readonly type: Schema.String;
|
|
406
|
+
readonly id: Schema.String;
|
|
407
|
+
}>;
|
|
408
|
+
readonly href: Schema.String;
|
|
409
|
+
}>;
|
|
410
|
+
}>;
|
|
411
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
412
|
+
readonly _tag: "ConflictError";
|
|
413
|
+
readonly message: string;
|
|
414
|
+
readonly resource: string;
|
|
415
|
+
readonly id?: string | null;
|
|
416
|
+
}, readonly [Schema.Struct<{
|
|
417
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
418
|
+
readonly message: Schema.String;
|
|
419
|
+
readonly resource: Schema.String;
|
|
420
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
421
|
+
}>], {
|
|
422
|
+
readonly _tag: "ConflictError";
|
|
423
|
+
readonly message: string;
|
|
424
|
+
readonly resource: string;
|
|
425
|
+
readonly id?: string | null;
|
|
426
|
+
}>, Schema.Struct<{
|
|
427
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
428
|
+
readonly message: Schema.String;
|
|
429
|
+
readonly resource: Schema.String;
|
|
430
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
431
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
432
|
+
readonly _tag: "ForbiddenError";
|
|
433
|
+
readonly message: string;
|
|
434
|
+
}, readonly [Schema.Struct<{
|
|
435
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
436
|
+
readonly message: Schema.String;
|
|
437
|
+
}>], {
|
|
438
|
+
readonly _tag: "ForbiddenError";
|
|
439
|
+
readonly message: string;
|
|
440
|
+
}>, Schema.Struct<{
|
|
441
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
442
|
+
readonly message: Schema.String;
|
|
443
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
444
|
+
readonly _tag: "GatewayTimeoutError";
|
|
445
|
+
readonly message: string;
|
|
446
|
+
readonly retryAfterSeconds: number;
|
|
447
|
+
}, readonly [Schema.Struct<{
|
|
448
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
449
|
+
readonly message: Schema.String;
|
|
450
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
451
|
+
}>], {
|
|
452
|
+
readonly _tag: "GatewayTimeoutError";
|
|
453
|
+
readonly message: string;
|
|
454
|
+
readonly retryAfterSeconds: number;
|
|
455
|
+
}>, Schema.Struct<{
|
|
456
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
457
|
+
readonly message: Schema.String;
|
|
458
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
459
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
460
|
+
readonly _tag: "ResourceNotFoundError";
|
|
461
|
+
readonly resource: string;
|
|
462
|
+
readonly id: string;
|
|
463
|
+
readonly message: string;
|
|
464
|
+
}, readonly [Schema.Struct<{
|
|
465
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
466
|
+
readonly resource: Schema.String;
|
|
467
|
+
readonly id: Schema.String;
|
|
468
|
+
readonly message: Schema.String;
|
|
469
|
+
}>], {
|
|
470
|
+
readonly _tag: "ResourceNotFoundError";
|
|
471
|
+
readonly resource: string;
|
|
472
|
+
readonly id: string;
|
|
473
|
+
readonly message: string;
|
|
474
|
+
}>, Schema.Struct<{
|
|
475
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
476
|
+
readonly resource: Schema.String;
|
|
477
|
+
readonly id: Schema.String;
|
|
478
|
+
readonly message: Schema.String;
|
|
479
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
480
|
+
readonly _tag: "UnauthorizedError";
|
|
481
|
+
readonly message: string;
|
|
482
|
+
}, readonly [Schema.Struct<{
|
|
483
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
484
|
+
readonly message: Schema.String;
|
|
485
|
+
}>], {
|
|
486
|
+
readonly _tag: "UnauthorizedError";
|
|
487
|
+
readonly message: string;
|
|
488
|
+
}>, Schema.Struct<{
|
|
489
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
490
|
+
readonly message: Schema.String;
|
|
491
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
492
|
+
readonly _tag: "ValidationError";
|
|
493
|
+
readonly message: string;
|
|
494
|
+
readonly fields?: {
|
|
495
|
+
readonly [x: string]: readonly string[];
|
|
496
|
+
} | null;
|
|
497
|
+
}, readonly [Schema.Struct<{
|
|
498
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
499
|
+
readonly message: Schema.String;
|
|
500
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
501
|
+
}>], {
|
|
502
|
+
readonly _tag: "ValidationError";
|
|
503
|
+
readonly message: string;
|
|
504
|
+
readonly fields?: {
|
|
505
|
+
readonly [x: string]: readonly string[];
|
|
506
|
+
} | null;
|
|
507
|
+
}>, Schema.Struct<{
|
|
508
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
509
|
+
readonly message: Schema.String;
|
|
510
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
511
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>, false>;
|
|
512
|
+
export declare class OperationsGroup extends OperationsGroup_base {
|
|
513
|
+
}
|
|
514
|
+
export {};
|