samva 0.16.0 → 0.18.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.
Files changed (167) hide show
  1. package/AGENTS.md +9 -1
  2. package/README.md +57 -1
  3. package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
  4. package/dist/client/client/client.gen.js +174 -0
  5. package/dist/client/client/utils.gen.js +177 -0
  6. package/dist/client/client.gen.js +8 -0
  7. package/dist/client/core/auth.gen.js +12 -0
  8. package/dist/client/core/bodySerializer.gen.js +6 -0
  9. package/dist/client/core/params.gen.js +77 -0
  10. package/dist/client/core/pathSerializer.gen.js +82 -0
  11. package/dist/client/core/serverSentEvents.gen.js +96 -0
  12. package/dist/client/core/utils.gen.js +78 -0
  13. package/dist/client/sdk.gen.d.ts +174 -3
  14. package/dist/{promises-KrA2nSLg.js → client/sdk.gen.js} +464 -2289
  15. package/dist/client/types.gen.d.ts +1126 -11
  16. package/dist/client-attribution.js +9 -0
  17. package/dist/effect/analytics.d.ts +6 -6
  18. package/dist/effect/analytics.js +11 -9
  19. package/dist/effect/api-keys.d.ts +13 -13
  20. package/dist/effect/api-keys.js +13 -12
  21. package/dist/effect/attachments.d.ts +4 -4
  22. package/dist/effect/attachments.js +9 -7
  23. package/dist/effect/brands.d.ts +7 -7
  24. package/dist/effect/brands.js +12 -10
  25. package/dist/effect/campaigns.d.ts +18 -18
  26. package/dist/effect/campaigns.js +17 -15
  27. package/dist/effect/categories.d.ts +2 -2
  28. package/dist/effect/categories.js +95 -1
  29. package/dist/effect/client.d.ts +1 -1
  30. package/dist/effect/client.js +4 -5
  31. package/dist/effect/contact-groups.d.ts +14 -14
  32. package/dist/effect/contact-groups.js +15 -13
  33. package/dist/effect/contacts.d.ts +77 -25
  34. package/dist/effect/contacts.js +27 -22
  35. package/dist/effect/conversations.d.ts +17 -17
  36. package/dist/effect/conversations.js +18 -16
  37. package/dist/effect/custom-fields.d.ts +4 -4
  38. package/dist/effect/custom-fields.js +9 -7
  39. package/dist/effect/email.d.ts +78 -77
  40. package/dist/effect/email.js +68 -65
  41. package/dist/effect/errors.d.ts +2 -0
  42. package/dist/effect/errors.js +3 -0
  43. package/dist/effect/events.d.ts +121 -0
  44. package/dist/effect/events.js +17 -0
  45. package/dist/effect/extension-installations.d.ts +11 -11
  46. package/dist/effect/extension-installations.js +14 -12
  47. package/dist/effect/extensions.d.ts +9 -9
  48. package/dist/effect/extensions.js +10 -8
  49. package/dist/effect/feedback.d.ts +2 -2
  50. package/dist/effect/feedback.js +6 -5
  51. package/dist/effect/generated/analytics.d.ts +715 -0
  52. package/dist/effect/generated/analytics.js +188 -0
  53. package/dist/effect/generated/api-keys.d.ts +1627 -0
  54. package/dist/effect/generated/api-keys.js +249 -0
  55. package/dist/effect/generated/attachments.d.ts +554 -0
  56. package/dist/effect/generated/attachments.js +125 -0
  57. package/dist/effect/generated/brands.d.ts +1118 -0
  58. package/dist/effect/generated/brands.js +155 -0
  59. package/dist/effect/generated/campaigns.d.ts +3783 -0
  60. package/dist/effect/generated/campaigns.js +491 -0
  61. package/dist/effect/generated/contact-events.d.ts +158 -0
  62. package/dist/effect/generated/contact-events.js +37 -0
  63. package/dist/effect/generated/contact-groups.d.ts +1445 -0
  64. package/dist/effect/generated/contact-groups.js +419 -0
  65. package/dist/effect/generated/contacts.d.ts +3789 -0
  66. package/dist/effect/generated/contacts.js +709 -0
  67. package/dist/effect/generated/conversations.d.ts +2870 -0
  68. package/dist/effect/generated/conversations.js +461 -0
  69. package/dist/effect/generated/custom-fields.d.ts +562 -0
  70. package/dist/effect/generated/custom-fields.js +162 -0
  71. package/dist/effect/generated/email.d.ts +10622 -0
  72. package/dist/effect/generated/email.js +2347 -0
  73. package/dist/effect/generated/events.d.ts +463 -0
  74. package/dist/effect/generated/events.js +70 -0
  75. package/dist/effect/generated/extension-installations.d.ts +1786 -0
  76. package/dist/effect/generated/extension-installations.js +382 -0
  77. package/dist/effect/generated/extensions.d.ts +927 -0
  78. package/dist/effect/generated/extensions.js +203 -0
  79. package/dist/effect/generated/feedback.d.ts +116 -0
  80. package/dist/effect/generated/feedback.js +43 -0
  81. package/dist/effect/generated/index.d.ts +61 -0
  82. package/dist/effect/generated/journeys.d.ts +6135 -0
  83. package/dist/effect/generated/journeys.js +464 -0
  84. package/dist/effect/generated/mailboxes.d.ts +13641 -0
  85. package/dist/effect/generated/mailboxes.js +2312 -0
  86. package/dist/effect/generated/media.d.ts +741 -0
  87. package/dist/effect/generated/media.js +181 -0
  88. package/dist/effect/generated/messages.d.ts +2355 -0
  89. package/dist/effect/generated/messages.js +671 -0
  90. package/dist/effect/generated/namespaces.d.ts +654 -0
  91. package/dist/effect/generated/namespaces.js +135 -0
  92. package/dist/effect/generated/operations.d.ts +514 -0
  93. package/dist/effect/generated/operations.js +80 -0
  94. package/dist/effect/generated/organizations.d.ts +1111 -0
  95. package/dist/effect/generated/organizations.js +231 -0
  96. package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
  97. package/dist/effect/generated/scheduled-messages.js +190 -0
  98. package/dist/effect/generated/shared.d.ts +3250 -0
  99. package/dist/effect/generated/shared.js +1053 -0
  100. package/dist/effect/generated/subscriptions.d.ts +188 -0
  101. package/dist/effect/generated/subscriptions.js +61 -0
  102. package/dist/effect/generated/templates.d.ts +8177 -0
  103. package/dist/effect/generated/templates.js +2214 -0
  104. package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
  105. package/dist/effect/generated/unsubscribe-groups.js +267 -0
  106. package/dist/effect/generated/webhooks.d.ts +1697 -0
  107. package/dist/effect/generated/webhooks.js +500 -0
  108. package/dist/effect/generated/whoami.d.ts +291 -0
  109. package/dist/effect/generated/whoami.js +54 -0
  110. package/dist/effect/generated-metadata.d.ts +1627 -0
  111. package/dist/effect/generated-metadata.js +919 -0
  112. package/dist/effect/index.d.ts +3 -2
  113. package/dist/effect/index.js +33 -31
  114. package/dist/effect/internal/client.d.ts +10 -7
  115. package/dist/effect/internal/client.js +69 -0
  116. package/dist/effect/internal/email-sender.d.ts +17 -0
  117. package/dist/effect/internal/email-sender.js +21 -0
  118. package/dist/effect/internal/mailbox-events.js +33 -0
  119. package/dist/effect/internal/operation.d.ts +12 -72
  120. package/dist/effect/internal/operation.js +116 -0
  121. package/dist/effect/internal/send.d.ts +60 -0
  122. package/dist/effect/internal/send.js +56 -0
  123. package/dist/effect/journeys.d.ts +2153 -0
  124. package/dist/effect/journeys.js +39 -0
  125. package/dist/effect/mailboxes.d.ts +80 -80
  126. package/dist/effect/mailboxes.js +135 -3
  127. package/dist/effect/media.d.ts +5 -5
  128. package/dist/effect/media.js +10 -8
  129. package/dist/effect/messages.d.ts +16 -16
  130. package/dist/effect/messages.js +15 -12
  131. package/dist/effect/namespaces.d.ts +7 -7
  132. package/dist/effect/namespaces.js +10 -8
  133. package/dist/effect/operations.d.ts +5 -5
  134. package/dist/effect/operations.js +8 -6
  135. package/dist/effect/organizations.d.ts +7 -7
  136. package/dist/effect/organizations.js +12 -10
  137. package/dist/effect/pagination.js +39 -0
  138. package/dist/effect/retry.js +3 -3
  139. package/dist/effect/runtime.js +25 -0
  140. package/dist/effect/scheduled-messages.d.ts +7 -7
  141. package/dist/effect/scheduled-messages.js +10 -8
  142. package/dist/effect/subscriptions.d.ts +1 -1
  143. package/dist/effect/subscriptions.js +5 -4
  144. package/dist/effect/templates.d.ts +40 -40
  145. package/dist/effect/templates.js +39 -37
  146. package/dist/effect/unsubscribe-groups.d.ts +11 -11
  147. package/dist/effect/unsubscribe-groups.js +14 -12
  148. package/dist/effect/webhooks.d.ts +23 -23
  149. package/dist/effect/webhooks.js +16 -14
  150. package/dist/effect/whoami.d.ts +1 -1
  151. package/dist/effect/whoami.js +5 -4
  152. package/dist/index.js +4 -3
  153. package/dist/{inline-attachments-Cegg6tTF.js → inline-attachments.js} +13 -7
  154. package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +2 -2
  155. package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
  156. package/dist/package.js +6 -0
  157. package/dist/promises/errors.gen.js +1340 -0
  158. package/dist/promises/index.d.ts +7 -3
  159. package/dist/promises/index.js +288 -3
  160. package/dist/promises/types.gen.d.ts +1 -1
  161. package/dist/service-map.d.ts +85 -0
  162. package/dist/{operation-BTXjPrwf.js → service-map.js} +58 -219
  163. package/package.json +17 -3
  164. package/dist/categories-DV51kr2H.js +0 -187
  165. package/dist/client-BMUew5Wp.js +0 -13794
  166. package/dist/effect/generated.d.ts +0 -64004
  167. package/dist/mailboxes-Thp5z0oX.js +0 -161
@@ -0,0 +1,135 @@
1
+ import { ApiKeySecurityMiddleware, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, NamespaceId, NamespaceMetadata, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
2
+ import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
+ import * as Schema from "effect/Schema";
4
+ //#region src/effect/generated/namespaces.ts
5
+ const NamespaceSummary = /* @__PURE__ */ Schema.Struct({
6
+ id: NamespaceId,
7
+ name: Schema.String,
8
+ createdAt: Schema.String
9
+ }).annotate({ identifier: "NamespaceSummary" });
10
+ const Namespace = /* @__PURE__ */ Schema.Struct({
11
+ id: NamespaceId,
12
+ name: Schema.String,
13
+ createdAt: Schema.String,
14
+ metadata: NamespaceMetadata,
15
+ updatedAt: Schema.String
16
+ }).annotate({ identifier: "Namespace" });
17
+ const NamespacePage = /* @__PURE__ */ Schema.Struct({
18
+ items: Schema.Array(NamespaceSummary),
19
+ nextCursor: Schema.Union([Schema.String, Schema.Null])
20
+ }).annotate({ identifier: "NamespacePage" });
21
+ const NamespacesListQuery = /* @__PURE__ */ Schema.Struct({
22
+ limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
23
+ cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
24
+ after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
25
+ before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
26
+ });
27
+ const NamespacesList200 = NamespacePage;
28
+ const NamespacesList401 = UnauthorizedError;
29
+ const NamespacesList403 = ForbiddenError;
30
+ const NamespacesList422 = ValidationError;
31
+ const NamespacesList500 = InternalError;
32
+ const NamespacesList504 = GatewayTimeoutError;
33
+ const NamespacesCreateRequestJson = /* @__PURE__ */ Schema.Struct({
34
+ name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({ expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
35
+ metadata: Schema.optionalKey(Schema.Union([NamespaceMetadata, Schema.Null]))
36
+ });
37
+ const NamespacesCreate201 = Namespace;
38
+ const NamespacesCreate401 = UnauthorizedError;
39
+ const NamespacesCreate403 = ForbiddenError;
40
+ const NamespacesCreate409 = ConflictError;
41
+ const NamespacesCreate422 = ValidationError;
42
+ const NamespacesCreate500 = InternalError;
43
+ const NamespacesCreate504 = GatewayTimeoutError;
44
+ const NamespacesGetPathParams = /* @__PURE__ */ Schema.Struct({ id: NamespaceId });
45
+ const NamespacesGet200 = Namespace;
46
+ const NamespacesGet401 = UnauthorizedError;
47
+ const NamespacesGet403 = ForbiddenError;
48
+ const NamespacesGet404 = ResourceNotFoundError;
49
+ const NamespacesGet422 = ValidationError;
50
+ const NamespacesGet500 = InternalError;
51
+ const NamespacesGet504 = GatewayTimeoutError;
52
+ const NamespacesRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: NamespaceId });
53
+ const NamespacesRemove200 = SuccessResponse;
54
+ const NamespacesRemove401 = UnauthorizedError;
55
+ const NamespacesRemove403 = ForbiddenError;
56
+ const NamespacesRemove404 = ResourceNotFoundError;
57
+ const NamespacesRemove409 = ConflictError;
58
+ const NamespacesRemove422 = ValidationError;
59
+ const NamespacesRemove500 = InternalError;
60
+ const NamespacesRemove504 = GatewayTimeoutError;
61
+ const NamespacesUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: NamespaceId });
62
+ const NamespacesUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
63
+ 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(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({ expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema.Null])),
64
+ metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])), Schema.Null]))
65
+ });
66
+ const NamespacesUpdate200 = Namespace;
67
+ const NamespacesUpdate401 = UnauthorizedError;
68
+ const NamespacesUpdate403 = ForbiddenError;
69
+ const NamespacesUpdate404 = ResourceNotFoundError;
70
+ const NamespacesUpdate409 = ConflictError;
71
+ const NamespacesUpdate422 = ValidationError;
72
+ const NamespacesUpdate500 = InternalError;
73
+ const NamespacesUpdate504 = GatewayTimeoutError;
74
+ var NamespacesGroup = class extends HttpApiGroup.make("Namespaces").add(HttpApiEndpoint.get("namespacesList", "/v1/namespaces", {
75
+ query: NamespacesListQuery,
76
+ success: NamespacesList200,
77
+ error: [
78
+ NamespacesList401.pipe(HttpApiSchema.status(401)),
79
+ NamespacesList403.pipe(HttpApiSchema.status(403)),
80
+ NamespacesList422.pipe(HttpApiSchema.status(422)),
81
+ NamespacesList500,
82
+ NamespacesList504.pipe(HttpApiSchema.status(504))
83
+ ]
84
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "namespaces.list").annotate(OpenApi.Summary, "List namespaces").annotate(OpenApi.Description, "Returns namespace summaries, newest first, filterable by creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a namespace's metadata with `GET /v1/namespaces/{id}`."), HttpApiEndpoint.post("namespacesCreate", "/v1/namespaces", {
85
+ payload: NamespacesCreateRequestJson,
86
+ success: NamespacesCreate201.pipe(HttpApiSchema.status(201)),
87
+ error: [
88
+ NamespacesCreate401.pipe(HttpApiSchema.status(401)),
89
+ NamespacesCreate403.pipe(HttpApiSchema.status(403)),
90
+ NamespacesCreate409.pipe(HttpApiSchema.status(409)),
91
+ NamespacesCreate422.pipe(HttpApiSchema.status(422)),
92
+ NamespacesCreate500,
93
+ NamespacesCreate504.pipe(HttpApiSchema.status(504))
94
+ ]
95
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "namespaces.create").annotate(OpenApi.Summary, "Create a namespace").annotate(OpenApi.Description, "Creates a namespace with status 201. Names are unique within the organization; a duplicate conflicts."), HttpApiEndpoint.get("namespacesGet", "/v1/namespaces/:id", {
96
+ params: NamespacesGetPathParams,
97
+ success: NamespacesGet200,
98
+ error: [
99
+ NamespacesGet401.pipe(HttpApiSchema.status(401)),
100
+ NamespacesGet403.pipe(HttpApiSchema.status(403)),
101
+ NamespacesGet404.pipe(HttpApiSchema.status(404)),
102
+ NamespacesGet422.pipe(HttpApiSchema.status(422)),
103
+ NamespacesGet500,
104
+ NamespacesGet504.pipe(HttpApiSchema.status(504))
105
+ ]
106
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "namespaces.get").annotate(OpenApi.Summary, "Get a namespace").annotate(OpenApi.Description, "Returns one namespace."), HttpApiEndpoint.delete("namespacesRemove", "/v1/namespaces/:id", {
107
+ params: NamespacesRemovePathParams,
108
+ success: NamespacesRemove200,
109
+ error: [
110
+ NamespacesRemove401.pipe(HttpApiSchema.status(401)),
111
+ NamespacesRemove403.pipe(HttpApiSchema.status(403)),
112
+ NamespacesRemove404.pipe(HttpApiSchema.status(404)),
113
+ NamespacesRemove409.pipe(HttpApiSchema.status(409)),
114
+ NamespacesRemove422.pipe(HttpApiSchema.status(422)),
115
+ NamespacesRemove500,
116
+ NamespacesRemove504.pipe(HttpApiSchema.status(504))
117
+ ]
118
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "namespaces.remove").annotate(OpenApi.Summary, "Delete a namespace").annotate(OpenApi.Description, "Deletes an empty namespace. A namespace that still holds mailboxes, API keys, or webhook endpoints conflicts: remove them first."), HttpApiEndpoint.patch("namespacesUpdate", "/v1/namespaces/:id", {
119
+ params: NamespacesUpdatePathParams,
120
+ payload: NamespacesUpdateRequestJson,
121
+ success: NamespacesUpdate200,
122
+ error: [
123
+ NamespacesUpdate401.pipe(HttpApiSchema.status(401)),
124
+ NamespacesUpdate403.pipe(HttpApiSchema.status(403)),
125
+ NamespacesUpdate404.pipe(HttpApiSchema.status(404)),
126
+ NamespacesUpdate409.pipe(HttpApiSchema.status(409)),
127
+ NamespacesUpdate422.pipe(HttpApiSchema.status(422)),
128
+ NamespacesUpdate500,
129
+ NamespacesUpdate504.pipe(HttpApiSchema.status(504))
130
+ ]
131
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "namespaces.update").annotate(OpenApi.Summary, "Update a namespace").annotate(OpenApi.Description, "Updates the fields you name and keeps the rest. `metadata` merges into the stored metadata by key, and a `null` value deletes that key.")).annotate(OpenApi.Description, "Sub-tenants that confine mailboxes and API keys inside an organization") {};
132
+ //#endregion
133
+ export { Namespace, NamespacePage, NamespaceSummary, NamespacesCreate201, NamespacesCreate401, NamespacesCreate403, NamespacesCreate409, NamespacesCreate422, NamespacesCreate500, NamespacesCreate504, NamespacesCreateRequestJson, NamespacesGet200, NamespacesGet401, NamespacesGet403, NamespacesGet404, NamespacesGet422, NamespacesGet500, NamespacesGet504, NamespacesGetPathParams, NamespacesGroup, NamespacesList200, NamespacesList401, NamespacesList403, NamespacesList422, NamespacesList500, NamespacesList504, NamespacesListQuery, NamespacesRemove200, NamespacesRemove401, NamespacesRemove403, NamespacesRemove404, NamespacesRemove409, NamespacesRemove422, NamespacesRemove500, NamespacesRemove504, NamespacesRemovePathParams, NamespacesUpdate200, NamespacesUpdate401, NamespacesUpdate403, NamespacesUpdate404, NamespacesUpdate409, NamespacesUpdate422, NamespacesUpdate500, NamespacesUpdate504, NamespacesUpdatePathParams, NamespacesUpdateRequestJson };
134
+
135
+ //# sourceMappingURL=namespaces.js.map
@@ -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 {};