@distilled.cloud/planetscale 0.19.2 → 0.20.1

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
@@ -40,32 +40,32 @@ export type GetSchemaRecommendationOutput = typeof GetSchemaRecommendationOutput
40
40
  * @param number - Schema recommendation sequence number. Example: `42`.
41
41
  */
42
42
  export declare const getSchemaRecommendation: import("@distilled.cloud/core/client").OperationMethod<{
43
+ readonly organization: string;
43
44
  readonly database: string;
44
45
  readonly number: number;
45
- readonly organization: string;
46
46
  }, {
47
+ readonly id: string;
48
+ readonly html_url: string;
49
+ readonly title: string;
50
+ readonly table_name: string;
51
+ readonly keyspace: string;
52
+ readonly ddl_statement: string;
53
+ readonly number: number;
54
+ readonly state: "applied" | "dismissed" | "open" | "stale";
55
+ readonly recommendation_type: "bloated_index" | "bloated_table" | "duplicate_index" | "encoding_upgrade" | "new_index" | "sequence_overflow" | "sequence_overflow_foreign_key" | "unused_index" | "unused_table";
56
+ readonly created_at: string;
57
+ readonly updated_at: string;
47
58
  readonly applied_at: string;
59
+ readonly dismissed_at: string;
48
60
  readonly closed_by_deploy_request: {
49
- readonly branch_id: string;
50
61
  readonly id: string;
62
+ readonly branch_id: string;
51
63
  readonly number: number;
52
64
  };
53
- readonly created_at: string;
54
- readonly ddl_statement: string;
55
- readonly dismissed_at: string;
56
65
  readonly dismissed_by: {
57
- readonly avatar_url: string;
58
- readonly display_name: string;
59
66
  readonly id: string;
67
+ readonly display_name: string;
68
+ readonly avatar_url: string;
60
69
  };
61
- readonly html_url: string;
62
- readonly id: string;
63
- readonly keyspace: string;
64
- readonly number: number;
65
- readonly recommendation_type: "bloated_index" | "bloated_table" | "duplicate_index" | "encoding_upgrade" | "new_index" | "sequence_overflow" | "sequence_overflow_foreign_key" | "unused_index" | "unused_table";
66
- readonly state: "applied" | "dismissed" | "open" | "stale";
67
- readonly table_name: string;
68
- readonly title: string;
69
- readonly updated_at: string;
70
70
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
71
71
  //# sourceMappingURL=getSchemaRecommendation.d.ts.map
@@ -93,84 +93,84 @@ export type GetServiceTokenOutput = typeof GetServiceTokenOutput.Type;
93
93
  * @param id - The ID of the service token
94
94
  */
95
95
  export declare const getServiceToken: import("@distilled.cloud/core/client").OperationMethod<{
96
- readonly id: string;
97
96
  readonly organization: string;
97
+ readonly id: string;
98
98
  }, {
99
- readonly actor_display_name: string;
100
- readonly actor_id: string;
101
- readonly actor_type: string;
99
+ readonly id: string;
100
+ readonly name?: string | null | undefined;
101
+ readonly display_name: string;
102
+ readonly token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
103
+ readonly plain_text_refresh_token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
102
104
  readonly avatar_url: string;
103
105
  readonly created_at: string;
104
- readonly display_name: string;
106
+ readonly updated_at: string;
105
107
  readonly expires_at?: string | null | undefined;
106
- readonly id: string;
107
108
  readonly last_used_at?: string | null | undefined;
108
- readonly name?: string | null | undefined;
109
+ readonly actor_id: string;
110
+ readonly actor_display_name: string;
111
+ readonly actor_type: string;
112
+ readonly service_token_accesses?: readonly {
113
+ readonly id: string;
114
+ readonly access: string;
115
+ readonly description: string;
116
+ readonly resource_name: string;
117
+ readonly resource_id: string;
118
+ readonly resource_type: string;
119
+ readonly resource: {
120
+ readonly id: string;
121
+ readonly name: string;
122
+ readonly created_at: string;
123
+ readonly updated_at: string;
124
+ readonly deleted_at: string;
125
+ };
126
+ }[] | undefined;
109
127
  readonly oauth_accesses_by_resource?: {
110
- readonly branch: {
111
- readonly accesses: readonly {
112
- readonly description: string;
128
+ readonly database: {
129
+ readonly databases: readonly {
113
130
  readonly name: string;
114
- }[];
115
- readonly branches: readonly {
116
- readonly database: string;
117
131
  readonly id: string;
118
- readonly name: string;
119
132
  readonly organization: string;
120
133
  readonly url: string;
121
134
  }[];
122
- };
123
- readonly database: {
124
135
  readonly accesses: readonly {
125
- readonly description: string;
126
136
  readonly name: string;
137
+ readonly description: string;
127
138
  }[];
128
- readonly databases: readonly {
129
- readonly id: string;
139
+ };
140
+ readonly organization: {
141
+ readonly organizations: readonly {
130
142
  readonly name: string;
131
- readonly organization: string;
143
+ readonly id: string;
132
144
  readonly url: string;
133
145
  }[];
134
- };
135
- readonly organization: {
136
146
  readonly accesses: readonly {
137
- readonly description: string;
138
147
  readonly name: string;
148
+ readonly description: string;
139
149
  }[];
140
- readonly organizations: readonly {
141
- readonly id: string;
150
+ };
151
+ readonly branch: {
152
+ readonly branches: readonly {
142
153
  readonly name: string;
154
+ readonly id: string;
155
+ readonly database: string;
156
+ readonly organization: string;
143
157
  readonly url: string;
144
158
  }[];
145
- };
146
- readonly user: {
147
159
  readonly accesses: readonly {
148
- readonly description: string;
149
160
  readonly name: string;
161
+ readonly description: string;
150
162
  }[];
163
+ };
164
+ readonly user: {
151
165
  readonly users: readonly {
166
+ readonly name: string;
152
167
  readonly id: string;
168
+ }[];
169
+ readonly accesses: readonly {
153
170
  readonly name: string;
171
+ readonly description: string;
154
172
  }[];
155
173
  };
156
174
  } | undefined;
157
- readonly plain_text_refresh_token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
158
- readonly service_token_accesses?: readonly {
159
- readonly access: string;
160
- readonly description: string;
161
- readonly id: string;
162
- readonly resource: {
163
- readonly created_at: string;
164
- readonly deleted_at: string;
165
- readonly id: string;
166
- readonly name: string;
167
- readonly updated_at: string;
168
- };
169
- readonly resource_id: string;
170
- readonly resource_name: string;
171
- readonly resource_type: string;
172
- }[] | undefined;
173
- readonly token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
174
- readonly updated_at: string;
175
175
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
176
176
  //# sourceMappingURL=getServiceToken.d.ts.map
@@ -54,45 +54,45 @@ export type GetTrafficBudgetOutput = typeof GetTrafficBudgetOutput.Type;
54
54
  * @param id - The ID of the traffic budget
55
55
  */
56
56
  export declare const getTrafficBudget: import("@distilled.cloud/core/client").OperationMethod<{
57
- readonly branch: string;
57
+ readonly organization: string;
58
58
  readonly database: string;
59
+ readonly branch: string;
59
60
  readonly id: string;
60
- readonly organization: string;
61
61
  }, {
62
- readonly actor: {
63
- readonly avatar_url: string;
64
- readonly display_name: string;
65
- readonly id: string;
66
- };
67
- readonly burst?: number | undefined;
68
- readonly capacity?: number | undefined;
69
- readonly concurrency?: number | undefined;
70
- readonly created_at: string;
71
62
  readonly id: string;
72
- readonly mode: "enforce" | "off" | "warn";
73
63
  readonly name: string;
64
+ readonly mode: "enforce" | "off" | "warn";
65
+ readonly capacity?: number | undefined;
74
66
  readonly rate?: number | undefined;
67
+ readonly burst?: number | undefined;
68
+ readonly concurrency?: number | undefined;
69
+ readonly warning_threshold?: number | undefined;
70
+ readonly actor: {
71
+ readonly id: string;
72
+ readonly display_name: string;
73
+ readonly avatar_url: string;
74
+ };
75
75
  readonly rules: readonly {
76
- readonly actor: {
77
- readonly avatar_url: string;
78
- readonly display_name: string;
79
- readonly id: string;
80
- };
81
- readonly created_at: string;
82
- readonly fingerprint?: string | undefined;
83
76
  readonly id: string;
84
- readonly keyspace?: string | undefined;
85
77
  readonly kind: "match";
86
- readonly syntax_highlighted_sql: string;
87
78
  readonly tags: readonly {
88
- readonly key: string;
89
79
  readonly key_id: string;
90
- readonly source: "sql" | "system";
80
+ readonly key: string;
91
81
  readonly value: string;
82
+ readonly source: "sql" | "system";
92
83
  }[];
84
+ readonly fingerprint?: string | undefined;
85
+ readonly keyspace?: string | undefined;
86
+ readonly actor: {
87
+ readonly id: string;
88
+ readonly display_name: string;
89
+ readonly avatar_url: string;
90
+ };
91
+ readonly syntax_highlighted_sql: string;
92
+ readonly created_at: string;
93
93
  readonly updated_at: string;
94
94
  }[];
95
+ readonly created_at: string;
95
96
  readonly updated_at: string;
96
- readonly warning_threshold?: number | undefined;
97
97
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
98
98
  //# sourceMappingURL=getTrafficBudget.d.ts.map
@@ -27,19 +27,19 @@ export type GetWebhookOutput = typeof GetWebhookOutput.Type;
27
27
  * @param id - The ID of the webhook
28
28
  */
29
29
  export declare const getWebhook: import("@distilled.cloud/core/client").OperationMethod<{
30
+ readonly organization: string;
30
31
  readonly database: string;
31
32
  readonly id: string;
32
- readonly organization: string;
33
33
  }, {
34
- readonly created_at: string;
35
- readonly enabled: boolean;
36
- 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")[];
37
34
  readonly id: string;
38
- readonly last_sent_at: string | null;
35
+ readonly url: string;
36
+ readonly secret: string | import("effect/Redacted").Redacted<string>;
37
+ readonly enabled: boolean;
39
38
  readonly last_sent_result: string | null;
40
39
  readonly last_sent_success: boolean | null;
41
- readonly secret: string | import("effect/Redacted").Redacted<string>;
40
+ readonly last_sent_at: string | null;
41
+ readonly created_at: string;
42
42
  readonly updated_at: string;
43
- readonly url: string;
43
+ 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")[];
44
44
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
45
45
  //# sourceMappingURL=getWebhook.d.ts.map
@@ -122,114 +122,114 @@ export type GetWorkflowOutput = typeof GetWorkflowOutput.Type;
122
122
  * @param number - The sequence number of the workflow
123
123
  */
124
124
  export declare const getWorkflow: import("@distilled.cloud/core/client").OperationMethod<{
125
+ readonly organization: string;
125
126
  readonly database: string;
126
127
  readonly number: number;
127
- readonly organization: string;
128
128
  }, {
129
+ readonly id: string;
130
+ readonly name: string;
131
+ readonly number: number;
132
+ 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";
133
+ readonly created_at: string;
134
+ readonly updated_at: string;
135
+ readonly started_at: string;
136
+ readonly completed_at: string;
137
+ readonly cancelled_at: string;
138
+ readonly reversed_at: string;
139
+ readonly retried_at: string;
140
+ readonly data_copy_completed_at: string;
141
+ readonly cutover_at: string;
142
+ readonly replicas_switched: boolean;
143
+ readonly primaries_switched: boolean;
144
+ readonly switch_replicas_at: string;
145
+ readonly switch_primaries_at: string;
146
+ readonly verify_data_at: string;
147
+ readonly workflow_type: "move_tables";
148
+ readonly workflow_subtype: string;
149
+ readonly defer_secondary_keys: boolean;
150
+ readonly on_ddl: "EXEC" | "EXEC_IGNORE" | "IGNORE" | "STOP";
151
+ readonly workflow_errors: string;
152
+ readonly may_retry: boolean;
153
+ readonly may_restart: boolean;
154
+ readonly verified_data_stale: boolean;
155
+ readonly sequence_tables_applied: boolean;
129
156
  readonly actor: {
130
- readonly avatar_url: string;
131
- readonly display_name: string;
132
157
  readonly id: string;
158
+ readonly display_name: string;
159
+ readonly avatar_url: string;
133
160
  };
134
- readonly branch: {
135
- readonly created_at: string;
136
- readonly deleted_at: string;
161
+ readonly verify_data_by: {
137
162
  readonly id: string;
138
- readonly name: string;
139
- readonly updated_at: string;
140
- };
141
- readonly cancelled_at: string;
142
- readonly cancelled_by: {
143
- readonly avatar_url: string;
144
163
  readonly display_name: string;
145
- readonly id: string;
146
- };
147
- readonly completed_at: string;
148
- readonly completed_by: {
149
164
  readonly avatar_url: string;
150
- readonly display_name: string;
165
+ };
166
+ readonly reversed_by: {
151
167
  readonly id: string;
168
+ readonly display_name: string;
169
+ readonly avatar_url: string;
152
170
  };
153
- readonly created_at: string;
154
- readonly cutover_at: string;
155
- readonly cutover_by: {
171
+ readonly switch_replicas_by: {
172
+ readonly id: string;
173
+ readonly display_name: string;
156
174
  readonly avatar_url: string;
175
+ };
176
+ readonly switch_primaries_by: {
177
+ readonly id: string;
157
178
  readonly display_name: string;
179
+ readonly avatar_url: string;
180
+ };
181
+ readonly cancelled_by: {
158
182
  readonly id: string;
183
+ readonly display_name: string;
184
+ readonly avatar_url: string;
159
185
  };
160
- readonly data_copy_completed_at: string;
161
- readonly defer_secondary_keys: boolean;
162
- readonly global_keyspace: {
163
- readonly created_at: string;
164
- readonly deleted_at: string;
186
+ readonly completed_by: {
165
187
  readonly id: string;
166
- readonly name: string;
167
- readonly updated_at: string;
188
+ readonly display_name: string;
189
+ readonly avatar_url: string;
168
190
  };
169
- readonly id: string;
170
- readonly may_restart: boolean;
171
- readonly may_retry: boolean;
172
- readonly name: string;
173
- readonly number: number;
174
- readonly on_ddl: "EXEC" | "EXEC_IGNORE" | "IGNORE" | "STOP";
175
- readonly primaries_switched: boolean;
176
- readonly replicas_switched: boolean;
177
- readonly retried_at: string;
178
191
  readonly retried_by: {
179
- readonly avatar_url: string;
180
- readonly display_name: string;
181
192
  readonly id: string;
182
- };
183
- readonly reversed_at: string;
184
- readonly reversed_by: {
185
- readonly avatar_url: string;
186
193
  readonly display_name: string;
194
+ readonly avatar_url: string;
195
+ };
196
+ readonly cutover_by: {
187
197
  readonly id: string;
198
+ readonly display_name: string;
199
+ readonly avatar_url: string;
188
200
  };
189
201
  readonly reversed_cutover_by: {
190
- readonly avatar_url: string;
191
- readonly display_name: string;
192
202
  readonly id: string;
203
+ readonly display_name: string;
204
+ readonly avatar_url: string;
193
205
  };
194
- readonly sequence_tables_applied: boolean;
195
- readonly source_keyspace: {
196
- readonly created_at: string;
197
- readonly deleted_at: string;
206
+ readonly branch: {
198
207
  readonly id: string;
199
208
  readonly name: string;
209
+ readonly created_at: string;
200
210
  readonly updated_at: string;
211
+ readonly deleted_at: string;
201
212
  };
202
- readonly started_at: string;
203
- 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";
204
- readonly switch_primaries_at: string;
205
- readonly switch_primaries_by: {
206
- readonly avatar_url: string;
207
- readonly display_name: string;
208
- readonly id: string;
209
- };
210
- readonly switch_replicas_at: string;
211
- readonly switch_replicas_by: {
212
- readonly avatar_url: string;
213
- readonly display_name: string;
213
+ readonly source_keyspace: {
214
214
  readonly id: string;
215
- };
216
- readonly target_keyspace: {
215
+ readonly name: string;
217
216
  readonly created_at: string;
217
+ readonly updated_at: string;
218
218
  readonly deleted_at: string;
219
+ };
220
+ readonly target_keyspace: {
219
221
  readonly id: string;
220
222
  readonly name: string;
223
+ readonly created_at: string;
221
224
  readonly updated_at: string;
225
+ readonly deleted_at: string;
222
226
  };
223
- readonly updated_at: string;
224
- readonly verified_data_stale: boolean;
225
- readonly verify_data_at: string;
226
- readonly verify_data_by: {
227
- readonly avatar_url: string;
228
- readonly display_name: string;
227
+ readonly global_keyspace: {
229
228
  readonly id: string;
229
+ readonly name: string;
230
+ readonly created_at: string;
231
+ readonly updated_at: string;
232
+ readonly deleted_at: string;
230
233
  };
231
- readonly workflow_errors: string;
232
- readonly workflow_subtype: string;
233
- readonly workflow_type: "move_tables";
234
234
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
235
235
  //# sourceMappingURL=getWorkflow.d.ts.map
@@ -45,35 +45,35 @@ export type LintBranchSchemaOutput = typeof LintBranchSchemaOutput.Type;
45
45
  * @param per_page - If provided, specifies the number of returned results
46
46
  */
47
47
  export declare const lintBranchSchema: import("@distilled.cloud/core/client").PaginatedOperationMethod<{
48
- readonly branch: string;
49
- readonly database: string;
50
48
  readonly organization: string;
49
+ readonly database: string;
50
+ readonly branch: string;
51
51
  readonly page?: number | undefined;
52
52
  readonly per_page?: number | undefined;
53
53
  }, {
54
54
  readonly current_page: number;
55
+ readonly next_page: number | null;
56
+ readonly next_page_url: string | null;
57
+ readonly prev_page: number | null;
58
+ readonly prev_page_url: string | null;
55
59
  readonly data: readonly {
60
+ readonly lint_error: string;
61
+ readonly subject_type: "routing_rules" | "table" | "vschema";
62
+ readonly keyspace_name: string;
63
+ readonly table_name: string;
64
+ readonly error_description: string;
65
+ readonly docs_url: string;
66
+ readonly column_name: string;
67
+ readonly foreign_key_column_names: readonly string[];
56
68
  readonly auto_increment_column_names: readonly string[];
57
69
  readonly charset_name: string;
58
- readonly check_constraint_name: string;
59
- readonly column_name: string;
60
- readonly docs_url: string;
61
70
  readonly engine_name: string;
62
- readonly enum_value: string;
63
- readonly error_description: string;
64
- readonly foreign_key_column_names: readonly string[];
71
+ readonly vindex_name: string;
65
72
  readonly json_path: string;
66
- readonly keyspace_name: string;
67
- readonly lint_error: string;
68
- readonly partition_name: string;
73
+ readonly check_constraint_name: string;
74
+ readonly enum_value: string;
69
75
  readonly partitioning_type: string;
70
- readonly subject_type: "routing_rules" | "table" | "vschema";
71
- readonly table_name: string;
72
- readonly vindex_name: string;
76
+ readonly partition_name: string;
73
77
  }[];
74
- readonly next_page: number | null;
75
- readonly next_page_url: string | null;
76
- readonly prev_page: number | null;
77
- readonly prev_page_url: string | null;
78
78
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
79
79
  //# sourceMappingURL=lintBranchSchema.d.ts.map
@@ -42,35 +42,35 @@ export type ListAuditLogsOutput = typeof ListAuditLogsOutput.Type;
42
42
  * @param limit - If provided, specifies the number of returned results (max 100)
43
43
  */
44
44
  export declare const listAuditLogs: import("@distilled.cloud/core/client").OperationMethod<{
45
- readonly ending_before?: string | undefined;
46
- readonly limit?: number | undefined;
47
45
  readonly organization: string;
48
46
  readonly starting_after?: string | undefined;
47
+ readonly ending_before?: string | undefined;
48
+ readonly limit?: number | undefined;
49
49
  }, {
50
- readonly cursor_end: string | null;
50
+ readonly has_next: boolean;
51
+ readonly has_prev: boolean;
51
52
  readonly cursor_start: string | null;
53
+ readonly cursor_end: string | null;
52
54
  readonly data: readonly {
53
- readonly action: string;
54
- readonly actor_display_name: string;
55
+ readonly id: string;
55
56
  readonly actor_id: string;
56
57
  readonly actor_type: string;
57
- readonly audit_action: string;
58
- readonly auditable_display_name: string;
59
58
  readonly auditable_id: string;
60
59
  readonly auditable_type: string;
61
- readonly created_at: string;
62
- readonly id: string;
60
+ readonly target_id: string;
61
+ readonly target_type: string;
63
62
  readonly location: string | null;
63
+ readonly target_display_name: string;
64
+ readonly audit_action: string;
65
+ readonly action: string;
66
+ readonly actor_display_name: string;
67
+ readonly auditable_display_name: string;
68
+ readonly remote_ip: string | null;
69
+ readonly created_at: string;
70
+ readonly updated_at: string;
64
71
  readonly metadata: {
65
72
  readonly [x: string]: unknown;
66
73
  };
67
- readonly remote_ip: string | null;
68
- readonly target_display_name: string;
69
- readonly target_id: string;
70
- readonly target_type: string;
71
- readonly updated_at: string;
72
74
  }[];
73
- readonly has_next: boolean;
74
- readonly has_prev: boolean;
75
75
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
76
76
  //# sourceMappingURL=listAuditLogs.d.ts.map
@@ -42,33 +42,33 @@ export type ListBackupPoliciesOutput = typeof ListBackupPoliciesOutput.Type;
42
42
  * @param per_page - If provided, specifies the number of returned results
43
43
  */
44
44
  export declare const listBackupPolicies: import("@distilled.cloud/core/client").PaginatedOperationMethod<{
45
- readonly database: string;
46
45
  readonly organization: string;
46
+ readonly database: string;
47
47
  readonly page?: number | undefined;
48
48
  readonly per_page?: number | undefined;
49
49
  }, {
50
50
  readonly current_page: number;
51
+ readonly next_page: number;
52
+ readonly next_page_url: string;
53
+ readonly prev_page: number;
54
+ readonly prev_page_url: string;
51
55
  readonly data: readonly {
52
- readonly created_at: string;
53
- readonly display_name: string;
54
- readonly frequency_unit: string;
55
- readonly frequency_value: number;
56
56
  readonly id: string;
57
- readonly last_ran_at: string;
57
+ readonly display_name: string;
58
58
  readonly name: string;
59
- readonly next_run_at: string;
60
- readonly required: boolean;
61
- readonly retention_unit: string;
59
+ readonly target: "development" | "production";
62
60
  readonly retention_value: number;
63
- readonly schedule_day: number;
61
+ readonly retention_unit: string;
62
+ readonly frequency_value: number;
63
+ readonly frequency_unit: string;
64
64
  readonly schedule_time: string;
65
+ readonly schedule_day: number;
65
66
  readonly schedule_week: number;
66
- readonly target: "development" | "production";
67
+ readonly created_at: string;
67
68
  readonly updated_at: string;
69
+ readonly last_ran_at: string;
70
+ readonly next_run_at: string;
71
+ readonly required: boolean;
68
72
  }[];
69
- readonly next_page: number;
70
- readonly next_page_url: string;
71
- readonly prev_page: number;
72
- readonly prev_page_url: string;
73
73
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
74
74
  //# sourceMappingURL=listBackupPolicies.d.ts.map