@distilled.cloud/clickhouse-cloud 0.0.0 → 1.0.0-rc.21

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 (183) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +134 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +34 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +58 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +49 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +19 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +35 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/api_keys.d.ts +175 -0
  26. package/lib/services/api_keys.d.ts.map +1 -0
  27. package/lib/services/api_keys.js +2 -0
  28. package/lib/services/api_keys.js.map +1 -0
  29. package/lib/services/backup.d.ts +117 -0
  30. package/lib/services/backup.d.ts.map +1 -0
  31. package/lib/services/backup.js +2 -0
  32. package/lib/services/backup.js.map +1 -0
  33. package/lib/services/billing.d.ts +69 -0
  34. package/lib/services/billing.d.ts.map +1 -0
  35. package/lib/services/billing.js +2 -0
  36. package/lib/services/billing.js.map +1 -0
  37. package/lib/services/click_pipes.d.ts +1637 -0
  38. package/lib/services/click_pipes.d.ts.map +1 -0
  39. package/lib/services/click_pipes.js +31 -0
  40. package/lib/services/click_pipes.js.map +1 -0
  41. package/lib/services/index.d.ts +14 -0
  42. package/lib/services/index.d.ts.map +1 -0
  43. package/lib/services/index.js +13 -0
  44. package/lib/services/organization.d.ts +336 -0
  45. package/lib/services/organization.d.ts.map +1 -0
  46. package/lib/services/organization.js +2 -0
  47. package/lib/services/organization.js.map +1 -0
  48. package/lib/services/postgres.d.ts +726 -0
  49. package/lib/services/postgres.d.ts.map +1 -0
  50. package/lib/services/postgres.js +31 -0
  51. package/lib/services/postgres.js.map +1 -0
  52. package/lib/services/prometheus.d.ts +71 -0
  53. package/lib/services/prometheus.d.ts.map +1 -0
  54. package/lib/services/prometheus.js +2 -0
  55. package/lib/services/prometheus.js.map +1 -0
  56. package/lib/services/query_api_endpoints.d.ts +189 -0
  57. package/lib/services/query_api_endpoints.d.ts.map +1 -0
  58. package/lib/services/query_api_endpoints.js +2 -0
  59. package/lib/services/query_api_endpoints.js.map +1 -0
  60. package/lib/services/role_management.d.ts +159 -0
  61. package/lib/services/role_management.d.ts.map +1 -0
  62. package/lib/services/role_management.js +2 -0
  63. package/lib/services/role_management.js.map +1 -0
  64. package/lib/services/saved_queries.d.ts +129 -0
  65. package/lib/services/saved_queries.d.ts.map +1 -0
  66. package/lib/services/saved_queries.js +2 -0
  67. package/lib/services/saved_queries.js.map +1 -0
  68. package/lib/services/service.d.ts +886 -0
  69. package/lib/services/service.d.ts.map +1 -0
  70. package/lib/services/service.js +41 -0
  71. package/lib/services/service.js.map +1 -0
  72. package/lib/services/udf.d.ts +373 -0
  73. package/lib/services/udf.d.ts.map +1 -0
  74. package/lib/services/udf.js +24 -0
  75. package/lib/services/udf.js.map +1 -0
  76. package/lib/services/user_management.d.ts +150 -0
  77. package/lib/services/user_management.d.ts.map +1 -0
  78. package/lib/services/user_management.js +2 -0
  79. package/lib/services/user_management.js.map +1 -0
  80. package/lib/services.lazy/api_keys.js +1 -0
  81. package/lib/services.lazy/backup.js +1 -0
  82. package/lib/services.lazy/billing.js +1 -0
  83. package/lib/services.lazy/click_pipes.js +3 -0
  84. package/lib/services.lazy/index.js +3 -0
  85. package/lib/services.lazy/organization.js +1 -0
  86. package/lib/services.lazy/postgres.js +4 -0
  87. package/lib/services.lazy/prometheus.js +1 -0
  88. package/lib/services.lazy/query_api_endpoints.js +1 -0
  89. package/lib/services.lazy/role_management.js +1 -0
  90. package/lib/services.lazy/saved_queries.js +1 -0
  91. package/lib/services.lazy/service.js +4 -0
  92. package/lib/services.lazy/udf.js +3 -0
  93. package/lib/services.lazy/user_management.js +1 -0
  94. package/lib/traits.d.ts +11 -0
  95. package/lib/traits.d.ts.map +1 -0
  96. package/lib/traits.js +1 -0
  97. package/lib/unstable-services/backup.d.ts +165 -0
  98. package/lib/unstable-services/backup.d.ts.map +1 -0
  99. package/lib/unstable-services/backup.js +2 -0
  100. package/lib/unstable-services/backup.js.map +1 -0
  101. package/lib/unstable-services/billing.d.ts +84 -0
  102. package/lib/unstable-services/billing.d.ts.map +1 -0
  103. package/lib/unstable-services/billing.js +2 -0
  104. package/lib/unstable-services/billing.js.map +1 -0
  105. package/lib/unstable-services/click_pipes.d.ts +324 -0
  106. package/lib/unstable-services/click_pipes.d.ts.map +1 -0
  107. package/lib/unstable-services/click_pipes.js +2 -0
  108. package/lib/unstable-services/click_pipes.js.map +1 -0
  109. package/lib/unstable-services/click_stack.d.ts +3538 -0
  110. package/lib/unstable-services/click_stack.d.ts.map +1 -0
  111. package/lib/unstable-services/click_stack.js +60 -0
  112. package/lib/unstable-services/click_stack.js.map +1 -0
  113. package/lib/unstable-services/index.d.ts +11 -0
  114. package/lib/unstable-services/index.d.ts.map +1 -0
  115. package/lib/unstable-services/index.js +10 -0
  116. package/lib/unstable-services/notifications.d.ts +166 -0
  117. package/lib/unstable-services/notifications.d.ts.map +1 -0
  118. package/lib/unstable-services/notifications.js +2 -0
  119. package/lib/unstable-services/notifications.js.map +1 -0
  120. package/lib/unstable-services/organization.d.ts +403 -0
  121. package/lib/unstable-services/organization.d.ts.map +1 -0
  122. package/lib/unstable-services/organization.js +26 -0
  123. package/lib/unstable-services/organization.js.map +1 -0
  124. package/lib/unstable-services/postgres.d.ts +415 -0
  125. package/lib/unstable-services/postgres.d.ts.map +1 -0
  126. package/lib/unstable-services/postgres.js +2 -0
  127. package/lib/unstable-services/postgres.js.map +1 -0
  128. package/lib/unstable-services/service.d.ts +244 -0
  129. package/lib/unstable-services/service.d.ts.map +1 -0
  130. package/lib/unstable-services/service.js +2 -0
  131. package/lib/unstable-services/service.js.map +1 -0
  132. package/lib/unstable-services/snapshot.d.ts +146 -0
  133. package/lib/unstable-services/snapshot.d.ts.map +1 -0
  134. package/lib/unstable-services/snapshot.js +2 -0
  135. package/lib/unstable-services/snapshot.js.map +1 -0
  136. package/lib/unstable-services/user_management.d.ts +41 -0
  137. package/lib/unstable-services/user_management.d.ts.map +1 -0
  138. package/lib/unstable-services/user_management.js +2 -0
  139. package/lib/unstable-services/user_management.js.map +1 -0
  140. package/lib/unstable-services.lazy/backup.js +1 -0
  141. package/lib/unstable-services.lazy/billing.js +1 -0
  142. package/lib/unstable-services.lazy/click_pipes.js +1 -0
  143. package/lib/unstable-services.lazy/click_stack.js +4 -0
  144. package/lib/unstable-services.lazy/index.js +3 -0
  145. package/lib/unstable-services.lazy/notifications.js +1 -0
  146. package/lib/unstable-services.lazy/organization.js +4 -0
  147. package/lib/unstable-services.lazy/postgres.js +1 -0
  148. package/lib/unstable-services.lazy/service.js +1 -0
  149. package/lib/unstable-services.lazy/snapshot.js +1 -0
  150. package/lib/unstable-services.lazy/user_management.js +1 -0
  151. package/package.json +89 -2
  152. package/src/credentials.ts +88 -0
  153. package/src/errors.ts +76 -0
  154. package/src/index.ts +53 -0
  155. package/src/pagination.ts +9 -0
  156. package/src/protocol.ts +76 -0
  157. package/src/retry.ts +53 -0
  158. package/src/services/api_keys.ts +466 -0
  159. package/src/services/backup.ts +347 -0
  160. package/src/services/billing.ts +170 -0
  161. package/src/services/click_pipes.ts +3483 -0
  162. package/src/services/index.ts +14 -0
  163. package/src/services/organization.ts +901 -0
  164. package/src/services/postgres.ts +1967 -0
  165. package/src/services/prometheus.ts +271 -0
  166. package/src/services/query_api_endpoints.ts +466 -0
  167. package/src/services/role_management.ts +436 -0
  168. package/src/services/saved_queries.ts +384 -0
  169. package/src/services/service.ts +2112 -0
  170. package/src/services/udf.ts +1019 -0
  171. package/src/services/user_management.ts +508 -0
  172. package/src/traits.ts +45 -0
  173. package/src/unstable-services/backup.ts +422 -0
  174. package/src/unstable-services/billing.ts +232 -0
  175. package/src/unstable-services/click_pipes.ts +702 -0
  176. package/src/unstable-services/click_stack.ts +7114 -0
  177. package/src/unstable-services/index.ts +11 -0
  178. package/src/unstable-services/notifications.ts +451 -0
  179. package/src/unstable-services/organization.ts +1107 -0
  180. package/src/unstable-services/postgres.ts +1061 -0
  181. package/src/unstable-services/service.ts +795 -0
  182. package/src/unstable-services/snapshot.ts +397 -0
  183. package/src/unstable-services/user_management.ts +127 -0
@@ -0,0 +1,166 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import { type ClickHouseCloudOpError, type ClickHouseCloudOpContext } from "../protocol.ts";
3
+ export type { ClickHouseCloudOpError, ClickHouseCloudOpContext };
4
+ export interface ListMemberNotificationSettingsRequest {
5
+ /** ID of the organization the member belongs to. */
6
+ organizationId: string;
7
+ /** ID of the member whose settings are returned. */
8
+ userId: string;
9
+ /** Maximum number of results to return. */
10
+ limit?: number | undefined;
11
+ /** Opaque cursor from a previous response's `nextCursor`, marking where to resume the list. */
12
+ cursor?: string | undefined;
13
+ /** Filter to settings for this notification type. */
14
+ type?: string | undefined;
15
+ /** Filter to settings for this resource. */
16
+ resource_id?: string | undefined;
17
+ /** Filter to settings for resources of this kind. One of 'service', 'organization', 'clickpipe', 'postgres'. */
18
+ resource_type?: string | undefined;
19
+ }
20
+ export interface NotificationSetting {
21
+ /** Notification type the setting applies to, named as in [List notification types](#tag/Notifications/operation/notificationTypesGetList). New types are added over time, so treat this as an open set. */
22
+ type: string;
23
+ /** Kind of resource `resourceId` identifies. Current values: service, organization, clickpipe, postgres. New values may be added over time. [List notification types](#tag/Notifications/operation/notificationTypesGetList) reports the same value for every notification of a given type. */
24
+ resourceType: string;
25
+ /** ID of the resource the setting applies to, of the kind `resourceType` gives. Settings that apply to the organization itself, such as billing notifications, carry the organization ID. */
26
+ resourceId: string;
27
+ /** Delivery channel the setting applies to. One of 'ui', 'email'. */
28
+ channelType: string;
29
+ /** Whether the member receives this notification on this channel for this resource. One of 'enabled', 'disabled'. */
30
+ effect: string;
31
+ }
32
+ export type ListMemberNotificationSettingsResponseResultList = Array<NotificationSetting>;
33
+ export interface ListMemberNotificationSettingsResponse {
34
+ /** HTTP status code. */
35
+ status?: number | undefined;
36
+ /** Unique id assigned to every request. UUIDv4 */
37
+ requestId?: string | undefined;
38
+ result: ListMemberNotificationSettingsResponseResultList;
39
+ /** Maximum number of results returned in this page. */
40
+ limit?: number | undefined;
41
+ /** Cursor for the next page, to be sent as the `cursor` query parameter. Null on the last page. */
42
+ nextCursor?: string | null | undefined;
43
+ }
44
+ export interface ListNotificationsRequest {
45
+ /** ID of the organization the notifications belong to. */
46
+ organizationId: string;
47
+ /** Maximum number of results to return. */
48
+ limit?: number | undefined;
49
+ /** Opaque cursor from a previous response's `nextCursor`, marking where to resume the list. */
50
+ cursor?: string | undefined;
51
+ /** Filter to notifications of this severity: 'info', 'warning', 'critical'. */
52
+ severity?: string | undefined;
53
+ /** Filter to notifications of this type. New types are added over time; the [notification types endpoint](#tag/Notifications/operation/notificationTypesGetList) lists the ones this organization can receive. */
54
+ type?: string | undefined;
55
+ /** Filter to notifications about this resource. A service also matches the notifications of its ClickPipes; pass `resource_type` to narrow to one kind of resource. */
56
+ resource_id?: string | undefined;
57
+ /** Filter to notifications about resources of this kind. One of 'service', 'organization', 'clickpipe', 'postgres'. */
58
+ resource_type?: string | undefined;
59
+ /** Return notifications created at or after this time. An RFC 3339 timestamp, not a bare date. */
60
+ from_date?: string | undefined;
61
+ /** Return notifications created at or before this time. An RFC 3339 timestamp, not a bare date. */
62
+ to_date?: string | undefined;
63
+ }
64
+ export interface Notification {
65
+ /** Unique notification ID. */
66
+ id: string;
67
+ /** Notification type. New types are added over time, so treat this as an open set. */
68
+ type: string;
69
+ /** Severity of the notification. One of 'info', 'warning', 'critical'. */
70
+ severity: string;
71
+ /** Kind of resource the notification is about. One of 'service', 'organization', 'clickpipe', 'postgres'. */
72
+ resourceType: string;
73
+ /** ID of the resource the notification is about. */
74
+ resourceId: string;
75
+ /** Name the resource had when the notification was created. Absent for most notification types; use `resourceId` to identify the resource. */
76
+ resourceName?: string | undefined;
77
+ /** When the notification was created. ISO-8601. */
78
+ createdAt: string;
79
+ /** Short human-readable summary. */
80
+ title: string;
81
+ /** Human-readable body as plain text, with any links written as "label (url)". */
82
+ description: string;
83
+ }
84
+ export type ListNotificationsResponseResultList = Array<Notification>;
85
+ export interface ListNotificationsResponse {
86
+ /** HTTP status code. */
87
+ status?: number | undefined;
88
+ /** Unique id assigned to every request. UUIDv4 */
89
+ requestId?: string | undefined;
90
+ result: ListNotificationsResponseResultList;
91
+ /** Maximum number of results returned in this page. */
92
+ limit?: number | undefined;
93
+ /** Cursor for the next page, to be sent as the `cursor` query parameter. Null on the last page. */
94
+ nextCursor?: string | null | undefined;
95
+ }
96
+ export interface ListNotificationTypesRequest {
97
+ /** ID of the requested organization. */
98
+ organizationId: string;
99
+ }
100
+ /** Relative importance of notifications of this type. */
101
+ export type NotificationTypeSeverity = "info" | "warning" | "critical";
102
+ export interface NotificationType {
103
+ /** Stable identifier of the notification type. Never renamed or reused. */
104
+ name: string;
105
+ /** Human-readable name of the notification type. */
106
+ title: string;
107
+ /** Longer explanation of what the notification reports. Omitted for types that have none. */
108
+ description?: string | undefined;
109
+ /** Broad grouping the notification type belongs to. Current values: billing, service, clickpipe, postgres. New values may be added over time. */
110
+ category: string;
111
+ /** Relative importance of notifications of this type. */
112
+ severity: NotificationTypeSeverity;
113
+ /** Kind of resource a notification of this type is about. Current values: service, organization, clickpipe, postgres. New values may be added over time. */
114
+ resourceType: string;
115
+ /** Whether the per-role delivery default can be changed. When false the role default is frozen; this does not mean the notification is always delivered. */
116
+ isConfigurable: boolean;
117
+ /** False when the caller lacks the permission this type requires. The type is still returned, just flagged. */
118
+ isAvailable: boolean;
119
+ }
120
+ export type ListNotificationTypesResponseBodyList = Array<NotificationType>;
121
+ export type ListNotificationTypesResponse = ListNotificationTypesResponseBodyList;
122
+ /** Notification types the rule applies to, named as in [List notification types](#tag/Notifications/operation/notificationTypesGetList). */
123
+ export type NotificationSettingRuleNotificationsList = Array<string>;
124
+ /** IDs of the resources the rule applies to, of the kind each notification type reports as its `resourceType`. Name every ID: there are no wildcards, and a rule covers no resource created afterwards. Notification types that apply to the organization itself, such as billing, take the organization ID. */
125
+ export type NotificationSettingRuleResourcesList = Array<string>;
126
+ /** Delivery channels the rule applies to. One of 'ui', 'email'. Omit to apply the rule to every channel. */
127
+ export type NotificationSettingRuleChannelsList = Array<string>;
128
+ export interface NotificationSettingRule {
129
+ /** What the rule does to the settings it names. One of 'enabled', 'disabled', 'inherit'. 'inherit' removes the setting, so the notification follows the platform default for the member's role again, whoever set it. */
130
+ effect: string;
131
+ /** Notification types the rule applies to, named as in [List notification types](#tag/Notifications/operation/notificationTypesGetList). */
132
+ notifications: NotificationSettingRuleNotificationsList;
133
+ /** IDs of the resources the rule applies to, of the kind each notification type reports as its `resourceType`. Name every ID: there are no wildcards, and a rule covers no resource created afterwards. Notification types that apply to the organization itself, such as billing, take the organization ID. */
134
+ resources: NotificationSettingRuleResourcesList;
135
+ /** Delivery channels the rule applies to. One of 'ui', 'email'. Omit to apply the rule to every channel. */
136
+ channels?: NotificationSettingRuleChannelsList | undefined;
137
+ }
138
+ /** Rules to apply. Every rule is applied, in the order given. */
139
+ export type UpdateMemberNotificationSettingsRequestRulesList = Array<NotificationSettingRule>;
140
+ export interface UpdateMemberNotificationSettingsRequest {
141
+ /** ID of the organization the member belongs to. */
142
+ organizationId: string;
143
+ /** ID of the member whose settings are updated. */
144
+ userId: string;
145
+ /** Rules to apply. Every rule is applied, in the order given. */
146
+ rules: UpdateMemberNotificationSettingsRequestRulesList;
147
+ }
148
+ /** The member's settings for what the request addressed, after the change. A setting the request set to 'inherit' is absent, because it no longer exists. */
149
+ export type MemberNotificationSettingsPatchResponseSettingsList = Array<NotificationSetting>;
150
+ export interface MemberNotificationSettingsPatchResponse {
151
+ /** The member's settings for what the request addressed, after the change. A setting the request set to 'inherit' is absent, because it no longer exists. */
152
+ settings: MemberNotificationSettingsPatchResponseSettingsList;
153
+ }
154
+ export type ListMemberNotificationSettingsError = ClickHouseCloudOpError;
155
+ /** List a member's notification settings **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns the notification settings an organization member has explicitly chosen. A member who has never changed a setting has none, so an empty list means every notification follows the platform default for their role -- it does not mean notifications are off. Settings for notification types the member cannot use are omitted, which depends on their permissions rather than the caller's. Slack is configured for the whole organization and never appears here. A page holds at most `limit` settings (default 100, maximum 250; a larger value is clamped) and the server may return fewer. Every response carries `limit` and `nextCursor`; pass `nextCursor` as the `cursor` query parameter to fetch the next page, repeating until it is null. */
156
+ export declare const listMemberNotificationSettings: API.PaginatedOperationMethod<ListMemberNotificationSettingsRequest, ListMemberNotificationSettingsResponse, ListMemberNotificationSettingsError, ClickHouseCloudOpContext, NotificationSetting>;
157
+ export type ListNotificationsError = ClickHouseCloudOpError;
158
+ /** List of organization notifications **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns notifications for the organization, most recent first. Only notifications about resources the caller can access are returned, so two keys in the same organization can see different results. The [notification types endpoint](#tag/Notifications/operation/notificationTypesGetList) lists the types this organization can receive, so it shows what to expect here. Notifications are retained for 180 days. A page holds at most `limit` notifications (default 100, maximum 250; a larger value is clamped) and the server may return fewer. Every response carries `limit` and `nextCursor`; pass `nextCursor` as the `cursor` query parameter to fetch the next page, repeating until it is null. */
159
+ export declare const listNotifications: API.PaginatedOperationMethod<ListNotificationsRequest, ListNotificationsResponse, ListNotificationsError, ClickHouseCloudOpContext, Notification>;
160
+ export type ListNotificationTypesError = ClickHouseCloudOpError;
161
+ /** List notification types **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns every notification type the organization is entitled to, each flagged with whether the caller may use it. Types the organization is not entitled to are omitted; types the caller lacks permission to use are returned with `isAvailable` set to false. Every type supports the `ui`, `email` and `slack` channels, so channels are a property of the API rather than of a type. The effective delivery default is a function of type, role and channel, so no per-type default is reported here. */
162
+ export declare const listNotificationTypes: API.OperationMethod<ListNotificationTypesRequest, ListNotificationTypesResponse, ListNotificationTypesError, ClickHouseCloudOpContext>;
163
+ export type UpdateMemberNotificationSettingsError = ClickHouseCloudOpError;
164
+ /** Update a member's notification settings **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Sets the notification settings an organization member has explicitly chosen. Each rule names notification types, resources and channels, and applies one effect to every combination of them. A notification type no rule names keeps the setting it had, so this endpoint never has to carry a member's whole configuration. Three effects: 'enabled' and 'disabled' store an explicit choice, and 'inherit' removes the stored setting so the notification follows the platform default again. Sending the same body twice changes nothing the second time. The request either applies completely or changes nothing: a rule naming a notification type that does not exist, that the member cannot configure, or a resource the caller cannot access is rejected whole, as is a request that names the same type, resource and channel twice. A request carries at most 100 rules, addressing at most 1000 settings in total. */
165
+ export declare const updateMemberNotificationSettings: API.OperationMethod<UpdateMemberNotificationSettingsRequest, MemberNotificationSettingsPatchResponse, UpdateMemberNotificationSettingsError, ClickHouseCloudOpContext>;
166
+ //# sourceMappingURL=notifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.d.ts","sources":["../../src/unstable-services/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC9B,MAAM,gBAAgB,CAAC;AAMxB,YAAY,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,CAAC;AAejE,MAAM,WAAW,qCAAqC;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as o,a as s,b as c,errors$ClickHouseCloudServiceErrors as l,l as u,n as d,o as f,pagination$paginateCursor as p,protocol$ClickHouseCloudPaginatedProtocol as m,protocol$ClickHouseCloudProtocol as h,retry$Retry as g,traits$Http as _,traits$Label as v,traits$Query as y,traits$RawResponseRoot as b,wc as x,xc as S}from"../_bundle/sdk.js";const C={system:`clickhouse-cloud-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`ClickhouseCloud`,service:`Notifications`,labels:`clickhouse_cloud`,propagate:`w3c`};const w=/*@__PURE__*/ f(d=>d===s?u(`ListMemberNotificationSettings`,`{input:#1,output:#2,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"nextCursor",items:"result",pageSize:"limit"},strategy:$15};$8(>3)@"%Request";$8(>4)@"%Response";$7({organizationId:$3.pipe($2()),userId:$3.pipe($2()),limit:$6($5.pipe($4())),cursor:$6($3.pipe($4())),type:$6($3.pipe($4())),resource_id:$6($3.pipe($4())),resource_type:$6($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/members/{userId}/notificationSettings",code:200}));$7({status:$6($5),requestId:$6($3),result:#9:1,limit:$6($5),nextCursor:$6($10($3))})`,[i,_,v,n,y,t,a,r,o,__d0,e,l,m,g,C,p]):c(w,d));const T=/*@__PURE__*/ f(d=>d===s?u(`Notification`,`{input:#1,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"List%s",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"nextCursor",items:"result",pageSize:"limit"},strategy:$15};$8(>5)@"List%sRequest";$8(>6)@"%";$9(#2);$8(>7)@"List%sResponse";$7({organizationId:$3.pipe($2()),limit:$6($5.pipe($4())),cursor:$6($3.pipe($4())),severity:$6($3.pipe($4())),type:$6($3.pipe($4())),resource_id:$6($3.pipe($4())),resource_type:$6($3.pipe($4())),from_date:$6($3.pipe($4())),to_date:$6($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/notifications",code:200}));$7({id:$3,type:$3,severity:$3,resourceType:$3,resourceId:$3,resourceName:$6($3),createdAt:$3,title:$3,description:$3});$7({status:$6($5),requestId:$6($3),result:#3,limit:$6($5),nextCursor:$6($10($3))})`,[i,_,v,n,y,t,a,r,o,x,e,l,m,g,C,p]):c(T,d));const E=/*@__PURE__*/ d(e=>e===s?u(`NotificationType`,`{input:#1,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"List%s"};$5(>5)@"List%sRequest";$5(>6)@"%";$8(#2);$5(>7)@"List%sResponse";$4({organizationId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/organizations/{organizationId}/notificationTypes",code:200}));$4({name:$3,title:$3,description:$6($3),category:$3,severity:$3,resourceType:$3,isConfigurable:$7,isAvailable:$7});#3.pipe($9())`,[i,_,v,n,r,o,a,S,x,b,l,h,g,C]):c(E,e));const D=/*@__PURE__*/ d(e=>e===s?u(`UpdateMemberNotificationSettings`,`{input:#4,output:#5,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$2($1);$5(>6)@"NotificationSettingRule";$2(#2);$5(>7)@"%Request";$5(>8)@"MemberNotificationSettingsPatchResponse";$4({effect:$1,notifications:#1,resources:#1,channels:$3(#1)});$4({organizationId:$1.pipe($7()),userId:$1.pipe($7()),rules:#3}).pipe($6({method:"PATCH",uri:"/v1/organizations/{organizationId}/members/{userId}/notificationSettings",code:200}));$4({settings:#8:1})`,[i,n,x,a,r,o,_,v,__d0,l,h,g,C]):c(D,e));function __d0(){return[`$3(>2)@"NotificationSetting";$4(#0);$2({type:$1,resourceType:$1,resourceId:$1,channelType:$1,effect:$1})`,[i,n,r,o,x]]}export{w as listMemberNotificationSettings,E as listNotificationTypes,T as listNotifications,D as updateMemberNotificationSettings};
2
+ //# sourceMappingURL=notifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.js","names":["API.D","API.named","__L.at","T.Http","T.Label","S.String","T.Query","S.Number","S.optional","S.Struct","S.suspend","S.NullOr","Retry.Retry","API.call","S.Array","S.Boolean","T.RawResponseRoot","NullOr","Number","String","Struct","at","optional","suspend","D","call","ClickHouseCloudServiceErrors","named","op","opPaginated","paginateCursor","ClickHouseCloudPaginatedProtocol","ClickHouseCloudProtocol","Retry","Http","Label","Query","RawResponseRoot","Array","Boolean","TELEMETRY","listMemberNotificationSettings","i","listNotifications","listNotificationTypes","updateMemberNotificationSettings"],"sources":["../../src/unstable-services/notifications.ts"],"mappings":"yYAkBA,MAAMwC,EAAY,CAChB,OAAQ,uBACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,kBACR,QAAS,gBACT,OAAQ,mBACR,UAAW,KACb,EA0JA,MAAaC,EAMK,gBAAiB,GAAgBC,IAAM1C,EAAQC,EAAU,iCAAkC,+nBAAgoB,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAASC,EAAUC,EAAYC,EAAUC,EAAW,KAAMC,EAAUe,EAA8BK,EAAkCnB,EAAa4B,EAAWV,CAAc,CAAC,EAAIjB,EAAS4B,EAAgCC,CAAC,CAAC,EAI3+B,MAAaC,EAMK,gBAAiB,GAAgBD,IAAM1C,EAAQC,EAAU,eAAgB,yzBAA0zB,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAASC,EAAUC,EAAYC,EAAUC,EAAWI,EAASH,EAAUe,EAA8BK,EAAkCnB,EAAa4B,EAAWV,CAAc,CAAC,EAAIjB,EAAS8B,EAAmBD,CAAC,CAAC,EAIzoC,MAAaE,EAKK,gBAAQ,GAAgBF,IAAM1C,EAAQC,EAAU,mBAAoB,waAAya,CAACC,EAAQC,EAAQC,EAASC,EAAUI,EAAUC,EAAWF,EAAYO,EAAWD,EAASE,EAAmBU,EAA8BM,EAAyBpB,EAAa4B,CAAS,CAAC,EAAI3B,EAAS+B,EAAuBF,CAAC,CAAC,EAI/tB,MAAaG,EAKK,gBAAQ,GAAgBH,IAAM1C,EAAQC,EAAU,mCAAoC,wdAAyd,CAACC,EAAQG,EAAUS,EAASN,EAAYC,EAAUC,EAAWP,EAAQC,EAAS,KAAMsB,EAA8BM,EAAyBpB,EAAa4B,CAAS,CAAC,EAAI3B,EAASgC,EAAkCH,CAAC,CAAC,EAMlxB,SAAS,MAAY,CACnB,MAAO,CAAC,2GAA4G,CAACxC,EAAQG,EAAUI,EAAUC,EAAWI,CAAO,CAAC,CACtK"}
@@ -0,0 +1,403 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import type * as Redacted from "effect/Redacted";
4
+ import { type ClickHouseCloudOpError, type ClickHouseCloudOpContext } from "../protocol.ts";
5
+ export type { ClickHouseCloudOpError, ClickHouseCloudOpContext };
6
+ declare const FeatureUnavailable_base: S.TaggedErrorClass<"FeatureUnavailable", {
7
+ readonly message: any;
8
+ readonly body: any;
9
+ readonly headers: any;
10
+ }> & (new (...args: any[]) => {
11
+ "@distilled.cloud/error/categories": {
12
+ AuthError: true;
13
+ };
14
+ });
15
+ /** The feature is not available to this organization or service: its plan does not include it, it is not enabled for the organization, or it is not set up. The message says which. */
16
+ export declare class FeatureUnavailable extends /*@__PURE__*/ FeatureUnavailable_base {
17
+ }
18
+ export interface CreateOrganizationByocInfrastructureEnrollmentTokenRequest {
19
+ /** ID of the requested organization. */
20
+ organizationId: string;
21
+ /** ID of the requested BYOC Infrastructure */
22
+ byocInfrastructureId: string;
23
+ /** Lifetime of the token in seconds: whole minutes between 3600 and 86400. Omitted: four hours */
24
+ ttlSeconds?: number | undefined;
25
+ }
26
+ export interface ByocInfrastructureEnrollmentToken {
27
+ /** One-time token the connector enrolls with. It cannot be read again after this response */
28
+ token: string | Redacted.Redacted<string>;
29
+ /** When the token expires. ISO-8601 */
30
+ expiresAt: string;
31
+ }
32
+ export interface GetByocInfrastructureRequest {
33
+ /** ID of the requested organization. */
34
+ organizationId: string;
35
+ /** ID of the requested BYOC Infrastructure */
36
+ byocInfrastructureId: string;
37
+ }
38
+ /** Region the BYOC infrastructure is located in */
39
+ export type ByocInfrastructureDetailsRegionId = "ap-northeast-1" | "ap-northeast-2" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ca-central-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "il-central-1" | "us-east-1" | "us-east-2" | "us-west-2" | "us-east1" | "us-central1" | "europe-west2" | "europe-west4" | "asia-southeast1" | "asia-northeast1" | "eastus" | "eastus2" | "westus3" | "germanywestcentral" | "centralus";
40
+ /** Cloud provider of the region */
41
+ export type ByocInfrastructureDetailsCloudProvider = "gcp" | "aws" | "azure";
42
+ /** Availability zones the infrastructure spans */
43
+ export type ByocInfrastructureDetailsVpcAvailabilityZoneListList = Array<string>;
44
+ /** Customer private subnet IDs or names (BYO-VPC only; exactly one entry on GCP) */
45
+ export type ByocInfrastructureDetailsByoVpcPrivateSubnetIdsList = Array<string>;
46
+ /** Secondary IP range names pinned for pod IPs (GCP BYO-VPC only). Absent when all secondary ranges are used */
47
+ export type ByocInfrastructureDetailsByoVpcPodCidrRangeNamesList = Array<string>;
48
+ /** At least three distinct availability zones of the region. Omitted: the region default */
49
+ export type ByocRestrictedFactsAvailabilityZonesList = Array<string>;
50
+ /** Direct image mode only (required there): IAM roles of the cluster nodes, in `accountId` */
51
+ export type ByocRestrictedFactsNodeRoleArnsList = Array<string>;
52
+ export interface ByocRestrictedFacts {
53
+ /** Name of the EKS cluster the connector runs in */
54
+ clusterName: string;
55
+ /** Node group the platform components run on. Omitted: `system` */
56
+ platformNodeGroup?: string | undefined;
57
+ /** At least three distinct availability zones of the region. Omitted: the region default */
58
+ availabilityZones?: ByocRestrictedFactsAvailabilityZonesList | undefined;
59
+ /** Prefix of the namespace each service runs in. Must match the executor configuration. Omitted: `ns-` */
60
+ namespacePrefix?: string | undefined;
61
+ /** Direct image mode only (required there): IAM role of the connector executor, in `accountId` */
62
+ executorRoleArn?: string | undefined;
63
+ /** Direct image mode only (required there): IAM roles of the cluster nodes, in `accountId` */
64
+ nodeRoleArns?: ByocRestrictedFactsNodeRoleArnsList | undefined;
65
+ /** How the connector pulls platform images: `direct` from the ClickHouse registry, or `bundle` from `imageRegistry` */
66
+ imageMode: string;
67
+ /** Bundle image mode only (required there): OCI repository root holding the platform images */
68
+ imageRegistry?: string | undefined;
69
+ /** S3 bucket services store data in */
70
+ dataBucket: string;
71
+ /** S3 bucket services store backups in */
72
+ backupBucket: string;
73
+ /** IAM role services assume to reach the buckets, in `accountId` */
74
+ storageRoleArn: string;
75
+ /** Remote-write URL of the connector scraper. Required unless `enableMonitoring` is false */
76
+ scraperEndpoint?: string | undefined;
77
+ /** Install the monitoring components. Default true */
78
+ enableMonitoring?: boolean | undefined;
79
+ /** Install the volume snapshot controller. Default true */
80
+ enableSnapshotController?: boolean | undefined;
81
+ /** Install the ClickHouse autoscaler. Default false */
82
+ enableAutoscaler?: boolean | undefined;
83
+ }
84
+ export interface ByocConnectorComponent {
85
+ /** Connector component, e.g. scraper, executor or troubleshooter */
86
+ name?: string | undefined;
87
+ /** State the component last reported */
88
+ state?: string | undefined;
89
+ /** Version the component last reported */
90
+ version?: string | undefined;
91
+ /** Last heartbeat of the component. ISO-8601 */
92
+ lastHeartbeatAt?: string | undefined;
93
+ }
94
+ /** Components the connector reports on */
95
+ export type ByocConnectorComponentsList = Array<ByocConnectorComponent>;
96
+ export interface ByocConnector {
97
+ /** Last heartbeat of the connector. ISO-8601. Absent until the connector first reports */
98
+ lastHeartbeatAt?: string | undefined;
99
+ /** Components the connector reports on */
100
+ components?: ByocConnectorComponentsList | undefined;
101
+ /** State of the platform layer the connector installs */
102
+ platformState?: string | undefined;
103
+ /** What you need to do when the platform layer waits on you */
104
+ platformDetail?: string | undefined;
105
+ }
106
+ export interface ByocInfrastructureDetails {
107
+ /** Unique identifier of the BYOC infrastructure */
108
+ id?: string | undefined;
109
+ /** State of the infrastructure. Current values: 'infra-provisioning', 'infra-terminated', 'infra-terminating', 'infra-ready', 'infra-degraded', 'infra-upgrading', 'infra-awaiting-connector'. New states may be added; treat an unknown state as not ready */
110
+ state?: string | undefined;
111
+ /** Cloud account ID the BYOC infrastructure is bound to: AWS account ID, GCP project ID, or Azure subscription ID */
112
+ accountId?: string | undefined;
113
+ /** Region the BYOC infrastructure is located in */
114
+ regionId?: ByocInfrastructureDetailsRegionId | undefined;
115
+ /** Cloud provider of the region */
116
+ cloudProvider?: ByocInfrastructureDetailsCloudProvider | undefined;
117
+ /** Human readable name for infrastructure */
118
+ displayName?: string | undefined;
119
+ /** Whether private link connectivity is enabled on the infrastructure */
120
+ enablePrivateLink?: boolean | undefined;
121
+ /** Whether the private load balancer is enabled on the infrastructure */
122
+ enablePrivateLoadBalancer?: boolean | undefined;
123
+ /** Whether the public load balancer is enabled on the infrastructure */
124
+ enablePublicLoadBalancer?: boolean | undefined;
125
+ /** CIDR range of the ClickHouse-managed VPC. Absent for BYO-VPC infrastructures */
126
+ vpcCidrRange?: string | undefined;
127
+ /** Availability zones the infrastructure spans */
128
+ vpcAvailabilityZoneList?: ByocInfrastructureDetailsVpcAvailabilityZoneListList | undefined;
129
+ /** True when the infrastructure runs in a customer-provided VPC (BYO-VPC) instead of a ClickHouse-managed one */
130
+ isByoVpc?: boolean | undefined;
131
+ /** Customer VPC ID or network name (BYO-VPC only) */
132
+ byoVpcId?: string | undefined;
133
+ /** Customer private subnet IDs or names (BYO-VPC only; exactly one entry on GCP) */
134
+ byoVpcPrivateSubnetIds?: ByocInfrastructureDetailsByoVpcPrivateSubnetIdsList | undefined;
135
+ /** Secondary IP range names pinned for pod IPs (GCP BYO-VPC only). Absent when all secondary ranges are used */
136
+ byoVpcPodCidrRangeNames?: ByocInfrastructureDetailsByoVpcPodCidrRangeNamesList | undefined;
137
+ /** Shared VPC host project owning the VPC and subnet (GCP BYO-VPC only). Absent when the VPC lives in the service project */
138
+ byoVpcSharedVpcHostProjectId?: string | undefined;
139
+ /** Customer-provided Private Service Connect NAT subnet name configured for private link (GCP BYO-VPC only) */
140
+ gcpPscSubnetId?: string | undefined;
141
+ /** Access model of the infrastructure: `standard` or `restricted`. With `restricted`, private link, load balancer and VPC fields are false or absent */
142
+ accessModel?: string | undefined;
143
+ restrictedFacts?: ByocRestrictedFacts | undefined;
144
+ connector?: ByocConnector | undefined;
145
+ }
146
+ export interface GetByocInfrastructureCustomerAuthorizedAccessRequest {
147
+ /** ID of the organization that owns the BYOC infrastructure. */
148
+ organizationId: string;
149
+ /** ID of the BYOC infrastructure. */
150
+ byocInfrastructureId: string;
151
+ }
152
+ export interface ByocCustomerAuthorizedAccess {
153
+ /** When ClickHouse personnel may access the infrastructure. Current values: always, never, window. New values may be added over time. When the setting has never been configured this is `always`, the data plane default */
154
+ mode: string;
155
+ /** Start of the access window. ISO-8601. Present only when `mode` is `window` */
156
+ startTimestamp?: string | undefined;
157
+ /** Length of the access window in seconds, counted from `startTimestamp`. Present only when `mode` is `window` */
158
+ durationSeconds?: number | undefined;
159
+ /** Whether the data plane currently allows ClickHouse personnel access, evaluated at the time of the request */
160
+ allowed: boolean;
161
+ /** End of the current access window. ISO-8601. Present only while access is allowed until a deadline */
162
+ windowEndTimestamp?: string | undefined;
163
+ }
164
+ export interface GetByocInfrastructurePrivateEndpointConfigRequest {
165
+ /** ID of the requested organization. */
166
+ organizationId: string;
167
+ /** ID of the requested BYOC Infrastructure */
168
+ byocInfrastructureId: string;
169
+ }
170
+ export interface ByocInfrastructurePrivateEndpointConfig {
171
+ /** Cloud-provider identifier of the private link endpoint service of the infrastructure: VPC endpoint service name on AWS, Private Service Connect service attachment on GCP, or Private Link service on Azure */
172
+ endpointName: string;
173
+ /** Private DNS hostname under which services of the infrastructure are reachable over private link */
174
+ privateDnsHostname: string;
175
+ }
176
+ export interface GetByocInfrastructureProgressRequest {
177
+ /** ID of the requested organization. */
178
+ organizationId: string;
179
+ /** ID of the requested BYOC Infrastructure */
180
+ byocInfrastructureId: string;
181
+ }
182
+ /** Overall provisioning status of the infrastructure */
183
+ export type ByocInfrastructureProgressStatus = "not_started" | "pending" | "waiting" | "in_progress" | "ready" | "failed";
184
+ /** Status of this stage */
185
+ export type ByocInfrastructureProgressStageStatus = "not_started" | "pending" | "waiting" | "in_progress" | "ready" | "failed";
186
+ /** Nested stages; leaf entries are individual cloud resources */
187
+ export type ByocInfrastructureProgressStageSubStagesList = Array<ByocInfrastructureProgressStage>;
188
+ export interface ByocInfrastructureProgressStage {
189
+ /** Name of the provisioning stage or resource */
190
+ name?: string | undefined;
191
+ /** Status of this stage */
192
+ status?: ByocInfrastructureProgressStageStatus | undefined;
193
+ /** Timestamp the stage status last changed. ISO-8601 */
194
+ updatedAt?: string | undefined;
195
+ /** Human readable detail for the current status, e.g. an error message */
196
+ message?: string | undefined;
197
+ /** Nested stages; leaf entries are individual cloud resources */
198
+ subStages?: ByocInfrastructureProgressStageSubStagesList | undefined;
199
+ }
200
+ /** Top-level provisioning stages with their nested resources */
201
+ export type ByocInfrastructureProgressStagesList = Array<ByocInfrastructureProgressStage>;
202
+ export interface ByocInfrastructureProgress {
203
+ /** Unique identifier of the BYOC infrastructure */
204
+ id?: string | undefined;
205
+ /** Overall provisioning status of the infrastructure */
206
+ status?: ByocInfrastructureProgressStatus | undefined;
207
+ /** Timestamp the overall status last changed. ISO-8601 */
208
+ updatedAt?: string | undefined;
209
+ /** Top-level provisioning stages with their nested resources */
210
+ stages?: ByocInfrastructureProgressStagesList | undefined;
211
+ }
212
+ export interface GetByocInfrastructureTagsRequest {
213
+ /** ID of the requested organization. */
214
+ organizationId: string;
215
+ /** ID of the requested BYOC Infrastructure */
216
+ byocInfrastructureId: string;
217
+ }
218
+ export type ByocInfrastructureTags = {
219
+ [key: string]: string | undefined;
220
+ };
221
+ export interface ByocInfrastructureTagsResponse {
222
+ tags: ByocInfrastructureTags;
223
+ }
224
+ export interface GetOrganizationQuotaRequest {
225
+ /** ID of the requested organization. */
226
+ organizationId: string;
227
+ /** Code of the requested quota. */
228
+ quotaCode: string;
229
+ }
230
+ /** Stable identifier of the quota. Use it to request a single quota by code. */
231
+ export type OrganizationQuotaQuotaCode = "services-per-organization" | "postgres-services-per-organization" | "replicas-per-warehouse" | "api-keys-per-organization";
232
+ /** Granularity at which the limit is applied. For example, `replicas-per-warehouse` is an organization-wide setting that limits each warehouse individually. */
233
+ export type OrganizationQuotaScope = "organization" | "warehouse";
234
+ export interface OrganizationQuota {
235
+ /** Stable identifier of the quota. Use it to request a single quota by code. */
236
+ quotaCode: OrganizationQuotaQuotaCode;
237
+ /** Human-readable name of the quota. */
238
+ name: string;
239
+ /** Explanation of the resource the quota limits and how the limit is applied. */
240
+ description: string;
241
+ /** Granularity at which the limit is applied. For example, `replicas-per-warehouse` is an organization-wide setting that limits each warehouse individually. */
242
+ scope: OrganizationQuotaScope;
243
+ /** Limit currently applied to the organization, including any adjustments made for the organization. The value can change when the billing status of the organization changes. */
244
+ value: number;
245
+ /** Current consumption of the quota. Omitted for quotas that do not report usage. Usage can exceed `value` when a limit was lowered after resources were created; existing resources are not affected. */
246
+ usage?: number | undefined;
247
+ /** Whether the limit can be raised for the organization by contacting ClickHouse support. */
248
+ adjustable: boolean;
249
+ }
250
+ export interface ListOrganizationPublicPreviewsRequest {
251
+ /** ID of the requested organization. */
252
+ organizationId: string;
253
+ }
254
+ export interface PublicPreview {
255
+ /** Stable identifier of the preview feature. */
256
+ id: string;
257
+ /** Name of the preview feature. */
258
+ name: string;
259
+ /** What the preview feature does. */
260
+ description: string;
261
+ /** Link to the documentation of the preview feature. */
262
+ docsUrl: string;
263
+ /** Whether the preview feature is on for the organization. */
264
+ enabled: boolean;
265
+ /** Whether the caller may switch the preview feature on or off. */
266
+ canToggle: boolean;
267
+ }
268
+ export type ListOrganizationPublicPreviewsResponseBodyList = Array<PublicPreview>;
269
+ export type ListOrganizationPublicPreviewsResponse = ListOrganizationPublicPreviewsResponseBodyList;
270
+ export interface ListOrganizationQuotasRequest {
271
+ /** ID of the requested organization. */
272
+ organizationId: string;
273
+ }
274
+ export type ListOrganizationQuotasResponseBodyList = Array<OrganizationQuota>;
275
+ export type ListOrganizationQuotasResponse = ListOrganizationQuotasResponseBodyList;
276
+ export interface UpdateByocInfrastructureCustomerAuthorizedAccessRequest {
277
+ /** ID of the organization that owns the BYOC infrastructure. */
278
+ organizationId: string;
279
+ /** ID of the BYOC infrastructure. */
280
+ byocInfrastructureId: string;
281
+ /** When ClickHouse personnel may access the infrastructure. Current values: always, never, window. New values may be added over time. `always` allows access, `never` denies it, and `window` allows it during a single time window described by `startTimestamp` and `durationSeconds` */
282
+ mode: string;
283
+ /** Start of the access window. ISO-8601. Required when `mode` is `window`, not allowed otherwise */
284
+ startTimestamp?: string | undefined;
285
+ /** Length of the access window in seconds, from 1 to 172800 (48 hours). Required when `mode` is `window`, not allowed otherwise */
286
+ durationSeconds?: number | undefined;
287
+ }
288
+ export interface UpdateOrganizationPublicPreviewRequest {
289
+ /** ID of the requested organization. */
290
+ organizationId: string;
291
+ /** ID of the requested preview feature. */
292
+ previewId: string;
293
+ /** Whether the preview feature should be on. */
294
+ enabled: boolean;
295
+ }
296
+ /** Region in which the BYOC infrastructure will be located */
297
+ export type ValidateByocInfrastructureRequestRegionId = "ap-northeast-1" | "ap-northeast-2" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ca-central-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "il-central-1" | "us-east-1" | "us-east-2" | "us-west-2" | "us-east1" | "us-central1" | "europe-west2" | "europe-west4" | "asia-southeast1" | "asia-northeast1" | "eastus" | "eastus2" | "westus3" | "germanywestcentral" | "centralus";
298
+ export type ValidateByocInfrastructureRequestAvailabilityZoneSuffixesItem = "a" | "b" | "c" | "d" | "e" | "f";
299
+ /** List of availability zone suffixes */
300
+ export type ValidateByocInfrastructureRequestAvailabilityZoneSuffixesList = Array<ValidateByocInfrastructureRequestAvailabilityZoneSuffixesItem | (string & {})>;
301
+ /** BYO-VPC only: private subnet IDs or names (1-6 entries on AWS, exactly one on GCP) */
302
+ export type ValidateByocInfrastructureRequestPrivateSubnetIdsList = Array<string>;
303
+ /** AWS BYO-VPC only: public subnet IDs (at most 6 entries) */
304
+ export type ValidateByocInfrastructureRequestPublicSubnetIdsList = Array<string>;
305
+ /** GCP BYO-VPC only: secondary IP range names on the subnet to use for pod IPs. Omitted: all secondary ranges are used */
306
+ export type ValidateByocInfrastructureRequestGcpPodCidrRangeNamesList = Array<string>;
307
+ export interface ValidateByocInfrastructureRequest {
308
+ /** ID of the requested organization. */
309
+ organizationId: string;
310
+ /** Region in which the BYOC infrastructure will be located */
311
+ regionId: ValidateByocInfrastructureRequestRegionId | (string & {});
312
+ /** Cloud account ID the BYOC infrastructure is configured for: AWS account ID, GCP project ID, or Azure subscription ID */
313
+ accountId: string;
314
+ /** List of availability zone suffixes */
315
+ availabilityZoneSuffixes?: ValidateByocInfrastructureRequestAvailabilityZoneSuffixesList | undefined;
316
+ /** CIDR range for the ClickHouse-managed VPC. Mutually exclusive with the BYO-VPC fields (`vpcId`, `privateSubnetIds`, `publicSubnetIds`) */
317
+ vpcCidrRange?: string | undefined;
318
+ /** AWS only: ExternalID baked into the ClickHouse management role trust policy in your account */
319
+ externalId?: string | undefined;
320
+ /** Azure only (required for Azure regions): Entra tenant ID of the subscription */
321
+ tenantId?: string | undefined;
322
+ /** Azure only (required for Azure regions): client ID of the service principal ClickHouse uses to manage the infrastructure */
323
+ servicePrincipalClientId?: string | undefined;
324
+ /** BYO-VPC only (AWS and GCP): ID or network name of the customer-provided VPC to deploy into. Requires `privateSubnetIds` */
325
+ vpcId?: string | undefined;
326
+ /** BYO-VPC only: private subnet IDs or names (1-6 entries on AWS, exactly one on GCP) */
327
+ privateSubnetIds?: ValidateByocInfrastructureRequestPrivateSubnetIdsList | undefined;
328
+ /** AWS BYO-VPC only: public subnet IDs (at most 6 entries) */
329
+ publicSubnetIds?: ValidateByocInfrastructureRequestPublicSubnetIdsList | undefined;
330
+ /** GCP BYO-VPC only: secondary IP range names on the subnet to use for pod IPs. Omitted: all secondary ranges are used */
331
+ gcpPodCidrRangeNames?: ValidateByocInfrastructureRequestGcpPodCidrRangeNamesList | undefined;
332
+ /** GCP BYO-VPC only: Shared VPC host project owning the VPC and subnet, when different from `accountId` */
333
+ gcpSharedVpcHostProjectId?: string | undefined;
334
+ tags?: ByocInfrastructureTags | undefined;
335
+ /** How ClickHouse reaches the infrastructure. `standard` (default) provisions it through a management role in your account; `restricted` registers a cluster you own, reached only through the connector you install. `restricted` is AWS only and requires `restrictedFacts` */
336
+ accessModel?: string | undefined;
337
+ restrictedFacts?: ByocRestrictedFacts | undefined;
338
+ }
339
+ /** Cloud provider of the requested region */
340
+ export type ByocInfrastructureValidationCloudProvider = "gcp" | "aws" | "azure";
341
+ export interface ByocInfrastructureValidationCheck {
342
+ /** Human readable name of the check */
343
+ name?: string | undefined;
344
+ /** Cloud permission or action the check simulated */
345
+ action?: string | undefined;
346
+ /** Whether the account allowed the simulated action */
347
+ allowed?: boolean | undefined;
348
+ /** Cloud-provider detail for a denied check, e.g. an IAM decision reason */
349
+ reason?: string | undefined;
350
+ /** Free-form grouping of related checks, e.g. base or vpc-write. Groupings may change as validations evolve */
351
+ group?: string | undefined;
352
+ }
353
+ /** Individual permission checks with their outcomes */
354
+ export type ByocInfrastructureValidationChecksList = Array<ByocInfrastructureValidationCheck>;
355
+ export interface ByocInfrastructureValidation {
356
+ /** Cloud provider of the requested region */
357
+ cloudProvider?: ByocInfrastructureValidationCloudProvider | undefined;
358
+ /** True when every check passed */
359
+ allPassed?: boolean | undefined;
360
+ /** True when at least one check passed */
361
+ anyPassed?: boolean | undefined;
362
+ /** Whether preflight validation is implemented for the requested cloud and configuration. When false, an empty check list means nothing was verified rather than everything passed */
363
+ supported?: boolean | undefined;
364
+ /** Individual permission checks with their outcomes */
365
+ checks?: ByocInfrastructureValidationChecksList | undefined;
366
+ }
367
+ export type CreateOrganizationByocInfrastructureEnrollmentTokenError = ClickHouseCloudOpError;
368
+ /** Create BYOC infrastructure enrollment token **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Restricted access only. Mints a token the connector enrolls the infrastructure with. Every call mints a new token; earlier tokens stay valid until they expire. Answers 409 until ClickHouse has admitted the roles the infrastructure registered, which follows creation within minutes. */
369
+ export declare const createOrganizationByocInfrastructureEnrollmentToken: API.OperationMethod<CreateOrganizationByocInfrastructureEnrollmentTokenRequest, ByocInfrastructureEnrollmentToken, CreateOrganizationByocInfrastructureEnrollmentTokenError, ClickHouseCloudOpContext>;
370
+ export type GetByocInfrastructureError = ClickHouseCloudOpError;
371
+ /** Get BYOC infrastructure details **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the full configuration of a BYOC infrastructure, including private link and load balancer state, network layout, and BYO-VPC settings read from the data plane. */
372
+ export declare const getByocInfrastructure: API.OperationMethod<GetByocInfrastructureRequest, ByocInfrastructureDetails, GetByocInfrastructureError, ClickHouseCloudOpContext>;
373
+ export type GetByocInfrastructureCustomerAuthorizedAccessError = ClickHouseCloudOpError;
374
+ /** Get BYOC infrastructure customer-authorized access **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the customer setting that controls when ClickHouse personnel may access the BYOC infrastructure, together with the data plane verdict at the time of the request. */
375
+ export declare const getByocInfrastructureCustomerAuthorizedAccess: API.OperationMethod<GetByocInfrastructureCustomerAuthorizedAccessRequest, ByocCustomerAuthorizedAccess, GetByocInfrastructureCustomerAuthorizedAccessError, ClickHouseCloudOpContext>;
376
+ export type GetByocInfrastructurePrivateEndpointConfigError = ClickHouseCloudOpError;
377
+ /** Get BYOC infrastructure private endpoint configuration **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the private link endpoint service details of a BYOC infrastructure. For BYOC organizations this replaces the deprecated organization-level `privateEndpointConfig` endpoint. */
378
+ export declare const getByocInfrastructurePrivateEndpointConfig: API.OperationMethod<GetByocInfrastructurePrivateEndpointConfigRequest, ByocInfrastructurePrivateEndpointConfig, GetByocInfrastructurePrivateEndpointConfigError, ClickHouseCloudOpContext>;
379
+ export type GetByocInfrastructureProgressError = ClickHouseCloudOpError;
380
+ /** Get BYOC infrastructure provisioning progress **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns the stage-by-stage provisioning progress of a BYOC infrastructure, more granular than the `state` field: overall status plus a tree of provisioning stages down to individual cloud resources. */
381
+ export declare const getByocInfrastructureProgress: API.OperationMethod<GetByocInfrastructureProgressRequest, ByocInfrastructureProgress, GetByocInfrastructureProgressError, ClickHouseCloudOpContext>;
382
+ export type GetByocInfrastructureTagsError = ClickHouseCloudOpError;
383
+ /** Get BYOC infrastructure tags **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the additional tags currently applied to the cloud resources of the BYOC infrastructure. Tags are replaced as a whole through the infrastructure update endpoint. */
384
+ export declare const getByocInfrastructureTags: API.OperationMethod<GetByocInfrastructureTagsRequest, ByocInfrastructureTagsResponse, GetByocInfrastructureTagsError, ClickHouseCloudOpContext>;
385
+ export type GetOrganizationQuotaError = ClickHouseCloudOpError;
386
+ /** Get organization quota details **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns a single organization quota identified by its quota code. Responds with a not found error when the quota code is unknown or the quota does not apply to the organization. */
387
+ export declare const getOrganizationQuota: API.OperationMethod<GetOrganizationQuotaRequest, OrganizationQuota, GetOrganizationQuotaError, ClickHouseCloudOpContext>;
388
+ export type ListOrganizationPublicPreviewsError = ClickHouseCloudOpError;
389
+ /** Get list of organization preview features **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns the preview features offered to the organization, with whether each one is on and whether the caller can switch it. */
390
+ export declare const listOrganizationPublicPreviews: API.OperationMethod<ListOrganizationPublicPreviewsRequest, ListOrganizationPublicPreviewsResponse, ListOrganizationPublicPreviewsError, ClickHouseCloudOpContext>;
391
+ export type ListOrganizationQuotasError = ClickHouseCloudOpError;
392
+ /** Get organization quotas **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Returns the resource quotas enforced for the organization together with their current usage where available. Quotas that do not apply to the organization are omitted. Quota values reflect the limits currently enforced, so they can be polled to detect changes, for example after a billing status change. The response contains one entry per quota code; quotas enforced per resource may additionally appear under resource-scoped endpoints in the future. */
393
+ export declare const listOrganizationQuotas: API.OperationMethod<ListOrganizationQuotasRequest, ListOrganizationQuotasResponse, ListOrganizationQuotasError, ClickHouseCloudOpContext>;
394
+ export type UpdateByocInfrastructureCustomerAuthorizedAccessError = ClickHouseCloudOpError;
395
+ /** Update BYOC infrastructure customer-authorized access **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Replaces the customer setting that controls when ClickHouse personnel may access the BYOC infrastructure. Allow access with `mode: always`, deny it with `mode: never`, or allow it for a single window with `mode: window`, `startTimestamp` and `durationSeconds`. Returns the stored setting together with the data plane verdict. */
396
+ export declare const updateByocInfrastructureCustomerAuthorizedAccess: API.OperationMethod<UpdateByocInfrastructureCustomerAuthorizedAccessRequest, ByocCustomerAuthorizedAccess, UpdateByocInfrastructureCustomerAuthorizedAccessError, ClickHouseCloudOpContext>;
397
+ export type UpdateOrganizationPublicPreviewError = ClickHouseCloudOpError;
398
+ /** Update organization preview feature **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Switches a preview feature on or off for the organization. Use an ID returned by the list endpoint; an unknown ID returns 404. Only previews offered to the organization can be switched on, otherwise the request returns 403; switching off is always allowed. */
399
+ export declare const updateOrganizationPublicPreview: API.OperationMethod<UpdateOrganizationPublicPreviewRequest, PublicPreview, UpdateOrganizationPublicPreviewError, ClickHouseCloudOpContext>;
400
+ export type ValidateByocInfrastructureError = FeatureUnavailable | ClickHouseCloudOpError;
401
+ /** Validate BYOC infrastructure prerequisites **Disclaimer:** This beta endpoint is evolving; the API contract may change. <br /><br /> Preflight-validates that a cloud account is ready for BYOC infrastructure creation: simulates the cloud permissions ClickHouse needs (and, for BYO-VPC, checks the provided network resources) without creating anything. Takes the same parameters as infrastructure creation, so a payload that passes validation will not be rejected by create for the same inputs. */
402
+ export declare const validateByocInfrastructure: API.OperationMethod<ValidateByocInfrastructureRequest, ByocInfrastructureValidation, ValidateByocInfrastructureError, ClickHouseCloudOpContext>;
403
+ //# sourceMappingURL=organization.d.ts.map