@distilled.cloud/turso 0.29.0 → 0.30.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.js +3 -3
- package/lib/operations/addLocationToGroup.js.map +1 -1
- package/lib/operations/addOrganizationMember.d.ts.map +1 -1
- package/lib/operations/addOrganizationMember.js +3 -3
- package/lib/operations/addOrganizationMember.js.map +1 -1
- package/lib/operations/createAPIToken.js +3 -3
- package/lib/operations/createAPIToken.js.map +1 -1
- package/lib/operations/createDatabase.js +3 -3
- package/lib/operations/createDatabase.js.map +1 -1
- package/lib/operations/createDatabaseToken.js +3 -3
- package/lib/operations/createDatabaseToken.js.map +1 -1
- package/lib/operations/createGroup.js +3 -3
- package/lib/operations/createGroup.js.map +1 -1
- package/lib/operations/createGroupToken.d.ts.map +1 -1
- package/lib/operations/createGroupToken.js +3 -3
- package/lib/operations/createGroupToken.js.map +1 -1
- package/lib/operations/deleteDatabase.js +3 -3
- package/lib/operations/deleteDatabase.js.map +1 -1
- package/lib/operations/deleteGroup.js +3 -3
- package/lib/operations/deleteGroup.js.map +1 -1
- package/lib/operations/deleteOrganizationInviteByEmail.d.ts.map +1 -1
- package/lib/operations/deleteOrganizationInviteByEmail.js +3 -4
- package/lib/operations/deleteOrganizationInviteByEmail.js.map +1 -1
- package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +1 -1
- package/lib/operations/deleteOrganizationInviteByEmailV2.js +3 -3
- package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +1 -1
- package/lib/operations/getCurrentUser.d.ts.map +1 -1
- package/lib/operations/getCurrentUser.js +3 -3
- package/lib/operations/getCurrentUser.js.map +1 -1
- package/lib/operations/getDatabase.js +3 -3
- package/lib/operations/getDatabase.js.map +1 -1
- package/lib/operations/getDatabaseConfiguration.d.ts.map +1 -1
- package/lib/operations/getDatabaseConfiguration.js +3 -3
- package/lib/operations/getDatabaseConfiguration.js.map +1 -1
- package/lib/operations/getDatabaseInstance.js +3 -3
- package/lib/operations/getDatabaseInstance.js.map +1 -1
- package/lib/operations/getDatabaseStats.d.ts.map +1 -1
- package/lib/operations/getDatabaseStats.js +3 -3
- package/lib/operations/getDatabaseStats.js.map +1 -1
- package/lib/operations/getDatabaseUsage.d.ts.map +1 -1
- package/lib/operations/getDatabaseUsage.js +3 -3
- package/lib/operations/getDatabaseUsage.js.map +1 -1
- package/lib/operations/getGroup.js +3 -3
- package/lib/operations/getGroup.js.map +1 -1
- package/lib/operations/getGroupConfiguration.d.ts.map +1 -1
- package/lib/operations/getGroupConfiguration.js +3 -3
- package/lib/operations/getGroupConfiguration.js.map +1 -1
- package/lib/operations/getOrganization.js +3 -3
- package/lib/operations/getOrganization.js.map +1 -1
- package/lib/operations/getOrganizationMember.d.ts.map +1 -1
- package/lib/operations/getOrganizationMember.js +3 -3
- package/lib/operations/getOrganizationMember.js.map +1 -1
- package/lib/operations/getOrganizationSubscription.d.ts.map +1 -1
- package/lib/operations/getOrganizationSubscription.js +3 -3
- package/lib/operations/getOrganizationSubscription.js.map +1 -1
- package/lib/operations/getOrganizationUsage.d.ts.map +1 -1
- package/lib/operations/getOrganizationUsage.js +3 -3
- package/lib/operations/getOrganizationUsage.js.map +1 -1
- package/lib/operations/invalidateDatabaseTokens.d.ts.map +1 -1
- package/lib/operations/invalidateDatabaseTokens.js +3 -3
- package/lib/operations/invalidateDatabaseTokens.js.map +1 -1
- package/lib/operations/invalidateGroupTokens.d.ts.map +1 -1
- package/lib/operations/invalidateGroupTokens.js +3 -3
- package/lib/operations/invalidateGroupTokens.js.map +1 -1
- package/lib/operations/inviteOrganizationMember.d.ts.map +1 -1
- package/lib/operations/inviteOrganizationMember.js +3 -3
- package/lib/operations/inviteOrganizationMember.js.map +1 -1
- package/lib/operations/inviteOrganizationMemberV2.d.ts.map +1 -1
- package/lib/operations/inviteOrganizationMemberV2.js +3 -3
- package/lib/operations/inviteOrganizationMemberV2.js.map +1 -1
- package/lib/operations/listAPITokens.d.ts.map +1 -1
- package/lib/operations/listAPITokens.js +3 -3
- package/lib/operations/listAPITokens.js.map +1 -1
- package/lib/operations/listDatabaseInstances.d.ts.map +1 -1
- package/lib/operations/listDatabaseInstances.js +3 -3
- package/lib/operations/listDatabaseInstances.js.map +1 -1
- package/lib/operations/listDatabases.js +3 -3
- package/lib/operations/listDatabases.js.map +1 -1
- package/lib/operations/listGroups.js +3 -3
- package/lib/operations/listGroups.js.map +1 -1
- package/lib/operations/listLocations.d.ts.map +1 -1
- package/lib/operations/listLocations.js +3 -3
- package/lib/operations/listLocations.js.map +1 -1
- package/lib/operations/listOrganizationAPITokens.d.ts.map +1 -1
- package/lib/operations/listOrganizationAPITokens.js +3 -3
- package/lib/operations/listOrganizationAPITokens.js.map +1 -1
- package/lib/operations/listOrganizationAuditLogs.d.ts.map +1 -1
- package/lib/operations/listOrganizationAuditLogs.js +3 -3
- package/lib/operations/listOrganizationAuditLogs.js.map +1 -1
- package/lib/operations/listOrganizationInvites.d.ts.map +1 -1
- package/lib/operations/listOrganizationInvites.js +3 -3
- package/lib/operations/listOrganizationInvites.js.map +1 -1
- package/lib/operations/listOrganizationInvitesV2.d.ts.map +1 -1
- package/lib/operations/listOrganizationInvitesV2.js +3 -3
- package/lib/operations/listOrganizationInvitesV2.js.map +1 -1
- package/lib/operations/listOrganizationInvoices.d.ts.map +1 -1
- package/lib/operations/listOrganizationInvoices.js +3 -3
- package/lib/operations/listOrganizationInvoices.js.map +1 -1
- package/lib/operations/listOrganizationMembers.d.ts.map +1 -1
- package/lib/operations/listOrganizationMembers.js +3 -3
- package/lib/operations/listOrganizationMembers.js.map +1 -1
- package/lib/operations/listOrganizationPlans.d.ts.map +1 -1
- package/lib/operations/listOrganizationPlans.js +3 -3
- package/lib/operations/listOrganizationPlans.js.map +1 -1
- package/lib/operations/listOrganizations.d.ts.map +1 -1
- package/lib/operations/listOrganizations.js +3 -3
- package/lib/operations/listOrganizations.js.map +1 -1
- package/lib/operations/removeLocationFromGroup.d.ts.map +1 -1
- package/lib/operations/removeLocationFromGroup.js +3 -3
- package/lib/operations/removeLocationFromGroup.js.map +1 -1
- package/lib/operations/removeOrganizationMember.d.ts.map +1 -1
- package/lib/operations/removeOrganizationMember.js +3 -3
- package/lib/operations/removeOrganizationMember.js.map +1 -1
- package/lib/operations/revokeAPIToken.js +3 -3
- package/lib/operations/revokeAPIToken.js.map +1 -1
- package/lib/operations/revokeOrganizationAPIToken.d.ts.map +1 -1
- package/lib/operations/revokeOrganizationAPIToken.js +3 -3
- package/lib/operations/revokeOrganizationAPIToken.js.map +1 -1
- package/lib/operations/transferGroup.js +3 -3
- package/lib/operations/transferGroup.js.map +1 -1
- package/lib/operations/unarchiveGroup.js +3 -3
- package/lib/operations/unarchiveGroup.js.map +1 -1
- package/lib/operations/updateDatabaseConfiguration.d.ts.map +1 -1
- package/lib/operations/updateDatabaseConfiguration.js +3 -3
- package/lib/operations/updateDatabaseConfiguration.js.map +1 -1
- package/lib/operations/updateGroupConfiguration.d.ts.map +1 -1
- package/lib/operations/updateGroupConfiguration.js +3 -3
- package/lib/operations/updateGroupConfiguration.js.map +1 -1
- package/lib/operations/updateGroupDatabases.d.ts.map +1 -1
- package/lib/operations/updateGroupDatabases.js +3 -3
- package/lib/operations/updateGroupDatabases.js.map +1 -1
- package/lib/operations/updateMemberRole.d.ts.map +1 -1
- package/lib/operations/updateMemberRole.js +3 -3
- package/lib/operations/updateMemberRole.js.map +1 -1
- package/lib/operations/updateOrganization.js +3 -3
- package/lib/operations/updateOrganization.js.map +1 -1
- package/lib/operations/validateAPIToken.d.ts.map +1 -1
- package/lib/operations/validateAPIToken.js +3 -3
- package/lib/operations/validateAPIToken.js.map +1 -1
- package/package.json +3 -2
- package/src/operations/addLocationToGroup.ts +3 -3
- package/src/operations/addOrganizationMember.ts +7 -9
- package/src/operations/createAPIToken.ts +3 -3
- package/src/operations/createDatabase.ts +3 -3
- package/src/operations/createDatabaseToken.ts +3 -3
- package/src/operations/createGroup.ts +3 -3
- package/src/operations/createGroupToken.ts +5 -7
- package/src/operations/deleteDatabase.ts +3 -3
- package/src/operations/deleteGroup.ts +3 -3
- package/src/operations/deleteOrganizationInviteByEmail.ts +3 -4
- package/src/operations/deleteOrganizationInviteByEmailV2.ts +3 -3
- package/src/operations/getCurrentUser.ts +3 -5
- package/src/operations/getDatabase.ts +3 -3
- package/src/operations/getDatabaseConfiguration.ts +7 -9
- package/src/operations/getDatabaseInstance.ts +3 -3
- package/src/operations/getDatabaseStats.ts +13 -15
- package/src/operations/getDatabaseUsage.ts +29 -31
- package/src/operations/getGroup.ts +3 -3
- package/src/operations/getGroupConfiguration.ts +7 -9
- package/src/operations/getOrganization.ts +3 -3
- package/src/operations/getOrganizationMember.ts +7 -9
- package/src/operations/getOrganizationSubscription.ts +6 -8
- package/src/operations/getOrganizationUsage.ts +6 -8
- package/src/operations/invalidateDatabaseTokens.ts +7 -9
- package/src/operations/invalidateGroupTokens.ts +7 -9
- package/src/operations/inviteOrganizationMember.ts +7 -9
- package/src/operations/inviteOrganizationMemberV2.ts +6 -8
- package/src/operations/listAPITokens.ts +3 -5
- package/src/operations/listDatabaseInstances.ts +7 -9
- package/src/operations/listDatabases.ts +3 -3
- package/src/operations/listGroups.ts +3 -3
- package/src/operations/listLocations.ts +3 -5
- package/src/operations/listOrganizationAPITokens.ts +6 -8
- package/src/operations/listOrganizationAuditLogs.ts +6 -8
- package/src/operations/listOrganizationInvites.ts +6 -8
- package/src/operations/listOrganizationInvitesV2.ts +6 -8
- package/src/operations/listOrganizationInvoices.ts +6 -8
- package/src/operations/listOrganizationMembers.ts +6 -8
- package/src/operations/listOrganizationPlans.ts +6 -8
- package/src/operations/listOrganizations.ts +3 -5
- package/src/operations/removeLocationFromGroup.ts +7 -9
- package/src/operations/removeOrganizationMember.ts +7 -9
- package/src/operations/revokeAPIToken.ts +3 -3
- package/src/operations/revokeOrganizationAPIToken.ts +6 -8
- package/src/operations/transferGroup.ts +3 -3
- package/src/operations/unarchiveGroup.ts +3 -3
- package/src/operations/updateDatabaseConfiguration.ts +7 -9
- package/src/operations/updateGroupConfiguration.ts +7 -9
- package/src/operations/updateGroupDatabases.ts +7 -9
- package/src/operations/updateMemberRole.ts +11 -13
- package/src/operations/updateOrganization.ts +3 -3
- package/src/operations/validateAPIToken.ts +5 -9
|
@@ -4,9 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface ListAPITokensInput {}
|
|
7
|
-
export const ListAPITokensInput = /*@__PURE__*/
|
|
8
|
-
{},
|
|
9
|
-
).pipe(
|
|
7
|
+
export const ListAPITokensInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
10
8
|
T.Http({ method: "GET", path: "/v1/auth/api-tokens" }),
|
|
11
9
|
) as unknown as Schema.Codec<ListAPITokensInput>;
|
|
12
10
|
|
|
@@ -21,7 +19,7 @@ export interface ListAPITokensOutput {
|
|
|
21
19
|
created_at?: string;
|
|
22
20
|
}[];
|
|
23
21
|
}
|
|
24
|
-
export const ListAPITokensOutput = /*@__PURE__*/
|
|
22
|
+
export const ListAPITokensOutput = /*@__PURE__*/ Schema.Struct({
|
|
25
23
|
tokens: Schema.optional(
|
|
26
24
|
Schema.Array(
|
|
27
25
|
Schema.Struct({
|
|
@@ -42,7 +40,7 @@ export const ListAPITokensOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
42
40
|
*
|
|
43
41
|
* Returns a list of API tokens belonging to a user.
|
|
44
42
|
*/
|
|
45
|
-
export const listAPITokens = /*@__PURE__*/
|
|
43
|
+
export const listAPITokens = /*@__PURE__*/ API.make(() => ({
|
|
46
44
|
inputSchema: ListAPITokensInput,
|
|
47
45
|
outputSchema: ListAPITokensOutput,
|
|
48
46
|
}));
|
|
@@ -9,7 +9,7 @@ export interface ListDatabaseInstancesInput {
|
|
|
9
9
|
databaseName: string;
|
|
10
10
|
}
|
|
11
11
|
export const ListDatabaseInstancesInput =
|
|
12
|
-
/*@__PURE__*/
|
|
12
|
+
/*@__PURE__*/ Schema.Struct({
|
|
13
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
}).pipe(
|
|
@@ -30,7 +30,7 @@ export interface ListDatabaseInstancesOutput {
|
|
|
30
30
|
}[];
|
|
31
31
|
}
|
|
32
32
|
export const ListDatabaseInstancesOutput =
|
|
33
|
-
/*@__PURE__*/
|
|
33
|
+
/*@__PURE__*/ Schema.Struct({
|
|
34
34
|
instances: Schema.optional(
|
|
35
35
|
Schema.Array(
|
|
36
36
|
Schema.Struct({
|
|
@@ -53,10 +53,8 @@ export const ListDatabaseInstancesOutput =
|
|
|
53
53
|
* @param organizationSlug - The slug of the organization or user account.
|
|
54
54
|
* @param databaseName - The name of the database.
|
|
55
55
|
*/
|
|
56
|
-
export const listDatabaseInstances = /*@__PURE__*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}),
|
|
62
|
-
);
|
|
56
|
+
export const listDatabaseInstances = /*@__PURE__*/ API.make(() => ({
|
|
57
|
+
inputSchema: ListDatabaseInstancesInput,
|
|
58
|
+
outputSchema: ListDatabaseInstancesOutput,
|
|
59
|
+
errors: [NotFound] as const,
|
|
60
|
+
}));
|
|
@@ -9,7 +9,7 @@ export interface ListDatabasesInput {
|
|
|
9
9
|
schema?: string;
|
|
10
10
|
parent?: string;
|
|
11
11
|
}
|
|
12
|
-
export const ListDatabasesInput = /*@__PURE__*/
|
|
12
|
+
export const ListDatabasesInput = /*@__PURE__*/ Schema.Struct({
|
|
13
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
group: Schema.optional(Schema.String),
|
|
15
15
|
schema: Schema.optional(Schema.String),
|
|
@@ -36,7 +36,7 @@ export interface ListDatabasesOutput {
|
|
|
36
36
|
parent?: { id?: string; name?: string; branched_at?: string } | null;
|
|
37
37
|
}[];
|
|
38
38
|
}
|
|
39
|
-
export const ListDatabasesOutput = /*@__PURE__*/
|
|
39
|
+
export const ListDatabasesOutput = /*@__PURE__*/ Schema.Struct({
|
|
40
40
|
databases: Schema.optional(
|
|
41
41
|
Schema.Array(
|
|
42
42
|
Schema.Struct({
|
|
@@ -74,7 +74,7 @@ export const ListDatabasesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
74
74
|
* @param schema - The schema database name that can be used to get databases that belong to that parent schema.
|
|
75
75
|
* @param parent - Filter database branches by using their parent database ID.
|
|
76
76
|
*/
|
|
77
|
-
export const listDatabases = /*@__PURE__*/
|
|
77
|
+
export const listDatabases = /*@__PURE__*/ API.make(() => ({
|
|
78
78
|
inputSchema: ListDatabasesInput,
|
|
79
79
|
outputSchema: ListDatabasesOutput,
|
|
80
80
|
}));
|
|
@@ -6,7 +6,7 @@ import * as T from "../traits.ts";
|
|
|
6
6
|
export interface ListGroupsInput {
|
|
7
7
|
organizationSlug: string;
|
|
8
8
|
}
|
|
9
|
-
export const ListGroupsInput = /*@__PURE__*/
|
|
9
|
+
export const ListGroupsInput = /*@__PURE__*/ Schema.Struct({
|
|
10
10
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
11
11
|
}).pipe(
|
|
12
12
|
T.Http({
|
|
@@ -26,7 +26,7 @@ export interface ListGroupsOutput {
|
|
|
26
26
|
delete_protection?: boolean;
|
|
27
27
|
}[];
|
|
28
28
|
}
|
|
29
|
-
export const ListGroupsOutput = /*@__PURE__*/
|
|
29
|
+
export const ListGroupsOutput = /*@__PURE__*/ Schema.Struct({
|
|
30
30
|
groups: Schema.optional(
|
|
31
31
|
Schema.Array(
|
|
32
32
|
Schema.Struct({
|
|
@@ -49,7 +49,7 @@ export const ListGroupsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
49
49
|
*
|
|
50
50
|
* @param organizationSlug - The slug of the organization or user account.
|
|
51
51
|
*/
|
|
52
|
-
export const listGroups = /*@__PURE__*/
|
|
52
|
+
export const listGroups = /*@__PURE__*/ API.make(() => ({
|
|
53
53
|
inputSchema: ListGroupsInput,
|
|
54
54
|
outputSchema: ListGroupsOutput,
|
|
55
55
|
}));
|
|
@@ -4,9 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface ListLocationsInput {}
|
|
7
|
-
export const ListLocationsInput = /*@__PURE__*/
|
|
8
|
-
{},
|
|
9
|
-
).pipe(
|
|
7
|
+
export const ListLocationsInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
10
8
|
T.Http({ method: "GET", path: "/v1/locations" }),
|
|
11
9
|
) as unknown as Schema.Codec<ListLocationsInput>;
|
|
12
10
|
|
|
@@ -14,7 +12,7 @@ export const ListLocationsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
14
12
|
export interface ListLocationsOutput {
|
|
15
13
|
locations?: Record<string, string>;
|
|
16
14
|
}
|
|
17
|
-
export const ListLocationsOutput = /*@__PURE__*/
|
|
15
|
+
export const ListLocationsOutput = /*@__PURE__*/ Schema.Struct({
|
|
18
16
|
locations: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
19
17
|
}) as unknown as Schema.Codec<ListLocationsOutput>;
|
|
20
18
|
|
|
@@ -24,7 +22,7 @@ export const ListLocationsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
24
22
|
*
|
|
25
23
|
* Returns a list of locations where you can create or replicate databases.
|
|
26
24
|
*/
|
|
27
|
-
export const listLocations = /*@__PURE__*/
|
|
25
|
+
export const listLocations = /*@__PURE__*/ API.make(() => ({
|
|
28
26
|
inputSchema: ListLocationsInput,
|
|
29
27
|
outputSchema: ListLocationsOutput,
|
|
30
28
|
}));
|
|
@@ -7,7 +7,7 @@ export interface ListOrganizationAPITokensInput {
|
|
|
7
7
|
organizationSlug: string;
|
|
8
8
|
}
|
|
9
9
|
export const ListOrganizationAPITokensInput =
|
|
10
|
-
/*@__PURE__*/
|
|
10
|
+
/*@__PURE__*/ Schema.Struct({
|
|
11
11
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({
|
|
@@ -29,7 +29,7 @@ export interface ListOrganizationAPITokensOutput {
|
|
|
29
29
|
}[];
|
|
30
30
|
}
|
|
31
31
|
export const ListOrganizationAPITokensOutput =
|
|
32
|
-
/*@__PURE__*/
|
|
32
|
+
/*@__PURE__*/ Schema.Struct({
|
|
33
33
|
tokens: Schema.optional(
|
|
34
34
|
Schema.Array(
|
|
35
35
|
Schema.Struct({
|
|
@@ -62,9 +62,7 @@ export const ListOrganizationAPITokensOutput =
|
|
|
62
62
|
*
|
|
63
63
|
* @param organizationSlug - The slug of the organization or user account.
|
|
64
64
|
*/
|
|
65
|
-
export const listOrganizationAPITokens = /*@__PURE__*/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}),
|
|
70
|
-
);
|
|
65
|
+
export const listOrganizationAPITokens = /*@__PURE__*/ API.make(() => ({
|
|
66
|
+
inputSchema: ListOrganizationAPITokensInput,
|
|
67
|
+
outputSchema: ListOrganizationAPITokensOutput,
|
|
68
|
+
}));
|
|
@@ -9,7 +9,7 @@ export interface ListOrganizationAuditLogsInput {
|
|
|
9
9
|
page?: number;
|
|
10
10
|
}
|
|
11
11
|
export const ListOrganizationAuditLogsInput =
|
|
12
|
-
/*@__PURE__*/
|
|
12
|
+
/*@__PURE__*/ Schema.Struct({
|
|
13
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
page_size: Schema.optional(Schema.Number),
|
|
15
15
|
page: Schema.optional(Schema.Number),
|
|
@@ -62,7 +62,7 @@ export interface ListOrganizationAuditLogsOutput {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
export const ListOrganizationAuditLogsOutput =
|
|
65
|
-
/*@__PURE__*/
|
|
65
|
+
/*@__PURE__*/ Schema.Struct({
|
|
66
66
|
audit_logs: Schema.optional(
|
|
67
67
|
Schema.Array(
|
|
68
68
|
Schema.Struct({
|
|
@@ -122,9 +122,7 @@ export const ListOrganizationAuditLogsOutput =
|
|
|
122
122
|
* @param page_size - The limit of items to return per page. Defaults to 100.
|
|
123
123
|
* @param page - The page number to return. Defaults to 1.
|
|
124
124
|
*/
|
|
125
|
-
export const listOrganizationAuditLogs = /*@__PURE__*/
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}),
|
|
130
|
-
);
|
|
125
|
+
export const listOrganizationAuditLogs = /*@__PURE__*/ API.make(() => ({
|
|
126
|
+
inputSchema: ListOrganizationAuditLogsInput,
|
|
127
|
+
outputSchema: ListOrganizationAuditLogsOutput,
|
|
128
|
+
}));
|
|
@@ -4,7 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export const ListOrganizationInvitesInput =
|
|
7
|
-
/*@__PURE__*/
|
|
7
|
+
/*@__PURE__*/ Schema.Struct({
|
|
8
8
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
9
|
}).pipe(
|
|
10
10
|
T.Http({
|
|
@@ -17,7 +17,7 @@ export type ListOrganizationInvitesInput =
|
|
|
17
17
|
|
|
18
18
|
// Output Schema
|
|
19
19
|
export const ListOrganizationInvitesOutput =
|
|
20
|
-
/*@__PURE__*/
|
|
20
|
+
/*@__PURE__*/ Schema.Struct({
|
|
21
21
|
invites: Schema.optional(
|
|
22
22
|
Schema.Array(
|
|
23
23
|
Schema.Struct({
|
|
@@ -58,9 +58,7 @@ export type ListOrganizationInvitesOutput =
|
|
|
58
58
|
*
|
|
59
59
|
* @param organizationSlug - The slug of the organization or user account.
|
|
60
60
|
*/
|
|
61
|
-
export const listOrganizationInvites = /*@__PURE__*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}),
|
|
66
|
-
);
|
|
61
|
+
export const listOrganizationInvites = /*@__PURE__*/ API.make(() => ({
|
|
62
|
+
inputSchema: ListOrganizationInvitesInput,
|
|
63
|
+
outputSchema: ListOrganizationInvitesOutput,
|
|
64
|
+
}));
|
|
@@ -7,7 +7,7 @@ export interface ListOrganizationInvitesV2Input {
|
|
|
7
7
|
organizationSlug: string;
|
|
8
8
|
}
|
|
9
9
|
export const ListOrganizationInvitesV2Input =
|
|
10
|
-
/*@__PURE__*/
|
|
10
|
+
/*@__PURE__*/ Schema.Struct({
|
|
11
11
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({
|
|
@@ -26,7 +26,7 @@ export interface ListOrganizationInvitesV2Output {
|
|
|
26
26
|
}[];
|
|
27
27
|
}
|
|
28
28
|
export const ListOrganizationInvitesV2Output =
|
|
29
|
-
/*@__PURE__*/
|
|
29
|
+
/*@__PURE__*/ Schema.Struct({
|
|
30
30
|
invites: Schema.optional(
|
|
31
31
|
Schema.Array(
|
|
32
32
|
Schema.Struct({
|
|
@@ -47,9 +47,7 @@ export const ListOrganizationInvitesV2Output =
|
|
|
47
47
|
*
|
|
48
48
|
* @param organizationSlug - The slug of the organization or user account.
|
|
49
49
|
*/
|
|
50
|
-
export const listOrganizationInvitesV2 = /*@__PURE__*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
);
|
|
50
|
+
export const listOrganizationInvitesV2 = /*@__PURE__*/ API.make(() => ({
|
|
51
|
+
inputSchema: ListOrganizationInvitesV2Input,
|
|
52
|
+
outputSchema: ListOrganizationInvitesV2Output,
|
|
53
|
+
}));
|
|
@@ -8,7 +8,7 @@ export interface ListOrganizationInvoicesInput {
|
|
|
8
8
|
type?: "all" | "upcoming" | "issued";
|
|
9
9
|
}
|
|
10
10
|
export const ListOrganizationInvoicesInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
type: Schema.optional(Schema.Literals(["all", "upcoming", "issued"])),
|
|
14
14
|
}).pipe(
|
|
@@ -30,7 +30,7 @@ export interface ListOrganizationInvoicesOutput {
|
|
|
30
30
|
}[];
|
|
31
31
|
}
|
|
32
32
|
export const ListOrganizationInvoicesOutput =
|
|
33
|
-
/*@__PURE__*/
|
|
33
|
+
/*@__PURE__*/ Schema.Struct({
|
|
34
34
|
invoices: Schema.optional(
|
|
35
35
|
Schema.Array(
|
|
36
36
|
Schema.Struct({
|
|
@@ -54,9 +54,7 @@ export const ListOrganizationInvoicesOutput =
|
|
|
54
54
|
* @param organizationSlug - The slug of the organization or user account.
|
|
55
55
|
* @param type - The type of invoice to retrieve.
|
|
56
56
|
*/
|
|
57
|
-
export const listOrganizationInvoices = /*@__PURE__*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}),
|
|
62
|
-
);
|
|
57
|
+
export const listOrganizationInvoices = /*@__PURE__*/ API.make(() => ({
|
|
58
|
+
inputSchema: ListOrganizationInvoicesInput,
|
|
59
|
+
outputSchema: ListOrganizationInvoicesOutput,
|
|
60
|
+
}));
|
|
@@ -7,7 +7,7 @@ export interface ListOrganizationMembersInput {
|
|
|
7
7
|
organizationSlug: string;
|
|
8
8
|
}
|
|
9
9
|
export const ListOrganizationMembersInput =
|
|
10
|
-
/*@__PURE__*/
|
|
10
|
+
/*@__PURE__*/ Schema.Struct({
|
|
11
11
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({
|
|
@@ -25,7 +25,7 @@ export interface ListOrganizationMembersOutput {
|
|
|
25
25
|
}[];
|
|
26
26
|
}
|
|
27
27
|
export const ListOrganizationMembersOutput =
|
|
28
|
-
/*@__PURE__*/
|
|
28
|
+
/*@__PURE__*/ Schema.Struct({
|
|
29
29
|
members: Schema.optional(
|
|
30
30
|
Schema.Array(
|
|
31
31
|
Schema.Struct({
|
|
@@ -47,9 +47,7 @@ export const ListOrganizationMembersOutput =
|
|
|
47
47
|
*
|
|
48
48
|
* @param organizationSlug - The slug of the organization or user account.
|
|
49
49
|
*/
|
|
50
|
-
export const listOrganizationMembers = /*@__PURE__*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
);
|
|
50
|
+
export const listOrganizationMembers = /*@__PURE__*/ API.make(() => ({
|
|
51
|
+
inputSchema: ListOrganizationMembersInput,
|
|
52
|
+
outputSchema: ListOrganizationMembersOutput,
|
|
53
|
+
}));
|
|
@@ -7,7 +7,7 @@ export interface ListOrganizationPlansInput {
|
|
|
7
7
|
organizationSlug: string;
|
|
8
8
|
}
|
|
9
9
|
export const ListOrganizationPlansInput =
|
|
10
|
-
/*@__PURE__*/
|
|
10
|
+
/*@__PURE__*/ Schema.Struct({
|
|
11
11
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({
|
|
@@ -34,7 +34,7 @@ export interface ListOrganizationPlansOutput {
|
|
|
34
34
|
}[];
|
|
35
35
|
}
|
|
36
36
|
export const ListOrganizationPlansOutput =
|
|
37
|
-
/*@__PURE__*/
|
|
37
|
+
/*@__PURE__*/ Schema.Struct({
|
|
38
38
|
plans: Schema.optional(
|
|
39
39
|
Schema.Array(
|
|
40
40
|
Schema.Struct({
|
|
@@ -72,9 +72,7 @@ export const ListOrganizationPlansOutput =
|
|
|
72
72
|
*
|
|
73
73
|
* @param organizationSlug - The slug of the organization or user account.
|
|
74
74
|
*/
|
|
75
|
-
export const listOrganizationPlans = /*@__PURE__*/
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}),
|
|
80
|
-
);
|
|
75
|
+
export const listOrganizationPlans = /*@__PURE__*/ API.make(() => ({
|
|
76
|
+
inputSchema: ListOrganizationPlansInput,
|
|
77
|
+
outputSchema: ListOrganizationPlansOutput,
|
|
78
|
+
}));
|
|
@@ -4,9 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface ListOrganizationsInput {}
|
|
7
|
-
export const ListOrganizationsInput = /*@__PURE__*/
|
|
8
|
-
{},
|
|
9
|
-
).pipe(
|
|
7
|
+
export const ListOrganizationsInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
10
8
|
T.Http({ method: "GET", path: "/v1/organizations" }),
|
|
11
9
|
) as unknown as Schema.Codec<ListOrganizationsInput>;
|
|
12
10
|
|
|
@@ -23,7 +21,7 @@ export type ListOrganizationsOutput = {
|
|
|
23
21
|
plan_timeline?: string;
|
|
24
22
|
platform?: string;
|
|
25
23
|
}[];
|
|
26
|
-
export const ListOrganizationsOutput = /*@__PURE__*/
|
|
24
|
+
export const ListOrganizationsOutput = /*@__PURE__*/ Schema.Array(
|
|
27
25
|
Schema.Struct({
|
|
28
26
|
name: Schema.optional(Schema.String),
|
|
29
27
|
slug: Schema.optional(Schema.String),
|
|
@@ -44,7 +42,7 @@ export const ListOrganizationsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
44
42
|
*
|
|
45
43
|
* Returns a list of organizations the authenticated user owns or is a member of.
|
|
46
44
|
*/
|
|
47
|
-
export const listOrganizations = /*@__PURE__*/
|
|
45
|
+
export const listOrganizations = /*@__PURE__*/ API.make(() => ({
|
|
48
46
|
inputSchema: ListOrganizationsInput,
|
|
49
47
|
outputSchema: ListOrganizationsOutput,
|
|
50
48
|
}));
|
|
@@ -10,7 +10,7 @@ export interface RemoveLocationFromGroupInput {
|
|
|
10
10
|
location: string;
|
|
11
11
|
}
|
|
12
12
|
export const RemoveLocationFromGroupInput =
|
|
13
|
-
/*@__PURE__*/
|
|
13
|
+
/*@__PURE__*/ Schema.Struct({
|
|
14
14
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
groupName: Schema.String.pipe(T.PathParam()),
|
|
16
16
|
location: Schema.String.pipe(T.PathParam()),
|
|
@@ -33,7 +33,7 @@ export interface RemoveLocationFromGroupOutput {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
export const RemoveLocationFromGroupOutput =
|
|
36
|
-
/*@__PURE__*/
|
|
36
|
+
/*@__PURE__*/ Schema.Struct({
|
|
37
37
|
group: Schema.optional(
|
|
38
38
|
Schema.Struct({
|
|
39
39
|
name: Schema.optional(Schema.String),
|
|
@@ -56,10 +56,8 @@ export const RemoveLocationFromGroupOutput =
|
|
|
56
56
|
* @param groupName - The name of the group.
|
|
57
57
|
* @param location - The location code to remove from the group.
|
|
58
58
|
*/
|
|
59
|
-
export const removeLocationFromGroup = /*@__PURE__*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}),
|
|
65
|
-
);
|
|
59
|
+
export const removeLocationFromGroup = /*@__PURE__*/ API.make(() => ({
|
|
60
|
+
inputSchema: RemoveLocationFromGroupInput,
|
|
61
|
+
outputSchema: RemoveLocationFromGroupOutput,
|
|
62
|
+
errors: [BadRequest, NotFound] as const,
|
|
63
|
+
}));
|
|
@@ -9,7 +9,7 @@ export interface RemoveOrganizationMemberInput {
|
|
|
9
9
|
username: string;
|
|
10
10
|
}
|
|
11
11
|
export const RemoveOrganizationMemberInput =
|
|
12
|
-
/*@__PURE__*/
|
|
12
|
+
/*@__PURE__*/ Schema.Struct({
|
|
13
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
username: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
}).pipe(
|
|
@@ -24,7 +24,7 @@ export interface RemoveOrganizationMemberOutput {
|
|
|
24
24
|
member?: string;
|
|
25
25
|
}
|
|
26
26
|
export const RemoveOrganizationMemberOutput =
|
|
27
|
-
/*@__PURE__*/
|
|
27
|
+
/*@__PURE__*/ Schema.Struct({
|
|
28
28
|
member: Schema.optional(Schema.String),
|
|
29
29
|
}) as unknown as Schema.Codec<RemoveOrganizationMemberOutput>;
|
|
30
30
|
|
|
@@ -37,10 +37,8 @@ export const RemoveOrganizationMemberOutput =
|
|
|
37
37
|
* @param organizationSlug - The slug of the organization or user account.
|
|
38
38
|
* @param username - The username of a Turso user or organization member.
|
|
39
39
|
*/
|
|
40
|
-
export const removeOrganizationMember = /*@__PURE__*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}),
|
|
46
|
-
);
|
|
40
|
+
export const removeOrganizationMember = /*@__PURE__*/ API.make(() => ({
|
|
41
|
+
inputSchema: RemoveOrganizationMemberInput,
|
|
42
|
+
outputSchema: RemoveOrganizationMemberOutput,
|
|
43
|
+
errors: [NotFound] as const,
|
|
44
|
+
}));
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../errors.ts";
|
|
|
7
7
|
export interface RevokeAPITokenInput {
|
|
8
8
|
tokenName: string;
|
|
9
9
|
}
|
|
10
|
-
export const RevokeAPITokenInput = /*@__PURE__*/
|
|
10
|
+
export const RevokeAPITokenInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
tokenName: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "DELETE", path: "/v1/auth/api-tokens/{tokenName}" }),
|
|
@@ -17,7 +17,7 @@ export const RevokeAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
17
17
|
export interface RevokeAPITokenOutput {
|
|
18
18
|
token?: string;
|
|
19
19
|
}
|
|
20
|
-
export const RevokeAPITokenOutput = /*@__PURE__*/
|
|
20
|
+
export const RevokeAPITokenOutput = /*@__PURE__*/ Schema.Struct({
|
|
21
21
|
token: Schema.optional(Schema.String),
|
|
22
22
|
}) as unknown as Schema.Codec<RevokeAPITokenOutput>;
|
|
23
23
|
|
|
@@ -29,7 +29,7 @@ export const RevokeAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
29
29
|
*
|
|
30
30
|
* @param tokenName - The name of the api token.
|
|
31
31
|
*/
|
|
32
|
-
export const revokeAPIToken = /*@__PURE__*/
|
|
32
|
+
export const revokeAPIToken = /*@__PURE__*/ API.make(() => ({
|
|
33
33
|
inputSchema: RevokeAPITokenInput,
|
|
34
34
|
outputSchema: RevokeAPITokenOutput,
|
|
35
35
|
errors: [NotFound] as const,
|
|
@@ -8,7 +8,7 @@ export interface RevokeOrganizationAPITokenInput {
|
|
|
8
8
|
tokenId: string;
|
|
9
9
|
}
|
|
10
10
|
export const RevokeOrganizationAPITokenInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
tokenId: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
}).pipe(
|
|
@@ -23,7 +23,7 @@ export interface RevokeOrganizationAPITokenOutput {
|
|
|
23
23
|
token?: string;
|
|
24
24
|
}
|
|
25
25
|
export const RevokeOrganizationAPITokenOutput =
|
|
26
|
-
/*@__PURE__*/
|
|
26
|
+
/*@__PURE__*/ Schema.Struct({
|
|
27
27
|
token: Schema.optional(Schema.String),
|
|
28
28
|
}) as unknown as Schema.Codec<RevokeOrganizationAPITokenOutput>;
|
|
29
29
|
|
|
@@ -41,9 +41,7 @@ export const RevokeOrganizationAPITokenOutput =
|
|
|
41
41
|
* @param organizationSlug - The slug of the organization or user account.
|
|
42
42
|
* @param tokenId - The ID of the token to revoke (from the list endpoint).
|
|
43
43
|
*/
|
|
44
|
-
export const revokeOrganizationAPIToken = /*@__PURE__*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}),
|
|
49
|
-
);
|
|
44
|
+
export const revokeOrganizationAPIToken = /*@__PURE__*/ API.make(() => ({
|
|
45
|
+
inputSchema: RevokeOrganizationAPITokenInput,
|
|
46
|
+
outputSchema: RevokeOrganizationAPITokenOutput,
|
|
47
|
+
}));
|
|
@@ -9,7 +9,7 @@ export interface TransferGroupInput {
|
|
|
9
9
|
groupName: string;
|
|
10
10
|
organization?: string;
|
|
11
11
|
}
|
|
12
|
-
export const TransferGroupInput = /*@__PURE__*/
|
|
12
|
+
export const TransferGroupInput = /*@__PURE__*/ Schema.Struct({
|
|
13
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
groupName: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
organization: Schema.optional(Schema.String),
|
|
@@ -29,7 +29,7 @@ export interface TransferGroupOutput {
|
|
|
29
29
|
primary?: string;
|
|
30
30
|
delete_protection?: boolean;
|
|
31
31
|
}
|
|
32
|
-
export const TransferGroupOutput = /*@__PURE__*/
|
|
32
|
+
export const TransferGroupOutput = /*@__PURE__*/ Schema.Struct({
|
|
33
33
|
name: Schema.optional(Schema.String),
|
|
34
34
|
version: Schema.optional(Schema.String),
|
|
35
35
|
uuid: Schema.optional(Schema.String),
|
|
@@ -47,7 +47,7 @@ export const TransferGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
47
47
|
* @param organizationSlug - The slug of the organization or user account.
|
|
48
48
|
* @param groupName - The name of the group.
|
|
49
49
|
*/
|
|
50
|
-
export const transferGroup = /*@__PURE__*/
|
|
50
|
+
export const transferGroup = /*@__PURE__*/ API.make(() => ({
|
|
51
51
|
inputSchema: TransferGroupInput,
|
|
52
52
|
outputSchema: TransferGroupOutput,
|
|
53
53
|
errors: [NotFound] as const,
|
|
@@ -8,7 +8,7 @@ export interface UnarchiveGroupInput {
|
|
|
8
8
|
organizationSlug: string;
|
|
9
9
|
groupName: string;
|
|
10
10
|
}
|
|
11
|
-
export const UnarchiveGroupInput = /*@__PURE__*/
|
|
11
|
+
export const UnarchiveGroupInput = /*@__PURE__*/ Schema.Struct({
|
|
12
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
groupName: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
}).pipe(
|
|
@@ -29,7 +29,7 @@ export interface UnarchiveGroupOutput {
|
|
|
29
29
|
delete_protection?: boolean;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export const UnarchiveGroupOutput = /*@__PURE__*/
|
|
32
|
+
export const UnarchiveGroupOutput = /*@__PURE__*/ Schema.Struct({
|
|
33
33
|
group: Schema.optional(
|
|
34
34
|
Schema.Struct({
|
|
35
35
|
name: Schema.optional(Schema.String),
|
|
@@ -51,7 +51,7 @@ export const UnarchiveGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
51
51
|
* @param organizationSlug - The slug of the organization or user account.
|
|
52
52
|
* @param groupName - The name of the group.
|
|
53
53
|
*/
|
|
54
|
-
export const unarchiveGroup = /*@__PURE__*/
|
|
54
|
+
export const unarchiveGroup = /*@__PURE__*/ API.make(() => ({
|
|
55
55
|
inputSchema: UnarchiveGroupInput,
|
|
56
56
|
outputSchema: UnarchiveGroupOutput,
|
|
57
57
|
errors: [NotFound] as const,
|
|
@@ -16,7 +16,7 @@ export interface UpdateDatabaseConfigurationInput {
|
|
|
16
16
|
allowed_aws_vpc_ids?: string[];
|
|
17
17
|
}
|
|
18
18
|
export const UpdateDatabaseConfigurationInput =
|
|
19
|
-
/*@__PURE__*/
|
|
19
|
+
/*@__PURE__*/ Schema.Struct({
|
|
20
20
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
21
21
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
22
22
|
size_limit: Schema.optional(Schema.String),
|
|
@@ -44,7 +44,7 @@ export interface UpdateDatabaseConfigurationOutput {
|
|
|
44
44
|
allowed_aws_vpc_ids?: string[];
|
|
45
45
|
}
|
|
46
46
|
export const UpdateDatabaseConfigurationOutput =
|
|
47
|
-
/*@__PURE__*/
|
|
47
|
+
/*@__PURE__*/ Schema.Struct({
|
|
48
48
|
size_limit: Schema.optional(Schema.String),
|
|
49
49
|
allow_attach: Schema.optional(Schema.Boolean),
|
|
50
50
|
block_reads: Schema.optional(Schema.Boolean),
|
|
@@ -63,10 +63,8 @@ export const UpdateDatabaseConfigurationOutput =
|
|
|
63
63
|
* @param organizationSlug - The slug of the organization or user account.
|
|
64
64
|
* @param databaseName - The name of the database.
|
|
65
65
|
*/
|
|
66
|
-
export const updateDatabaseConfiguration = /*@__PURE__*/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}),
|
|
72
|
-
);
|
|
66
|
+
export const updateDatabaseConfiguration = /*@__PURE__*/ API.make(() => ({
|
|
67
|
+
inputSchema: UpdateDatabaseConfigurationInput,
|
|
68
|
+
outputSchema: UpdateDatabaseConfigurationOutput,
|
|
69
|
+
errors: [NotFound] as const,
|
|
70
|
+
}));
|
|
@@ -10,7 +10,7 @@ export interface UpdateGroupConfigurationInput {
|
|
|
10
10
|
delete_protection?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export const UpdateGroupConfigurationInput =
|
|
13
|
-
/*@__PURE__*/
|
|
13
|
+
/*@__PURE__*/ Schema.Struct({
|
|
14
14
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
groupName: Schema.String.pipe(T.PathParam()),
|
|
16
16
|
delete_protection: Schema.optional(Schema.Boolean),
|
|
@@ -26,7 +26,7 @@ export interface UpdateGroupConfigurationOutput {
|
|
|
26
26
|
delete_protection?: boolean;
|
|
27
27
|
}
|
|
28
28
|
export const UpdateGroupConfigurationOutput =
|
|
29
|
-
/*@__PURE__*/
|
|
29
|
+
/*@__PURE__*/ Schema.Struct({
|
|
30
30
|
delete_protection: Schema.optional(Schema.Boolean),
|
|
31
31
|
}) as unknown as Schema.Codec<UpdateGroupConfigurationOutput>;
|
|
32
32
|
|
|
@@ -39,10 +39,8 @@ export const UpdateGroupConfigurationOutput =
|
|
|
39
39
|
* @param organizationSlug - The slug of the organization or user account.
|
|
40
40
|
* @param groupName - The name of the group.
|
|
41
41
|
*/
|
|
42
|
-
export const updateGroupConfiguration = /*@__PURE__*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}),
|
|
48
|
-
);
|
|
42
|
+
export const updateGroupConfiguration = /*@__PURE__*/ API.make(() => ({
|
|
43
|
+
inputSchema: UpdateGroupConfigurationInput,
|
|
44
|
+
outputSchema: UpdateGroupConfigurationOutput,
|
|
45
|
+
errors: [NotFound] as const,
|
|
46
|
+
}));
|