@distilled.cloud/turso 0.19.2 → 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 (51) 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/addLocationToGroup.d.ts +5 -5
  6. package/lib/operations/addOrganizationMember.d.ts +1 -1
  7. package/lib/operations/createAPIToken.d.ts +2 -2
  8. package/lib/operations/createDatabase.d.ts +7 -7
  9. package/lib/operations/createDatabaseToken.d.ts +2 -2
  10. package/lib/operations/createGroup.d.ts +7 -7
  11. package/lib/operations/createGroupToken.d.ts +3 -3
  12. package/lib/operations/deleteDatabase.d.ts +1 -1
  13. package/lib/operations/deleteGroup.d.ts +5 -5
  14. package/lib/operations/deleteOrganizationInviteByEmail.d.ts +1 -1
  15. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +1 -1
  16. package/lib/operations/getCurrentUser.d.ts +5 -5
  17. package/lib/operations/getDatabase.d.ts +6 -6
  18. package/lib/operations/getDatabaseConfiguration.d.ts +2 -2
  19. package/lib/operations/getDatabaseInstance.d.ts +4 -4
  20. package/lib/operations/getDatabaseStats.d.ts +1 -1
  21. package/lib/operations/getDatabaseUsage.d.ts +5 -5
  22. package/lib/operations/getGroup.d.ts +5 -5
  23. package/lib/operations/getGroupConfiguration.d.ts +1 -1
  24. package/lib/operations/getOrganization.d.ts +4 -4
  25. package/lib/operations/getOrganizationMember.d.ts +2 -2
  26. package/lib/operations/getOrganizationUsage.d.ts +14 -14
  27. package/lib/operations/invalidateDatabaseTokens.d.ts +1 -1
  28. package/lib/operations/invalidateGroupTokens.d.ts +1 -1
  29. package/lib/operations/inviteOrganizationMember.d.ts +11 -11
  30. package/lib/operations/inviteOrganizationMemberV2.d.ts +2 -2
  31. package/lib/operations/listAPITokens.d.ts +1 -1
  32. package/lib/operations/listDatabaseInstances.d.ts +4 -4
  33. package/lib/operations/listDatabases.d.ts +7 -7
  34. package/lib/operations/listGroups.d.ts +4 -4
  35. package/lib/operations/listOrganizationAuditLogs.d.ts +4 -4
  36. package/lib/operations/listOrganizationInvites.d.ts +10 -10
  37. package/lib/operations/listOrganizationInvitesV2.d.ts +2 -2
  38. package/lib/operations/listOrganizationInvoices.d.ts +2 -2
  39. package/lib/operations/listOrganizationMembers.d.ts +2 -2
  40. package/lib/operations/listOrganizationPlans.d.ts +5 -5
  41. package/lib/operations/listOrganizations.d.ts +4 -4
  42. package/lib/operations/removeLocationFromGroup.d.ts +5 -5
  43. package/lib/operations/transferGroup.d.ts +5 -5
  44. package/lib/operations/unarchiveGroup.d.ts +5 -5
  45. package/lib/operations/updateDatabaseConfiguration.d.ts +4 -4
  46. package/lib/operations/updateGroupConfiguration.d.ts +2 -2
  47. package/lib/operations/updateGroupDatabases.d.ts +1 -1
  48. package/lib/operations/updateMemberRole.d.ts +2 -2
  49. package/lib/operations/updateOrganization.d.ts +4 -4
  50. package/package.json +3 -3
  51. package/src/credentials.ts +2 -2
@@ -1,7 +1,7 @@
1
+ import { ConfigError } from "@distilled.cloud/core/errors";
1
2
  import * as Context from "effect/Context";
2
3
  import * as Layer from "effect/Layer";
3
4
  import * as Redacted from "effect/Redacted";
4
- import { ConfigError } from "@distilled.cloud/core/errors";
5
5
  export declare const DEFAULT_API_BASE_URL = "https://api.turso.tech";
6
6
  export interface Config {
7
7
  readonly apiKey: Redacted.Redacted<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAE7D,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAMJ,eAAO,MAAM,kBAAkB,8CAc9B,CAAC"}
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAE7D,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAMJ,eAAO,MAAM,kBAAkB,8CAc9B,CAAC"}
@@ -1,16 +1,16 @@
1
+ import { ConfigError } from "@distilled.cloud/core/errors";
1
2
  import * as EffectConfig from "effect/Config";
2
3
  import * as Context from "effect/Context";
3
4
  import * as Effect from "effect/Effect";
4
5
  import * as Layer from "effect/Layer";
5
6
  import * as Redacted from "effect/Redacted";
6
- import { ConfigError } from "@distilled.cloud/core/errors";
7
7
  export const DEFAULT_API_BASE_URL = "https://api.turso.tech";
8
8
  export class Credentials extends Context.Service()("TursoCredentials") {
9
9
  }
10
10
  const envConfig = EffectConfig.all({
11
11
  apiKey: EffectConfig.string("TURSO_API_KEY"),
12
12
  });
13
- export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.asEffect().pipe(Effect.mapError(() => new ConfigError({
13
+ export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.pipe(Effect.mapError(() => new ConfigError({
14
14
  message: "TURSO_API_KEY environment variable is required",
15
15
  })), Effect.map(({ apiKey }) => ({
16
16
  apiKey: Redacted.make(apiKey),
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAO7D,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,kBAAkB,CACnB;CAAG;AAEJ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,SAAS,CAAC,QAAQ,EAAE,CAAC,IAAI,CACvB,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;IACd,OAAO,EAAE,gDAAgD;CAC1D,CAAC,CACL,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,oBAAoB;CACjC,CAAC,CAAC,CACJ,CACF,CAAC"}
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAO7D,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,kBAAkB,CACnB;CAAG;AAEJ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,SAAS,CAAC,IAAI,CACZ,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;IACd,OAAO,EAAE,gDAAgD;CAC1D,CAAC,CACL,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,oBAAoB;CACjC,CAAC,CAAC,CACJ,CACF,CAAC"}
@@ -27,17 +27,17 @@ export type AddLocationToGroupOutput = typeof AddLocationToGroupOutput.Type;
27
27
  * @param location - The location code to add to the group.
28
28
  */
29
29
  export declare const addLocationToGroup: import("@distilled.cloud/core/client").OperationMethod<{
30
+ readonly organizationSlug: string;
30
31
  readonly groupName: string;
31
32
  readonly location: string;
32
- readonly organizationSlug: string;
33
33
  }, {
34
34
  readonly group?: {
35
- readonly delete_protection?: boolean | undefined;
36
- readonly locations?: readonly string[] | undefined;
37
35
  readonly name?: string | undefined;
38
- readonly primary?: string | undefined;
39
- readonly uuid?: string | undefined;
40
36
  readonly version?: string | undefined;
37
+ readonly uuid?: string | undefined;
38
+ readonly locations?: readonly string[] | undefined;
39
+ readonly primary?: string | undefined;
40
+ readonly delete_protection?: boolean | undefined;
41
41
  } | undefined;
42
42
  }, BadRequest | NotFound, import("../credentials.ts").Credentials>;
43
43
  //# sourceMappingURL=addLocationToGroup.d.ts.map
@@ -20,8 +20,8 @@ export type AddOrganizationMemberOutput = typeof AddOrganizationMemberOutput.Typ
20
20
  */
21
21
  export declare const addOrganizationMember: import("@distilled.cloud/core/client").OperationMethod<{
22
22
  readonly organizationSlug: string;
23
- readonly role?: "admin" | "member" | "viewer" | undefined;
24
23
  readonly username?: string | undefined;
24
+ readonly role?: "admin" | "member" | "viewer" | undefined;
25
25
  }, {
26
26
  readonly member?: string | undefined;
27
27
  readonly role?: "admin" | "member" | "owner" | "viewer" | undefined;
@@ -18,11 +18,11 @@ export type CreateAPITokenOutput = typeof CreateAPITokenOutput.Type;
18
18
  * @param tokenName - The name of the api token.
19
19
  */
20
20
  export declare const createAPIToken: import("@distilled.cloud/core/client").OperationMethod<{
21
- readonly organization?: string | undefined;
22
21
  readonly tokenName: string;
22
+ readonly organization?: string | undefined;
23
23
  }, {
24
- readonly id?: string | undefined;
25
24
  readonly name?: string | undefined;
25
+ readonly id?: string | undefined;
26
26
  readonly token?: string | undefined;
27
27
  }, never, import("../credentials.ts").Credentials>;
28
28
  //# sourceMappingURL=createAPIToken.d.ts.map
@@ -32,19 +32,19 @@ export type CreateDatabaseOutput = typeof CreateDatabaseOutput.Type;
32
32
  * @param organizationSlug - The slug of the organization or user account.
33
33
  */
34
34
  export declare const createDatabase: import("@distilled.cloud/core/client").OperationMethod<{
35
- readonly group: string;
36
- readonly name: string;
37
35
  readonly organizationSlug: string;
38
- readonly remote_encryption?: {
39
- readonly encryption_cipher?: "aegis128l" | "aegis128x2" | "aegis128x4" | "aegis256" | "aegis256x2" | "aegis256x4" | "aes128gcm" | "aes256gcm" | "chacha20poly1305" | undefined;
40
- readonly encryption_key?: string | undefined;
41
- } | undefined;
36
+ readonly name: string;
37
+ readonly group: string;
42
38
  readonly seed?: {
39
+ readonly type?: "database" | "database_upload" | undefined;
43
40
  readonly name?: string | undefined;
44
41
  readonly timestamp?: string | undefined;
45
- readonly type?: "database" | "database_upload" | undefined;
46
42
  } | undefined;
47
43
  readonly size_limit?: string | undefined;
44
+ readonly remote_encryption?: {
45
+ readonly encryption_key?: string | undefined;
46
+ readonly encryption_cipher?: "aegis128l" | "aegis128x2" | "aegis128x4" | "aegis256" | "aegis256x2" | "aegis256x4" | "aes128gcm" | "aes256gcm" | "chacha20poly1305" | undefined;
47
+ } | undefined;
48
48
  }, {
49
49
  readonly database?: {
50
50
  readonly DbId?: string | undefined;
@@ -27,10 +27,10 @@ export type CreateDatabaseTokenOutput = typeof CreateDatabaseTokenOutput.Type;
27
27
  * @param authorization - Authorization level for the token (full-access or read-only).
28
28
  */
29
29
  export declare const createDatabaseToken: import("@distilled.cloud/core/client").OperationMethod<{
30
- readonly authorization?: "full-access" | "read-only" | undefined;
30
+ readonly organizationSlug: string;
31
31
  readonly databaseName: string;
32
32
  readonly expiration?: string | undefined;
33
- readonly organizationSlug: string;
33
+ readonly authorization?: "full-access" | "read-only" | undefined;
34
34
  readonly permissions?: {
35
35
  readonly read_attach?: {
36
36
  readonly databases?: readonly string[] | undefined;
@@ -26,18 +26,18 @@ export type CreateGroupOutput = typeof CreateGroupOutput.Type;
26
26
  * @param organizationSlug - The slug of the organization or user account.
27
27
  */
28
28
  export declare const createGroup: import("@distilled.cloud/core/client").OperationMethod<{
29
- readonly extensions?: unknown;
30
- readonly location: string;
31
- readonly name: string;
32
29
  readonly organizationSlug: string;
30
+ readonly name: string;
31
+ readonly location: string;
32
+ readonly extensions?: unknown;
33
33
  }, {
34
34
  readonly group?: {
35
- readonly delete_protection?: boolean | undefined;
36
- readonly locations?: readonly string[] | undefined;
37
35
  readonly name?: string | undefined;
38
- readonly primary?: string | undefined;
39
- readonly uuid?: string | undefined;
40
36
  readonly version?: string | undefined;
37
+ readonly uuid?: string | undefined;
38
+ readonly locations?: readonly string[] | undefined;
39
+ readonly primary?: string | undefined;
40
+ readonly delete_protection?: boolean | undefined;
41
41
  } | undefined;
42
42
  }, BadRequest | Conflict, import("../credentials.ts").Credentials>;
43
43
  //# sourceMappingURL=createGroup.d.ts.map
@@ -27,10 +27,10 @@ export type CreateGroupTokenOutput = typeof CreateGroupTokenOutput.Type;
27
27
  * @param authorization - Authorization level for the token (full-access or read-only).
28
28
  */
29
29
  export declare const createGroupToken: import("@distilled.cloud/core/client").OperationMethod<{
30
- readonly authorization?: "full-access" | "read-only" | undefined;
31
- readonly expiration?: string | undefined;
32
- readonly groupName: string;
33
30
  readonly organizationSlug: string;
31
+ readonly groupName: string;
32
+ readonly expiration?: string | undefined;
33
+ readonly authorization?: "full-access" | "read-only" | undefined;
34
34
  readonly permissions?: {
35
35
  readonly read_attach?: {
36
36
  readonly databases?: readonly string[] | undefined;
@@ -18,8 +18,8 @@ export type DeleteDatabaseOutput = typeof DeleteDatabaseOutput.Type;
18
18
  * @param databaseName - The name of the database.
19
19
  */
20
20
  export declare const deleteDatabase: import("@distilled.cloud/core/client").OperationMethod<{
21
- readonly databaseName: string;
22
21
  readonly organizationSlug: string;
22
+ readonly databaseName: string;
23
23
  }, {
24
24
  readonly database?: string | undefined;
25
25
  }, NotFound, import("../credentials.ts").Credentials>;
@@ -25,16 +25,16 @@ export type DeleteGroupOutput = typeof DeleteGroupOutput.Type;
25
25
  * @param groupName - The name of the group.
26
26
  */
27
27
  export declare const deleteGroup: import("@distilled.cloud/core/client").OperationMethod<{
28
- readonly groupName: string;
29
28
  readonly organizationSlug: string;
29
+ readonly groupName: string;
30
30
  }, {
31
31
  readonly group?: {
32
- readonly delete_protection?: boolean | undefined;
33
- readonly locations?: readonly string[] | undefined;
34
32
  readonly name?: string | undefined;
35
- readonly primary?: string | undefined;
36
- readonly uuid?: string | undefined;
37
33
  readonly version?: string | undefined;
34
+ readonly uuid?: string | undefined;
35
+ readonly locations?: readonly string[] | undefined;
36
+ readonly primary?: string | undefined;
37
+ readonly delete_protection?: boolean | undefined;
38
38
  } | undefined;
39
39
  }, NotFound, import("../credentials.ts").Credentials>;
40
40
  //# sourceMappingURL=deleteGroup.d.ts.map
@@ -15,7 +15,7 @@ export type DeleteOrganizationInviteByEmailOutput = typeof DeleteOrganizationInv
15
15
  * @param organizationSlug - The slug of the organization or user account.
16
16
  */
17
17
  export declare const deleteOrganizationInviteByEmail: import("@distilled.cloud/core/client").OperationMethod<{
18
- readonly email: string;
19
18
  readonly organizationSlug: string;
19
+ readonly email: string;
20
20
  }, void, NotFound, import("../credentials.ts").Credentials>;
21
21
  //# sourceMappingURL=deleteOrganizationInviteByEmail.d.ts.map
@@ -15,7 +15,7 @@ export type DeleteOrganizationInviteByEmailV2Output = typeof DeleteOrganizationI
15
15
  * @param organizationSlug - The slug of the organization or user account.
16
16
  */
17
17
  export declare const deleteOrganizationInviteByEmailV2: import("@distilled.cloud/core/client").OperationMethod<{
18
- readonly email: string;
19
18
  readonly organizationSlug: string;
19
+ readonly email: string;
20
20
  }, void, NotFound, import("../credentials.ts").Credentials>;
21
21
  //# sourceMappingURL=deleteOrganizationInviteByEmailV2.d.ts.map
@@ -20,13 +20,13 @@ export type GetCurrentUserOutput = typeof GetCurrentUserOutput.Type;
20
20
  */
21
21
  export declare const getCurrentUser: import("@distilled.cloud/core/client").OperationMethod<{}, {
22
22
  readonly user?: {
23
- readonly avatarUrl?: string | undefined;
24
- readonly email?: string | undefined;
25
- readonly has_pending_invites?: boolean | undefined;
26
- readonly mfa?: boolean | undefined;
23
+ readonly username?: string | undefined;
27
24
  readonly name?: string | undefined;
25
+ readonly email?: string | undefined;
26
+ readonly avatarUrl?: string | undefined;
28
27
  readonly plan?: string | undefined;
29
- readonly username?: string | undefined;
28
+ readonly mfa?: boolean | undefined;
29
+ readonly has_pending_invites?: boolean | undefined;
30
30
  } | undefined;
31
31
  }, never, import("../credentials.ts").Credentials>;
32
32
  //# sourceMappingURL=getCurrentUser.d.ts.map
@@ -33,24 +33,24 @@ export type GetDatabaseOutput = typeof GetDatabaseOutput.Type;
33
33
  * @param databaseName - The name of the database.
34
34
  */
35
35
  export declare const getDatabase: import("@distilled.cloud/core/client").OperationMethod<{
36
- readonly databaseName: string;
37
36
  readonly organizationSlug: string;
37
+ readonly databaseName: string;
38
38
  }, {
39
39
  readonly database?: {
40
+ readonly Name?: string | undefined;
40
41
  readonly DbId?: string | undefined;
41
42
  readonly Hostname?: string | undefined;
42
- readonly Name?: string | undefined;
43
43
  readonly block_reads?: boolean | undefined;
44
44
  readonly block_writes?: boolean | undefined;
45
- readonly delete_protection?: boolean | undefined;
45
+ readonly regions?: readonly string[] | undefined;
46
+ readonly primaryRegion?: string | undefined;
46
47
  readonly group?: string | undefined;
48
+ readonly delete_protection?: boolean | undefined;
47
49
  readonly parent?: {
48
- readonly branched_at?: string | undefined;
49
50
  readonly id?: string | undefined;
50
51
  readonly name?: string | undefined;
52
+ readonly branched_at?: string | undefined;
51
53
  } | null | undefined;
52
- readonly primaryRegion?: string | undefined;
53
- readonly regions?: readonly string[] | undefined;
54
54
  } | undefined;
55
55
  }, NotFound, import("../credentials.ts").Credentials>;
56
56
  //# sourceMappingURL=getDatabase.d.ts.map
@@ -22,13 +22,13 @@ export type GetDatabaseConfigurationOutput = typeof GetDatabaseConfigurationOutp
22
22
  * @param databaseName - The name of the database.
23
23
  */
24
24
  export declare const getDatabaseConfiguration: import("@distilled.cloud/core/client").OperationMethod<{
25
- readonly databaseName: string;
26
25
  readonly organizationSlug: string;
26
+ readonly databaseName: string;
27
27
  }, {
28
+ readonly size_limit?: string | undefined;
28
29
  readonly allow_attach?: boolean | undefined;
29
30
  readonly block_reads?: boolean | undefined;
30
31
  readonly block_writes?: boolean | undefined;
31
32
  readonly delete_protection?: boolean | undefined;
32
- readonly size_limit?: string | undefined;
33
33
  }, NotFound, import("../credentials.ts").Credentials>;
34
34
  //# sourceMappingURL=getDatabaseConfiguration.d.ts.map
@@ -26,16 +26,16 @@ export type GetDatabaseInstanceOutput = typeof GetDatabaseInstanceOutput.Type;
26
26
  * @param instanceName - The name of the instance (location code).
27
27
  */
28
28
  export declare const getDatabaseInstance: import("@distilled.cloud/core/client").OperationMethod<{
29
+ readonly organizationSlug: string;
29
30
  readonly databaseName: string;
30
31
  readonly instanceName: string;
31
- readonly organizationSlug: string;
32
32
  }, {
33
33
  readonly instance?: {
34
- readonly hostname?: string | undefined;
34
+ readonly uuid?: string | undefined;
35
35
  readonly name?: string | undefined;
36
- readonly region?: string | undefined;
37
36
  readonly type?: "primary" | "replica" | undefined;
38
- readonly uuid?: string | undefined;
37
+ readonly region?: string | undefined;
38
+ readonly hostname?: string | undefined;
39
39
  } | undefined;
40
40
  }, NotFound, import("../credentials.ts").Credentials>;
41
41
  //# sourceMappingURL=getDatabaseInstance.d.ts.map
@@ -22,8 +22,8 @@ export type GetDatabaseStatsOutput = typeof GetDatabaseStatsOutput.Type;
22
22
  * @param databaseName - The name of the database.
23
23
  */
24
24
  export declare const getDatabaseStats: import("@distilled.cloud/core/client").OperationMethod<{
25
- readonly databaseName: string;
26
25
  readonly organizationSlug: string;
26
+ readonly databaseName: string;
27
27
  }, {
28
28
  readonly top_queries?: readonly {
29
29
  readonly query?: string | undefined;
@@ -39,28 +39,28 @@ export type GetDatabaseUsageOutput = typeof GetDatabaseUsageOutput.Type;
39
39
  * @param to - The datetime to retrieve usage **to** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar month if not provided. Example: `2023-02-01T00:00:00Z`
40
40
  */
41
41
  export declare const getDatabaseUsage: import("@distilled.cloud/core/client").OperationMethod<{
42
+ readonly organizationSlug: string;
42
43
  readonly databaseName: string;
43
44
  readonly from?: string | undefined;
44
- readonly organizationSlug: string;
45
45
  readonly to?: string | undefined;
46
46
  }, {
47
47
  readonly database?: {
48
+ readonly uuid?: string | undefined;
48
49
  readonly instances?: readonly {
50
+ readonly uuid?: string | undefined;
49
51
  readonly usage?: {
50
- readonly bytes_synced?: number | undefined;
51
52
  readonly rows_read?: number | undefined;
52
53
  readonly rows_written?: number | undefined;
53
54
  readonly storage_bytes?: number | undefined;
55
+ readonly bytes_synced?: number | undefined;
54
56
  } | undefined;
55
- readonly uuid?: string | undefined;
56
57
  }[] | undefined;
57
58
  readonly total?: {
58
- readonly bytes_synced?: number | undefined;
59
59
  readonly rows_read?: number | undefined;
60
60
  readonly rows_written?: number | undefined;
61
61
  readonly storage_bytes?: number | undefined;
62
+ readonly bytes_synced?: number | undefined;
62
63
  } | undefined;
63
- readonly uuid?: string | undefined;
64
64
  } | undefined;
65
65
  }, BadRequest | NotFound, import("../credentials.ts").Credentials>;
66
66
  //# sourceMappingURL=getDatabaseUsage.d.ts.map
@@ -25,16 +25,16 @@ export type GetGroupOutput = typeof GetGroupOutput.Type;
25
25
  * @param groupName - The name of the group.
26
26
  */
27
27
  export declare const getGroup: import("@distilled.cloud/core/client").OperationMethod<{
28
- readonly groupName: string;
29
28
  readonly organizationSlug: string;
29
+ readonly groupName: string;
30
30
  }, {
31
31
  readonly group?: {
32
- readonly delete_protection?: boolean | undefined;
33
- readonly locations?: readonly string[] | undefined;
34
32
  readonly name?: string | undefined;
35
- readonly primary?: string | undefined;
36
- readonly uuid?: string | undefined;
37
33
  readonly version?: string | undefined;
34
+ readonly uuid?: string | undefined;
35
+ readonly locations?: readonly string[] | undefined;
36
+ readonly primary?: string | undefined;
37
+ readonly delete_protection?: boolean | undefined;
38
38
  } | undefined;
39
39
  }, NotFound, import("../credentials.ts").Credentials>;
40
40
  //# sourceMappingURL=getGroup.d.ts.map
@@ -18,8 +18,8 @@ export type GetGroupConfigurationOutput = typeof GetGroupConfigurationOutput.Typ
18
18
  * @param groupName - The name of the group.
19
19
  */
20
20
  export declare const getGroupConfiguration: import("@distilled.cloud/core/client").OperationMethod<{
21
- readonly groupName: string;
22
21
  readonly organizationSlug: string;
22
+ readonly groupName: string;
23
23
  }, {
24
24
  readonly delete_protection?: boolean | undefined;
25
25
  }, NotFound, import("../credentials.ts").Credentials>;
@@ -29,15 +29,15 @@ export declare const getOrganization: import("@distilled.cloud/core/client").Ope
29
29
  readonly organizationSlug: string;
30
30
  }, {
31
31
  readonly organization?: {
32
- readonly blocked_reads?: boolean | undefined;
33
- readonly blocked_writes?: boolean | undefined;
34
32
  readonly name?: string | undefined;
33
+ readonly slug?: string | undefined;
34
+ readonly type?: "personal" | "team" | undefined;
35
35
  readonly overages?: boolean | undefined;
36
+ readonly blocked_reads?: boolean | undefined;
37
+ readonly blocked_writes?: boolean | undefined;
36
38
  readonly plan_id?: string | undefined;
37
39
  readonly plan_timeline?: string | undefined;
38
40
  readonly platform?: string | undefined;
39
- readonly slug?: string | undefined;
40
- readonly type?: "personal" | "team" | undefined;
41
41
  } | undefined;
42
42
  }, NotFound, import("../credentials.ts").Credentials>;
43
43
  //# sourceMappingURL=getOrganization.d.ts.map
@@ -26,9 +26,9 @@ export declare const getOrganizationMember: import("@distilled.cloud/core/client
26
26
  readonly username: string;
27
27
  }, {
28
28
  readonly member?: {
29
- readonly email?: string | undefined;
30
- readonly role?: "admin" | "member" | "owner" | "viewer" | undefined;
31
29
  readonly username?: string | undefined;
30
+ readonly role?: "admin" | "member" | "owner" | "viewer" | undefined;
31
+ readonly email?: string | undefined;
32
32
  } | undefined;
33
33
  }, NotFound, import("../credentials.ts").Credentials>;
34
34
  //# sourceMappingURL=getOrganizationMember.d.ts.map
@@ -47,34 +47,34 @@ export declare const getOrganizationUsage: import("@distilled.cloud/core/client"
47
47
  readonly organizationSlug: string;
48
48
  }, {
49
49
  readonly organization?: {
50
+ readonly uuid?: string | undefined;
51
+ readonly usage?: {
52
+ readonly rows_read?: number | undefined;
53
+ readonly rows_written?: number | undefined;
54
+ readonly databases?: number | undefined;
55
+ readonly locations?: number | undefined;
56
+ readonly storage_bytes?: number | undefined;
57
+ readonly groups?: number | undefined;
58
+ readonly bytes_synced?: number | undefined;
59
+ } | undefined;
50
60
  readonly databases?: readonly {
61
+ readonly uuid?: string | undefined;
51
62
  readonly instances?: readonly {
63
+ readonly uuid?: string | undefined;
52
64
  readonly usage?: {
53
- readonly bytes_synced?: number | undefined;
54
65
  readonly rows_read?: number | undefined;
55
66
  readonly rows_written?: number | undefined;
56
67
  readonly storage_bytes?: number | undefined;
68
+ readonly bytes_synced?: number | undefined;
57
69
  } | undefined;
58
- readonly uuid?: string | undefined;
59
70
  }[] | undefined;
60
71
  readonly total?: {
61
- readonly bytes_synced?: number | undefined;
62
72
  readonly rows_read?: number | undefined;
63
73
  readonly rows_written?: number | undefined;
64
74
  readonly storage_bytes?: number | undefined;
75
+ readonly bytes_synced?: number | undefined;
65
76
  } | undefined;
66
- readonly uuid?: string | undefined;
67
77
  }[] | undefined;
68
- readonly usage?: {
69
- readonly bytes_synced?: number | undefined;
70
- readonly databases?: number | undefined;
71
- readonly groups?: number | undefined;
72
- readonly locations?: number | undefined;
73
- readonly rows_read?: number | undefined;
74
- readonly rows_written?: number | undefined;
75
- readonly storage_bytes?: number | undefined;
76
- } | undefined;
77
- readonly uuid?: string | undefined;
78
78
  } | undefined;
79
79
  }, never, import("../credentials.ts").Credentials>;
80
80
  //# sourceMappingURL=getOrganizationUsage.d.ts.map
@@ -16,7 +16,7 @@ export type InvalidateDatabaseTokensOutput = typeof InvalidateDatabaseTokensOutp
16
16
  * @param databaseName - The name of the database.
17
17
  */
18
18
  export declare const invalidateDatabaseTokens: import("@distilled.cloud/core/client").OperationMethod<{
19
- readonly databaseName: string;
20
19
  readonly organizationSlug: string;
20
+ readonly databaseName: string;
21
21
  }, void, NotFound, import("../credentials.ts").Credentials>;
22
22
  //# sourceMappingURL=invalidateDatabaseTokens.d.ts.map
@@ -16,7 +16,7 @@ export type InvalidateGroupTokensOutput = typeof InvalidateGroupTokensOutput.Typ
16
16
  * @param groupName - The name of the group.
17
17
  */
18
18
  export declare const invalidateGroupTokens: import("@distilled.cloud/core/client").OperationMethod<{
19
- readonly groupName: string;
20
19
  readonly organizationSlug: string;
20
+ readonly groupName: string;
21
21
  }, void, NotFound, import("../credentials.ts").Credentials>;
22
22
  //# sourceMappingURL=invalidateGroupTokens.d.ts.map
@@ -39,31 +39,31 @@ export type InviteOrganizationMemberOutput = typeof InviteOrganizationMemberOutp
39
39
  * @param organizationSlug - The slug of the organization or user account.
40
40
  */
41
41
  export declare const inviteOrganizationMember: import("@distilled.cloud/core/client").OperationMethod<{
42
- readonly email: string;
43
42
  readonly organizationSlug: string;
43
+ readonly email: string;
44
44
  readonly role?: "admin" | "member" | "viewer" | undefined;
45
45
  }, {
46
46
  readonly invited?: {
47
- readonly Accepted?: boolean | undefined;
47
+ readonly ID?: number | undefined;
48
48
  readonly CreatedAt?: string | undefined;
49
+ readonly UpdatedAt?: string | undefined;
49
50
  readonly DeletedAt?: string | undefined;
51
+ readonly Role?: "admin" | "member" | "viewer" | undefined;
50
52
  readonly Email?: string | undefined;
51
- readonly ID?: number | undefined;
53
+ readonly OrganizationID?: number | undefined;
54
+ readonly Token?: string | undefined;
52
55
  readonly Organization?: {
53
- readonly blocked_reads?: boolean | undefined;
54
- readonly blocked_writes?: boolean | undefined;
55
56
  readonly name?: string | undefined;
57
+ readonly slug?: string | undefined;
58
+ readonly type?: "personal" | "team" | undefined;
56
59
  readonly overages?: boolean | undefined;
60
+ readonly blocked_reads?: boolean | undefined;
61
+ readonly blocked_writes?: boolean | undefined;
57
62
  readonly plan_id?: string | undefined;
58
63
  readonly plan_timeline?: string | undefined;
59
64
  readonly platform?: string | undefined;
60
- readonly slug?: string | undefined;
61
- readonly type?: "personal" | "team" | undefined;
62
65
  } | undefined;
63
- readonly OrganizationID?: number | undefined;
64
- readonly Role?: "admin" | "member" | "viewer" | undefined;
65
- readonly Token?: string | undefined;
66
- readonly UpdatedAt?: string | undefined;
66
+ readonly Accepted?: boolean | undefined;
67
67
  } | undefined;
68
68
  }, BadRequest, import("../credentials.ts").Credentials>;
69
69
  //# sourceMappingURL=inviteOrganizationMember.d.ts.map
@@ -22,14 +22,14 @@ export type InviteOrganizationMemberV2Output = typeof InviteOrganizationMemberV2
22
22
  * @param organizationSlug - The slug of the organization or user account.
23
23
  */
24
24
  export declare const inviteOrganizationMemberV2: import("@distilled.cloud/core/client").OperationMethod<{
25
- readonly email: string;
26
25
  readonly organizationSlug: string;
26
+ readonly email: string;
27
27
  readonly role?: "admin" | "member" | "viewer" | undefined;
28
28
  }, {
29
29
  readonly invited?: {
30
30
  readonly email?: string | undefined;
31
- readonly organization?: string | undefined;
32
31
  readonly role?: "admin" | "member" | "viewer" | undefined;
32
+ readonly organization?: string | undefined;
33
33
  readonly token?: string | undefined;
34
34
  } | undefined;
35
35
  }, never, import("../credentials.ts").Credentials>;
@@ -16,8 +16,8 @@ export type ListAPITokensOutput = typeof ListAPITokensOutput.Type;
16
16
  */
17
17
  export declare const listAPITokens: import("@distilled.cloud/core/client").OperationMethod<{}, {
18
18
  readonly tokens?: readonly {
19
- readonly id?: string | undefined;
20
19
  readonly name?: string | undefined;
20
+ readonly id?: string | undefined;
21
21
  readonly organization?: string | undefined;
22
22
  }[] | undefined;
23
23
  }, never, import("../credentials.ts").Credentials>;
@@ -24,15 +24,15 @@ export type ListDatabaseInstancesOutput = typeof ListDatabaseInstancesOutput.Typ
24
24
  * @param databaseName - The name of the database.
25
25
  */
26
26
  export declare const listDatabaseInstances: import("@distilled.cloud/core/client").OperationMethod<{
27
- readonly databaseName: string;
28
27
  readonly organizationSlug: string;
28
+ readonly databaseName: string;
29
29
  }, {
30
30
  readonly instances?: readonly {
31
- readonly hostname?: string | undefined;
31
+ readonly uuid?: string | undefined;
32
32
  readonly name?: string | undefined;
33
- readonly region?: string | undefined;
34
33
  readonly type?: "primary" | "replica" | undefined;
35
- readonly uuid?: string | undefined;
34
+ readonly region?: string | undefined;
35
+ readonly hostname?: string | undefined;
36
36
  }[] | undefined;
37
37
  }, NotFound, import("../credentials.ts").Credentials>;
38
38
  //# sourceMappingURL=listDatabaseInstances.d.ts.map
@@ -36,26 +36,26 @@ export type ListDatabasesOutput = typeof ListDatabasesOutput.Type;
36
36
  * @param parent - Filter database branches by using their parent database ID.
37
37
  */
38
38
  export declare const listDatabases: import("@distilled.cloud/core/client").OperationMethod<{
39
- readonly group?: string | undefined;
40
39
  readonly organizationSlug: string;
41
- readonly parent?: string | undefined;
40
+ readonly group?: string | undefined;
42
41
  readonly schema?: string | undefined;
42
+ readonly parent?: string | undefined;
43
43
  }, {
44
44
  readonly databases?: readonly {
45
+ readonly Name?: string | undefined;
45
46
  readonly DbId?: string | undefined;
46
47
  readonly Hostname?: string | undefined;
47
- readonly Name?: string | undefined;
48
48
  readonly block_reads?: boolean | undefined;
49
49
  readonly block_writes?: boolean | undefined;
50
- readonly delete_protection?: boolean | undefined;
50
+ readonly regions?: readonly string[] | undefined;
51
+ readonly primaryRegion?: string | undefined;
51
52
  readonly group?: string | undefined;
53
+ readonly delete_protection?: boolean | undefined;
52
54
  readonly parent?: {
53
- readonly branched_at?: string | undefined;
54
55
  readonly id?: string | undefined;
55
56
  readonly name?: string | undefined;
57
+ readonly branched_at?: string | undefined;
56
58
  } | null | undefined;
57
- readonly primaryRegion?: string | undefined;
58
- readonly regions?: readonly string[] | undefined;
59
59
  }[] | undefined;
60
60
  }, never, import("../credentials.ts").Credentials>;
61
61
  //# sourceMappingURL=listDatabases.d.ts.map
@@ -25,12 +25,12 @@ export declare const listGroups: import("@distilled.cloud/core/client").Operatio
25
25
  readonly organizationSlug: string;
26
26
  }, {
27
27
  readonly groups?: readonly {
28
- readonly delete_protection?: boolean | undefined;
29
- readonly locations?: readonly string[] | undefined;
30
28
  readonly name?: string | undefined;
31
- readonly primary?: string | undefined;
32
- readonly uuid?: string | undefined;
33
29
  readonly version?: string | undefined;
30
+ readonly uuid?: string | undefined;
31
+ readonly locations?: readonly string[] | undefined;
32
+ readonly primary?: string | undefined;
33
+ readonly delete_protection?: boolean | undefined;
34
34
  }[] | undefined;
35
35
  }, never, import("../credentials.ts").Credentials>;
36
36
  //# sourceMappingURL=listGroups.d.ts.map
@@ -33,16 +33,16 @@ export type ListOrganizationAuditLogsOutput = typeof ListOrganizationAuditLogsOu
33
33
  */
34
34
  export declare const listOrganizationAuditLogs: import("@distilled.cloud/core/client").OperationMethod<{
35
35
  readonly organizationSlug: string;
36
- readonly page?: number | undefined;
37
36
  readonly page_size?: number | undefined;
37
+ readonly page?: number | undefined;
38
38
  }, {
39
39
  readonly audit_logs?: readonly {
40
- readonly author?: string | undefined;
41
40
  readonly code?: "db-aunrchive" | "db-create" | "db-delete" | "db-protect" | "db-token-create" | "db-unprotect" | "group-create" | "group-delete" | "group-protect" | "group-token-create" | "group-unarchive" | "group-unprotect" | "instance-create" | "instance-delete" | "org-create" | "org-delete" | "org-member-add" | "org-member-leave" | "org-member-rm" | "org-plan-update" | "org-set-overages" | "user-delete" | "user-signup" | "user-token-create" | undefined;
42
- readonly created_at?: string | undefined;
43
- readonly data?: unknown;
44
41
  readonly message?: string | undefined;
45
42
  readonly origin?: string | undefined;
43
+ readonly author?: string | undefined;
44
+ readonly created_at?: string | undefined;
45
+ readonly data?: unknown;
46
46
  }[] | undefined;
47
47
  readonly pagination?: {
48
48
  readonly page?: number | undefined;
@@ -39,26 +39,26 @@ export declare const listOrganizationInvites: import("@distilled.cloud/core/clie
39
39
  readonly organizationSlug: string;
40
40
  }, {
41
41
  readonly invites?: readonly {
42
- readonly Accepted?: boolean | undefined;
42
+ readonly ID?: number | undefined;
43
43
  readonly CreatedAt?: string | undefined;
44
+ readonly UpdatedAt?: string | undefined;
44
45
  readonly DeletedAt?: string | undefined;
46
+ readonly Role?: "admin" | "member" | "viewer" | undefined;
45
47
  readonly Email?: string | undefined;
46
- readonly ID?: number | undefined;
48
+ readonly OrganizationID?: number | undefined;
49
+ readonly Token?: string | undefined;
47
50
  readonly Organization?: {
48
- readonly blocked_reads?: boolean | undefined;
49
- readonly blocked_writes?: boolean | undefined;
50
51
  readonly name?: string | undefined;
52
+ readonly slug?: string | undefined;
53
+ readonly type?: "personal" | "team" | undefined;
51
54
  readonly overages?: boolean | undefined;
55
+ readonly blocked_reads?: boolean | undefined;
56
+ readonly blocked_writes?: boolean | undefined;
52
57
  readonly plan_id?: string | undefined;
53
58
  readonly plan_timeline?: string | undefined;
54
59
  readonly platform?: string | undefined;
55
- readonly slug?: string | undefined;
56
- readonly type?: "personal" | "team" | undefined;
57
60
  } | undefined;
58
- readonly OrganizationID?: number | undefined;
59
- readonly Role?: "admin" | "member" | "viewer" | undefined;
60
- readonly Token?: string | undefined;
61
- readonly UpdatedAt?: string | undefined;
61
+ readonly Accepted?: boolean | undefined;
62
62
  }[] | undefined;
63
63
  }, never, import("../credentials.ts").Credentials>;
64
64
  //# sourceMappingURL=listOrganizationInvites.d.ts.map
@@ -24,11 +24,11 @@ export declare const listOrganizationInvitesV2: import("@distilled.cloud/core/cl
24
24
  readonly organizationSlug: string;
25
25
  }, {
26
26
  readonly invites?: readonly {
27
- readonly created_at?: string | undefined;
28
- readonly email?: string | undefined;
29
27
  readonly id?: number | undefined;
28
+ readonly email?: string | undefined;
30
29
  readonly role?: "admin" | "member" | "viewer" | undefined;
31
30
  readonly token?: string | undefined;
31
+ readonly created_at?: string | undefined;
32
32
  }[] | undefined;
33
33
  }, never, import("../credentials.ts").Credentials>;
34
34
  //# sourceMappingURL=listOrganizationInvitesV2.d.ts.map
@@ -28,12 +28,12 @@ export declare const listOrganizationInvoices: import("@distilled.cloud/core/cli
28
28
  readonly type?: "all" | "issued" | "upcoming" | undefined;
29
29
  }, {
30
30
  readonly invoices?: readonly {
31
+ readonly invoice_number?: string | undefined;
31
32
  readonly amount_due?: string | undefined;
32
33
  readonly due_date?: string | undefined;
33
- readonly invoice_number?: string | undefined;
34
- readonly invoice_pdf?: string | undefined;
35
34
  readonly paid_at?: string | undefined;
36
35
  readonly payment_failed_at?: string | undefined;
36
+ readonly invoice_pdf?: string | undefined;
37
37
  }[] | undefined;
38
38
  }, never, import("../credentials.ts").Credentials>;
39
39
  //# sourceMappingURL=listOrganizationInvoices.d.ts.map
@@ -22,9 +22,9 @@ export declare const listOrganizationMembers: import("@distilled.cloud/core/clie
22
22
  readonly organizationSlug: string;
23
23
  }, {
24
24
  readonly members?: readonly {
25
- readonly email?: string | undefined;
26
- readonly role?: "admin" | "member" | "owner" | "viewer" | undefined;
27
25
  readonly username?: string | undefined;
26
+ readonly role?: "admin" | "member" | "owner" | "viewer" | undefined;
27
+ readonly email?: string | undefined;
28
28
  }[] | undefined;
29
29
  }, never, import("../credentials.ts").Credentials>;
30
30
  //# sourceMappingURL=listOrganizationMembers.d.ts.map
@@ -37,17 +37,17 @@ export declare const listOrganizationPlans: import("@distilled.cloud/core/client
37
37
  readonly name?: string | undefined;
38
38
  readonly price?: string | undefined;
39
39
  readonly prices?: readonly {
40
- readonly timeline?: string | undefined;
41
40
  readonly value?: string | undefined;
41
+ readonly timeline?: string | undefined;
42
42
  }[] | undefined;
43
43
  readonly quotas?: {
44
- readonly bytesSynced?: number | undefined;
45
- readonly databases?: number | null | undefined;
46
- readonly groups?: number | undefined;
47
- readonly locations?: number | undefined;
48
44
  readonly rowsRead?: number | undefined;
49
45
  readonly rowsWritten?: number | undefined;
46
+ readonly databases?: number | null | undefined;
47
+ readonly locations?: number | undefined;
50
48
  readonly storage?: number | undefined;
49
+ readonly groups?: number | undefined;
50
+ readonly bytesSynced?: number | undefined;
51
51
  } | undefined;
52
52
  }[] | undefined;
53
53
  }, never, import("../credentials.ts").Credentials>;
@@ -19,14 +19,14 @@ export type ListOrganizationsOutput = typeof ListOrganizationsOutput.Type;
19
19
  * Returns a list of organizations the authenticated user owns or is a member of.
20
20
  */
21
21
  export declare const listOrganizations: import("@distilled.cloud/core/client").OperationMethod<{}, readonly {
22
- readonly blocked_reads?: boolean | undefined;
23
- readonly blocked_writes?: boolean | undefined;
24
22
  readonly name?: string | undefined;
23
+ readonly slug?: string | undefined;
24
+ readonly type?: "personal" | "team" | undefined;
25
25
  readonly overages?: boolean | undefined;
26
+ readonly blocked_reads?: boolean | undefined;
27
+ readonly blocked_writes?: boolean | undefined;
26
28
  readonly plan_id?: string | undefined;
27
29
  readonly plan_timeline?: string | undefined;
28
30
  readonly platform?: string | undefined;
29
- readonly slug?: string | undefined;
30
- readonly type?: "personal" | "team" | undefined;
31
31
  }[], never, import("../credentials.ts").Credentials>;
32
32
  //# sourceMappingURL=listOrganizations.d.ts.map
@@ -27,17 +27,17 @@ export type RemoveLocationFromGroupOutput = typeof RemoveLocationFromGroupOutput
27
27
  * @param location - The location code to remove from the group.
28
28
  */
29
29
  export declare const removeLocationFromGroup: import("@distilled.cloud/core/client").OperationMethod<{
30
+ readonly organizationSlug: string;
30
31
  readonly groupName: string;
31
32
  readonly location: string;
32
- readonly organizationSlug: string;
33
33
  }, {
34
34
  readonly group?: {
35
- readonly delete_protection?: boolean | undefined;
36
- readonly locations?: readonly string[] | undefined;
37
35
  readonly name?: string | undefined;
38
- readonly primary?: string | undefined;
39
- readonly uuid?: string | undefined;
40
36
  readonly version?: string | undefined;
37
+ readonly uuid?: string | undefined;
38
+ readonly locations?: readonly string[] | undefined;
39
+ readonly primary?: string | undefined;
40
+ readonly delete_protection?: boolean | undefined;
41
41
  } | undefined;
42
42
  }, BadRequest | NotFound, import("../credentials.ts").Credentials>;
43
43
  //# sourceMappingURL=removeLocationFromGroup.d.ts.map
@@ -24,15 +24,15 @@ export type TransferGroupOutput = typeof TransferGroupOutput.Type;
24
24
  * @param groupName - The name of the group.
25
25
  */
26
26
  export declare const transferGroup: import("@distilled.cloud/core/client").OperationMethod<{
27
+ readonly organizationSlug: string;
27
28
  readonly groupName: string;
28
29
  readonly organization?: string | undefined;
29
- readonly organizationSlug: string;
30
30
  }, {
31
- readonly delete_protection?: boolean | undefined;
32
- readonly locations?: readonly string[] | undefined;
33
31
  readonly name?: string | undefined;
34
- readonly primary?: string | undefined;
35
- readonly uuid?: string | undefined;
36
32
  readonly version?: string | undefined;
33
+ readonly uuid?: string | undefined;
34
+ readonly locations?: readonly string[] | undefined;
35
+ readonly primary?: string | undefined;
36
+ readonly delete_protection?: boolean | undefined;
37
37
  }, NotFound, import("../credentials.ts").Credentials>;
38
38
  //# sourceMappingURL=transferGroup.d.ts.map
@@ -25,16 +25,16 @@ export type UnarchiveGroupOutput = typeof UnarchiveGroupOutput.Type;
25
25
  * @param groupName - The name of the group.
26
26
  */
27
27
  export declare const unarchiveGroup: import("@distilled.cloud/core/client").OperationMethod<{
28
- readonly groupName: string;
29
28
  readonly organizationSlug: string;
29
+ readonly groupName: string;
30
30
  }, {
31
31
  readonly group?: {
32
- readonly delete_protection?: boolean | undefined;
33
- readonly locations?: readonly string[] | undefined;
34
32
  readonly name?: string | undefined;
35
- readonly primary?: string | undefined;
36
- readonly uuid?: string | undefined;
37
33
  readonly version?: string | undefined;
34
+ readonly uuid?: string | undefined;
35
+ readonly locations?: readonly string[] | undefined;
36
+ readonly primary?: string | undefined;
37
+ readonly delete_protection?: boolean | undefined;
38
38
  } | undefined;
39
39
  }, NotFound, import("../credentials.ts").Credentials>;
40
40
  //# sourceMappingURL=unarchiveGroup.d.ts.map
@@ -27,18 +27,18 @@ export type UpdateDatabaseConfigurationOutput = typeof UpdateDatabaseConfigurati
27
27
  * @param databaseName - The name of the database.
28
28
  */
29
29
  export declare const updateDatabaseConfiguration: import("@distilled.cloud/core/client").OperationMethod<{
30
+ readonly organizationSlug: string;
31
+ readonly databaseName: string;
32
+ readonly size_limit?: string | undefined;
30
33
  readonly allow_attach?: boolean | undefined;
31
34
  readonly block_reads?: boolean | undefined;
32
35
  readonly block_writes?: boolean | undefined;
33
- readonly databaseName: string;
34
36
  readonly delete_protection?: boolean | undefined;
35
- readonly organizationSlug: string;
36
- readonly size_limit?: string | undefined;
37
37
  }, {
38
+ readonly size_limit?: string | undefined;
38
39
  readonly allow_attach?: boolean | undefined;
39
40
  readonly block_reads?: boolean | undefined;
40
41
  readonly block_writes?: boolean | undefined;
41
42
  readonly delete_protection?: boolean | undefined;
42
- readonly size_limit?: string | undefined;
43
43
  }, NotFound, import("../credentials.ts").Credentials>;
44
44
  //# sourceMappingURL=updateDatabaseConfiguration.d.ts.map
@@ -19,9 +19,9 @@ export type UpdateGroupConfigurationOutput = typeof UpdateGroupConfigurationOutp
19
19
  * @param groupName - The name of the group.
20
20
  */
21
21
  export declare const updateGroupConfiguration: import("@distilled.cloud/core/client").OperationMethod<{
22
- readonly delete_protection?: boolean | undefined;
23
- readonly groupName: string;
24
22
  readonly organizationSlug: string;
23
+ readonly groupName: string;
24
+ readonly delete_protection?: boolean | undefined;
25
25
  }, {
26
26
  readonly delete_protection?: boolean | undefined;
27
27
  }, NotFound, import("../credentials.ts").Credentials>;
@@ -16,7 +16,7 @@ export type UpdateGroupDatabasesOutput = typeof UpdateGroupDatabasesOutput.Type;
16
16
  * @param groupName - The name of the group.
17
17
  */
18
18
  export declare const updateGroupDatabases: import("@distilled.cloud/core/client").OperationMethod<{
19
- readonly groupName: string;
20
19
  readonly organizationSlug: string;
20
+ readonly groupName: string;
21
21
  }, void, NotFound, import("../credentials.ts").Credentials>;
22
22
  //# sourceMappingURL=updateGroupDatabases.d.ts.map
@@ -24,13 +24,13 @@ export type UpdateMemberRoleOutput = typeof UpdateMemberRoleOutput.Type;
24
24
  */
25
25
  export declare const updateMemberRole: import("@distilled.cloud/core/client").OperationMethod<{
26
26
  readonly organizationSlug: string;
27
- readonly role: "admin" | "member" | "viewer";
28
27
  readonly username: string;
28
+ readonly role: "admin" | "member" | "viewer";
29
29
  }, {
30
30
  readonly member?: {
31
+ readonly username?: string | undefined;
31
32
  readonly email?: string | undefined;
32
33
  readonly role?: "admin" | "member" | "viewer" | undefined;
33
- readonly username?: string | undefined;
34
34
  } | undefined;
35
35
  }, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials>;
36
36
  //# sourceMappingURL=updateMemberRole.d.ts.map
@@ -30,15 +30,15 @@ export declare const updateOrganization: import("@distilled.cloud/core/client").
30
30
  readonly overages?: boolean | undefined;
31
31
  }, {
32
32
  readonly organization?: {
33
- readonly blocked_reads?: boolean | undefined;
34
- readonly blocked_writes?: boolean | undefined;
35
33
  readonly name?: string | undefined;
34
+ readonly slug?: string | undefined;
35
+ readonly type?: "personal" | "team" | undefined;
36
36
  readonly overages?: boolean | undefined;
37
+ readonly blocked_reads?: boolean | undefined;
38
+ readonly blocked_writes?: boolean | undefined;
37
39
  readonly plan_id?: string | undefined;
38
40
  readonly plan_timeline?: string | undefined;
39
41
  readonly platform?: string | undefined;
40
- readonly slug?: string | undefined;
41
- readonly type?: "personal" | "team" | undefined;
42
42
  } | undefined;
43
43
  }, never, import("../credentials.ts").Credentials>;
44
44
  //# sourceMappingURL=updateOrganization.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/turso",
3
- "version": "0.19.2",
3
+ "version": "0.20.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -74,7 +74,7 @@
74
74
  "specs:update": "git -C specs/turso-docs fetch && git -C specs/turso-docs checkout main && git -C specs/turso-docs pull"
75
75
  },
76
76
  "dependencies": {
77
- "@distilled.cloud/core": "0.19.2"
77
+ "@distilled.cloud/core": "0.20.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@types/bun": "^1.3.0",
@@ -83,6 +83,6 @@
83
83
  "vitest": "^3.2.3"
84
84
  },
85
85
  "peerDependencies": {
86
- "effect": ">=4.0.0-beta.60 || >=4.0.0"
86
+ "effect": ">=4.0.0-beta.66 || >=4.0.0"
87
87
  }
88
88
  }
@@ -1,9 +1,9 @@
1
+ import { ConfigError } from "@distilled.cloud/core/errors";
1
2
  import * as EffectConfig from "effect/Config";
2
3
  import * as Context from "effect/Context";
3
4
  import * as Effect from "effect/Effect";
4
5
  import * as Layer from "effect/Layer";
5
6
  import * as Redacted from "effect/Redacted";
6
- import { ConfigError } from "@distilled.cloud/core/errors";
7
7
 
8
8
  export const DEFAULT_API_BASE_URL = "https://api.turso.tech";
9
9
 
@@ -22,7 +22,7 @@ const envConfig = EffectConfig.all({
22
22
 
23
23
  export const CredentialsFromEnv = Layer.effect(
24
24
  Credentials,
25
- envConfig.asEffect().pipe(
25
+ envConfig.pipe(
26
26
  Effect.mapError(
27
27
  () =>
28
28
  new ConfigError({