@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
|
@@ -8,7 +8,7 @@ export interface DeleteGroupInput {
|
|
|
8
8
|
organizationSlug: string;
|
|
9
9
|
groupName: string;
|
|
10
10
|
}
|
|
11
|
-
export const DeleteGroupInput = /*@__PURE__*/
|
|
11
|
+
export const DeleteGroupInput = /*@__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 DeleteGroupOutput {
|
|
|
29
29
|
delete_protection?: boolean;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export const DeleteGroupOutput = /*@__PURE__*/
|
|
32
|
+
export const DeleteGroupOutput = /*@__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 DeleteGroupOutput = /*@__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 deleteGroup = /*@__PURE__*/
|
|
54
|
+
export const deleteGroup = /*@__PURE__*/ API.make(() => ({
|
|
55
55
|
inputSchema: DeleteGroupInput,
|
|
56
56
|
outputSchema: DeleteGroupOutput,
|
|
57
57
|
errors: [NotFound] as const,
|
|
@@ -5,7 +5,7 @@ import { NotFound } from "../errors.ts";
|
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
7
|
export const DeleteOrganizationInviteByEmailInput =
|
|
8
|
-
/*@__PURE__*/
|
|
8
|
+
/*@__PURE__*/ Schema.Struct({
|
|
9
9
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
10
10
|
email: Schema.String.pipe(T.PathParam()),
|
|
11
11
|
}).pipe(
|
|
@@ -18,8 +18,7 @@ export type DeleteOrganizationInviteByEmailInput =
|
|
|
18
18
|
typeof DeleteOrganizationInviteByEmailInput.Type;
|
|
19
19
|
|
|
20
20
|
// Output Schema
|
|
21
|
-
export const DeleteOrganizationInviteByEmailOutput =
|
|
22
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
21
|
+
export const DeleteOrganizationInviteByEmailOutput = /*@__PURE__*/ Schema.Void;
|
|
23
22
|
export type DeleteOrganizationInviteByEmailOutput =
|
|
24
23
|
typeof DeleteOrganizationInviteByEmailOutput.Type;
|
|
25
24
|
|
|
@@ -32,7 +31,7 @@ export type DeleteOrganizationInviteByEmailOutput =
|
|
|
32
31
|
* @param organizationSlug - The slug of the organization or user account.
|
|
33
32
|
*/
|
|
34
33
|
export const deleteOrganizationInviteByEmail =
|
|
35
|
-
/*@__PURE__*/
|
|
34
|
+
/*@__PURE__*/ API.make(() => ({
|
|
36
35
|
inputSchema: DeleteOrganizationInviteByEmailInput,
|
|
37
36
|
outputSchema: DeleteOrganizationInviteByEmailOutput,
|
|
38
37
|
errors: [NotFound] as const,
|
|
@@ -9,7 +9,7 @@ export interface DeleteOrganizationInviteByEmailV2Input {
|
|
|
9
9
|
email: string;
|
|
10
10
|
}
|
|
11
11
|
export const DeleteOrganizationInviteByEmailV2Input =
|
|
12
|
-
/*@__PURE__*/
|
|
12
|
+
/*@__PURE__*/ Schema.Struct({
|
|
13
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
email: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
}).pipe(
|
|
@@ -22,7 +22,7 @@ export const DeleteOrganizationInviteByEmailV2Input =
|
|
|
22
22
|
// Output Schema
|
|
23
23
|
export type DeleteOrganizationInviteByEmailV2Output = void;
|
|
24
24
|
export const DeleteOrganizationInviteByEmailV2Output =
|
|
25
|
-
/*@__PURE__*/
|
|
25
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<DeleteOrganizationInviteByEmailV2Output>;
|
|
26
26
|
|
|
27
27
|
// The operation
|
|
28
28
|
/**
|
|
@@ -33,7 +33,7 @@ export const DeleteOrganizationInviteByEmailV2Output =
|
|
|
33
33
|
* @param organizationSlug - The slug of the organization or user account.
|
|
34
34
|
*/
|
|
35
35
|
export const deleteOrganizationInviteByEmailV2 =
|
|
36
|
-
/*@__PURE__*/
|
|
36
|
+
/*@__PURE__*/ API.make(() => ({
|
|
37
37
|
inputSchema: DeleteOrganizationInviteByEmailV2Input,
|
|
38
38
|
outputSchema: DeleteOrganizationInviteByEmailV2Output,
|
|
39
39
|
errors: [NotFound] as const,
|
|
@@ -4,9 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetCurrentUserInput {}
|
|
7
|
-
export const GetCurrentUserInput = /*@__PURE__*/
|
|
8
|
-
{},
|
|
9
|
-
).pipe(
|
|
7
|
+
export const GetCurrentUserInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
10
8
|
T.Http({ method: "GET", path: "/v1/user" }),
|
|
11
9
|
) as unknown as Schema.Codec<GetCurrentUserInput>;
|
|
12
10
|
|
|
@@ -22,7 +20,7 @@ export interface GetCurrentUserOutput {
|
|
|
22
20
|
has_pending_invites?: boolean;
|
|
23
21
|
};
|
|
24
22
|
}
|
|
25
|
-
export const GetCurrentUserOutput = /*@__PURE__*/
|
|
23
|
+
export const GetCurrentUserOutput = /*@__PURE__*/ Schema.Struct({
|
|
26
24
|
user: Schema.optional(
|
|
27
25
|
Schema.Struct({
|
|
28
26
|
username: Schema.optional(Schema.String),
|
|
@@ -42,7 +40,7 @@ export const GetCurrentUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
42
40
|
*
|
|
43
41
|
* Returns information about the currently authenticated user.
|
|
44
42
|
*/
|
|
45
|
-
export const getCurrentUser = /*@__PURE__*/
|
|
43
|
+
export const getCurrentUser = /*@__PURE__*/ API.make(() => ({
|
|
46
44
|
inputSchema: GetCurrentUserInput,
|
|
47
45
|
outputSchema: GetCurrentUserOutput,
|
|
48
46
|
}));
|
|
@@ -8,7 +8,7 @@ export interface GetDatabaseInput {
|
|
|
8
8
|
organizationSlug: string;
|
|
9
9
|
databaseName: string;
|
|
10
10
|
}
|
|
11
|
-
export const GetDatabaseInput = /*@__PURE__*/
|
|
11
|
+
export const GetDatabaseInput = /*@__PURE__*/ Schema.Struct({
|
|
12
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
}).pipe(
|
|
@@ -33,7 +33,7 @@ export interface GetDatabaseOutput {
|
|
|
33
33
|
parent?: { id?: string; name?: string; branched_at?: string } | null;
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
export const GetDatabaseOutput = /*@__PURE__*/
|
|
36
|
+
export const GetDatabaseOutput = /*@__PURE__*/ Schema.Struct({
|
|
37
37
|
database: Schema.optional(
|
|
38
38
|
Schema.Struct({
|
|
39
39
|
Name: Schema.optional(Schema.String),
|
|
@@ -67,7 +67,7 @@ export const GetDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
67
67
|
* @param organizationSlug - The slug of the organization or user account.
|
|
68
68
|
* @param databaseName - The name of the database.
|
|
69
69
|
*/
|
|
70
|
-
export const getDatabase = /*@__PURE__*/
|
|
70
|
+
export const getDatabase = /*@__PURE__*/ API.make(() => ({
|
|
71
71
|
inputSchema: GetDatabaseInput,
|
|
72
72
|
outputSchema: GetDatabaseOutput,
|
|
73
73
|
errors: [NotFound] as const,
|
|
@@ -9,7 +9,7 @@ export interface GetDatabaseConfigurationInput {
|
|
|
9
9
|
databaseName: string;
|
|
10
10
|
}
|
|
11
11
|
export const GetDatabaseConfigurationInput =
|
|
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 GetDatabaseConfigurationOutput {
|
|
|
30
30
|
allowed_aws_vpc_ids?: string[];
|
|
31
31
|
}
|
|
32
32
|
export const GetDatabaseConfigurationOutput =
|
|
33
|
-
/*@__PURE__*/
|
|
33
|
+
/*@__PURE__*/ Schema.Struct({
|
|
34
34
|
size_limit: Schema.optional(Schema.String),
|
|
35
35
|
allow_attach: Schema.optional(Schema.Boolean),
|
|
36
36
|
block_reads: Schema.optional(Schema.Boolean),
|
|
@@ -49,10 +49,8 @@ export const GetDatabaseConfigurationOutput =
|
|
|
49
49
|
* @param organizationSlug - The slug of the organization or user account.
|
|
50
50
|
* @param databaseName - The name of the database.
|
|
51
51
|
*/
|
|
52
|
-
export const getDatabaseConfiguration = /*@__PURE__*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}),
|
|
58
|
-
);
|
|
52
|
+
export const getDatabaseConfiguration = /*@__PURE__*/ API.make(() => ({
|
|
53
|
+
inputSchema: GetDatabaseConfigurationInput,
|
|
54
|
+
outputSchema: GetDatabaseConfigurationOutput,
|
|
55
|
+
errors: [NotFound] as const,
|
|
56
|
+
}));
|
|
@@ -10,7 +10,7 @@ export interface GetDatabaseInstanceInput {
|
|
|
10
10
|
instanceName: string;
|
|
11
11
|
}
|
|
12
12
|
export const GetDatabaseInstanceInput =
|
|
13
|
-
/*@__PURE__*/
|
|
13
|
+
/*@__PURE__*/ Schema.Struct({
|
|
14
14
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
16
16
|
instanceName: Schema.String.pipe(T.PathParam()),
|
|
@@ -32,7 +32,7 @@ export interface GetDatabaseInstanceOutput {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export const GetDatabaseInstanceOutput =
|
|
35
|
-
/*@__PURE__*/
|
|
35
|
+
/*@__PURE__*/ Schema.Struct({
|
|
36
36
|
instance: Schema.optional(
|
|
37
37
|
Schema.Struct({
|
|
38
38
|
uuid: Schema.optional(Schema.String),
|
|
@@ -54,7 +54,7 @@ export const GetDatabaseInstanceOutput =
|
|
|
54
54
|
* @param databaseName - The name of the database.
|
|
55
55
|
* @param instanceName - The name of the instance (location code).
|
|
56
56
|
*/
|
|
57
|
-
export const getDatabaseInstance = /*@__PURE__*/
|
|
57
|
+
export const getDatabaseInstance = /*@__PURE__*/ API.make(() => ({
|
|
58
58
|
inputSchema: GetDatabaseInstanceInput,
|
|
59
59
|
outputSchema: GetDatabaseInstanceOutput,
|
|
60
60
|
errors: [NotFound] as const,
|
|
@@ -8,7 +8,7 @@ export interface GetDatabaseStatsInput {
|
|
|
8
8
|
organizationSlug: string;
|
|
9
9
|
databaseName: string;
|
|
10
10
|
}
|
|
11
|
-
export const GetDatabaseStatsInput = /*@__PURE__*/
|
|
11
|
+
export const GetDatabaseStatsInput = /*@__PURE__*/ Schema.Struct({
|
|
12
12
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
}).pipe(
|
|
@@ -24,21 +24,19 @@ export interface GetDatabaseStatsOutput {
|
|
|
24
24
|
| { query?: string; rows_read?: number; rows_written?: number }[]
|
|
25
25
|
| null;
|
|
26
26
|
}
|
|
27
|
-
export const GetDatabaseStatsOutput = /*@__PURE__*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Schema.
|
|
31
|
-
Schema.
|
|
32
|
-
Schema.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}),
|
|
37
|
-
),
|
|
27
|
+
export const GetDatabaseStatsOutput = /*@__PURE__*/ Schema.Struct({
|
|
28
|
+
top_queries: Schema.optional(
|
|
29
|
+
Schema.NullOr(
|
|
30
|
+
Schema.Array(
|
|
31
|
+
Schema.Struct({
|
|
32
|
+
query: Schema.optional(Schema.String),
|
|
33
|
+
rows_read: Schema.optional(Schema.Number),
|
|
34
|
+
rows_written: Schema.optional(Schema.Number),
|
|
35
|
+
}),
|
|
38
36
|
),
|
|
39
37
|
),
|
|
40
|
-
|
|
41
|
-
) as unknown as Schema.Codec<GetDatabaseStatsOutput>;
|
|
38
|
+
),
|
|
39
|
+
}) as unknown as Schema.Codec<GetDatabaseStatsOutput>;
|
|
42
40
|
|
|
43
41
|
// The operation
|
|
44
42
|
/**
|
|
@@ -49,7 +47,7 @@ export const GetDatabaseStatsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
49
47
|
* @param organizationSlug - The slug of the organization or user account.
|
|
50
48
|
* @param databaseName - The name of the database.
|
|
51
49
|
*/
|
|
52
|
-
export const getDatabaseStats = /*@__PURE__*/
|
|
50
|
+
export const getDatabaseStats = /*@__PURE__*/ API.make(() => ({
|
|
53
51
|
inputSchema: GetDatabaseStatsInput,
|
|
54
52
|
outputSchema: GetDatabaseStatsOutput,
|
|
55
53
|
errors: [NotFound] as const,
|
|
@@ -10,7 +10,7 @@ export interface GetDatabaseUsageInput {
|
|
|
10
10
|
from?: string;
|
|
11
11
|
to?: string;
|
|
12
12
|
}
|
|
13
|
-
export const GetDatabaseUsageInput = /*@__PURE__*/
|
|
13
|
+
export const GetDatabaseUsageInput = /*@__PURE__*/ Schema.Struct({
|
|
14
14
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
databaseName: Schema.String.pipe(T.PathParam()),
|
|
16
16
|
from: Schema.optional(Schema.String),
|
|
@@ -43,38 +43,36 @@ export interface GetDatabaseUsageOutput {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export const GetDatabaseUsageOutput = /*@__PURE__*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Schema.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Schema.Array(
|
|
53
|
-
Schema.Struct({
|
|
54
|
-
uuid: Schema.optional(Schema.String),
|
|
55
|
-
usage: Schema.optional(
|
|
56
|
-
Schema.Struct({
|
|
57
|
-
rows_read: Schema.optional(Schema.Number),
|
|
58
|
-
rows_written: Schema.optional(Schema.Number),
|
|
59
|
-
storage_bytes: Schema.optional(Schema.Number),
|
|
60
|
-
bytes_synced: Schema.optional(Schema.Number),
|
|
61
|
-
}),
|
|
62
|
-
),
|
|
63
|
-
}),
|
|
64
|
-
),
|
|
65
|
-
),
|
|
66
|
-
total: Schema.optional(
|
|
46
|
+
export const GetDatabaseUsageOutput = /*@__PURE__*/ Schema.Struct({
|
|
47
|
+
database: Schema.optional(
|
|
48
|
+
Schema.Struct({
|
|
49
|
+
uuid: Schema.optional(Schema.String),
|
|
50
|
+
instances: Schema.optional(
|
|
51
|
+
Schema.Array(
|
|
67
52
|
Schema.Struct({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
53
|
+
uuid: Schema.optional(Schema.String),
|
|
54
|
+
usage: Schema.optional(
|
|
55
|
+
Schema.Struct({
|
|
56
|
+
rows_read: Schema.optional(Schema.Number),
|
|
57
|
+
rows_written: Schema.optional(Schema.Number),
|
|
58
|
+
storage_bytes: Schema.optional(Schema.Number),
|
|
59
|
+
bytes_synced: Schema.optional(Schema.Number),
|
|
60
|
+
}),
|
|
61
|
+
),
|
|
72
62
|
}),
|
|
73
63
|
),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
64
|
+
),
|
|
65
|
+
total: Schema.optional(
|
|
66
|
+
Schema.Struct({
|
|
67
|
+
rows_read: Schema.optional(Schema.Number),
|
|
68
|
+
rows_written: Schema.optional(Schema.Number),
|
|
69
|
+
storage_bytes: Schema.optional(Schema.Number),
|
|
70
|
+
bytes_synced: Schema.optional(Schema.Number),
|
|
71
|
+
}),
|
|
72
|
+
),
|
|
73
|
+
}),
|
|
74
|
+
),
|
|
75
|
+
}) as unknown as Schema.Codec<GetDatabaseUsageOutput>;
|
|
78
76
|
|
|
79
77
|
// The operation
|
|
80
78
|
/**
|
|
@@ -87,7 +85,7 @@ export const GetDatabaseUsageOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
87
85
|
* @param from - The datetime to retrieve usage **from** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar month if not provided. Example: `2023-01-01T00:00:00Z`
|
|
88
86
|
* @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`
|
|
89
87
|
*/
|
|
90
|
-
export const getDatabaseUsage = /*@__PURE__*/
|
|
88
|
+
export const getDatabaseUsage = /*@__PURE__*/ API.make(() => ({
|
|
91
89
|
inputSchema: GetDatabaseUsageInput,
|
|
92
90
|
outputSchema: GetDatabaseUsageOutput,
|
|
93
91
|
errors: [BadRequest, NotFound] as const,
|
|
@@ -8,7 +8,7 @@ export interface GetGroupInput {
|
|
|
8
8
|
organizationSlug: string;
|
|
9
9
|
groupName: string;
|
|
10
10
|
}
|
|
11
|
-
export const GetGroupInput = /*@__PURE__*/
|
|
11
|
+
export const GetGroupInput = /*@__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 GetGroupOutput {
|
|
|
29
29
|
delete_protection?: boolean;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export const GetGroupOutput = /*@__PURE__*/
|
|
32
|
+
export const GetGroupOutput = /*@__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 GetGroupOutput = /*@__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 getGroup = /*@__PURE__*/
|
|
54
|
+
export const getGroup = /*@__PURE__*/ API.make(() => ({
|
|
55
55
|
inputSchema: GetGroupInput,
|
|
56
56
|
outputSchema: GetGroupOutput,
|
|
57
57
|
errors: [NotFound] as const,
|
|
@@ -9,7 +9,7 @@ export interface GetGroupConfigurationInput {
|
|
|
9
9
|
groupName: string;
|
|
10
10
|
}
|
|
11
11
|
export const GetGroupConfigurationInput =
|
|
12
|
-
/*@__PURE__*/
|
|
12
|
+
/*@__PURE__*/ Schema.Struct({
|
|
13
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
groupName: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
}).pipe(
|
|
@@ -24,7 +24,7 @@ export interface GetGroupConfigurationOutput {
|
|
|
24
24
|
delete_protection?: boolean;
|
|
25
25
|
}
|
|
26
26
|
export const GetGroupConfigurationOutput =
|
|
27
|
-
/*@__PURE__*/
|
|
27
|
+
/*@__PURE__*/ Schema.Struct({
|
|
28
28
|
delete_protection: Schema.optional(Schema.Boolean),
|
|
29
29
|
}) as unknown as Schema.Codec<GetGroupConfigurationOutput>;
|
|
30
30
|
|
|
@@ -37,10 +37,8 @@ export const GetGroupConfigurationOutput =
|
|
|
37
37
|
* @param organizationSlug - The slug of the organization or user account.
|
|
38
38
|
* @param groupName - The name of the group.
|
|
39
39
|
*/
|
|
40
|
-
export const getGroupConfiguration = /*@__PURE__*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}),
|
|
46
|
-
);
|
|
40
|
+
export const getGroupConfiguration = /*@__PURE__*/ API.make(() => ({
|
|
41
|
+
inputSchema: GetGroupConfigurationInput,
|
|
42
|
+
outputSchema: GetGroupConfigurationOutput,
|
|
43
|
+
errors: [NotFound] as const,
|
|
44
|
+
}));
|
|
@@ -7,7 +7,7 @@ import { NotFound } from "../errors.ts";
|
|
|
7
7
|
export interface GetOrganizationInput {
|
|
8
8
|
organizationSlug: string;
|
|
9
9
|
}
|
|
10
|
-
export const GetOrganizationInput = /*@__PURE__*/
|
|
10
|
+
export const GetOrganizationInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/v1/organizations/{organizationSlug}" }),
|
|
@@ -28,7 +28,7 @@ export interface GetOrganizationOutput {
|
|
|
28
28
|
platform?: string;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
export const GetOrganizationOutput = /*@__PURE__*/
|
|
31
|
+
export const GetOrganizationOutput = /*@__PURE__*/ Schema.Struct({
|
|
32
32
|
organization: Schema.optional(
|
|
33
33
|
Schema.Struct({
|
|
34
34
|
name: Schema.optional(Schema.String),
|
|
@@ -53,7 +53,7 @@ export const GetOrganizationOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
53
53
|
*
|
|
54
54
|
* @param organizationSlug - The slug of the organization or user account.
|
|
55
55
|
*/
|
|
56
|
-
export const getOrganization = /*@__PURE__*/
|
|
56
|
+
export const getOrganization = /*@__PURE__*/ API.make(() => ({
|
|
57
57
|
inputSchema: GetOrganizationInput,
|
|
58
58
|
outputSchema: GetOrganizationOutput,
|
|
59
59
|
errors: [NotFound] as const,
|
|
@@ -9,7 +9,7 @@ export interface GetOrganizationMemberInput {
|
|
|
9
9
|
username: string;
|
|
10
10
|
}
|
|
11
11
|
export const GetOrganizationMemberInput =
|
|
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(
|
|
@@ -28,7 +28,7 @@ export interface GetOrganizationMemberOutput {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
export const GetOrganizationMemberOutput =
|
|
31
|
-
/*@__PURE__*/
|
|
31
|
+
/*@__PURE__*/ Schema.Struct({
|
|
32
32
|
member: Schema.optional(
|
|
33
33
|
Schema.Struct({
|
|
34
34
|
username: Schema.optional(Schema.String),
|
|
@@ -49,10 +49,8 @@ export const GetOrganizationMemberOutput =
|
|
|
49
49
|
* @param organizationSlug - The slug of the organization or user account.
|
|
50
50
|
* @param username - The username of a Turso user or organization member.
|
|
51
51
|
*/
|
|
52
|
-
export const getOrganizationMember = /*@__PURE__*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}),
|
|
58
|
-
);
|
|
52
|
+
export const getOrganizationMember = /*@__PURE__*/ API.make(() => ({
|
|
53
|
+
inputSchema: GetOrganizationMemberInput,
|
|
54
|
+
outputSchema: GetOrganizationMemberOutput,
|
|
55
|
+
errors: [NotFound] as const,
|
|
56
|
+
}));
|
|
@@ -7,7 +7,7 @@ export interface GetOrganizationSubscriptionInput {
|
|
|
7
7
|
organizationSlug: string;
|
|
8
8
|
}
|
|
9
9
|
export const GetOrganizationSubscriptionInput =
|
|
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 GetOrganizationSubscriptionOutput {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
export const GetOrganizationSubscriptionOutput =
|
|
29
|
-
/*@__PURE__*/
|
|
29
|
+
/*@__PURE__*/ Schema.Struct({
|
|
30
30
|
subscription: Schema.optional(
|
|
31
31
|
Schema.Struct({
|
|
32
32
|
name: Schema.optional(Schema.String),
|
|
@@ -45,9 +45,7 @@ export const GetOrganizationSubscriptionOutput =
|
|
|
45
45
|
*
|
|
46
46
|
* @param organizationSlug - The slug of the organization or user account.
|
|
47
47
|
*/
|
|
48
|
-
export const getOrganizationSubscription = /*@__PURE__*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}),
|
|
53
|
-
);
|
|
48
|
+
export const getOrganizationSubscription = /*@__PURE__*/ API.make(() => ({
|
|
49
|
+
inputSchema: GetOrganizationSubscriptionInput,
|
|
50
|
+
outputSchema: GetOrganizationSubscriptionOutput,
|
|
51
|
+
}));
|
|
@@ -7,7 +7,7 @@ export interface GetOrganizationUsageInput {
|
|
|
7
7
|
organizationSlug: string;
|
|
8
8
|
}
|
|
9
9
|
export const GetOrganizationUsageInput =
|
|
10
|
-
/*@__PURE__*/
|
|
10
|
+
/*@__PURE__*/ Schema.Struct({
|
|
11
11
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({
|
|
@@ -50,7 +50,7 @@ export interface GetOrganizationUsageOutput {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
export const GetOrganizationUsageOutput =
|
|
53
|
-
/*@__PURE__*/
|
|
53
|
+
/*@__PURE__*/ Schema.Struct({
|
|
54
54
|
organization: Schema.optional(
|
|
55
55
|
Schema.Struct({
|
|
56
56
|
uuid: Schema.optional(Schema.String),
|
|
@@ -107,9 +107,7 @@ export const GetOrganizationUsageOutput =
|
|
|
107
107
|
*
|
|
108
108
|
* @param organizationSlug - The slug of the organization or user account.
|
|
109
109
|
*/
|
|
110
|
-
export const getOrganizationUsage = /*@__PURE__*/
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}),
|
|
115
|
-
);
|
|
110
|
+
export const getOrganizationUsage = /*@__PURE__*/ API.make(() => ({
|
|
111
|
+
inputSchema: GetOrganizationUsageInput,
|
|
112
|
+
outputSchema: GetOrganizationUsageOutput,
|
|
113
|
+
}));
|
|
@@ -9,7 +9,7 @@ export interface InvalidateDatabaseTokensInput {
|
|
|
9
9
|
databaseName: string;
|
|
10
10
|
}
|
|
11
11
|
export const InvalidateDatabaseTokensInput =
|
|
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(
|
|
@@ -22,7 +22,7 @@ export const InvalidateDatabaseTokensInput =
|
|
|
22
22
|
// Output Schema
|
|
23
23
|
export type InvalidateDatabaseTokensOutput = void;
|
|
24
24
|
export const InvalidateDatabaseTokensOutput =
|
|
25
|
-
/*@__PURE__*/
|
|
25
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<InvalidateDatabaseTokensOutput>;
|
|
26
26
|
|
|
27
27
|
// The operation
|
|
28
28
|
/**
|
|
@@ -33,10 +33,8 @@ export const InvalidateDatabaseTokensOutput =
|
|
|
33
33
|
* @param organizationSlug - The slug of the organization or user account.
|
|
34
34
|
* @param databaseName - The name of the database.
|
|
35
35
|
*/
|
|
36
|
-
export const invalidateDatabaseTokens = /*@__PURE__*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
);
|
|
36
|
+
export const invalidateDatabaseTokens = /*@__PURE__*/ API.make(() => ({
|
|
37
|
+
inputSchema: InvalidateDatabaseTokensInput,
|
|
38
|
+
outputSchema: InvalidateDatabaseTokensOutput,
|
|
39
|
+
errors: [NotFound] as const,
|
|
40
|
+
}));
|
|
@@ -9,7 +9,7 @@ export interface InvalidateGroupTokensInput {
|
|
|
9
9
|
groupName: string;
|
|
10
10
|
}
|
|
11
11
|
export const InvalidateGroupTokensInput =
|
|
12
|
-
/*@__PURE__*/
|
|
12
|
+
/*@__PURE__*/ Schema.Struct({
|
|
13
13
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
groupName: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
}).pipe(
|
|
@@ -22,7 +22,7 @@ export const InvalidateGroupTokensInput =
|
|
|
22
22
|
// Output Schema
|
|
23
23
|
export type InvalidateGroupTokensOutput = void;
|
|
24
24
|
export const InvalidateGroupTokensOutput =
|
|
25
|
-
/*@__PURE__*/
|
|
25
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<InvalidateGroupTokensOutput>;
|
|
26
26
|
|
|
27
27
|
// The operation
|
|
28
28
|
/**
|
|
@@ -33,10 +33,8 @@ export const InvalidateGroupTokensOutput =
|
|
|
33
33
|
* @param organizationSlug - The slug of the organization or user account.
|
|
34
34
|
* @param groupName - The name of the group.
|
|
35
35
|
*/
|
|
36
|
-
export const invalidateGroupTokens = /*@__PURE__*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
);
|
|
36
|
+
export const invalidateGroupTokens = /*@__PURE__*/ API.make(() => ({
|
|
37
|
+
inputSchema: InvalidateGroupTokensInput,
|
|
38
|
+
outputSchema: InvalidateGroupTokensOutput,
|
|
39
|
+
errors: [NotFound] as const,
|
|
40
|
+
}));
|
|
@@ -5,7 +5,7 @@ import { BadRequest } from "../errors.ts";
|
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
7
|
export const InviteOrganizationMemberInput =
|
|
8
|
-
/*@__PURE__*/
|
|
8
|
+
/*@__PURE__*/ Schema.Struct({
|
|
9
9
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
10
10
|
email: Schema.String,
|
|
11
11
|
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
@@ -20,7 +20,7 @@ export type InviteOrganizationMemberInput =
|
|
|
20
20
|
|
|
21
21
|
// Output Schema
|
|
22
22
|
export const InviteOrganizationMemberOutput =
|
|
23
|
-
/*@__PURE__*/
|
|
23
|
+
/*@__PURE__*/ Schema.Struct({
|
|
24
24
|
invited: Schema.optional(
|
|
25
25
|
Schema.Struct({
|
|
26
26
|
ID: Schema.optional(Schema.Number),
|
|
@@ -59,10 +59,8 @@ export type InviteOrganizationMemberOutput =
|
|
|
59
59
|
*
|
|
60
60
|
* @param organizationSlug - The slug of the organization or user account.
|
|
61
61
|
*/
|
|
62
|
-
export const inviteOrganizationMember = /*@__PURE__*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}),
|
|
68
|
-
);
|
|
62
|
+
export const inviteOrganizationMember = /*@__PURE__*/ API.make(() => ({
|
|
63
|
+
inputSchema: InviteOrganizationMemberInput,
|
|
64
|
+
outputSchema: InviteOrganizationMemberOutput,
|
|
65
|
+
errors: [BadRequest] as const,
|
|
66
|
+
}));
|
|
@@ -10,7 +10,7 @@ export interface InviteOrganizationMemberV2Input {
|
|
|
10
10
|
role?: "admin" | "member" | "viewer";
|
|
11
11
|
}
|
|
12
12
|
export const InviteOrganizationMemberV2Input =
|
|
13
|
-
/*@__PURE__*/
|
|
13
|
+
/*@__PURE__*/ Schema.Struct({
|
|
14
14
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
email: Schema.optional(Schema.String),
|
|
16
16
|
username: Schema.optional(Schema.String),
|
|
@@ -31,7 +31,7 @@ export interface InviteOrganizationMemberV2Output {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export const InviteOrganizationMemberV2Output =
|
|
34
|
-
/*@__PURE__*/
|
|
34
|
+
/*@__PURE__*/ Schema.Struct({
|
|
35
35
|
invited: Schema.optional(
|
|
36
36
|
Schema.Struct({
|
|
37
37
|
email: Schema.optional(Schema.String),
|
|
@@ -49,9 +49,7 @@ export const InviteOrganizationMemberV2Output =
|
|
|
49
49
|
*
|
|
50
50
|
* @param organizationSlug - The slug of the organization or user account.
|
|
51
51
|
*/
|
|
52
|
-
export const inviteOrganizationMemberV2 = /*@__PURE__*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}),
|
|
57
|
-
);
|
|
52
|
+
export const inviteOrganizationMemberV2 = /*@__PURE__*/ API.make(() => ({
|
|
53
|
+
inputSchema: InviteOrganizationMemberV2Input,
|
|
54
|
+
outputSchema: InviteOrganizationMemberV2Output,
|
|
55
|
+
}));
|