@distilled.cloud/planetscale 0.19.1 → 0.20.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 (169) hide show
  1. package/lib/credentials.d.ts +1 -1
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +2 -2
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/operations/addOrganizationTeamMember.d.ts +53 -53
  6. package/lib/operations/cancelBouncerResizeRequest.d.ts +3 -3
  7. package/lib/operations/cancelBranchChangeRequest.d.ts +2 -2
  8. package/lib/operations/cancelDeployRequest.d.ts +92 -92
  9. package/lib/operations/checkDeployRequestStorage.d.ts +5 -5
  10. package/lib/operations/closeDeployRequest.d.ts +92 -92
  11. package/lib/operations/completeErroredDeploy.d.ts +92 -92
  12. package/lib/operations/completeGatedDeployRequest.d.ts +92 -92
  13. package/lib/operations/completeRevert.d.ts +92 -92
  14. package/lib/operations/createBackup.d.ts +42 -42
  15. package/lib/operations/createBackupPolicy.d.ts +16 -16
  16. package/lib/operations/createBouncer.d.ts +38 -38
  17. package/lib/operations/createBranch.d.ts +43 -43
  18. package/lib/operations/createDatabase.d.ts +47 -47
  19. package/lib/operations/createDatabasePostgresCidr.d.ts +12 -12
  20. package/lib/operations/createDeployRequest.d.ts +95 -95
  21. package/lib/operations/createKeyspace.d.ts +21 -21
  22. package/lib/operations/createOauthToken.d.ts +48 -48
  23. package/lib/operations/createOrganizationTeam.d.ts +22 -22
  24. package/lib/operations/createPassword.d.ts +34 -34
  25. package/lib/operations/createQueryPatternsReport.d.ts +10 -10
  26. package/lib/operations/createRole.d.ts +28 -28
  27. package/lib/operations/createServiceToken.d.ts +46 -46
  28. package/lib/operations/createTrafficBudget.d.ts +29 -29
  29. package/lib/operations/createTrafficRule.d.ts +15 -15
  30. package/lib/operations/createWebhook.d.ts +8 -8
  31. package/lib/operations/createWorkflow.d.ts +75 -75
  32. package/lib/operations/deleteBackup.d.ts +2 -2
  33. package/lib/operations/deleteBackupPolicy.d.ts +1 -1
  34. package/lib/operations/deleteBouncer.d.ts +3 -3
  35. package/lib/operations/deleteBranch.d.ts +2 -2
  36. package/lib/operations/deleteDatabase.d.ts +1 -1
  37. package/lib/operations/deleteDatabasePostgresCidr.d.ts +1 -1
  38. package/lib/operations/deleteKeyspace.d.ts +2 -2
  39. package/lib/operations/deleteOauthToken.d.ts +1 -1
  40. package/lib/operations/deletePassword.d.ts +2 -2
  41. package/lib/operations/deleteQueryPatternsReport.d.ts +2 -2
  42. package/lib/operations/deleteRole.d.ts +2 -2
  43. package/lib/operations/deleteServiceToken.d.ts +1 -1
  44. package/lib/operations/deleteTrafficBudget.d.ts +2 -2
  45. package/lib/operations/deleteTrafficRule.d.ts +2 -2
  46. package/lib/operations/deleteWebhook.d.ts +1 -1
  47. package/lib/operations/demoteBranch.d.ts +40 -40
  48. package/lib/operations/disableSafeMigrations.d.ts +40 -40
  49. package/lib/operations/dismissSchemaRecommendation.d.ts +16 -16
  50. package/lib/operations/enableSafeMigrations.d.ts +40 -40
  51. package/lib/operations/getBackup.d.ts +41 -41
  52. package/lib/operations/getBackupPolicy.d.ts +11 -11
  53. package/lib/operations/getBouncer.d.ts +37 -37
  54. package/lib/operations/getBranch.d.ts +40 -40
  55. package/lib/operations/getBranchChangeRequest.d.ts +26 -26
  56. package/lib/operations/getBranchSchema.d.ts +3 -3
  57. package/lib/operations/getCurrentUser.d.ts +10 -10
  58. package/lib/operations/getDatabase.d.ts +43 -43
  59. package/lib/operations/getDatabasePostgresCidr.d.ts +10 -10
  60. package/lib/operations/getDatabaseThrottler.d.ts +4 -4
  61. package/lib/operations/getDefaultRole.d.ts +26 -26
  62. package/lib/operations/getDeployQueue.d.ts +74 -74
  63. package/lib/operations/getDeployRequest.d.ts +92 -92
  64. package/lib/operations/getDeployRequestThrottler.d.ts +4 -4
  65. package/lib/operations/getDeployment.d.ts +70 -70
  66. package/lib/operations/getInvoice.d.ts +5 -5
  67. package/lib/operations/getInvoiceLineItems.d.ts +11 -11
  68. package/lib/operations/getKeyspace.d.ts +20 -20
  69. package/lib/operations/getKeyspaceRolloutStatus.d.ts +5 -5
  70. package/lib/operations/getKeyspaceVschema.d.ts +2 -2
  71. package/lib/operations/getMaintenanceSchedule.d.ts +14 -14
  72. package/lib/operations/getOauthApplication.d.ts +12 -12
  73. package/lib/operations/getOauthToken.d.ts +46 -46
  74. package/lib/operations/getOrganization.d.ts +12 -12
  75. package/lib/operations/getOrganizationMembership.d.ts +14 -14
  76. package/lib/operations/getOrganizationTeam.d.ts +20 -20
  77. package/lib/operations/getOrganizationTeamMember.d.ts +54 -54
  78. package/lib/operations/getPassword.d.ts +31 -31
  79. package/lib/operations/getQueryPatternsReport.d.ts +2 -2
  80. package/lib/operations/getQueryPatternsReportStatus.d.ts +10 -10
  81. package/lib/operations/getRole.d.ts +26 -26
  82. package/lib/operations/getSchemaRecommendation.d.ts +16 -16
  83. package/lib/operations/getServiceToken.d.ts +46 -46
  84. package/lib/operations/getTrafficBudget.d.ts +24 -24
  85. package/lib/operations/getWebhook.d.ts +7 -7
  86. package/lib/operations/getWorkflow.d.ts +71 -71
  87. package/lib/operations/lintBranchSchema.d.ts +18 -18
  88. package/lib/operations/listAuditLogs.d.ts +16 -16
  89. package/lib/operations/listBackupPolicies.d.ts +15 -15
  90. package/lib/operations/listBackups.d.ts +51 -51
  91. package/lib/operations/listBouncerResizeRequests.d.ts +31 -31
  92. package/lib/operations/listBouncers.d.ts +40 -40
  93. package/lib/operations/listBranchBouncerResizeRequests.d.ts +30 -30
  94. package/lib/operations/listBranchChangeRequests.d.ts +30 -30
  95. package/lib/operations/listBranches.d.ts +46 -46
  96. package/lib/operations/listClusterSizeSkus.d.ts +12 -12
  97. package/lib/operations/listDatabasePostgresCidrs.d.ts +14 -14
  98. package/lib/operations/listDatabaseRegions.d.ts +9 -9
  99. package/lib/operations/listDatabases.d.ts +47 -47
  100. package/lib/operations/listDeployOperations.d.ts +16 -16
  101. package/lib/operations/listDeployRequestReviews.d.ts +12 -12
  102. package/lib/operations/listDeployRequests.d.ts +100 -100
  103. package/lib/operations/listExtensions.d.ts +24 -24
  104. package/lib/operations/listGeneratedQueryPatternsReports.d.ts +14 -14
  105. package/lib/operations/listInvoices.d.ts +8 -8
  106. package/lib/operations/listKeyspaces.d.ts +24 -24
  107. package/lib/operations/listMaintenanceSchedules.d.ts +18 -18
  108. package/lib/operations/listMaintenanceWindows.d.ts +8 -8
  109. package/lib/operations/listOauthApplications.d.ts +15 -15
  110. package/lib/operations/listOauthTokens.d.ts +50 -50
  111. package/lib/operations/listOrganizationMembers.d.ts +18 -18
  112. package/lib/operations/listOrganizationTeamMembers.d.ts +58 -58
  113. package/lib/operations/listOrganizationTeams.d.ts +25 -25
  114. package/lib/operations/listOrganizations.d.ts +16 -16
  115. package/lib/operations/listParameters.d.ts +18 -18
  116. package/lib/operations/listPasswords.d.ts +36 -36
  117. package/lib/operations/listPublicRegions.d.ts +7 -7
  118. package/lib/operations/listReadOnlyRegions.d.ts +17 -17
  119. package/lib/operations/listRegionsForOrganization.d.ts +8 -8
  120. package/lib/operations/listRoles.d.ts +30 -30
  121. package/lib/operations/listSchemaRecommendations.d.ts +21 -21
  122. package/lib/operations/listServiceTokens.d.ts +49 -49
  123. package/lib/operations/listTrafficBudgets.d.ts +30 -30
  124. package/lib/operations/listWebhooks.d.ts +11 -11
  125. package/lib/operations/listWorkflows.d.ts +76 -76
  126. package/lib/operations/promoteBranch.d.ts +40 -40
  127. package/lib/operations/queueDeployRequest.d.ts +93 -93
  128. package/lib/operations/reassignRoleObjects.d.ts +2 -2
  129. package/lib/operations/removeOrganizationMember.d.ts +2 -2
  130. package/lib/operations/removeOrganizationTeamMember.d.ts +2 -2
  131. package/lib/operations/renewPassword.d.ts +31 -31
  132. package/lib/operations/renewRole.d.ts +26 -26
  133. package/lib/operations/resetDefaultRole.d.ts +26 -26
  134. package/lib/operations/resetRole.d.ts +26 -26
  135. package/lib/operations/reviewDeployRequest.d.ts +9 -9
  136. package/lib/operations/skipRevertPeriod.d.ts +92 -92
  137. package/lib/operations/testWebhook.d.ts +1 -1
  138. package/lib/operations/updateAutoApply.d.ts +93 -93
  139. package/lib/operations/updateAutoDeleteBranch.d.ts +93 -93
  140. package/lib/operations/updateBackup.d.ts +41 -41
  141. package/lib/operations/updateBackupPolicy.d.ts +17 -17
  142. package/lib/operations/updateBouncerResizeRequest.d.ts +28 -28
  143. package/lib/operations/updateBranch.d.ts +40 -40
  144. package/lib/operations/updateBranchChangeRequest.d.ts +27 -27
  145. package/lib/operations/updateBranchClusterConfig.d.ts +2 -2
  146. package/lib/operations/updateDatabasePostgresCidr.d.ts +12 -12
  147. package/lib/operations/updateDatabaseSettings.d.ts +50 -50
  148. package/lib/operations/updateDatabaseThrottler.d.ts +5 -5
  149. package/lib/operations/updateDeployRequestThrottler.d.ts +5 -5
  150. package/lib/operations/updateKeyspace.d.ts +20 -20
  151. package/lib/operations/updateKeyspaceVschema.d.ts +2 -2
  152. package/lib/operations/updateOrganization.d.ts +13 -13
  153. package/lib/operations/updateOrganizationMembership.d.ts +14 -14
  154. package/lib/operations/updateOrganizationTeam.d.ts +22 -22
  155. package/lib/operations/updatePassword.d.ts +32 -32
  156. package/lib/operations/updateRole.d.ts +26 -26
  157. package/lib/operations/updateTrafficBudget.d.ts +29 -29
  158. package/lib/operations/updateWebhook.d.ts +9 -9
  159. package/lib/operations/verifyWorkflow.d.ts +71 -71
  160. package/lib/operations/workflowCancel.d.ts +71 -71
  161. package/lib/operations/workflowComplete.d.ts +71 -71
  162. package/lib/operations/workflowCutover.d.ts +71 -71
  163. package/lib/operations/workflowRetry.d.ts +71 -71
  164. package/lib/operations/workflowReverseCutover.d.ts +71 -71
  165. package/lib/operations/workflowReverseTraffic.d.ts +71 -71
  166. package/lib/operations/workflowSwitchPrimaries.d.ts +71 -71
  167. package/lib/operations/workflowSwitchReplicas.d.ts +71 -71
  168. package/package.json +3 -3
  169. package/src/credentials.ts +2 -2
@@ -51,41 +51,41 @@ export type ListSchemaRecommendationsOutput = typeof ListSchemaRecommendationsOu
51
51
  * @param per_page - If provided, specifies the number of returned results
52
52
  */
53
53
  export declare const listSchemaRecommendations: import("@distilled.cloud/core/client").PaginatedOperationMethod<{
54
- readonly database: string;
55
54
  readonly organization: string;
55
+ readonly database: string;
56
+ readonly state?: "closed" | "open" | undefined;
56
57
  readonly page?: number | undefined;
57
58
  readonly per_page?: number | undefined;
58
- readonly state?: "closed" | "open" | undefined;
59
59
  }, {
60
60
  readonly current_page: number;
61
+ readonly next_page: number | null;
62
+ readonly next_page_url: string | null;
63
+ readonly prev_page: number | null;
64
+ readonly prev_page_url: string | null;
61
65
  readonly data: readonly {
66
+ readonly id: string;
67
+ readonly html_url: string;
68
+ readonly title: string;
69
+ readonly table_name: string;
70
+ readonly keyspace: string;
71
+ readonly ddl_statement: string;
72
+ readonly number: number;
73
+ readonly state: "applied" | "dismissed" | "open" | "stale";
74
+ readonly recommendation_type: "bloated_index" | "bloated_table" | "duplicate_index" | "encoding_upgrade" | "new_index" | "sequence_overflow" | "sequence_overflow_foreign_key" | "unused_index" | "unused_table";
75
+ readonly created_at: string;
76
+ readonly updated_at: string;
62
77
  readonly applied_at: string;
78
+ readonly dismissed_at: string;
63
79
  readonly closed_by_deploy_request: {
64
- readonly branch_id: string;
65
80
  readonly id: string;
81
+ readonly branch_id: string;
66
82
  readonly number: number;
67
83
  };
68
- readonly created_at: string;
69
- readonly ddl_statement: string;
70
- readonly dismissed_at: string;
71
84
  readonly dismissed_by: {
72
- readonly avatar_url: string;
73
- readonly display_name: string;
74
85
  readonly id: string;
86
+ readonly display_name: string;
87
+ readonly avatar_url: string;
75
88
  };
76
- readonly html_url: string;
77
- readonly id: string;
78
- readonly keyspace: string;
79
- readonly number: number;
80
- readonly recommendation_type: "bloated_index" | "bloated_table" | "duplicate_index" | "encoding_upgrade" | "new_index" | "sequence_overflow" | "sequence_overflow_foreign_key" | "unused_index" | "unused_table";
81
- readonly state: "applied" | "dismissed" | "open" | "stale";
82
- readonly table_name: string;
83
- readonly title: string;
84
- readonly updated_at: string;
85
89
  }[];
86
- readonly next_page: number | null;
87
- readonly next_page_url: string | null;
88
- readonly prev_page: number | null;
89
- readonly prev_page_url: string | null;
90
90
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
91
91
  //# sourceMappingURL=listSchemaRecommendations.d.ts.map
@@ -107,87 +107,87 @@ export declare const listServiceTokens: import("@distilled.cloud/core/client").P
107
107
  readonly per_page?: number | undefined;
108
108
  }, {
109
109
  readonly current_page: number;
110
+ readonly next_page: number | null;
111
+ readonly next_page_url: string | null;
112
+ readonly prev_page: number | null;
113
+ readonly prev_page_url: string | null;
110
114
  readonly data: readonly {
111
- readonly actor_display_name: string;
112
- readonly actor_id: string;
113
- readonly actor_type: string;
115
+ readonly id: string;
116
+ readonly name?: string | null | undefined;
117
+ readonly display_name: string;
118
+ readonly token?: string | null | undefined;
119
+ readonly plain_text_refresh_token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
114
120
  readonly avatar_url: string;
115
121
  readonly created_at: string;
116
- readonly display_name: string;
122
+ readonly updated_at: string;
117
123
  readonly expires_at?: string | null | undefined;
118
- readonly id: string;
119
124
  readonly last_used_at?: string | null | undefined;
120
- readonly name?: string | null | undefined;
125
+ readonly actor_id: string;
126
+ readonly actor_display_name: string;
127
+ readonly actor_type: string;
128
+ readonly service_token_accesses?: readonly {
129
+ readonly id: string;
130
+ readonly access: string;
131
+ readonly description: string;
132
+ readonly resource_name: string;
133
+ readonly resource_id: string;
134
+ readonly resource_type: string;
135
+ readonly resource: {
136
+ readonly id: string;
137
+ readonly name: string;
138
+ readonly created_at: string;
139
+ readonly updated_at: string;
140
+ readonly deleted_at: string;
141
+ };
142
+ }[] | undefined;
121
143
  readonly oauth_accesses_by_resource?: {
122
- readonly branch: {
123
- readonly accesses: readonly {
124
- readonly description: string;
144
+ readonly database: {
145
+ readonly databases: readonly {
125
146
  readonly name: string;
126
- }[];
127
- readonly branches: readonly {
128
- readonly database: string;
129
147
  readonly id: string;
130
- readonly name: string;
131
148
  readonly organization: string;
132
149
  readonly url: string;
133
150
  }[];
134
- };
135
- readonly database: {
136
151
  readonly accesses: readonly {
137
- readonly description: string;
138
152
  readonly name: string;
153
+ readonly description: string;
139
154
  }[];
140
- readonly databases: readonly {
141
- readonly id: string;
155
+ };
156
+ readonly organization: {
157
+ readonly organizations: readonly {
142
158
  readonly name: string;
143
- readonly organization: string;
159
+ readonly id: string;
144
160
  readonly url: string;
145
161
  }[];
146
- };
147
- readonly organization: {
148
162
  readonly accesses: readonly {
149
- readonly description: string;
150
163
  readonly name: string;
164
+ readonly description: string;
151
165
  }[];
152
- readonly organizations: readonly {
153
- readonly id: string;
166
+ };
167
+ readonly branch: {
168
+ readonly branches: readonly {
154
169
  readonly name: string;
170
+ readonly id: string;
171
+ readonly database: string;
172
+ readonly organization: string;
155
173
  readonly url: string;
156
174
  }[];
157
- };
158
- readonly user: {
159
175
  readonly accesses: readonly {
160
- readonly description: string;
161
176
  readonly name: string;
177
+ readonly description: string;
162
178
  }[];
179
+ };
180
+ readonly user: {
163
181
  readonly users: readonly {
182
+ readonly name: string;
164
183
  readonly id: string;
184
+ }[];
185
+ readonly accesses: readonly {
165
186
  readonly name: string;
187
+ readonly description: string;
166
188
  }[];
167
189
  };
168
190
  } | undefined;
169
- readonly plain_text_refresh_token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
170
- readonly service_token_accesses?: readonly {
171
- readonly access: string;
172
- readonly description: string;
173
- readonly id: string;
174
- readonly resource: {
175
- readonly created_at: string;
176
- readonly deleted_at: string;
177
- readonly id: string;
178
- readonly name: string;
179
- readonly updated_at: string;
180
- };
181
- readonly resource_id: string;
182
- readonly resource_name: string;
183
- readonly resource_type: string;
184
- }[] | undefined;
185
- readonly token?: string | null | undefined;
186
- readonly updated_at: string;
187
191
  }[];
188
- readonly next_page: number | null;
189
- readonly next_page_url: string | null;
190
- readonly prev_page: number | null;
191
- readonly prev_page_url: string | null;
192
192
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
193
193
  //# sourceMappingURL=listServiceTokens.d.ts.map
@@ -69,56 +69,56 @@ export type ListTrafficBudgetsOutput = typeof ListTrafficBudgetsOutput.Type;
69
69
  * @param fingerprint - Filter budgets by query fingerprint
70
70
  */
71
71
  export declare const listTrafficBudgets: import("@distilled.cloud/core/client").PaginatedOperationMethod<{
72
- readonly branch: string;
73
- readonly created_at?: string | undefined;
74
- readonly database: string;
75
- readonly fingerprint?: string | undefined;
76
72
  readonly organization: string;
73
+ readonly database: string;
74
+ readonly branch: string;
77
75
  readonly page?: number | undefined;
78
76
  readonly per_page?: number | undefined;
79
77
  readonly period?: string | undefined;
78
+ readonly created_at?: string | undefined;
79
+ readonly fingerprint?: string | undefined;
80
80
  }, {
81
81
  readonly current_page: number;
82
+ readonly next_page: number;
83
+ readonly next_page_url: string;
84
+ readonly prev_page: number;
85
+ readonly prev_page_url: string;
82
86
  readonly data: readonly {
83
- readonly actor: {
84
- readonly avatar_url: string;
85
- readonly display_name: string;
86
- readonly id: string;
87
- };
88
- readonly burst?: number | undefined;
89
- readonly capacity?: number | undefined;
90
- readonly concurrency?: number | undefined;
91
- readonly created_at: string;
92
87
  readonly id: string;
93
- readonly mode: "enforce" | "off" | "warn";
94
88
  readonly name: string;
89
+ readonly mode: "enforce" | "off" | "warn";
90
+ readonly capacity?: number | undefined;
95
91
  readonly rate?: number | undefined;
92
+ readonly burst?: number | undefined;
93
+ readonly concurrency?: number | undefined;
94
+ readonly warning_threshold?: number | undefined;
95
+ readonly actor: {
96
+ readonly id: string;
97
+ readonly display_name: string;
98
+ readonly avatar_url: string;
99
+ };
96
100
  readonly rules: readonly {
97
- readonly actor: {
98
- readonly avatar_url: string;
99
- readonly display_name: string;
100
- readonly id: string;
101
- };
102
- readonly created_at: string;
103
- readonly fingerprint?: string | undefined;
104
101
  readonly id: string;
105
- readonly keyspace?: string | undefined;
106
102
  readonly kind: "match";
107
- readonly syntax_highlighted_sql: string;
108
103
  readonly tags: readonly {
109
- readonly key: string;
110
104
  readonly key_id: string;
111
- readonly source: "sql" | "system";
105
+ readonly key: string;
112
106
  readonly value: string;
107
+ readonly source: "sql" | "system";
113
108
  }[];
109
+ readonly fingerprint?: string | undefined;
110
+ readonly keyspace?: string | undefined;
111
+ readonly actor: {
112
+ readonly id: string;
113
+ readonly display_name: string;
114
+ readonly avatar_url: string;
115
+ };
116
+ readonly syntax_highlighted_sql: string;
117
+ readonly created_at: string;
114
118
  readonly updated_at: string;
115
119
  }[];
120
+ readonly created_at: string;
116
121
  readonly updated_at: string;
117
- readonly warning_threshold?: number | undefined;
118
122
  }[];
119
- readonly next_page: number;
120
- readonly next_page_url: string;
121
- readonly prev_page: number;
122
- readonly prev_page_url: string;
123
123
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
124
124
  //# sourceMappingURL=listTrafficBudgets.d.ts.map
@@ -38,27 +38,27 @@ export type ListWebhooksOutput = typeof ListWebhooksOutput.Type;
38
38
  * @param per_page - If provided, specifies the number of returned results
39
39
  */
40
40
  export declare const listWebhooks: import("@distilled.cloud/core/client").PaginatedOperationMethod<{
41
- readonly database: string;
42
41
  readonly organization: string;
42
+ readonly database: string;
43
43
  readonly page?: number | undefined;
44
44
  readonly per_page?: number | undefined;
45
45
  }, {
46
46
  readonly current_page: number;
47
+ readonly next_page: number | null;
48
+ readonly next_page_url: string | null;
49
+ readonly prev_page: number | null;
50
+ readonly prev_page_url: string | null;
47
51
  readonly data: readonly {
48
- readonly created_at: string;
49
- readonly enabled: boolean;
50
- readonly events: readonly ("branch.anomaly" | "branch.out_of_memory" | "branch.primary_promoted" | "branch.ready" | "branch.schema_recommendation" | "branch.sleeping" | "branch.start_maintenance" | "cluster.storage" | "database.access_request" | "deploy_request.closed" | "deploy_request.errored" | "deploy_request.in_progress" | "deploy_request.opened" | "deploy_request.pending_cutover" | "deploy_request.queued" | "deploy_request.reverted" | "deploy_request.schema_applied" | "keyspace.storage" | "webhook.test")[];
51
52
  readonly id: string;
52
- readonly last_sent_at: string | null;
53
+ readonly url: string;
54
+ readonly secret: string | import("effect/Redacted").Redacted<string>;
55
+ readonly enabled: boolean;
53
56
  readonly last_sent_result: string | null;
54
57
  readonly last_sent_success: boolean | null;
55
- readonly secret: string | import("effect/Redacted").Redacted<string>;
58
+ readonly last_sent_at: string | null;
59
+ readonly created_at: string;
56
60
  readonly updated_at: string;
57
- readonly url: string;
61
+ readonly events: readonly ("branch.anomaly" | "branch.out_of_memory" | "branch.primary_promoted" | "branch.ready" | "branch.schema_recommendation" | "branch.sleeping" | "branch.start_maintenance" | "cluster.storage" | "database.access_request" | "deploy_request.closed" | "deploy_request.errored" | "deploy_request.in_progress" | "deploy_request.opened" | "deploy_request.pending_cutover" | "deploy_request.queued" | "deploy_request.reverted" | "deploy_request.schema_applied" | "keyspace.storage" | "webhook.test")[];
58
62
  }[];
59
- readonly next_page: number | null;
60
- readonly next_page_url: string | null;
61
- readonly prev_page: number | null;
62
- readonly prev_page_url: string | null;
63
63
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
64
64
  //# sourceMappingURL=listWebhooks.d.ts.map
@@ -133,123 +133,123 @@ export type ListWorkflowsOutput = typeof ListWorkflowsOutput.Type;
133
133
  * @param per_page - If provided, specifies the number of returned results
134
134
  */
135
135
  export declare const listWorkflows: import("@distilled.cloud/core/client").PaginatedOperationMethod<{
136
- readonly between?: string | undefined;
137
- readonly database: string;
138
136
  readonly organization: string;
137
+ readonly database: string;
138
+ readonly between?: string | undefined;
139
139
  readonly page?: number | undefined;
140
140
  readonly per_page?: number | undefined;
141
141
  }, {
142
142
  readonly current_page: number;
143
+ readonly next_page: number | null;
144
+ readonly next_page_url: string | null;
145
+ readonly prev_page: number | null;
146
+ readonly prev_page_url: string | null;
143
147
  readonly data: readonly {
148
+ readonly id: string;
149
+ readonly name: string;
150
+ readonly number: number;
151
+ readonly state: "cancelled" | "cancelling" | "completed" | "copying" | "cutover" | "cutting_over" | "error" | "pending" | "reversed_cutover" | "reversing_traffic" | "reversing_traffic_for_cancel" | "running" | "stopped" | "switched_primaries" | "switched_replicas" | "switching_primaries" | "switching_replicas" | "verified_data" | "verifying_data";
152
+ readonly created_at: string;
153
+ readonly updated_at: string;
154
+ readonly started_at: string;
155
+ readonly completed_at: string;
156
+ readonly cancelled_at: string;
157
+ readonly reversed_at: string;
158
+ readonly retried_at: string;
159
+ readonly data_copy_completed_at: string;
160
+ readonly cutover_at: string;
161
+ readonly replicas_switched: boolean;
162
+ readonly primaries_switched: boolean;
163
+ readonly switch_replicas_at: string;
164
+ readonly switch_primaries_at: string;
165
+ readonly verify_data_at: string;
166
+ readonly workflow_type: "move_tables";
167
+ readonly workflow_subtype: string;
168
+ readonly defer_secondary_keys: boolean;
169
+ readonly on_ddl: "EXEC" | "EXEC_IGNORE" | "IGNORE" | "STOP";
170
+ readonly workflow_errors: string;
171
+ readonly may_retry: boolean;
172
+ readonly may_restart: boolean;
173
+ readonly verified_data_stale: boolean;
174
+ readonly sequence_tables_applied: boolean;
144
175
  readonly actor: {
145
- readonly avatar_url: string;
146
- readonly display_name: string;
147
176
  readonly id: string;
177
+ readonly display_name: string;
178
+ readonly avatar_url: string;
148
179
  };
149
- readonly branch: {
150
- readonly created_at: string;
151
- readonly deleted_at: string;
180
+ readonly verify_data_by: {
152
181
  readonly id: string;
153
- readonly name: string;
154
- readonly updated_at: string;
155
- };
156
- readonly cancelled_at: string;
157
- readonly cancelled_by: {
158
- readonly avatar_url: string;
159
182
  readonly display_name: string;
160
- readonly id: string;
161
- };
162
- readonly completed_at: string;
163
- readonly completed_by: {
164
183
  readonly avatar_url: string;
165
- readonly display_name: string;
184
+ };
185
+ readonly reversed_by: {
166
186
  readonly id: string;
187
+ readonly display_name: string;
188
+ readonly avatar_url: string;
167
189
  };
168
- readonly created_at: string;
169
- readonly cutover_at: string;
170
- readonly cutover_by: {
190
+ readonly switch_replicas_by: {
191
+ readonly id: string;
192
+ readonly display_name: string;
171
193
  readonly avatar_url: string;
194
+ };
195
+ readonly switch_primaries_by: {
196
+ readonly id: string;
172
197
  readonly display_name: string;
198
+ readonly avatar_url: string;
199
+ };
200
+ readonly cancelled_by: {
173
201
  readonly id: string;
202
+ readonly display_name: string;
203
+ readonly avatar_url: string;
174
204
  };
175
- readonly data_copy_completed_at: string;
176
- readonly defer_secondary_keys: boolean;
177
- readonly global_keyspace: {
178
- readonly created_at: string;
179
- readonly deleted_at: string;
205
+ readonly completed_by: {
180
206
  readonly id: string;
181
- readonly name: string;
182
- readonly updated_at: string;
207
+ readonly display_name: string;
208
+ readonly avatar_url: string;
183
209
  };
184
- readonly id: string;
185
- readonly may_restart: boolean;
186
- readonly may_retry: boolean;
187
- readonly name: string;
188
- readonly number: number;
189
- readonly on_ddl: "EXEC" | "EXEC_IGNORE" | "IGNORE" | "STOP";
190
- readonly primaries_switched: boolean;
191
- readonly replicas_switched: boolean;
192
- readonly retried_at: string;
193
210
  readonly retried_by: {
194
- readonly avatar_url: string;
195
- readonly display_name: string;
196
211
  readonly id: string;
197
- };
198
- readonly reversed_at: string;
199
- readonly reversed_by: {
200
- readonly avatar_url: string;
201
212
  readonly display_name: string;
213
+ readonly avatar_url: string;
214
+ };
215
+ readonly cutover_by: {
202
216
  readonly id: string;
217
+ readonly display_name: string;
218
+ readonly avatar_url: string;
203
219
  };
204
220
  readonly reversed_cutover_by: {
205
- readonly avatar_url: string;
206
- readonly display_name: string;
207
221
  readonly id: string;
222
+ readonly display_name: string;
223
+ readonly avatar_url: string;
208
224
  };
209
- readonly sequence_tables_applied: boolean;
210
- readonly source_keyspace: {
211
- readonly created_at: string;
212
- readonly deleted_at: string;
225
+ readonly branch: {
213
226
  readonly id: string;
214
227
  readonly name: string;
228
+ readonly created_at: string;
215
229
  readonly updated_at: string;
230
+ readonly deleted_at: string;
216
231
  };
217
- readonly started_at: string;
218
- readonly state: "cancelled" | "cancelling" | "completed" | "copying" | "cutover" | "cutting_over" | "error" | "pending" | "reversed_cutover" | "reversing_traffic" | "reversing_traffic_for_cancel" | "running" | "stopped" | "switched_primaries" | "switched_replicas" | "switching_primaries" | "switching_replicas" | "verified_data" | "verifying_data";
219
- readonly switch_primaries_at: string;
220
- readonly switch_primaries_by: {
221
- readonly avatar_url: string;
222
- readonly display_name: string;
223
- readonly id: string;
224
- };
225
- readonly switch_replicas_at: string;
226
- readonly switch_replicas_by: {
227
- readonly avatar_url: string;
228
- readonly display_name: string;
232
+ readonly source_keyspace: {
229
233
  readonly id: string;
230
- };
231
- readonly target_keyspace: {
234
+ readonly name: string;
232
235
  readonly created_at: string;
236
+ readonly updated_at: string;
233
237
  readonly deleted_at: string;
238
+ };
239
+ readonly target_keyspace: {
234
240
  readonly id: string;
235
241
  readonly name: string;
242
+ readonly created_at: string;
236
243
  readonly updated_at: string;
244
+ readonly deleted_at: string;
237
245
  };
238
- readonly updated_at: string;
239
- readonly verified_data_stale: boolean;
240
- readonly verify_data_at: string;
241
- readonly verify_data_by: {
242
- readonly avatar_url: string;
243
- readonly display_name: string;
246
+ readonly global_keyspace: {
244
247
  readonly id: string;
248
+ readonly name: string;
249
+ readonly created_at: string;
250
+ readonly updated_at: string;
251
+ readonly deleted_at: string;
245
252
  };
246
- readonly workflow_errors: string;
247
- readonly workflow_subtype: string;
248
- readonly workflow_type: "move_tables";
249
253
  }[];
250
- readonly next_page: number | null;
251
- readonly next_page_url: string | null;
252
- readonly prev_page: number | null;
253
- readonly prev_page_url: string | null;
254
254
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
255
255
  //# sourceMappingURL=listWorkflows.d.ts.map
@@ -72,64 +72,64 @@ export type PromoteBranchOutput = typeof PromoteBranchOutput.Type;
72
72
  * @param branch - The name of the branch
73
73
  */
74
74
  export declare const promoteBranch: import("@distilled.cloud/core/client").OperationMethod<{
75
- readonly branch: string;
76
- readonly database: string;
77
75
  readonly organization: string;
76
+ readonly database: string;
77
+ readonly branch: string;
78
78
  }, {
79
- readonly actor: {
80
- readonly avatar_url: string;
81
- readonly display_name: string;
82
- readonly id: string;
83
- };
84
- readonly cluster_iops: number | null;
85
- readonly cluster_name: string;
79
+ readonly id: string;
80
+ readonly name: string;
86
81
  readonly created_at: string;
82
+ readonly updated_at: string;
87
83
  readonly deleted_at: string | null;
88
- readonly direct_vtgate?: boolean | undefined;
89
- readonly has_read_only_replicas: boolean;
90
- readonly has_replicas: boolean;
91
- readonly html_url: string;
92
- readonly id: string;
84
+ readonly restore_checklist_completed_at: string | null;
85
+ readonly schema_last_updated_at: string;
93
86
  readonly kind: "mysql" | "postgresql";
94
- readonly metal: boolean;
95
87
  readonly mysql_address?: string | undefined;
96
88
  readonly mysql_edge_address?: string | undefined;
97
- readonly name: string;
98
- readonly parent_branch: string | null;
99
- readonly private_edge_connectivity: boolean;
100
- readonly production: boolean;
89
+ readonly state: "awakening" | "pending" | "ready" | "sleep_in_progress" | "sleeping";
90
+ readonly direct_vtgate?: boolean | undefined;
91
+ readonly vtgate_size?: string | undefined;
92
+ readonly vtgate_count?: number | undefined;
93
+ readonly cluster_name: string;
94
+ readonly cluster_iops: number | null;
101
95
  readonly ready: boolean;
102
- readonly region: {
103
- readonly current_default: boolean;
104
- readonly display_name: string;
105
- readonly enabled: boolean;
96
+ readonly schema_ready?: boolean | undefined;
97
+ readonly metal: boolean;
98
+ readonly production: boolean;
99
+ readonly safe_migrations: boolean;
100
+ readonly sharded?: boolean | undefined;
101
+ readonly shard_count?: number | undefined;
102
+ readonly stale_schema: boolean;
103
+ readonly actor: {
106
104
  readonly id: string;
107
- readonly location: string;
108
- readonly provider: string;
109
- readonly public_ip_addresses: readonly string[];
110
- readonly slug: string;
105
+ readonly display_name: string;
106
+ readonly avatar_url: string;
111
107
  };
112
- readonly restore_checklist_completed_at: string | null;
113
108
  readonly restored_from_branch: {
114
- readonly created_at: string;
115
- readonly deleted_at: string;
116
109
  readonly id: string;
117
110
  readonly name: string;
111
+ readonly created_at: string;
118
112
  readonly updated_at: string;
113
+ readonly deleted_at: string;
119
114
  } | null;
120
- readonly safe_migrations: boolean;
121
- readonly schema_last_updated_at: string;
122
- readonly schema_ready?: boolean | undefined;
123
- readonly shard_count?: number | undefined;
124
- readonly sharded?: boolean | undefined;
125
- readonly stale_schema: boolean;
126
- readonly state: "awakening" | "pending" | "ready" | "sleep_in_progress" | "sleeping";
127
- readonly updated_at: string;
115
+ readonly private_edge_connectivity: boolean;
116
+ readonly has_replicas: boolean;
117
+ readonly has_read_only_replicas: boolean;
118
+ readonly html_url: string;
128
119
  readonly url: string;
129
- readonly vtgate_count?: number | undefined;
120
+ readonly region: {
121
+ readonly id: string;
122
+ readonly provider: string;
123
+ readonly enabled: boolean;
124
+ readonly public_ip_addresses: readonly string[];
125
+ readonly display_name: string;
126
+ readonly location: string;
127
+ readonly slug: string;
128
+ readonly current_default: boolean;
129
+ };
130
+ readonly parent_branch: string | null;
130
131
  readonly vtgate_options?: {
131
132
  readonly [x: string]: unknown;
132
133
  } | undefined;
133
- readonly vtgate_size?: string | undefined;
134
134
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
135
135
  //# sourceMappingURL=promoteBranch.d.ts.map