@distilled.cloud/turso 0.27.0 → 0.28.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.
- package/lib/operations/addLocationToGroup.d.ts +18 -31
- package/lib/operations/addLocationToGroup.d.ts.map +1 -1
- package/lib/operations/addLocationToGroup.js +0 -2
- package/lib/operations/addLocationToGroup.js.map +1 -1
- package/lib/operations/addOrganizationMember.d.ts +12 -19
- package/lib/operations/addOrganizationMember.d.ts.map +1 -1
- package/lib/operations/addOrganizationMember.js +0 -2
- package/lib/operations/addOrganizationMember.js.map +1 -1
- package/lib/operations/createAPIToken.d.ts +20 -20
- package/lib/operations/createAPIToken.d.ts.map +1 -1
- package/lib/operations/createAPIToken.js +20 -3
- package/lib/operations/createAPIToken.js.map +1 -1
- package/lib/operations/createDatabase.d.ts +25 -45
- package/lib/operations/createDatabase.d.ts.map +1 -1
- package/lib/operations/createDatabase.js +0 -2
- package/lib/operations/createDatabase.js.map +1 -1
- package/lib/operations/createDatabaseToken.d.ts +17 -29
- package/lib/operations/createDatabaseToken.d.ts.map +1 -1
- package/lib/operations/createDatabaseToken.js +0 -2
- package/lib/operations/createDatabaseToken.js.map +1 -1
- package/lib/operations/createGroup.d.ts +19 -33
- package/lib/operations/createGroup.d.ts.map +1 -1
- package/lib/operations/createGroup.js +15 -3
- package/lib/operations/createGroup.js.map +1 -1
- package/lib/operations/createGroupToken.d.ts +17 -29
- package/lib/operations/createGroupToken.d.ts.map +1 -1
- package/lib/operations/createGroupToken.js +0 -2
- package/lib/operations/createGroupToken.js.map +1 -1
- package/lib/operations/deleteDatabase.d.ts +10 -15
- package/lib/operations/deleteDatabase.d.ts.map +1 -1
- package/lib/operations/deleteDatabase.js +0 -2
- package/lib/operations/deleteDatabase.js.map +1 -1
- package/lib/operations/deleteGroup.d.ts +17 -29
- package/lib/operations/deleteGroup.d.ts.map +1 -1
- package/lib/operations/deleteGroup.js +0 -2
- package/lib/operations/deleteGroup.js.map +1 -1
- package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +8 -11
- package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +1 -1
- package/lib/operations/deleteOrganizationInviteByEmailV2.js +0 -2
- package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +1 -1
- package/lib/operations/getCurrentUser.d.ts +16 -25
- package/lib/operations/getCurrentUser.d.ts.map +1 -1
- package/lib/operations/getCurrentUser.js +0 -2
- package/lib/operations/getCurrentUser.js.map +1 -1
- package/lib/operations/getDatabase.d.ts +25 -45
- package/lib/operations/getDatabase.d.ts.map +1 -1
- package/lib/operations/getDatabase.js +0 -2
- package/lib/operations/getDatabase.js.map +1 -1
- package/lib/operations/getDatabaseConfiguration.d.ts +16 -23
- package/lib/operations/getDatabaseConfiguration.d.ts.map +1 -1
- package/lib/operations/getDatabaseConfiguration.js +2 -2
- package/lib/operations/getDatabaseConfiguration.js.map +1 -1
- package/lib/operations/getDatabaseInstance.d.ts +17 -29
- package/lib/operations/getDatabaseInstance.d.ts.map +1 -1
- package/lib/operations/getDatabaseInstance.js +0 -2
- package/lib/operations/getDatabaseInstance.js.map +1 -1
- package/lib/operations/getDatabaseStats.d.ts +14 -23
- package/lib/operations/getDatabaseStats.d.ts.map +1 -1
- package/lib/operations/getDatabaseStats.js +0 -2
- package/lib/operations/getDatabaseStats.js.map +1 -1
- package/lib/operations/getDatabaseUsage.d.ts +29 -53
- package/lib/operations/getDatabaseUsage.d.ts.map +1 -1
- package/lib/operations/getDatabaseUsage.js +0 -2
- package/lib/operations/getDatabaseUsage.js.map +1 -1
- package/lib/operations/getGroup.d.ts +17 -29
- package/lib/operations/getGroup.d.ts.map +1 -1
- package/lib/operations/getGroup.js +0 -2
- package/lib/operations/getGroup.js.map +1 -1
- package/lib/operations/getGroupConfiguration.d.ts +10 -15
- package/lib/operations/getGroupConfiguration.d.ts.map +1 -1
- package/lib/operations/getGroupConfiguration.js +0 -2
- package/lib/operations/getGroupConfiguration.js.map +1 -1
- package/lib/operations/getOrganization.d.ts +20 -33
- package/lib/operations/getOrganization.d.ts.map +1 -1
- package/lib/operations/getOrganization.js +1 -2
- package/lib/operations/getOrganization.js.map +1 -1
- package/lib/operations/getOrganizationMember.d.ts +14 -23
- package/lib/operations/getOrganizationMember.d.ts.map +1 -1
- package/lib/operations/getOrganizationMember.js +0 -2
- package/lib/operations/getOrganizationMember.js.map +1 -1
- package/lib/operations/getOrganizationSubscription.d.ts +14 -23
- package/lib/operations/getOrganizationSubscription.d.ts.map +1 -1
- package/lib/operations/getOrganizationSubscription.js +0 -2
- package/lib/operations/getOrganizationSubscription.js.map +1 -1
- package/lib/operations/getOrganizationUsage.d.ts +38 -71
- package/lib/operations/getOrganizationUsage.d.ts.map +1 -1
- package/lib/operations/getOrganizationUsage.js +0 -2
- package/lib/operations/getOrganizationUsage.js.map +1 -1
- package/lib/operations/index.d.ts +2 -3
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +2 -3
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/invalidateDatabaseTokens.d.ts +8 -11
- package/lib/operations/invalidateDatabaseTokens.d.ts.map +1 -1
- package/lib/operations/invalidateDatabaseTokens.js +0 -2
- package/lib/operations/invalidateDatabaseTokens.js.map +1 -1
- package/lib/operations/invalidateGroupTokens.d.ts +8 -11
- package/lib/operations/invalidateGroupTokens.d.ts.map +1 -1
- package/lib/operations/invalidateGroupTokens.js +0 -2
- package/lib/operations/invalidateGroupTokens.js.map +1 -1
- package/lib/operations/inviteOrganizationMemberV2.d.ts +16 -27
- package/lib/operations/inviteOrganizationMemberV2.d.ts.map +1 -1
- package/lib/operations/inviteOrganizationMemberV2.js +2 -4
- package/lib/operations/inviteOrganizationMemberV2.js.map +1 -1
- package/lib/operations/listAPITokens.d.ts +15 -17
- package/lib/operations/listAPITokens.d.ts.map +1 -1
- package/lib/operations/listAPITokens.js +3 -2
- package/lib/operations/listAPITokens.js.map +1 -1
- package/lib/operations/listDatabaseInstances.d.ts +16 -27
- package/lib/operations/listDatabaseInstances.d.ts.map +1 -1
- package/lib/operations/listDatabaseInstances.js +0 -2
- package/lib/operations/listDatabaseInstances.js.map +1 -1
- package/lib/operations/listDatabases.d.ts +27 -49
- package/lib/operations/listDatabases.d.ts.map +1 -1
- package/lib/operations/listDatabases.js +0 -2
- package/lib/operations/listDatabases.js.map +1 -1
- package/lib/operations/listGroups.d.ts +16 -27
- package/lib/operations/listGroups.d.ts.map +1 -1
- package/lib/operations/listGroups.js +0 -2
- package/lib/operations/listGroups.js.map +1 -1
- package/lib/operations/listLocations.d.ts +8 -11
- package/lib/operations/listLocations.d.ts.map +1 -1
- package/lib/operations/listLocations.js +0 -2
- package/lib/operations/listLocations.js.map +1 -1
- package/lib/operations/listOrganizationAPITokens.d.ts +33 -0
- package/lib/operations/listOrganizationAPITokens.d.ts.map +1 -0
- package/lib/operations/listOrganizationAPITokens.js +42 -0
- package/lib/operations/listOrganizationAPITokens.js.map +1 -0
- package/lib/operations/listOrganizationAuditLogs.d.ts +24 -43
- package/lib/operations/listOrganizationAuditLogs.d.ts.map +1 -1
- package/lib/operations/listOrganizationAuditLogs.js +0 -2
- package/lib/operations/listOrganizationAuditLogs.js.map +1 -1
- package/lib/operations/listOrganizationInvitesV2.d.ts +14 -25
- package/lib/operations/listOrganizationInvitesV2.d.ts.map +1 -1
- package/lib/operations/listOrganizationInvitesV2.js +0 -3
- package/lib/operations/listOrganizationInvitesV2.js.map +1 -1
- package/lib/operations/listOrganizationInvoices.d.ts +17 -29
- package/lib/operations/listOrganizationInvoices.d.ts.map +1 -1
- package/lib/operations/listOrganizationInvoices.js +0 -2
- package/lib/operations/listOrganizationInvoices.js.map +1 -1
- package/lib/operations/listOrganizationMembers.d.ts +13 -21
- package/lib/operations/listOrganizationMembers.d.ts.map +1 -1
- package/lib/operations/listOrganizationMembers.js +0 -2
- package/lib/operations/listOrganizationMembers.js.map +1 -1
- package/lib/operations/listOrganizationPlans.d.ts +25 -45
- package/lib/operations/listOrganizationPlans.d.ts.map +1 -1
- package/lib/operations/listOrganizationPlans.js +0 -2
- package/lib/operations/listOrganizationPlans.js.map +1 -1
- package/lib/operations/listOrganizations.d.ts +17 -25
- package/lib/operations/listOrganizations.d.ts.map +1 -1
- package/lib/operations/listOrganizations.js +1 -2
- package/lib/operations/listOrganizations.js.map +1 -1
- package/lib/operations/removeLocationFromGroup.d.ts +18 -31
- package/lib/operations/removeLocationFromGroup.d.ts.map +1 -1
- package/lib/operations/removeLocationFromGroup.js +0 -2
- package/lib/operations/removeLocationFromGroup.js.map +1 -1
- package/lib/operations/removeOrganizationMember.d.ts +10 -15
- package/lib/operations/removeOrganizationMember.d.ts.map +1 -1
- package/lib/operations/removeOrganizationMember.js +0 -2
- package/lib/operations/removeOrganizationMember.js.map +1 -1
- package/lib/operations/revokeAPIToken.d.ts +9 -13
- package/lib/operations/revokeAPIToken.d.ts.map +1 -1
- package/lib/operations/revokeAPIToken.js +0 -2
- package/lib/operations/revokeAPIToken.js.map +1 -1
- package/lib/operations/revokeOrganizationAPIToken.d.ts +25 -0
- package/lib/operations/revokeOrganizationAPIToken.d.ts.map +1 -0
- package/lib/operations/revokeOrganizationAPIToken.js +34 -0
- package/lib/operations/revokeOrganizationAPIToken.js.map +1 -0
- package/lib/operations/transferGroup.d.ts +16 -27
- package/lib/operations/transferGroup.d.ts.map +1 -1
- package/lib/operations/transferGroup.js +0 -2
- package/lib/operations/transferGroup.js.map +1 -1
- package/lib/operations/unarchiveGroup.d.ts +17 -29
- package/lib/operations/unarchiveGroup.d.ts.map +1 -1
- package/lib/operations/unarchiveGroup.js +0 -2
- package/lib/operations/unarchiveGroup.js.map +1 -1
- package/lib/operations/updateDatabaseConfiguration.d.ts +23 -33
- package/lib/operations/updateDatabaseConfiguration.d.ts.map +1 -1
- package/lib/operations/updateDatabaseConfiguration.js +4 -2
- package/lib/operations/updateDatabaseConfiguration.js.map +1 -1
- package/lib/operations/updateGroupConfiguration.d.ts +11 -17
- package/lib/operations/updateGroupConfiguration.d.ts.map +1 -1
- package/lib/operations/updateGroupConfiguration.js +0 -2
- package/lib/operations/updateGroupConfiguration.js.map +1 -1
- package/lib/operations/updateGroupDatabases.d.ts +8 -11
- package/lib/operations/updateGroupDatabases.d.ts.map +1 -1
- package/lib/operations/updateGroupDatabases.js +0 -2
- package/lib/operations/updateGroupDatabases.js.map +1 -1
- package/lib/operations/updateMemberRole.d.ts +15 -25
- package/lib/operations/updateMemberRole.d.ts.map +1 -1
- package/lib/operations/updateMemberRole.js +0 -2
- package/lib/operations/updateMemberRole.js.map +1 -1
- package/lib/operations/updateOrganization.d.ts +22 -35
- package/lib/operations/updateOrganization.d.ts.map +1 -1
- package/lib/operations/updateOrganization.js +2 -2
- package/lib/operations/updateOrganization.js.map +1 -1
- package/lib/operations/validateAPIToken.d.ts +8 -9
- package/lib/operations/validateAPIToken.d.ts.map +1 -1
- package/lib/operations/validateAPIToken.js +0 -2
- package/lib/operations/validateAPIToken.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/addLocationToGroup.ts +17 -4
- package/src/operations/addOrganizationMember.ts +11 -5
- package/src/operations/createAPIToken.ts +51 -5
- package/src/operations/createDatabase.ts +29 -4
- package/src/operations/createDatabaseToken.ts +12 -4
- package/src/operations/createGroup.ts +50 -5
- package/src/operations/createGroupToken.ts +12 -4
- package/src/operations/deleteDatabase.ts +9 -4
- package/src/operations/deleteGroup.ts +16 -4
- package/src/operations/deleteOrganizationInviteByEmailV2.ts +7 -6
- package/src/operations/getCurrentUser.ts +16 -4
- package/src/operations/getDatabase.ts +20 -4
- package/src/operations/getDatabaseConfiguration.ts +17 -6
- package/src/operations/getDatabaseInstance.ts +16 -4
- package/src/operations/getDatabaseStats.ts +11 -4
- package/src/operations/getDatabaseUsage.ts +28 -4
- package/src/operations/getGroup.ts +16 -4
- package/src/operations/getGroupConfiguration.ts +9 -5
- package/src/operations/getOrganization.ts +20 -4
- package/src/operations/getOrganizationMember.ts +13 -5
- package/src/operations/getOrganizationSubscription.ts +13 -6
- package/src/operations/getOrganizationUsage.ts +37 -4
- package/src/operations/index.ts +2 -3
- package/src/operations/invalidateDatabaseTokens.ts +7 -6
- package/src/operations/invalidateGroupTokens.ts +7 -5
- package/src/operations/inviteOrganizationMemberV2.ts +17 -8
- package/src/operations/listAPITokens.ts +18 -4
- package/src/operations/listDatabaseInstances.ts +15 -5
- package/src/operations/listDatabases.ts +22 -4
- package/src/operations/listGroups.ts +15 -4
- package/src/operations/listLocations.ts +8 -4
- package/src/operations/listOrganizationAPITokens.ts +70 -0
- package/src/operations/listOrganizationAuditLogs.ts +47 -6
- package/src/operations/listOrganizationInvitesV2.ts +13 -7
- package/src/operations/listOrganizationInvoices.ts +16 -6
- package/src/operations/listOrganizationMembers.ts +12 -6
- package/src/operations/listOrganizationPlans.ts +21 -5
- package/src/operations/listOrganizations.ts +18 -4
- package/src/operations/removeLocationFromGroup.ts +17 -6
- package/src/operations/removeOrganizationMember.ts +9 -6
- package/src/operations/revokeAPIToken.ts +10 -4
- package/src/operations/revokeOrganizationAPIToken.ts +49 -0
- package/src/operations/transferGroup.ts +15 -4
- package/src/operations/unarchiveGroup.ts +16 -4
- package/src/operations/updateDatabaseConfiguration.ts +26 -6
- package/src/operations/updateGroupConfiguration.ts +10 -6
- package/src/operations/updateGroupDatabases.ts +7 -4
- package/src/operations/updateMemberRole.ts +14 -4
- package/src/operations/updateOrganization.ts +23 -4
- package/src/operations/validateAPIToken.ts +8 -4
|
@@ -4,6 +4,13 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface CreateGroupTokenInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
groupName: string;
|
|
10
|
+
expiration?: string;
|
|
11
|
+
authorization?: "full-access" | "read-only";
|
|
12
|
+
permissions?: { read_attach?: { databases?: string[] } };
|
|
13
|
+
}
|
|
7
14
|
export const CreateGroupTokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
15
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
16
|
groupName: Schema.String.pipe(T.PathParam()),
|
|
@@ -23,16 +30,17 @@ export const CreateGroupTokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
23
30
|
method: "POST",
|
|
24
31
|
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/auth/tokens",
|
|
25
32
|
}),
|
|
26
|
-
)
|
|
27
|
-
export type CreateGroupTokenInput = typeof CreateGroupTokenInput.Type;
|
|
33
|
+
) as unknown as Schema.Codec<CreateGroupTokenInput>;
|
|
28
34
|
|
|
29
35
|
// Output Schema
|
|
36
|
+
export interface CreateGroupTokenOutput {
|
|
37
|
+
jwt?: string;
|
|
38
|
+
}
|
|
30
39
|
export const CreateGroupTokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
31
40
|
{
|
|
32
41
|
jwt: Schema.optional(Schema.String),
|
|
33
42
|
},
|
|
34
|
-
)
|
|
35
|
-
export type CreateGroupTokenOutput = typeof CreateGroupTokenOutput.Type;
|
|
43
|
+
) as unknown as Schema.Codec<CreateGroupTokenOutput>;
|
|
36
44
|
|
|
37
45
|
// The operation
|
|
38
46
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteDatabaseInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
databaseName: string;
|
|
10
|
+
}
|
|
7
11
|
export const DeleteDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
@@ -12,14 +16,15 @@ export const DeleteDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
16
|
method: "DELETE",
|
|
13
17
|
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}",
|
|
14
18
|
}),
|
|
15
|
-
)
|
|
16
|
-
export type DeleteDatabaseInput = typeof DeleteDatabaseInput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<DeleteDatabaseInput>;
|
|
17
20
|
|
|
18
21
|
// Output Schema
|
|
22
|
+
export interface DeleteDatabaseOutput {
|
|
23
|
+
database?: string;
|
|
24
|
+
}
|
|
19
25
|
export const DeleteDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
26
|
database: Schema.optional(Schema.String),
|
|
21
|
-
})
|
|
22
|
-
export type DeleteDatabaseOutput = typeof DeleteDatabaseOutput.Type;
|
|
27
|
+
}) as unknown as Schema.Codec<DeleteDatabaseOutput>;
|
|
23
28
|
|
|
24
29
|
// The operation
|
|
25
30
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteGroupInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
groupName: string;
|
|
10
|
+
}
|
|
7
11
|
export const DeleteGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
groupName: Schema.String.pipe(T.PathParam()),
|
|
@@ -12,10 +16,19 @@ export const DeleteGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
16
|
method: "DELETE",
|
|
13
17
|
path: "/v1/organizations/{organizationSlug}/groups/{groupName}",
|
|
14
18
|
}),
|
|
15
|
-
)
|
|
16
|
-
export type DeleteGroupInput = typeof DeleteGroupInput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<DeleteGroupInput>;
|
|
17
20
|
|
|
18
21
|
// Output Schema
|
|
22
|
+
export interface DeleteGroupOutput {
|
|
23
|
+
group?: {
|
|
24
|
+
name?: string;
|
|
25
|
+
version?: string;
|
|
26
|
+
uuid?: string;
|
|
27
|
+
locations?: string[];
|
|
28
|
+
primary?: string;
|
|
29
|
+
delete_protection?: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
19
32
|
export const DeleteGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
33
|
group: Schema.optional(
|
|
21
34
|
Schema.Struct({
|
|
@@ -27,8 +40,7 @@ export const DeleteGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
27
40
|
delete_protection: Schema.optional(Schema.Boolean),
|
|
28
41
|
}),
|
|
29
42
|
),
|
|
30
|
-
})
|
|
31
|
-
export type DeleteGroupOutput = typeof DeleteGroupOutput.Type;
|
|
43
|
+
}) as unknown as Schema.Codec<DeleteGroupOutput>;
|
|
32
44
|
|
|
33
45
|
// The operation
|
|
34
46
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteOrganizationInviteByEmailV2Input {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
email: string;
|
|
10
|
+
}
|
|
7
11
|
export const DeleteOrganizationInviteByEmailV2Input =
|
|
8
12
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -13,15 +17,12 @@ export const DeleteOrganizationInviteByEmailV2Input =
|
|
|
13
17
|
method: "DELETE",
|
|
14
18
|
path: "/v2/organizations/{organizationSlug}/invites/{email}",
|
|
15
19
|
}),
|
|
16
|
-
)
|
|
17
|
-
export type DeleteOrganizationInviteByEmailV2Input =
|
|
18
|
-
typeof DeleteOrganizationInviteByEmailV2Input.Type;
|
|
20
|
+
) as unknown as Schema.Codec<DeleteOrganizationInviteByEmailV2Input>;
|
|
19
21
|
|
|
20
22
|
// Output Schema
|
|
23
|
+
export type DeleteOrganizationInviteByEmailV2Output = void;
|
|
21
24
|
export const DeleteOrganizationInviteByEmailV2Output =
|
|
22
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Void
|
|
23
|
-
export type DeleteOrganizationInviteByEmailV2Output =
|
|
24
|
-
typeof DeleteOrganizationInviteByEmailV2Output.Type;
|
|
25
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteOrganizationInviteByEmailV2Output>;
|
|
25
26
|
|
|
26
27
|
// The operation
|
|
27
28
|
/**
|
|
@@ -3,12 +3,25 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetCurrentUserInput {}
|
|
6
7
|
export const GetCurrentUserInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
8
|
{},
|
|
8
|
-
).pipe(
|
|
9
|
-
|
|
9
|
+
).pipe(
|
|
10
|
+
T.Http({ method: "GET", path: "/v1/user" }),
|
|
11
|
+
) as unknown as Schema.Codec<GetCurrentUserInput>;
|
|
10
12
|
|
|
11
13
|
// Output Schema
|
|
14
|
+
export interface GetCurrentUserOutput {
|
|
15
|
+
user?: {
|
|
16
|
+
username?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
email?: string;
|
|
19
|
+
avatarUrl?: string;
|
|
20
|
+
plan?: string;
|
|
21
|
+
mfa?: boolean;
|
|
22
|
+
has_pending_invites?: boolean;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
12
25
|
export const GetCurrentUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
26
|
user: Schema.optional(
|
|
14
27
|
Schema.Struct({
|
|
@@ -21,8 +34,7 @@ export const GetCurrentUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
21
34
|
has_pending_invites: Schema.optional(Schema.Boolean),
|
|
22
35
|
}),
|
|
23
36
|
),
|
|
24
|
-
})
|
|
25
|
-
export type GetCurrentUserOutput = typeof GetCurrentUserOutput.Type;
|
|
37
|
+
}) as unknown as Schema.Codec<GetCurrentUserOutput>;
|
|
26
38
|
|
|
27
39
|
// The operation
|
|
28
40
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetDatabaseInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
databaseName: string;
|
|
10
|
+
}
|
|
7
11
|
export const GetDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
@@ -12,10 +16,23 @@ export const GetDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
16
|
method: "GET",
|
|
13
17
|
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}",
|
|
14
18
|
}),
|
|
15
|
-
)
|
|
16
|
-
export type GetDatabaseInput = typeof GetDatabaseInput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<GetDatabaseInput>;
|
|
17
20
|
|
|
18
21
|
// Output Schema
|
|
22
|
+
export interface GetDatabaseOutput {
|
|
23
|
+
database?: {
|
|
24
|
+
Name?: string;
|
|
25
|
+
DbId?: string;
|
|
26
|
+
Hostname?: string;
|
|
27
|
+
block_reads?: boolean;
|
|
28
|
+
block_writes?: boolean;
|
|
29
|
+
regions?: string[];
|
|
30
|
+
primaryRegion?: string;
|
|
31
|
+
group?: string;
|
|
32
|
+
delete_protection?: boolean;
|
|
33
|
+
parent?: { id?: string; name?: string; branched_at?: string } | null;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
19
36
|
export const GetDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
37
|
database: Schema.optional(
|
|
21
38
|
Schema.Struct({
|
|
@@ -39,8 +56,7 @@ export const GetDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
39
56
|
),
|
|
40
57
|
}),
|
|
41
58
|
),
|
|
42
|
-
})
|
|
43
|
-
export type GetDatabaseOutput = typeof GetDatabaseOutput.Type;
|
|
59
|
+
}) as unknown as Schema.Codec<GetDatabaseOutput>;
|
|
44
60
|
|
|
45
61
|
// The operation
|
|
46
62
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetDatabaseConfigurationInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
databaseName: string;
|
|
10
|
+
}
|
|
7
11
|
export const GetDatabaseConfigurationInput =
|
|
8
12
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -13,11 +17,18 @@ export const GetDatabaseConfigurationInput =
|
|
|
13
17
|
method: "GET",
|
|
14
18
|
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/configuration",
|
|
15
19
|
}),
|
|
16
|
-
)
|
|
17
|
-
export type GetDatabaseConfigurationInput =
|
|
18
|
-
typeof GetDatabaseConfigurationInput.Type;
|
|
20
|
+
) as unknown as Schema.Codec<GetDatabaseConfigurationInput>;
|
|
19
21
|
|
|
20
22
|
// Output Schema
|
|
23
|
+
export interface GetDatabaseConfigurationOutput {
|
|
24
|
+
size_limit?: string;
|
|
25
|
+
allow_attach?: boolean;
|
|
26
|
+
block_reads?: boolean;
|
|
27
|
+
block_writes?: boolean;
|
|
28
|
+
delete_protection?: boolean;
|
|
29
|
+
allowed_ips?: string[];
|
|
30
|
+
allowed_aws_vpc_ids?: string[];
|
|
31
|
+
}
|
|
21
32
|
export const GetDatabaseConfigurationOutput =
|
|
22
33
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
34
|
size_limit: Schema.optional(Schema.String),
|
|
@@ -25,9 +36,9 @@ export const GetDatabaseConfigurationOutput =
|
|
|
25
36
|
block_reads: Schema.optional(Schema.Boolean),
|
|
26
37
|
block_writes: Schema.optional(Schema.Boolean),
|
|
27
38
|
delete_protection: Schema.optional(Schema.Boolean),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
allowed_ips: Schema.optional(Schema.Array(Schema.String)),
|
|
40
|
+
allowed_aws_vpc_ids: Schema.optional(Schema.Array(Schema.String)),
|
|
41
|
+
}) as unknown as Schema.Codec<GetDatabaseConfigurationOutput>;
|
|
31
42
|
|
|
32
43
|
// The operation
|
|
33
44
|
/**
|
|
@@ -4,6 +4,11 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetDatabaseInstanceInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
databaseName: string;
|
|
10
|
+
instanceName: string;
|
|
11
|
+
}
|
|
7
12
|
export const GetDatabaseInstanceInput =
|
|
8
13
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
14
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -14,10 +19,18 @@ export const GetDatabaseInstanceInput =
|
|
|
14
19
|
method: "GET",
|
|
15
20
|
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/instances/{instanceName}",
|
|
16
21
|
}),
|
|
17
|
-
)
|
|
18
|
-
export type GetDatabaseInstanceInput = typeof GetDatabaseInstanceInput.Type;
|
|
22
|
+
) as unknown as Schema.Codec<GetDatabaseInstanceInput>;
|
|
19
23
|
|
|
20
24
|
// Output Schema
|
|
25
|
+
export interface GetDatabaseInstanceOutput {
|
|
26
|
+
instance?: {
|
|
27
|
+
uuid?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
type?: "primary" | "replica";
|
|
30
|
+
region?: string;
|
|
31
|
+
hostname?: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
21
34
|
export const GetDatabaseInstanceOutput =
|
|
22
35
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
36
|
instance: Schema.optional(
|
|
@@ -29,8 +42,7 @@ export const GetDatabaseInstanceOutput =
|
|
|
29
42
|
hostname: Schema.optional(Schema.String),
|
|
30
43
|
}),
|
|
31
44
|
),
|
|
32
|
-
})
|
|
33
|
-
export type GetDatabaseInstanceOutput = typeof GetDatabaseInstanceOutput.Type;
|
|
45
|
+
}) as unknown as Schema.Codec<GetDatabaseInstanceOutput>;
|
|
34
46
|
|
|
35
47
|
// The operation
|
|
36
48
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetDatabaseStatsInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
databaseName: string;
|
|
10
|
+
}
|
|
7
11
|
export const GetDatabaseStatsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
@@ -12,10 +16,14 @@ export const GetDatabaseStatsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
16
|
method: "GET",
|
|
13
17
|
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/stats",
|
|
14
18
|
}),
|
|
15
|
-
)
|
|
16
|
-
export type GetDatabaseStatsInput = typeof GetDatabaseStatsInput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<GetDatabaseStatsInput>;
|
|
17
20
|
|
|
18
21
|
// Output Schema
|
|
22
|
+
export interface GetDatabaseStatsOutput {
|
|
23
|
+
top_queries?:
|
|
24
|
+
| { query?: string; rows_read?: number; rows_written?: number }[]
|
|
25
|
+
| null;
|
|
26
|
+
}
|
|
19
27
|
export const GetDatabaseStatsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
20
28
|
{
|
|
21
29
|
top_queries: Schema.optional(
|
|
@@ -30,8 +38,7 @@ export const GetDatabaseStatsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
30
38
|
),
|
|
31
39
|
),
|
|
32
40
|
},
|
|
33
|
-
)
|
|
34
|
-
export type GetDatabaseStatsOutput = typeof GetDatabaseStatsOutput.Type;
|
|
41
|
+
) as unknown as Schema.Codec<GetDatabaseStatsOutput>;
|
|
35
42
|
|
|
36
43
|
// The operation
|
|
37
44
|
/**
|
|
@@ -4,6 +4,12 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetDatabaseUsageInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
databaseName: string;
|
|
10
|
+
from?: string;
|
|
11
|
+
to?: string;
|
|
12
|
+
}
|
|
7
13
|
export const GetDatabaseUsageInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
14
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
15
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
@@ -14,10 +20,29 @@ export const GetDatabaseUsageInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
14
20
|
method: "GET",
|
|
15
21
|
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/usage",
|
|
16
22
|
}),
|
|
17
|
-
)
|
|
18
|
-
export type GetDatabaseUsageInput = typeof GetDatabaseUsageInput.Type;
|
|
23
|
+
) as unknown as Schema.Codec<GetDatabaseUsageInput>;
|
|
19
24
|
|
|
20
25
|
// Output Schema
|
|
26
|
+
export interface GetDatabaseUsageOutput {
|
|
27
|
+
database?: {
|
|
28
|
+
uuid?: string;
|
|
29
|
+
instances?: {
|
|
30
|
+
uuid?: string;
|
|
31
|
+
usage?: {
|
|
32
|
+
rows_read?: number;
|
|
33
|
+
rows_written?: number;
|
|
34
|
+
storage_bytes?: number;
|
|
35
|
+
bytes_synced?: number;
|
|
36
|
+
};
|
|
37
|
+
}[];
|
|
38
|
+
total?: {
|
|
39
|
+
rows_read?: number;
|
|
40
|
+
rows_written?: number;
|
|
41
|
+
storage_bytes?: number;
|
|
42
|
+
bytes_synced?: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}
|
|
21
46
|
export const GetDatabaseUsageOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
22
47
|
{
|
|
23
48
|
database: Schema.optional(
|
|
@@ -49,8 +74,7 @@ export const GetDatabaseUsageOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
49
74
|
}),
|
|
50
75
|
),
|
|
51
76
|
},
|
|
52
|
-
)
|
|
53
|
-
export type GetDatabaseUsageOutput = typeof GetDatabaseUsageOutput.Type;
|
|
77
|
+
) as unknown as Schema.Codec<GetDatabaseUsageOutput>;
|
|
54
78
|
|
|
55
79
|
// The operation
|
|
56
80
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetGroupInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
groupName: string;
|
|
10
|
+
}
|
|
7
11
|
export const GetGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
groupName: Schema.String.pipe(T.PathParam()),
|
|
@@ -12,10 +16,19 @@ export const GetGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
16
|
method: "GET",
|
|
13
17
|
path: "/v1/organizations/{organizationSlug}/groups/{groupName}",
|
|
14
18
|
}),
|
|
15
|
-
)
|
|
16
|
-
export type GetGroupInput = typeof GetGroupInput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<GetGroupInput>;
|
|
17
20
|
|
|
18
21
|
// Output Schema
|
|
22
|
+
export interface GetGroupOutput {
|
|
23
|
+
group?: {
|
|
24
|
+
name?: string;
|
|
25
|
+
version?: string;
|
|
26
|
+
uuid?: string;
|
|
27
|
+
locations?: string[];
|
|
28
|
+
primary?: string;
|
|
29
|
+
delete_protection?: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
19
32
|
export const GetGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
33
|
group: Schema.optional(
|
|
21
34
|
Schema.Struct({
|
|
@@ -27,8 +40,7 @@ export const GetGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
27
40
|
delete_protection: Schema.optional(Schema.Boolean),
|
|
28
41
|
}),
|
|
29
42
|
),
|
|
30
|
-
})
|
|
31
|
-
export type GetGroupOutput = typeof GetGroupOutput.Type;
|
|
43
|
+
}) as unknown as Schema.Codec<GetGroupOutput>;
|
|
32
44
|
|
|
33
45
|
// The operation
|
|
34
46
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetGroupConfigurationInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
groupName: string;
|
|
10
|
+
}
|
|
7
11
|
export const GetGroupConfigurationInput =
|
|
8
12
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -13,16 +17,16 @@ export const GetGroupConfigurationInput =
|
|
|
13
17
|
method: "GET",
|
|
14
18
|
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/configuration",
|
|
15
19
|
}),
|
|
16
|
-
)
|
|
17
|
-
export type GetGroupConfigurationInput = typeof GetGroupConfigurationInput.Type;
|
|
20
|
+
) as unknown as Schema.Codec<GetGroupConfigurationInput>;
|
|
18
21
|
|
|
19
22
|
// Output Schema
|
|
23
|
+
export interface GetGroupConfigurationOutput {
|
|
24
|
+
delete_protection?: boolean;
|
|
25
|
+
}
|
|
20
26
|
export const GetGroupConfigurationOutput =
|
|
21
27
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
28
|
delete_protection: Schema.optional(Schema.Boolean),
|
|
23
|
-
})
|
|
24
|
-
export type GetGroupConfigurationOutput =
|
|
25
|
-
typeof GetGroupConfigurationOutput.Type;
|
|
29
|
+
}) as unknown as Schema.Codec<GetGroupConfigurationOutput>;
|
|
26
30
|
|
|
27
31
|
// The operation
|
|
28
32
|
/**
|
|
@@ -4,14 +4,30 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetOrganizationInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
}
|
|
7
10
|
export const GetOrganizationInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
12
|
}).pipe(
|
|
10
13
|
T.Http({ method: "GET", path: "/v1/organizations/{organizationSlug}" }),
|
|
11
|
-
)
|
|
12
|
-
export type GetOrganizationInput = typeof GetOrganizationInput.Type;
|
|
14
|
+
) as unknown as Schema.Codec<GetOrganizationInput>;
|
|
13
15
|
|
|
14
16
|
// Output Schema
|
|
17
|
+
export interface GetOrganizationOutput {
|
|
18
|
+
organization?: {
|
|
19
|
+
name?: string;
|
|
20
|
+
slug?: string;
|
|
21
|
+
type?: "personal" | "team";
|
|
22
|
+
overages?: boolean;
|
|
23
|
+
require_mfa?: boolean;
|
|
24
|
+
blocked_reads?: boolean;
|
|
25
|
+
blocked_writes?: boolean;
|
|
26
|
+
plan_id?: string;
|
|
27
|
+
plan_timeline?: string;
|
|
28
|
+
platform?: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
15
31
|
export const GetOrganizationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
32
|
organization: Schema.optional(
|
|
17
33
|
Schema.Struct({
|
|
@@ -19,6 +35,7 @@ export const GetOrganizationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
19
35
|
slug: Schema.optional(Schema.String),
|
|
20
36
|
type: Schema.optional(Schema.Literals(["personal", "team"])),
|
|
21
37
|
overages: Schema.optional(Schema.Boolean),
|
|
38
|
+
require_mfa: Schema.optional(Schema.Boolean),
|
|
22
39
|
blocked_reads: Schema.optional(Schema.Boolean),
|
|
23
40
|
blocked_writes: Schema.optional(Schema.Boolean),
|
|
24
41
|
plan_id: Schema.optional(Schema.String),
|
|
@@ -26,8 +43,7 @@ export const GetOrganizationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
26
43
|
platform: Schema.optional(Schema.String),
|
|
27
44
|
}),
|
|
28
45
|
),
|
|
29
|
-
})
|
|
30
|
-
export type GetOrganizationOutput = typeof GetOrganizationOutput.Type;
|
|
46
|
+
}) as unknown as Schema.Codec<GetOrganizationOutput>;
|
|
31
47
|
|
|
32
48
|
// The operation
|
|
33
49
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetOrganizationMemberInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
username: string;
|
|
10
|
+
}
|
|
7
11
|
export const GetOrganizationMemberInput =
|
|
8
12
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -13,10 +17,16 @@ export const GetOrganizationMemberInput =
|
|
|
13
17
|
method: "GET",
|
|
14
18
|
path: "/v1/organizations/{organizationSlug}/members/{username}",
|
|
15
19
|
}),
|
|
16
|
-
)
|
|
17
|
-
export type GetOrganizationMemberInput = typeof GetOrganizationMemberInput.Type;
|
|
20
|
+
) as unknown as Schema.Codec<GetOrganizationMemberInput>;
|
|
18
21
|
|
|
19
22
|
// Output Schema
|
|
23
|
+
export interface GetOrganizationMemberOutput {
|
|
24
|
+
member?: {
|
|
25
|
+
username?: string;
|
|
26
|
+
role?: "owner" | "admin" | "member" | "viewer";
|
|
27
|
+
email?: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
20
30
|
export const GetOrganizationMemberOutput =
|
|
21
31
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
32
|
member: Schema.optional(
|
|
@@ -28,9 +38,7 @@ export const GetOrganizationMemberOutput =
|
|
|
28
38
|
email: Schema.optional(Schema.String),
|
|
29
39
|
}),
|
|
30
40
|
),
|
|
31
|
-
})
|
|
32
|
-
export type GetOrganizationMemberOutput =
|
|
33
|
-
typeof GetOrganizationMemberOutput.Type;
|
|
41
|
+
}) as unknown as Schema.Codec<GetOrganizationMemberOutput>;
|
|
34
42
|
|
|
35
43
|
// The operation
|
|
36
44
|
/**
|
|
@@ -3,6 +3,9 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetOrganizationSubscriptionInput {
|
|
7
|
+
organizationSlug: string;
|
|
8
|
+
}
|
|
6
9
|
export const GetOrganizationSubscriptionInput =
|
|
7
10
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -11,11 +14,17 @@ export const GetOrganizationSubscriptionInput =
|
|
|
11
14
|
method: "GET",
|
|
12
15
|
path: "/v1/organizations/{organizationSlug}/subscription",
|
|
13
16
|
}),
|
|
14
|
-
)
|
|
15
|
-
export type GetOrganizationSubscriptionInput =
|
|
16
|
-
typeof GetOrganizationSubscriptionInput.Type;
|
|
17
|
+
) as unknown as Schema.Codec<GetOrganizationSubscriptionInput>;
|
|
17
18
|
|
|
18
19
|
// Output Schema
|
|
20
|
+
export interface GetOrganizationSubscriptionOutput {
|
|
21
|
+
subscription?: {
|
|
22
|
+
name?: string;
|
|
23
|
+
overages?: boolean;
|
|
24
|
+
plan?: string;
|
|
25
|
+
timeline?: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
19
28
|
export const GetOrganizationSubscriptionOutput =
|
|
20
29
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
30
|
subscription: Schema.optional(
|
|
@@ -26,9 +35,7 @@ export const GetOrganizationSubscriptionOutput =
|
|
|
26
35
|
timeline: Schema.optional(Schema.String),
|
|
27
36
|
}),
|
|
28
37
|
),
|
|
29
|
-
})
|
|
30
|
-
export type GetOrganizationSubscriptionOutput =
|
|
31
|
-
typeof GetOrganizationSubscriptionOutput.Type;
|
|
38
|
+
}) as unknown as Schema.Codec<GetOrganizationSubscriptionOutput>;
|
|
32
39
|
|
|
33
40
|
// The operation
|
|
34
41
|
/**
|
|
@@ -3,6 +3,9 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetOrganizationUsageInput {
|
|
7
|
+
organizationSlug: string;
|
|
8
|
+
}
|
|
6
9
|
export const GetOrganizationUsageInput =
|
|
7
10
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -11,10 +14,41 @@ export const GetOrganizationUsageInput =
|
|
|
11
14
|
method: "GET",
|
|
12
15
|
path: "/v1/organizations/{organizationSlug}/usage",
|
|
13
16
|
}),
|
|
14
|
-
)
|
|
15
|
-
export type GetOrganizationUsageInput = typeof GetOrganizationUsageInput.Type;
|
|
17
|
+
) as unknown as Schema.Codec<GetOrganizationUsageInput>;
|
|
16
18
|
|
|
17
19
|
// Output Schema
|
|
20
|
+
export interface GetOrganizationUsageOutput {
|
|
21
|
+
organization?: {
|
|
22
|
+
uuid?: string;
|
|
23
|
+
usage?: {
|
|
24
|
+
rows_read?: number;
|
|
25
|
+
rows_written?: number;
|
|
26
|
+
databases?: number;
|
|
27
|
+
locations?: number;
|
|
28
|
+
storage_bytes?: number;
|
|
29
|
+
groups?: number;
|
|
30
|
+
bytes_synced?: number;
|
|
31
|
+
};
|
|
32
|
+
databases?: {
|
|
33
|
+
uuid?: string;
|
|
34
|
+
instances?: {
|
|
35
|
+
uuid?: string;
|
|
36
|
+
usage?: {
|
|
37
|
+
rows_read?: number;
|
|
38
|
+
rows_written?: number;
|
|
39
|
+
storage_bytes?: number;
|
|
40
|
+
bytes_synced?: number;
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
total?: {
|
|
44
|
+
rows_read?: number;
|
|
45
|
+
rows_written?: number;
|
|
46
|
+
storage_bytes?: number;
|
|
47
|
+
bytes_synced?: number;
|
|
48
|
+
};
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
}
|
|
18
52
|
export const GetOrganizationUsageOutput =
|
|
19
53
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
54
|
organization: Schema.optional(
|
|
@@ -63,8 +97,7 @@ export const GetOrganizationUsageOutput =
|
|
|
63
97
|
),
|
|
64
98
|
}),
|
|
65
99
|
),
|
|
66
|
-
})
|
|
67
|
-
export type GetOrganizationUsageOutput = typeof GetOrganizationUsageOutput.Type;
|
|
100
|
+
}) as unknown as Schema.Codec<GetOrganizationUsageOutput>;
|
|
68
101
|
|
|
69
102
|
// The operation
|
|
70
103
|
/**
|