@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
@@ -70,64 +70,64 @@ export type DisableSafeMigrationsOutput = typeof DisableSafeMigrationsOutput.Typ
70
70
  * @param branch - The name of the branch
71
71
  */
72
72
  export declare const disableSafeMigrations: import("@distilled.cloud/core/client").OperationMethod<{
73
- readonly branch: string;
74
- readonly database: string;
75
73
  readonly organization: string;
74
+ readonly database: string;
75
+ readonly branch: string;
76
76
  }, {
77
- readonly actor: {
78
- readonly avatar_url: string;
79
- readonly display_name: string;
80
- readonly id: string;
81
- };
82
- readonly cluster_iops: number | null;
83
- readonly cluster_name: string;
77
+ readonly id: string;
78
+ readonly name: string;
84
79
  readonly created_at: string;
80
+ readonly updated_at: string;
85
81
  readonly deleted_at: string | null;
86
- readonly direct_vtgate?: boolean | undefined;
87
- readonly has_read_only_replicas: boolean;
88
- readonly has_replicas: boolean;
89
- readonly html_url: string;
90
- readonly id: string;
82
+ readonly restore_checklist_completed_at: string | null;
83
+ readonly schema_last_updated_at: string;
91
84
  readonly kind: "mysql" | "postgresql";
92
- readonly metal: boolean;
93
85
  readonly mysql_address?: string | undefined;
94
86
  readonly mysql_edge_address?: string | undefined;
95
- readonly name: string;
96
- readonly parent_branch: string | null;
97
- readonly private_edge_connectivity: boolean;
98
- readonly production: boolean;
87
+ readonly state: "awakening" | "pending" | "ready" | "sleep_in_progress" | "sleeping";
88
+ readonly direct_vtgate?: boolean | undefined;
89
+ readonly vtgate_size?: string | undefined;
90
+ readonly vtgate_count?: number | undefined;
91
+ readonly cluster_name: string;
92
+ readonly cluster_iops: number | null;
99
93
  readonly ready: boolean;
100
- readonly region: {
101
- readonly current_default: boolean;
102
- readonly display_name: string;
103
- readonly enabled: boolean;
94
+ readonly schema_ready?: boolean | undefined;
95
+ readonly metal: boolean;
96
+ readonly production: boolean;
97
+ readonly safe_migrations: boolean;
98
+ readonly sharded?: boolean | undefined;
99
+ readonly shard_count?: number | undefined;
100
+ readonly stale_schema: boolean;
101
+ readonly actor: {
104
102
  readonly id: string;
105
- readonly location: string;
106
- readonly provider: string;
107
- readonly public_ip_addresses: readonly string[];
108
- readonly slug: string;
103
+ readonly display_name: string;
104
+ readonly avatar_url: string;
109
105
  };
110
- readonly restore_checklist_completed_at: string | null;
111
106
  readonly restored_from_branch: {
112
- readonly created_at: string;
113
- readonly deleted_at: string;
114
107
  readonly id: string;
115
108
  readonly name: string;
109
+ readonly created_at: string;
116
110
  readonly updated_at: string;
111
+ readonly deleted_at: string;
117
112
  } | null;
118
- readonly safe_migrations: boolean;
119
- readonly schema_last_updated_at: string;
120
- readonly schema_ready?: boolean | undefined;
121
- readonly shard_count?: number | undefined;
122
- readonly sharded?: boolean | undefined;
123
- readonly stale_schema: boolean;
124
- readonly state: "awakening" | "pending" | "ready" | "sleep_in_progress" | "sleeping";
125
- readonly updated_at: string;
113
+ readonly private_edge_connectivity: boolean;
114
+ readonly has_replicas: boolean;
115
+ readonly has_read_only_replicas: boolean;
116
+ readonly html_url: string;
126
117
  readonly url: string;
127
- readonly vtgate_count?: number | undefined;
118
+ readonly region: {
119
+ readonly id: string;
120
+ readonly provider: string;
121
+ readonly enabled: boolean;
122
+ readonly public_ip_addresses: readonly string[];
123
+ readonly display_name: string;
124
+ readonly location: string;
125
+ readonly slug: string;
126
+ readonly current_default: boolean;
127
+ };
128
+ readonly parent_branch: string | null;
128
129
  readonly vtgate_options?: {
129
130
  readonly [x: string]: unknown;
130
131
  } | undefined;
131
- readonly vtgate_size?: string | undefined;
132
132
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
133
133
  //# sourceMappingURL=disableSafeMigrations.d.ts.map
@@ -42,33 +42,33 @@ export type DismissSchemaRecommendationOutput = typeof DismissSchemaRecommendati
42
42
  * @param reason - The reason for dismissing the recommendation (max 500 characters)
43
43
  */
44
44
  export declare const dismissSchemaRecommendation: import("@distilled.cloud/core/client").OperationMethod<{
45
+ readonly organization: string;
45
46
  readonly database: string;
46
47
  readonly number: number;
47
- readonly organization: string;
48
48
  readonly reason?: string | undefined;
49
49
  }, {
50
+ readonly id: string;
51
+ readonly html_url: string;
52
+ readonly title: string;
53
+ readonly table_name: string;
54
+ readonly keyspace: string;
55
+ readonly ddl_statement: string;
56
+ readonly number: number;
57
+ readonly state: "applied" | "dismissed" | "open" | "stale";
58
+ readonly recommendation_type: "bloated_index" | "bloated_table" | "duplicate_index" | "encoding_upgrade" | "new_index" | "sequence_overflow" | "sequence_overflow_foreign_key" | "unused_index" | "unused_table";
59
+ readonly created_at: string;
60
+ readonly updated_at: string;
50
61
  readonly applied_at: string;
62
+ readonly dismissed_at: string;
51
63
  readonly closed_by_deploy_request: {
52
- readonly branch_id: string;
53
64
  readonly id: string;
65
+ readonly branch_id: string;
54
66
  readonly number: number;
55
67
  };
56
- readonly created_at: string;
57
- readonly ddl_statement: string;
58
- readonly dismissed_at: string;
59
68
  readonly dismissed_by: {
60
- readonly avatar_url: string;
61
- readonly display_name: string;
62
69
  readonly id: string;
70
+ readonly display_name: string;
71
+ readonly avatar_url: string;
63
72
  };
64
- readonly html_url: string;
65
- readonly id: string;
66
- readonly keyspace: string;
67
- readonly number: number;
68
- readonly recommendation_type: "bloated_index" | "bloated_table" | "duplicate_index" | "encoding_upgrade" | "new_index" | "sequence_overflow" | "sequence_overflow_foreign_key" | "unused_index" | "unused_table";
69
- readonly state: "applied" | "dismissed" | "open" | "stale";
70
- readonly table_name: string;
71
- readonly title: string;
72
- readonly updated_at: string;
73
73
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
74
74
  //# sourceMappingURL=dismissSchemaRecommendation.d.ts.map
@@ -70,64 +70,64 @@ export type EnableSafeMigrationsOutput = typeof EnableSafeMigrationsOutput.Type;
70
70
  * @param branch - The name of the branch
71
71
  */
72
72
  export declare const enableSafeMigrations: import("@distilled.cloud/core/client").OperationMethod<{
73
- readonly branch: string;
74
- readonly database: string;
75
73
  readonly organization: string;
74
+ readonly database: string;
75
+ readonly branch: string;
76
76
  }, {
77
- readonly actor: {
78
- readonly avatar_url: string;
79
- readonly display_name: string;
80
- readonly id: string;
81
- };
82
- readonly cluster_iops: number | null;
83
- readonly cluster_name: string;
77
+ readonly id: string;
78
+ readonly name: string;
84
79
  readonly created_at: string;
80
+ readonly updated_at: string;
85
81
  readonly deleted_at: string | null;
86
- readonly direct_vtgate?: boolean | undefined;
87
- readonly has_read_only_replicas: boolean;
88
- readonly has_replicas: boolean;
89
- readonly html_url: string;
90
- readonly id: string;
82
+ readonly restore_checklist_completed_at: string | null;
83
+ readonly schema_last_updated_at: string;
91
84
  readonly kind: "mysql" | "postgresql";
92
- readonly metal: boolean;
93
85
  readonly mysql_address?: string | undefined;
94
86
  readonly mysql_edge_address?: string | undefined;
95
- readonly name: string;
96
- readonly parent_branch: string | null;
97
- readonly private_edge_connectivity: boolean;
98
- readonly production: boolean;
87
+ readonly state: "awakening" | "pending" | "ready" | "sleep_in_progress" | "sleeping";
88
+ readonly direct_vtgate?: boolean | undefined;
89
+ readonly vtgate_size?: string | undefined;
90
+ readonly vtgate_count?: number | undefined;
91
+ readonly cluster_name: string;
92
+ readonly cluster_iops: number | null;
99
93
  readonly ready: boolean;
100
- readonly region: {
101
- readonly current_default: boolean;
102
- readonly display_name: string;
103
- readonly enabled: boolean;
94
+ readonly schema_ready?: boolean | undefined;
95
+ readonly metal: boolean;
96
+ readonly production: boolean;
97
+ readonly safe_migrations: boolean;
98
+ readonly sharded?: boolean | undefined;
99
+ readonly shard_count?: number | undefined;
100
+ readonly stale_schema: boolean;
101
+ readonly actor: {
104
102
  readonly id: string;
105
- readonly location: string;
106
- readonly provider: string;
107
- readonly public_ip_addresses: readonly string[];
108
- readonly slug: string;
103
+ readonly display_name: string;
104
+ readonly avatar_url: string;
109
105
  };
110
- readonly restore_checklist_completed_at: string | null;
111
106
  readonly restored_from_branch: {
112
- readonly created_at: string;
113
- readonly deleted_at: string;
114
107
  readonly id: string;
115
108
  readonly name: string;
109
+ readonly created_at: string;
116
110
  readonly updated_at: string;
111
+ readonly deleted_at: string;
117
112
  } | null;
118
- readonly safe_migrations: boolean;
119
- readonly schema_last_updated_at: string;
120
- readonly schema_ready?: boolean | undefined;
121
- readonly shard_count?: number | undefined;
122
- readonly sharded?: boolean | undefined;
123
- readonly stale_schema: boolean;
124
- readonly state: "awakening" | "pending" | "ready" | "sleep_in_progress" | "sleeping";
125
- readonly updated_at: string;
113
+ readonly private_edge_connectivity: boolean;
114
+ readonly has_replicas: boolean;
115
+ readonly has_read_only_replicas: boolean;
116
+ readonly html_url: string;
126
117
  readonly url: string;
127
- readonly vtgate_count?: number | undefined;
118
+ readonly region: {
119
+ readonly id: string;
120
+ readonly provider: string;
121
+ readonly enabled: boolean;
122
+ readonly public_ip_addresses: readonly string[];
123
+ readonly display_name: string;
124
+ readonly location: string;
125
+ readonly slug: string;
126
+ readonly current_default: boolean;
127
+ };
128
+ readonly parent_branch: string | null;
128
129
  readonly vtgate_options?: {
129
130
  readonly [x: string]: unknown;
130
131
  } | undefined;
131
- readonly vtgate_size?: string | undefined;
132
132
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
133
133
  //# sourceMappingURL=enableSafeMigrations.d.ts.map
@@ -78,69 +78,69 @@ export type GetBackupOutput = typeof GetBackupOutput.Type;
78
78
  * @param branch - The name of the branch
79
79
  */
80
80
  export declare const getBackup: import("@distilled.cloud/core/client").OperationMethod<{
81
- readonly branch: string;
82
- readonly database: string;
83
81
  readonly id: string;
84
82
  readonly organization: string;
83
+ readonly database: string;
84
+ readonly branch: string;
85
85
  }, {
86
+ readonly id: string;
87
+ readonly name: string;
88
+ readonly state: "canceled" | "failed" | "ignored" | "pending" | "running" | "success";
89
+ readonly size: number;
90
+ readonly estimated_storage_cost: number;
91
+ readonly created_at: string;
92
+ readonly updated_at: string;
93
+ readonly started_at: string | null;
94
+ readonly expires_at: string | null;
95
+ readonly completed_at: string | null;
96
+ readonly deleted_at: string | null;
97
+ readonly pvc_size: number;
98
+ readonly protected: boolean;
99
+ readonly required: boolean;
100
+ readonly restored_branches: readonly {
101
+ readonly id: string;
102
+ readonly name: string;
103
+ readonly created_at: string;
104
+ readonly updated_at: string;
105
+ readonly deleted_at: string | null;
106
+ }[];
86
107
  readonly actor: {
87
- readonly avatar_url: string;
88
- readonly display_name: string;
89
108
  readonly id: string;
109
+ readonly display_name: string;
110
+ readonly avatar_url: string;
90
111
  };
91
112
  readonly backup_policy: {
92
- readonly created_at: string;
93
- readonly display_name: string;
94
- readonly frequency_unit: string;
95
- readonly frequency_value: number;
96
113
  readonly id: string;
97
- readonly last_ran_at: string | null;
114
+ readonly display_name: string;
98
115
  readonly name: string;
99
- readonly next_run_at: string | null;
100
- readonly required: boolean;
101
- readonly retention_unit: string;
116
+ readonly target: "development" | "production";
102
117
  readonly retention_value: number;
103
- readonly schedule_day: number;
118
+ readonly retention_unit: string;
119
+ readonly frequency_value: number;
120
+ readonly frequency_unit: string;
104
121
  readonly schedule_time: string | null;
122
+ readonly schedule_day: number;
105
123
  readonly schedule_week: number;
106
- readonly target: "development" | "production";
124
+ readonly created_at: string;
107
125
  readonly updated_at: string;
126
+ readonly last_ran_at: string | null;
127
+ readonly next_run_at: string | null;
128
+ readonly required: boolean;
108
129
  } | null;
109
- readonly completed_at: string | null;
110
- readonly created_at: string;
111
- readonly database_branch: {
112
- readonly created_at: string;
113
- readonly deleted_at: string | null;
130
+ readonly schema_snapshot: {
114
131
  readonly id: string;
115
132
  readonly name: string;
133
+ readonly created_at: string;
116
134
  readonly updated_at: string;
135
+ readonly linted_at: string | null;
136
+ readonly url: string;
117
137
  };
118
- readonly deleted_at: string | null;
119
- readonly estimated_storage_cost: number;
120
- readonly expires_at: string | null;
121
- readonly id: string;
122
- readonly name: string;
123
- readonly protected: boolean;
124
- readonly pvc_size: number;
125
- readonly required: boolean;
126
- readonly restored_branches: readonly {
127
- readonly created_at: string;
128
- readonly deleted_at: string | null;
138
+ readonly database_branch: {
129
139
  readonly id: string;
130
140
  readonly name: string;
131
- readonly updated_at: string;
132
- }[];
133
- readonly schema_snapshot: {
134
141
  readonly created_at: string;
135
- readonly id: string;
136
- readonly linted_at: string | null;
137
- readonly name: string;
138
142
  readonly updated_at: string;
139
- readonly url: string;
143
+ readonly deleted_at: string | null;
140
144
  };
141
- readonly size: number;
142
- readonly started_at: string | null;
143
- readonly state: "canceled" | "failed" | "ignored" | "pending" | "running" | "success";
144
- readonly updated_at: string;
145
145
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
146
146
  //# sourceMappingURL=getBackup.d.ts.map
@@ -33,25 +33,25 @@ export type GetBackupPolicyOutput = typeof GetBackupPolicyOutput.Type;
33
33
  * @param database - Database name slug from `list_databases`. Example: `app-db`.
34
34
  */
35
35
  export declare const getBackupPolicy: import("@distilled.cloud/core/client").OperationMethod<{
36
- readonly database: string;
37
36
  readonly id: string;
38
37
  readonly organization: string;
38
+ readonly database: string;
39
39
  }, {
40
- readonly created_at: string;
41
- readonly display_name: string;
42
- readonly frequency_unit: string;
43
- readonly frequency_value: number;
44
40
  readonly id: string;
45
- readonly last_ran_at: string;
41
+ readonly display_name: string;
46
42
  readonly name: string;
47
- readonly next_run_at: string;
48
- readonly required: boolean;
49
- readonly retention_unit: string;
43
+ readonly target: "development" | "production";
50
44
  readonly retention_value: number;
51
- readonly schedule_day: number;
45
+ readonly retention_unit: string;
46
+ readonly frequency_value: number;
47
+ readonly frequency_unit: string;
52
48
  readonly schedule_time: string;
49
+ readonly schedule_day: number;
53
50
  readonly schedule_week: number;
54
- readonly target: "development" | "production";
51
+ readonly created_at: string;
55
52
  readonly updated_at: string;
53
+ readonly last_ran_at: string;
54
+ readonly next_run_at: string;
55
+ readonly required: boolean;
56
56
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
57
57
  //# sourceMappingURL=getBackupPolicy.d.ts.map
@@ -71,62 +71,62 @@ export type GetBouncerOutput = typeof GetBouncerOutput.Type;
71
71
  * @param bouncer - The name of the bouncer
72
72
  */
73
73
  export declare const getBouncer: import("@distilled.cloud/core/client").OperationMethod<{
74
- readonly bouncer: string;
75
- readonly branch: string;
76
- readonly database: string;
77
74
  readonly organization: string;
75
+ readonly database: string;
76
+ readonly branch: string;
77
+ readonly bouncer: string;
78
78
  }, {
79
- readonly actor: {
80
- readonly avatar_url: string;
79
+ readonly id: string;
80
+ readonly name: string;
81
+ readonly sku: {
82
+ readonly name: string;
81
83
  readonly display_name: string;
84
+ readonly cpu: string;
85
+ readonly ram: number;
86
+ readonly sort_order: number;
87
+ };
88
+ readonly target: "primary" | "replica" | "replica_az_affinity";
89
+ readonly replicas_per_cell: number;
90
+ readonly created_at: string;
91
+ readonly updated_at: string;
92
+ readonly deleted_at: string;
93
+ readonly actor: {
82
94
  readonly id: string;
95
+ readonly display_name: string;
96
+ readonly avatar_url: string;
83
97
  };
84
98
  readonly branch: {
85
- readonly created_at: string;
86
- readonly deleted_at: string;
87
99
  readonly id: string;
88
100
  readonly name: string;
101
+ readonly created_at: string;
89
102
  readonly updated_at: string;
103
+ readonly deleted_at: string;
90
104
  };
91
- readonly created_at: string;
92
- readonly deleted_at: string;
93
- readonly id: string;
94
- readonly name: string;
95
105
  readonly parameters: readonly {
96
- readonly actor: {
97
- readonly avatar_url: string;
98
- readonly display_name: string;
99
- readonly id: string;
100
- };
106
+ readonly id: string;
107
+ readonly namespace: "pgbouncer";
108
+ readonly name: string;
109
+ readonly display_name: string;
101
110
  readonly category: string;
102
- readonly created_at: string;
103
- readonly default_value: string;
104
111
  readonly description: string;
105
- readonly display_name: string;
106
- readonly id: string;
107
112
  readonly immutable: boolean;
108
- readonly max: number;
109
- readonly min: number;
110
- readonly name: string;
111
- readonly namespace: "pgbouncer";
112
- readonly options: readonly string[];
113
113
  readonly parameter_type: "array" | "integer" | "seconds" | "select" | "string";
114
+ readonly default_value: string;
115
+ readonly value: string;
114
116
  readonly required: boolean;
117
+ readonly created_at: string;
118
+ readonly updated_at: string;
115
119
  readonly restart: boolean;
120
+ readonly max: number;
121
+ readonly min: number;
116
122
  readonly step: number;
117
- readonly updated_at: string;
118
123
  readonly url: string;
119
- readonly value: string;
124
+ readonly options: readonly string[];
125
+ readonly actor: {
126
+ readonly id: string;
127
+ readonly display_name: string;
128
+ readonly avatar_url: string;
129
+ };
120
130
  }[];
121
- readonly replicas_per_cell: number;
122
- readonly sku: {
123
- readonly cpu: string;
124
- readonly display_name: string;
125
- readonly name: string;
126
- readonly ram: number;
127
- readonly sort_order: number;
128
- };
129
- readonly target: "primary" | "replica" | "replica_az_affinity";
130
- readonly updated_at: string;
131
131
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
132
132
  //# sourceMappingURL=getBouncer.d.ts.map
@@ -70,64 +70,64 @@ export type GetBranchOutput = typeof GetBranchOutput.Type;
70
70
  * @param branch - Branch name from `list_branches`. Example: `main`.
71
71
  */
72
72
  export declare const getBranch: import("@distilled.cloud/core/client").OperationMethod<{
73
- readonly branch: string;
74
- readonly database: string;
75
73
  readonly organization: string;
74
+ readonly database: string;
75
+ readonly branch: string;
76
76
  }, {
77
- readonly actor: {
78
- readonly avatar_url: string;
79
- readonly display_name: string;
80
- readonly id: string;
81
- };
82
- readonly cluster_iops: number | null;
83
- readonly cluster_name: string;
77
+ readonly id: string;
78
+ readonly name: string;
84
79
  readonly created_at: string;
80
+ readonly updated_at: string;
85
81
  readonly deleted_at: string | null;
86
- readonly direct_vtgate?: boolean | undefined;
87
- readonly has_read_only_replicas: boolean;
88
- readonly has_replicas: boolean;
89
- readonly html_url: string;
90
- readonly id: string;
82
+ readonly restore_checklist_completed_at: string | null;
83
+ readonly schema_last_updated_at: string;
91
84
  readonly kind: "mysql" | "postgresql";
92
- readonly metal: boolean;
93
85
  readonly mysql_address?: string | undefined;
94
86
  readonly mysql_edge_address?: string | undefined;
95
- readonly name: string;
96
- readonly parent_branch: string | null;
97
- readonly private_edge_connectivity: boolean;
98
- readonly production: boolean;
87
+ readonly state: "awakening" | "pending" | "ready" | "sleep_in_progress" | "sleeping";
88
+ readonly direct_vtgate?: boolean | undefined;
89
+ readonly vtgate_size?: string | undefined;
90
+ readonly vtgate_count?: number | undefined;
91
+ readonly cluster_name: string;
92
+ readonly cluster_iops: number | null;
99
93
  readonly ready: boolean;
100
- readonly region: {
101
- readonly current_default: boolean;
102
- readonly display_name: string;
103
- readonly enabled: boolean;
94
+ readonly schema_ready?: boolean | undefined;
95
+ readonly metal: boolean;
96
+ readonly production: boolean;
97
+ readonly safe_migrations: boolean;
98
+ readonly sharded?: boolean | undefined;
99
+ readonly shard_count?: number | undefined;
100
+ readonly stale_schema: boolean;
101
+ readonly actor: {
104
102
  readonly id: string;
105
- readonly location: string;
106
- readonly provider: string;
107
- readonly public_ip_addresses: readonly string[];
108
- readonly slug: string;
103
+ readonly display_name: string;
104
+ readonly avatar_url: string;
109
105
  };
110
- readonly restore_checklist_completed_at: string | null;
111
106
  readonly restored_from_branch: {
112
- readonly created_at: string;
113
- readonly deleted_at: string;
114
107
  readonly id: string;
115
108
  readonly name: string;
109
+ readonly created_at: string;
116
110
  readonly updated_at: string;
111
+ readonly deleted_at: string;
117
112
  } | null;
118
- readonly safe_migrations: boolean;
119
- readonly schema_last_updated_at: string;
120
- readonly schema_ready?: boolean | undefined;
121
- readonly shard_count?: number | undefined;
122
- readonly sharded?: boolean | undefined;
123
- readonly stale_schema: boolean;
124
- readonly state: "awakening" | "pending" | "ready" | "sleep_in_progress" | "sleeping";
125
- readonly updated_at: string;
113
+ readonly private_edge_connectivity: boolean;
114
+ readonly has_replicas: boolean;
115
+ readonly has_read_only_replicas: boolean;
116
+ readonly html_url: string;
126
117
  readonly url: string;
127
- readonly vtgate_count?: number | undefined;
118
+ readonly region: {
119
+ readonly id: string;
120
+ readonly provider: string;
121
+ readonly enabled: boolean;
122
+ readonly public_ip_addresses: readonly string[];
123
+ readonly display_name: string;
124
+ readonly location: string;
125
+ readonly slug: string;
126
+ readonly current_default: boolean;
127
+ };
128
+ readonly parent_branch: string | null;
128
129
  readonly vtgate_options?: {
129
130
  readonly [x: string]: unknown;
130
131
  } | undefined;
131
- readonly vtgate_size?: string | undefined;
132
132
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
133
133
  //# sourceMappingURL=getBranch.d.ts.map