@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
@@ -54,44 +54,44 @@ export type CreateKeyspaceOutput = typeof CreateKeyspaceOutput.Type;
54
54
  * @param shards - The number of shards. Default: 1
55
55
  */
56
56
  export declare const createKeyspace: import("@distilled.cloud/core/client").OperationMethod<{
57
+ readonly organization: string;
58
+ readonly database: string;
57
59
  readonly branch: string;
60
+ readonly name: string;
58
61
  readonly cluster_size: string;
59
- readonly database: string;
60
62
  readonly extra_replicas?: number | undefined;
61
- readonly name: string;
62
- readonly organization: string;
63
63
  readonly shards?: number | undefined;
64
64
  }, {
65
- readonly cluster_display_name: string;
65
+ readonly id: string;
66
+ readonly name: string;
67
+ readonly shards: number;
68
+ readonly sharded: boolean;
69
+ readonly replicas: number;
70
+ readonly extra_replicas: number;
71
+ readonly created_at: string;
72
+ readonly updated_at: string;
66
73
  readonly cluster_name: string;
74
+ readonly cluster_display_name: string;
75
+ readonly resizing: boolean;
76
+ readonly resize_pending: boolean;
67
77
  readonly config_change_in_progress: boolean;
68
- readonly created_at: string;
78
+ readonly ready: boolean;
79
+ readonly metal: boolean;
69
80
  readonly default: boolean;
70
- readonly extra_replicas: number;
71
- readonly id: string;
72
81
  readonly imported: boolean;
73
- readonly metal: boolean;
74
- readonly mysqld_options: {
75
- readonly [x: string]: unknown;
76
- };
77
- readonly name: string;
82
+ readonly vector_pool_allocation: number | null;
78
83
  readonly node_ttl_strategy: "node_ttl_always" | "node_ttl_follow_maintenance" | "node_ttl_off";
79
- readonly ready: boolean;
80
- readonly replicas: number;
81
84
  readonly replication_durability_constraints: {
82
85
  readonly strategy?: "always" | "available" | "lag" | undefined;
83
86
  };
84
- readonly resize_pending: boolean;
85
- readonly resizing: boolean;
86
- readonly sharded: boolean;
87
- readonly shards: number;
88
- readonly updated_at: string;
89
- readonly vector_pool_allocation: number | null;
90
87
  readonly vreplication_flags: {
91
- readonly allow_no_blob_binlog_row_image: boolean;
92
88
  readonly optimize_inserts: boolean;
89
+ readonly allow_no_blob_binlog_row_image: boolean;
93
90
  readonly vplayer_batching: boolean;
94
91
  };
92
+ readonly mysqld_options: {
93
+ readonly [x: string]: unknown;
94
+ };
95
95
  readonly vttablet_options: {
96
96
  readonly [x: string]: unknown;
97
97
  };
@@ -105,90 +105,90 @@ export type CreateOauthTokenOutput = typeof CreateOauthTokenOutput.Type;
105
105
  * @param refresh_token - The refresh token from the original OAuth token grant. Required when grant_type is refresh_token
106
106
  */
107
107
  export declare const createOauthToken: import("@distilled.cloud/core/client").OperationMethod<{
108
+ readonly organization: string;
109
+ readonly id: string;
108
110
  readonly client_id: string;
109
111
  readonly client_secret: string | import("effect/Redacted").Redacted<string>;
110
- readonly code?: string | undefined;
111
112
  readonly grant_type: "authorization_code" | "refresh_token";
112
- readonly id: string;
113
- readonly organization: string;
113
+ readonly code?: string | undefined;
114
114
  readonly redirect_uri?: string | undefined;
115
115
  readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
116
116
  }, {
117
- readonly actor_display_name: string;
118
- readonly actor_id: string;
119
- readonly actor_type: string;
117
+ readonly id: string;
118
+ readonly name?: string | null | undefined;
119
+ readonly display_name: string;
120
+ readonly token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
121
+ readonly plain_text_refresh_token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
120
122
  readonly avatar_url: string;
121
123
  readonly created_at: string;
122
- readonly display_name: string;
124
+ readonly updated_at: string;
123
125
  readonly expires_at?: string | null | undefined;
124
- readonly id: string;
125
126
  readonly last_used_at?: string | null | undefined;
126
- readonly name?: string | null | undefined;
127
+ readonly actor_id: string;
128
+ readonly actor_display_name: string;
129
+ readonly actor_type: string;
130
+ readonly service_token_accesses?: readonly {
131
+ readonly id: string;
132
+ readonly access: string;
133
+ readonly description: string;
134
+ readonly resource_name: string;
135
+ readonly resource_id: string;
136
+ readonly resource_type: string;
137
+ readonly resource: {
138
+ readonly id: string;
139
+ readonly name: string;
140
+ readonly created_at: string;
141
+ readonly updated_at: string;
142
+ readonly deleted_at: string;
143
+ };
144
+ }[] | undefined;
127
145
  readonly oauth_accesses_by_resource?: {
128
- readonly branch: {
129
- readonly accesses: readonly {
130
- readonly description: string;
146
+ readonly database: {
147
+ readonly databases: readonly {
131
148
  readonly name: string;
132
- }[];
133
- readonly branches: readonly {
134
- readonly database: string;
135
149
  readonly id: string;
136
- readonly name: string;
137
150
  readonly organization: string;
138
151
  readonly url: string;
139
152
  }[];
140
- };
141
- readonly database: {
142
153
  readonly accesses: readonly {
143
- readonly description: string;
144
154
  readonly name: string;
155
+ readonly description: string;
145
156
  }[];
146
- readonly databases: readonly {
147
- readonly id: string;
157
+ };
158
+ readonly organization: {
159
+ readonly organizations: readonly {
148
160
  readonly name: string;
149
- readonly organization: string;
161
+ readonly id: string;
150
162
  readonly url: string;
151
163
  }[];
152
- };
153
- readonly organization: {
154
164
  readonly accesses: readonly {
155
- readonly description: string;
156
165
  readonly name: string;
166
+ readonly description: string;
157
167
  }[];
158
- readonly organizations: readonly {
159
- readonly id: string;
168
+ };
169
+ readonly branch: {
170
+ readonly branches: readonly {
160
171
  readonly name: string;
172
+ readonly id: string;
173
+ readonly database: string;
174
+ readonly organization: string;
161
175
  readonly url: string;
162
176
  }[];
163
- };
164
- readonly user: {
165
177
  readonly accesses: readonly {
166
- readonly description: string;
167
178
  readonly name: string;
179
+ readonly description: string;
168
180
  }[];
181
+ };
182
+ readonly user: {
169
183
  readonly users: readonly {
184
+ readonly name: string;
170
185
  readonly id: string;
186
+ }[];
187
+ readonly accesses: readonly {
171
188
  readonly name: string;
189
+ readonly description: string;
172
190
  }[];
173
191
  };
174
192
  } | undefined;
175
- readonly plain_text_refresh_token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
176
- readonly service_token_accesses?: readonly {
177
- readonly access: string;
178
- readonly description: string;
179
- readonly id: string;
180
- readonly resource: {
181
- readonly created_at: string;
182
- readonly deleted_at: string;
183
- readonly id: string;
184
- readonly name: string;
185
- readonly updated_at: string;
186
- };
187
- readonly resource_id: string;
188
- readonly resource_name: string;
189
- readonly resource_type: string;
190
- }[] | undefined;
191
- readonly token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
192
- readonly updated_at: string;
193
193
  }, Forbidden | NotFound | UnprocessableEntity, import("../credentials.ts").Credentials>;
194
194
  //# sourceMappingURL=createOauthToken.d.ts.map
@@ -57,49 +57,49 @@ export type CreateOrganizationTeamOutput = typeof CreateOrganizationTeamOutput.T
57
57
  * @param description - A description of the team's purpose
58
58
  */
59
59
  export declare const createOrganizationTeam: import("@distilled.cloud/core/client").OperationMethod<{
60
- readonly description?: string | undefined;
61
- readonly name: string;
62
60
  readonly organization: string;
61
+ readonly name: string;
62
+ readonly description?: string | undefined;
63
63
  }, {
64
- readonly created_at: string;
64
+ readonly id: string;
65
+ readonly display_name: string;
65
66
  readonly creator: {
66
- readonly avatar_url: string;
67
- readonly display_name: string;
68
67
  readonly id: string;
68
+ readonly display_name: string;
69
+ readonly avatar_url: string;
69
70
  };
70
- readonly databases: readonly {
71
- readonly branches_url: string;
71
+ readonly members: readonly {
72
72
  readonly id: string;
73
+ readonly display_name: string;
73
74
  readonly name: string;
74
- readonly url: string;
75
- }[];
76
- readonly description: string;
77
- readonly display_name: string;
78
- readonly id: string;
79
- readonly managed: boolean;
80
- readonly members: readonly {
75
+ readonly email: string;
81
76
  readonly avatar_url: string;
82
77
  readonly created_at: string;
78
+ readonly updated_at: string;
79
+ readonly two_factor_auth_configured: boolean;
83
80
  readonly default_organization: {
84
- readonly created_at: string;
85
- readonly deleted_at: string;
86
81
  readonly id: string;
87
82
  readonly name: string;
83
+ readonly created_at: string;
88
84
  readonly updated_at: string;
85
+ readonly deleted_at: string;
89
86
  };
87
+ readonly sso: boolean;
88
+ readonly managed: boolean;
90
89
  readonly directory_managed: boolean;
91
- readonly display_name: string;
92
- readonly email: string;
93
90
  readonly email_verified: boolean;
91
+ }[];
92
+ readonly databases: readonly {
94
93
  readonly id: string;
95
- readonly managed: boolean;
96
94
  readonly name: string;
97
- readonly sso: boolean;
98
- readonly two_factor_auth_configured: boolean;
99
- readonly updated_at: string;
95
+ readonly url: string;
96
+ readonly branches_url: string;
100
97
  }[];
101
98
  readonly name: string;
102
99
  readonly slug: string;
100
+ readonly created_at: string;
103
101
  readonly updated_at: string;
102
+ readonly description: string;
103
+ readonly managed: boolean;
104
104
  }, BadRequest | Forbidden | NotFound | UnprocessableEntity, import("../credentials.ts").Credentials>;
105
105
  //# sourceMappingURL=createOrganizationTeam.d.ts.map
@@ -70,56 +70,56 @@ export type CreatePasswordOutput = typeof CreatePasswordOutput.Type;
70
70
  * @param direct_vtgate - Whether the password connects directly to a VTGate
71
71
  */
72
72
  export declare const createPassword: import("@distilled.cloud/core/client").OperationMethod<{
73
- readonly branch: string;
74
- readonly cidrs?: readonly string[] | undefined;
73
+ readonly organization: string;
75
74
  readonly database: string;
76
- readonly direct_vtgate?: boolean | undefined;
75
+ readonly branch: string;
77
76
  readonly name?: string | undefined;
78
- readonly organization: string;
79
- readonly replica?: boolean | undefined;
80
77
  readonly role?: "admin" | "reader" | "readwriter" | "writer" | undefined;
78
+ readonly replica?: boolean | undefined;
81
79
  readonly ttl?: number | undefined;
80
+ readonly cidrs?: readonly string[] | undefined;
81
+ readonly direct_vtgate?: boolean | undefined;
82
82
  }, {
83
- readonly access_host_regional_url: string;
84
- readonly access_host_regional_urls: readonly string[];
85
- readonly access_host_url: string;
86
- readonly actor: {
87
- readonly avatar_url: string;
88
- readonly display_name: string;
89
- readonly id: string;
90
- };
83
+ readonly id: string;
84
+ readonly name: string;
85
+ readonly role: "admin" | "reader" | "readwriter" | "writer";
91
86
  readonly cidrs: readonly string[] | null;
92
87
  readonly created_at: string;
93
- readonly database_branch: {
94
- readonly id: string;
95
- readonly mysql_edge_address: string;
96
- readonly name: string;
97
- readonly private_edge_connectivity: boolean;
98
- readonly production: boolean;
99
- };
100
88
  readonly deleted_at: string | null;
101
- readonly direct_vtgate: boolean;
102
- readonly direct_vtgate_addresses: readonly string[];
103
- readonly expired: boolean;
104
89
  readonly expires_at: string | null;
105
- readonly id: string;
106
90
  readonly last_used_at: string | null;
107
- readonly name: string;
108
- readonly plain_text: string | import("effect/Redacted").Redacted<string> | null;
109
- readonly region: {
110
- readonly current_default: boolean;
91
+ readonly expired: boolean;
92
+ readonly direct_vtgate: boolean;
93
+ readonly direct_vtgate_addresses: readonly string[];
94
+ readonly ttl_seconds: number | null;
95
+ readonly access_host_url: string;
96
+ readonly access_host_regional_url: string;
97
+ readonly access_host_regional_urls: readonly string[];
98
+ readonly actor: {
99
+ readonly id: string;
111
100
  readonly display_name: string;
112
- readonly enabled: boolean;
101
+ readonly avatar_url: string;
102
+ };
103
+ readonly region: {
113
104
  readonly id: string;
114
- readonly location: string;
115
105
  readonly provider: string;
106
+ readonly enabled: boolean;
116
107
  readonly public_ip_addresses: readonly string[];
108
+ readonly display_name: string;
109
+ readonly location: string;
117
110
  readonly slug: string;
111
+ readonly current_default: boolean;
118
112
  };
119
- readonly renewable: boolean;
120
- readonly replica: boolean;
121
- readonly role: "admin" | "reader" | "readwriter" | "writer";
122
- readonly ttl_seconds: number | null;
123
113
  readonly username: string;
114
+ readonly plain_text: string | import("effect/Redacted").Redacted<string> | null;
115
+ readonly replica: boolean;
116
+ readonly renewable: boolean;
117
+ readonly database_branch: {
118
+ readonly name: string;
119
+ readonly id: string;
120
+ readonly production: boolean;
121
+ readonly mysql_edge_address: string;
122
+ readonly private_edge_connectivity: boolean;
123
+ };
124
124
  }, Forbidden | NotFound | UnprocessableEntity, import("../credentials.ts").Credentials>;
125
125
  //# sourceMappingURL=createPassword.d.ts.map
@@ -28,20 +28,20 @@ export type CreateQueryPatternsReportOutput = typeof CreateQueryPatternsReportOu
28
28
  * @param branch - The name of the branch
29
29
  */
30
30
  export declare const createQueryPatternsReport: import("@distilled.cloud/core/client").OperationMethod<{
31
- readonly branch: string;
32
- readonly database: string;
33
31
  readonly organization: string;
32
+ readonly database: string;
33
+ readonly branch: string;
34
34
  }, {
35
- readonly actor: {
36
- readonly avatar_url: string;
37
- readonly display_name: string;
38
- readonly id: string;
39
- };
40
- readonly created_at: string;
41
- readonly download_url: string;
42
- readonly finished_at: string;
43
35
  readonly id: string;
44
36
  readonly state: "completed" | "failed" | "pending";
37
+ readonly created_at: string;
38
+ readonly finished_at: string;
45
39
  readonly url: string;
40
+ readonly download_url: string;
41
+ readonly actor: {
42
+ readonly id: string;
43
+ readonly display_name: string;
44
+ readonly avatar_url: string;
45
+ };
46
46
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
47
47
  //# sourceMappingURL=createQueryPatternsReport.d.ts.map
@@ -62,49 +62,49 @@ export type CreateRoleOutput = typeof CreateRoleOutput.Type;
62
62
  * @param require_where_on_update - Require WHERE clause on UPDATE statements
63
63
  */
64
64
  export declare const createRole: import("@distilled.cloud/core/client").OperationMethod<{
65
- readonly branch: string;
65
+ readonly organization: string;
66
66
  readonly database: string;
67
- readonly inherited_roles?: readonly ("pg_checkpoint" | "pg_create_subscription" | "pg_maintain" | "pg_monitor" | "pg_read_all_data" | "pg_read_all_settings" | "pg_read_all_stats" | "pg_signal_backend" | "pg_stat_scan_tables" | "pg_use_reserved_connections" | "pg_write_all_data" | "postgres" | "pscale_managed")[] | undefined;
67
+ readonly branch: string;
68
68
  readonly name?: string | undefined;
69
- readonly organization: string;
69
+ readonly ttl?: number | undefined;
70
+ readonly inherited_roles?: readonly ("pg_checkpoint" | "pg_create_subscription" | "pg_maintain" | "pg_monitor" | "pg_read_all_data" | "pg_read_all_settings" | "pg_read_all_stats" | "pg_signal_backend" | "pg_stat_scan_tables" | "pg_use_reserved_connections" | "pg_write_all_data" | "postgres" | "pscale_managed")[] | undefined;
70
71
  readonly require_where_on_delete?: string | undefined;
71
72
  readonly require_where_on_update?: string | undefined;
72
- readonly ttl?: number | undefined;
73
73
  }, {
74
+ readonly id: string;
75
+ readonly name: string;
74
76
  readonly access_host_url: string;
75
- readonly actor: {
76
- readonly avatar_url: string;
77
- readonly display_name: string;
78
- readonly id: string;
79
- };
80
- readonly branch: {
81
- readonly created_at: string;
82
- readonly deleted_at: string | null;
83
- readonly id: string;
84
- readonly name: string;
85
- readonly updated_at: string;
86
- };
87
- readonly created_at: string;
77
+ readonly private_access_host_url: string;
78
+ readonly private_connection_service_name: string;
79
+ readonly username: string;
80
+ readonly password: string | import("effect/Redacted").Redacted<string> | null;
88
81
  readonly database_name: string;
89
- readonly default: boolean;
82
+ readonly created_at: string;
83
+ readonly updated_at: string;
90
84
  readonly deleted_at: string | null;
85
+ readonly expires_at: string | null;
86
+ readonly dropped_at: string | null;
91
87
  readonly disabled_at: string | null;
92
88
  readonly drop_failed: string | null;
93
- readonly dropped_at: string | null;
94
89
  readonly expired: boolean;
95
- readonly expires_at: string | null;
96
- readonly id: string;
90
+ readonly default: boolean;
91
+ readonly ttl: number | null;
97
92
  readonly inherited_roles: readonly ("pg_checkpoint" | "pg_create_subscription" | "pg_maintain" | "pg_monitor" | "pg_read_all_data" | "pg_read_all_settings" | "pg_read_all_stats" | "pg_signal_backend" | "pg_stat_scan_tables" | "pg_use_reserved_connections" | "pg_write_all_data" | "postgres" | "pscale_managed")[];
98
- readonly name: string;
99
- readonly password: string | import("effect/Redacted").Redacted<string> | null;
100
- readonly private_access_host_url: string;
101
- readonly private_connection_service_name: string;
93
+ readonly branch: {
94
+ readonly id: string;
95
+ readonly name: string;
96
+ readonly created_at: string;
97
+ readonly updated_at: string;
98
+ readonly deleted_at: string | null;
99
+ };
100
+ readonly actor: {
101
+ readonly id: string;
102
+ readonly display_name: string;
103
+ readonly avatar_url: string;
104
+ };
102
105
  readonly query_safety_settings: {
103
106
  readonly require_where_on_delete: "off" | "on" | "warn";
104
107
  readonly require_where_on_update: "off" | "on" | "warn";
105
108
  };
106
- readonly ttl: number | null;
107
- readonly updated_at: string;
108
- readonly username: string;
109
109
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
110
110
  //# sourceMappingURL=createRole.d.ts.map
@@ -95,85 +95,85 @@ export type CreateServiceTokenOutput = typeof CreateServiceTokenOutput.Type;
95
95
  * @param ttl - Time to live (in seconds) for the service token. The token will be invalid when TTL has passed
96
96
  */
97
97
  export declare const createServiceToken: import("@distilled.cloud/core/client").OperationMethod<{
98
- readonly name?: string | undefined;
99
98
  readonly organization: string;
99
+ readonly name?: string | undefined;
100
100
  readonly ttl?: number | undefined;
101
101
  }, {
102
- readonly actor_display_name: string;
103
- readonly actor_id: string;
104
- readonly actor_type: string;
102
+ readonly id: string;
103
+ readonly name?: string | null | undefined;
104
+ readonly display_name: string;
105
+ readonly token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
106
+ readonly plain_text_refresh_token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
105
107
  readonly avatar_url: string;
106
108
  readonly created_at: string;
107
- readonly display_name: string;
109
+ readonly updated_at: string;
108
110
  readonly expires_at?: string | null | undefined;
109
- readonly id: string;
110
111
  readonly last_used_at?: string | null | undefined;
111
- readonly name?: string | null | undefined;
112
+ readonly actor_id: string;
113
+ readonly actor_display_name: string;
114
+ readonly actor_type: string;
115
+ readonly service_token_accesses?: readonly {
116
+ readonly id: string;
117
+ readonly access: string;
118
+ readonly description: string;
119
+ readonly resource_name: string;
120
+ readonly resource_id: string;
121
+ readonly resource_type: string;
122
+ readonly resource: {
123
+ readonly id: string;
124
+ readonly name: string;
125
+ readonly created_at: string;
126
+ readonly updated_at: string;
127
+ readonly deleted_at: string;
128
+ };
129
+ }[] | undefined;
112
130
  readonly oauth_accesses_by_resource?: {
113
- readonly branch: {
114
- readonly accesses: readonly {
115
- readonly description: string;
131
+ readonly database: {
132
+ readonly databases: readonly {
116
133
  readonly name: string;
117
- }[];
118
- readonly branches: readonly {
119
- readonly database: string;
120
134
  readonly id: string;
121
- readonly name: string;
122
135
  readonly organization: string;
123
136
  readonly url: string;
124
137
  }[];
125
- };
126
- readonly database: {
127
138
  readonly accesses: readonly {
128
- readonly description: string;
129
139
  readonly name: string;
140
+ readonly description: string;
130
141
  }[];
131
- readonly databases: readonly {
132
- readonly id: string;
142
+ };
143
+ readonly organization: {
144
+ readonly organizations: readonly {
133
145
  readonly name: string;
134
- readonly organization: string;
146
+ readonly id: string;
135
147
  readonly url: string;
136
148
  }[];
137
- };
138
- readonly organization: {
139
149
  readonly accesses: readonly {
140
- readonly description: string;
141
150
  readonly name: string;
151
+ readonly description: string;
142
152
  }[];
143
- readonly organizations: readonly {
144
- readonly id: string;
153
+ };
154
+ readonly branch: {
155
+ readonly branches: readonly {
145
156
  readonly name: string;
157
+ readonly id: string;
158
+ readonly database: string;
159
+ readonly organization: string;
146
160
  readonly url: string;
147
161
  }[];
148
- };
149
- readonly user: {
150
162
  readonly accesses: readonly {
151
- readonly description: string;
152
163
  readonly name: string;
164
+ readonly description: string;
153
165
  }[];
166
+ };
167
+ readonly user: {
154
168
  readonly users: readonly {
169
+ readonly name: string;
155
170
  readonly id: string;
171
+ }[];
172
+ readonly accesses: readonly {
156
173
  readonly name: string;
174
+ readonly description: string;
157
175
  }[];
158
176
  };
159
177
  } | undefined;
160
- readonly plain_text_refresh_token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
161
- readonly service_token_accesses?: readonly {
162
- readonly access: string;
163
- readonly description: string;
164
- readonly id: string;
165
- readonly resource: {
166
- readonly created_at: string;
167
- readonly deleted_at: string;
168
- readonly id: string;
169
- readonly name: string;
170
- readonly updated_at: string;
171
- };
172
- readonly resource_id: string;
173
- readonly resource_name: string;
174
- readonly resource_type: string;
175
- }[] | undefined;
176
- readonly token?: string | import("effect/Redacted").Redacted<string> | null | undefined;
177
- readonly updated_at: string;
178
178
  }, Forbidden | NotFound, import("../credentials.ts").Credentials>;
179
179
  //# sourceMappingURL=createServiceToken.d.ts.map