@distilled.cloud/turso 0.9.0 → 0.10.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/createAPIToken.d.ts +2 -1
- package/lib/operations/createAPIToken.d.ts.map +1 -1
- package/lib/operations/createAPIToken.js +2 -1
- package/lib/operations/createAPIToken.js.map +1 -1
- package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +17 -0
- package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +1 -0
- package/lib/operations/deleteOrganizationInviteByEmailV2.js +29 -0
- package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +1 -0
- package/lib/operations/getCurrentUser.d.ts +22 -0
- package/lib/operations/getCurrentUser.d.ts.map +1 -0
- package/lib/operations/getCurrentUser.js +28 -0
- package/lib/operations/getCurrentUser.js.map +1 -0
- package/lib/operations/index.d.ts +4 -0
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +4 -0
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/inviteOrganizationMemberV2.d.ts +25 -0
- package/lib/operations/inviteOrganizationMemberV2.d.ts.map +1 -0
- package/lib/operations/inviteOrganizationMemberV2.js +36 -0
- package/lib/operations/inviteOrganizationMemberV2.js.map +1 -0
- package/lib/operations/listAPITokens.d.ts +1 -0
- package/lib/operations/listAPITokens.d.ts.map +1 -1
- package/lib/operations/listAPITokens.js +1 -0
- package/lib/operations/listAPITokens.js.map +1 -1
- package/lib/operations/listOrganizationInvitesV2.d.ts +24 -0
- package/lib/operations/listOrganizationInvitesV2.d.ts.map +1 -0
- package/lib/operations/listOrganizationInvitesV2.js +35 -0
- package/lib/operations/listOrganizationInvitesV2.js.map +1 -0
- package/package.json +4 -4
- package/src/operations/createAPIToken.ts +2 -1
- package/src/operations/deleteOrganizationInviteByEmailV2.ts +37 -0
- package/src/operations/getCurrentUser.ts +36 -0
- package/src/operations/index.ts +4 -0
- package/src/operations/inviteOrganizationMemberV2.ts +48 -0
- package/src/operations/listAPITokens.ts +1 -0
- package/src/operations/listOrganizationInvitesV2.ts +49 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
export declare const CreateAPITokenInput: Schema.Struct<{
|
|
3
3
|
readonly tokenName: Schema.String;
|
|
4
|
+
readonly organization: Schema.optional<Schema.String>;
|
|
4
5
|
}>;
|
|
5
6
|
export type CreateAPITokenInput = typeof CreateAPITokenInput.Type;
|
|
6
7
|
export declare const CreateAPITokenOutput: Schema.Struct<{
|
|
@@ -12,7 +13,7 @@ export type CreateAPITokenOutput = typeof CreateAPITokenOutput.Type;
|
|
|
12
13
|
/**
|
|
13
14
|
* Create API Token
|
|
14
15
|
*
|
|
15
|
-
* Returns a new API token belonging to a user.
|
|
16
|
+
* Returns a new API token belonging to a user. You can optionally restrict the token to a single organization by passing the organization slug in the request body. Organization-scoped tokens can only manage resources within that organization.
|
|
16
17
|
*
|
|
17
18
|
* @param tokenName - The name of the api token.
|
|
18
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/createAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"createAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/createAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;;EAG4C,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;EAI/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,KAGxB,CAAC"}
|
|
@@ -4,6 +4,7 @@ import * as T from "../traits";
|
|
|
4
4
|
// Input Schema
|
|
5
5
|
export const CreateAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
6
|
tokenName: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
organization: Schema.optional(Schema.String),
|
|
7
8
|
}).pipe(T.Http({ method: "POST", path: "/v1/auth/api-tokens/{tokenName}" }));
|
|
8
9
|
// Output Schema
|
|
9
10
|
export const CreateAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -15,7 +16,7 @@ export const CreateAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
15
16
|
/**
|
|
16
17
|
* Create API Token
|
|
17
18
|
*
|
|
18
|
-
* Returns a new API token belonging to a user.
|
|
19
|
+
* Returns a new API token belonging to a user. You can optionally restrict the token to a single organization by passing the organization slug in the request body. Organization-scoped tokens can only manage resources within that organization.
|
|
19
20
|
*
|
|
20
21
|
* @param tokenName - The name of the api token.
|
|
21
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAPIToken.js","sourceRoot":"","sources":["../../src/operations/createAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CAAC,CAAC;AAG7E,gBAAgB;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C5E,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const DeleteOrganizationInviteByEmailV2Input: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly email: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type DeleteOrganizationInviteByEmailV2Input = typeof DeleteOrganizationInviteByEmailV2Input.Type;
|
|
7
|
+
export declare const DeleteOrganizationInviteByEmailV2Output: Schema.Void;
|
|
8
|
+
export type DeleteOrganizationInviteByEmailV2Output = typeof DeleteOrganizationInviteByEmailV2Output.Type;
|
|
9
|
+
/**
|
|
10
|
+
* Delete Invite
|
|
11
|
+
*
|
|
12
|
+
* Delete a pending invite for the organization by email.
|
|
13
|
+
*
|
|
14
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
15
|
+
*/
|
|
16
|
+
export declare const deleteOrganizationInviteByEmailV2: any;
|
|
17
|
+
//# sourceMappingURL=deleteOrganizationInviteByEmailV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteOrganizationInviteByEmailV2.d.ts","sourceRoot":"","sources":["../../src/operations/deleteOrganizationInviteByEmailV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sCAAsC;;;EAShD,CAAC;AACJ,MAAM,MAAM,sCAAsC,GAChD,OAAO,sCAAsC,CAAC,IAAI,CAAC;AAGrD,eAAO,MAAM,uCAAuC,aACX,CAAC;AAC1C,MAAM,MAAM,uCAAuC,GACjD,OAAO,uCAAuC,CAAC,IAAI,CAAC;AAGtD;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,KAIzC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const DeleteOrganizationInviteByEmailV2Input =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
email: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "DELETE",
|
|
11
|
+
path: "/v2/organizations/{organizationSlug}/invites/{email}",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const DeleteOrganizationInviteByEmailV2Output =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
16
|
+
// The operation
|
|
17
|
+
/**
|
|
18
|
+
* Delete Invite
|
|
19
|
+
*
|
|
20
|
+
* Delete a pending invite for the organization by email.
|
|
21
|
+
*
|
|
22
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
23
|
+
*/
|
|
24
|
+
export const deleteOrganizationInviteByEmailV2 =
|
|
25
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
26
|
+
inputSchema: DeleteOrganizationInviteByEmailV2Input,
|
|
27
|
+
outputSchema: DeleteOrganizationInviteByEmailV2Output,
|
|
28
|
+
}));
|
|
29
|
+
//# sourceMappingURL=deleteOrganizationInviteByEmailV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteOrganizationInviteByEmailV2.js","sourceRoot":"","sources":["../../src/operations/deleteOrganizationInviteByEmailV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,sCAAsC;AACjD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACzC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,sDAAsD;CAC7D,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC;AAClD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAI1C,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,sCAAsC;IACnD,YAAY,EAAE,uCAAuC;CACtD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetCurrentUserInput: Schema.Struct<{}>;
|
|
3
|
+
export type GetCurrentUserInput = typeof GetCurrentUserInput.Type;
|
|
4
|
+
export declare const GetCurrentUserOutput: Schema.Struct<{
|
|
5
|
+
readonly user: Schema.optional<Schema.Struct<{
|
|
6
|
+
readonly username: Schema.optional<Schema.String>;
|
|
7
|
+
readonly name: Schema.optional<Schema.String>;
|
|
8
|
+
readonly email: Schema.optional<Schema.String>;
|
|
9
|
+
readonly avatarUrl: Schema.optional<Schema.String>;
|
|
10
|
+
readonly plan: Schema.optional<Schema.String>;
|
|
11
|
+
readonly mfa: Schema.optional<Schema.Boolean>;
|
|
12
|
+
readonly has_pending_invites: Schema.optional<Schema.Boolean>;
|
|
13
|
+
}>>;
|
|
14
|
+
}>;
|
|
15
|
+
export type GetCurrentUserOutput = typeof GetCurrentUserOutput.Type;
|
|
16
|
+
/**
|
|
17
|
+
* Get Current User
|
|
18
|
+
*
|
|
19
|
+
* Returns information about the currently authenticated user.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getCurrentUser: any;
|
|
22
|
+
//# sourceMappingURL=getCurrentUser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrentUser.d.ts","sourceRoot":"","sources":["../../src/operations/getCurrentUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB,mBAEmB,CAAC;AACpD,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;;;;;;;EAY/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;GAIG;AACH,eAAO,MAAM,cAAc,KAGxB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const GetCurrentUserInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v1/user" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const GetCurrentUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
user: Schema.optional(Schema.Struct({
|
|
9
|
+
username: Schema.optional(Schema.String),
|
|
10
|
+
name: Schema.optional(Schema.String),
|
|
11
|
+
email: Schema.optional(Schema.String),
|
|
12
|
+
avatarUrl: Schema.optional(Schema.String),
|
|
13
|
+
plan: Schema.optional(Schema.String),
|
|
14
|
+
mfa: Schema.optional(Schema.Boolean),
|
|
15
|
+
has_pending_invites: Schema.optional(Schema.Boolean),
|
|
16
|
+
})),
|
|
17
|
+
});
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* Get Current User
|
|
21
|
+
*
|
|
22
|
+
* Returns information about the currently authenticated user.
|
|
23
|
+
*/
|
|
24
|
+
export const getCurrentUser = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
25
|
+
inputSchema: GetCurrentUserInput,
|
|
26
|
+
outputSchema: GetCurrentUserOutput,
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=getCurrentUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrentUser.js","sourceRoot":"","sources":["../../src/operations/getCurrentUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC1E,EAAE,CACH,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;AAGpD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QACpC,mBAAmB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KACrD,CAAC,CACH;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -44,4 +44,8 @@ export * from "./listAPITokens";
|
|
|
44
44
|
export * from "./createAPIToken";
|
|
45
45
|
export * from "./revokeAPIToken";
|
|
46
46
|
export * from "./listOrganizationAuditLogs";
|
|
47
|
+
export * from "./listOrganizationInvitesV2";
|
|
48
|
+
export * from "./inviteOrganizationMemberV2";
|
|
49
|
+
export * from "./deleteOrganizationInviteByEmailV2";
|
|
50
|
+
export * from "./getCurrentUser";
|
|
47
51
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,c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AAC;AACjC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kBAAkB,CAAC"}
|
package/lib/operations/index.js
CHANGED
|
@@ -44,4 +44,8 @@ export * from "./listAPITokens";
|
|
|
44
44
|
export * from "./createAPIToken";
|
|
45
45
|
export * from "./revokeAPIToken";
|
|
46
46
|
export * from "./listOrganizationAuditLogs";
|
|
47
|
+
export * from "./listOrganizationInvitesV2";
|
|
48
|
+
export * from "./inviteOrganizationMemberV2";
|
|
49
|
+
export * from "./deleteOrganizationInviteByEmailV2";
|
|
50
|
+
export * from "./getCurrentUser";
|
|
47
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AAC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BAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const InviteOrganizationMemberV2Input: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly email: Schema.String;
|
|
5
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["admin", "member", "viewer"]>>;
|
|
6
|
+
}>;
|
|
7
|
+
export type InviteOrganizationMemberV2Input = typeof InviteOrganizationMemberV2Input.Type;
|
|
8
|
+
export declare const InviteOrganizationMemberV2Output: Schema.Struct<{
|
|
9
|
+
readonly invited: Schema.optional<Schema.Struct<{
|
|
10
|
+
readonly email: Schema.optional<Schema.String>;
|
|
11
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["admin", "member", "viewer"]>>;
|
|
12
|
+
readonly organization: Schema.optional<Schema.String>;
|
|
13
|
+
readonly token: Schema.optional<Schema.String>;
|
|
14
|
+
}>>;
|
|
15
|
+
}>;
|
|
16
|
+
export type InviteOrganizationMemberV2Output = typeof InviteOrganizationMemberV2Output.Type;
|
|
17
|
+
/**
|
|
18
|
+
* Invite Organization Member
|
|
19
|
+
*
|
|
20
|
+
* Invite a user to an organization. If the user isn't already registered with Turso, they will receive a signup link. If an existing pending invite exists for the same email, it will be replaced.
|
|
21
|
+
*
|
|
22
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
23
|
+
*/
|
|
24
|
+
export declare const inviteOrganizationMemberV2: any;
|
|
25
|
+
//# sourceMappingURL=inviteOrganizationMemberV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inviteOrganizationMemberV2.d.ts","sourceRoot":"","sources":["../../src/operations/inviteOrganizationMemberV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,+BAA+B;;;;EAUzC,CAAC;AACJ,MAAM,MAAM,+BAA+B,GACzC,OAAO,+BAA+B,CAAC,IAAI,CAAC;AAG9C,eAAO,MAAM,gCAAgC;;;;;;;EAUzC,CAAC;AACL,MAAM,MAAM,gCAAgC,GAC1C,OAAO,gCAAgC,CAAC,IAAI,CAAC;AAG/C;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,KAKtC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const InviteOrganizationMemberV2Input =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
email: Schema.String,
|
|
9
|
+
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
10
|
+
}).pipe(T.Http({
|
|
11
|
+
method: "POST",
|
|
12
|
+
path: "/v2/organizations/{organizationSlug}/invites",
|
|
13
|
+
}));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const InviteOrganizationMemberV2Output =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
invited: Schema.optional(Schema.Struct({
|
|
18
|
+
email: Schema.optional(Schema.String),
|
|
19
|
+
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
20
|
+
organization: Schema.optional(Schema.String),
|
|
21
|
+
token: Schema.optional(Schema.String),
|
|
22
|
+
})),
|
|
23
|
+
});
|
|
24
|
+
// The operation
|
|
25
|
+
/**
|
|
26
|
+
* Invite Organization Member
|
|
27
|
+
*
|
|
28
|
+
* Invite a user to an organization. If the user isn't already registered with Turso, they will receive a signup link. If an existing pending invite exists for the same email, it will be replaced.
|
|
29
|
+
*
|
|
30
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
31
|
+
*/
|
|
32
|
+
export const inviteOrganizationMemberV2 = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: InviteOrganizationMemberV2Input,
|
|
34
|
+
outputSchema: InviteOrganizationMemberV2Output,
|
|
35
|
+
}));
|
|
36
|
+
//# sourceMappingURL=inviteOrganizationMemberV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inviteOrganizationMemberV2.js","sourceRoot":"","sources":["../../src/operations/inviteOrganizationMemberV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAA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
|
readonly name: Schema.optional<Schema.String>;
|
|
7
7
|
readonly id: Schema.optional<Schema.String>;
|
|
8
|
+
readonly organization: Schema.optional<Schema.String>;
|
|
8
9
|
}>>>;
|
|
9
10
|
}>;
|
|
10
11
|
export type ListAPITokensOutput = typeof ListAPITokensOutput.Type;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listAPITokens.d.ts","sourceRoot":"","sources":["../../src/operations/listAPITokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kBAAkB,mBAE+B,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"listAPITokens.d.ts","sourceRoot":"","sources":["../../src/operations/listAPITokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kBAAkB,mBAE+B,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE,eAAO,MAAM,mBAAmB;;;;;;EAU9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE;;;;GAIG;AACH,eAAO,MAAM,aAAa,KAGvB,CAAC"}
|
|
@@ -8,6 +8,7 @@ export const ListAPITokensOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
8
8
|
tokens: Schema.optional(Schema.Array(Schema.Struct({
|
|
9
9
|
name: Schema.optional(Schema.String),
|
|
10
10
|
id: Schema.optional(Schema.String),
|
|
11
|
+
organization: Schema.optional(Schema.String),
|
|
11
12
|
}))),
|
|
12
13
|
});
|
|
13
14
|
// The operation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listAPITokens.js","sourceRoot":"","sources":["../../src/operations/listA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C,MAAM,CAAC,MAAM,CAAC;IAC3E,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC7C,CAAC,CACH,CACF;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvE,WAAW,EAAE,kBAAkB;IAC/B,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const ListOrganizationInvitesV2Input: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type ListOrganizationInvitesV2Input = typeof ListOrganizationInvitesV2Input.Type;
|
|
6
|
+
export declare const ListOrganizationInvitesV2Output: Schema.Struct<{
|
|
7
|
+
readonly invites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
8
|
+
readonly id: Schema.optional<Schema.Number>;
|
|
9
|
+
readonly email: Schema.optional<Schema.String>;
|
|
10
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["admin", "member", "viewer"]>>;
|
|
11
|
+
readonly token: Schema.optional<Schema.String>;
|
|
12
|
+
readonly created_at: Schema.optional<Schema.String>;
|
|
13
|
+
}>>>;
|
|
14
|
+
}>;
|
|
15
|
+
export type ListOrganizationInvitesV2Output = typeof ListOrganizationInvitesV2Output.Type;
|
|
16
|
+
/**
|
|
17
|
+
* List Invites
|
|
18
|
+
*
|
|
19
|
+
* Returns a list of pending invites for the organization.
|
|
20
|
+
*
|
|
21
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
22
|
+
*/
|
|
23
|
+
export declare const listOrganizationInvitesV2: any;
|
|
24
|
+
//# sourceMappingURL=listOrganizationInvitesV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizationInvitesV2.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationInvitesV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,8BAA8B;;EAQxC,CAAC;AACJ,MAAM,MAAM,8BAA8B,GACxC,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAG7C,eAAO,MAAM,+BAA+B;;;;;;;;EAaxC,CAAC;AACL,MAAM,MAAM,+BAA+B,GACzC,OAAO,+BAA+B,CAAC,IAAI,CAAC;AAG9C;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,KAKrC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const ListOrganizationInvitesV2Input =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: "/v2/organizations/{organizationSlug}/invites",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const ListOrganizationInvitesV2Output =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
invites: Schema.optional(Schema.Array(Schema.Struct({
|
|
16
|
+
id: Schema.optional(Schema.Number),
|
|
17
|
+
email: Schema.optional(Schema.String),
|
|
18
|
+
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
19
|
+
token: Schema.optional(Schema.String),
|
|
20
|
+
created_at: Schema.optional(Schema.String),
|
|
21
|
+
}))),
|
|
22
|
+
});
|
|
23
|
+
// The operation
|
|
24
|
+
/**
|
|
25
|
+
* List Invites
|
|
26
|
+
*
|
|
27
|
+
* Returns a list of pending invites for the organization.
|
|
28
|
+
*
|
|
29
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
30
|
+
*/
|
|
31
|
+
export const listOrganizationInvitesV2 = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: ListOrganizationInvitesV2Input,
|
|
33
|
+
outputSchema: ListOrganizationInvitesV2Output,
|
|
34
|
+
}));
|
|
35
|
+
//# sourceMappingURL=listOrganizationInvitesV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOrganizationInvitesV2.js","sourceRoot":"","sources":["../../src/operations/listOrganizationInvitesV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACpD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,8CAA8C;CACrD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,QAAQ,CACtB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;QACrE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC3C,CAAC,CACH,CACF;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC3E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,8BAA8B;IAC3C,YAAY,EAAE,+BAA+B;CAC9C,CAAC,CACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/turso",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"specs:update": "git -C specs/turso-docs fetch && git -C specs/turso-docs checkout main && git -C specs/turso-docs pull"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@distilled.cloud/core": "0.
|
|
77
|
-
"effect": "4.0.0-beta.
|
|
76
|
+
"@distilled.cloud/core": "0.10.0",
|
|
77
|
+
"effect": "4.0.0-beta.48"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/bun": "^1.3.0",
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
"vitest": "^3.2.3"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"effect": "4.0.0-beta.
|
|
86
|
+
"effect": "4.0.0-beta.48"
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -5,6 +5,7 @@ import * as T from "../traits";
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export const CreateAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
7
|
tokenName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
organization: Schema.optional(Schema.String),
|
|
8
9
|
}).pipe(T.Http({ method: "POST", path: "/v1/auth/api-tokens/{tokenName}" }));
|
|
9
10
|
export type CreateAPITokenInput = typeof CreateAPITokenInput.Type;
|
|
10
11
|
|
|
@@ -20,7 +21,7 @@ export type CreateAPITokenOutput = typeof CreateAPITokenOutput.Type;
|
|
|
20
21
|
/**
|
|
21
22
|
* Create API Token
|
|
22
23
|
*
|
|
23
|
-
* Returns a new API token belonging to a user.
|
|
24
|
+
* Returns a new API token belonging to a user. You can optionally restrict the token to a single organization by passing the organization slug in the request body. Organization-scoped tokens can only manage resources within that organization.
|
|
24
25
|
*
|
|
25
26
|
* @param tokenName - The name of the api token.
|
|
26
27
|
*/
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const DeleteOrganizationInviteByEmailV2Input =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
email: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "DELETE",
|
|
13
|
+
path: "/v2/organizations/{organizationSlug}/invites/{email}",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type DeleteOrganizationInviteByEmailV2Input =
|
|
17
|
+
typeof DeleteOrganizationInviteByEmailV2Input.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const DeleteOrganizationInviteByEmailV2Output =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
22
|
+
export type DeleteOrganizationInviteByEmailV2Output =
|
|
23
|
+
typeof DeleteOrganizationInviteByEmailV2Output.Type;
|
|
24
|
+
|
|
25
|
+
// The operation
|
|
26
|
+
/**
|
|
27
|
+
* Delete Invite
|
|
28
|
+
*
|
|
29
|
+
* Delete a pending invite for the organization by email.
|
|
30
|
+
*
|
|
31
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
32
|
+
*/
|
|
33
|
+
export const deleteOrganizationInviteByEmailV2 =
|
|
34
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
35
|
+
inputSchema: DeleteOrganizationInviteByEmailV2Input,
|
|
36
|
+
outputSchema: DeleteOrganizationInviteByEmailV2Output,
|
|
37
|
+
}));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const GetCurrentUserInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
|
+
{},
|
|
8
|
+
).pipe(T.Http({ method: "GET", path: "/v1/user" }));
|
|
9
|
+
export type GetCurrentUserInput = typeof GetCurrentUserInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const GetCurrentUserOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
user: Schema.optional(
|
|
14
|
+
Schema.Struct({
|
|
15
|
+
username: Schema.optional(Schema.String),
|
|
16
|
+
name: Schema.optional(Schema.String),
|
|
17
|
+
email: Schema.optional(Schema.String),
|
|
18
|
+
avatarUrl: Schema.optional(Schema.String),
|
|
19
|
+
plan: Schema.optional(Schema.String),
|
|
20
|
+
mfa: Schema.optional(Schema.Boolean),
|
|
21
|
+
has_pending_invites: Schema.optional(Schema.Boolean),
|
|
22
|
+
}),
|
|
23
|
+
),
|
|
24
|
+
});
|
|
25
|
+
export type GetCurrentUserOutput = typeof GetCurrentUserOutput.Type;
|
|
26
|
+
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* Get Current User
|
|
30
|
+
*
|
|
31
|
+
* Returns information about the currently authenticated user.
|
|
32
|
+
*/
|
|
33
|
+
export const getCurrentUser = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
34
|
+
inputSchema: GetCurrentUserInput,
|
|
35
|
+
outputSchema: GetCurrentUserOutput,
|
|
36
|
+
}));
|
package/src/operations/index.ts
CHANGED
|
@@ -44,3 +44,7 @@ export * from "./listAPITokens";
|
|
|
44
44
|
export * from "./createAPIToken";
|
|
45
45
|
export * from "./revokeAPIToken";
|
|
46
46
|
export * from "./listOrganizationAuditLogs";
|
|
47
|
+
export * from "./listOrganizationInvitesV2";
|
|
48
|
+
export * from "./inviteOrganizationMemberV2";
|
|
49
|
+
export * from "./deleteOrganizationInviteByEmailV2";
|
|
50
|
+
export * from "./getCurrentUser";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const InviteOrganizationMemberV2Input =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
email: Schema.String,
|
|
10
|
+
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "POST",
|
|
14
|
+
path: "/v2/organizations/{organizationSlug}/invites",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type InviteOrganizationMemberV2Input =
|
|
18
|
+
typeof InviteOrganizationMemberV2Input.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const InviteOrganizationMemberV2Output =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
|
+
invited: Schema.optional(
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
email: Schema.optional(Schema.String),
|
|
26
|
+
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
27
|
+
organization: Schema.optional(Schema.String),
|
|
28
|
+
token: Schema.optional(Schema.String),
|
|
29
|
+
}),
|
|
30
|
+
),
|
|
31
|
+
});
|
|
32
|
+
export type InviteOrganizationMemberV2Output =
|
|
33
|
+
typeof InviteOrganizationMemberV2Output.Type;
|
|
34
|
+
|
|
35
|
+
// The operation
|
|
36
|
+
/**
|
|
37
|
+
* Invite Organization Member
|
|
38
|
+
*
|
|
39
|
+
* Invite a user to an organization. If the user isn't already registered with Turso, they will receive a signup link. If an existing pending invite exists for the same email, it will be replaced.
|
|
40
|
+
*
|
|
41
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
42
|
+
*/
|
|
43
|
+
export const inviteOrganizationMemberV2 = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
44
|
+
() => ({
|
|
45
|
+
inputSchema: InviteOrganizationMemberV2Input,
|
|
46
|
+
outputSchema: InviteOrganizationMemberV2Output,
|
|
47
|
+
}),
|
|
48
|
+
);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListOrganizationInvitesV2Input =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: "/v2/organizations/{organizationSlug}/invites",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type ListOrganizationInvitesV2Input =
|
|
16
|
+
typeof ListOrganizationInvitesV2Input.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const ListOrganizationInvitesV2Output =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
invites: Schema.optional(
|
|
22
|
+
Schema.Array(
|
|
23
|
+
Schema.Struct({
|
|
24
|
+
id: Schema.optional(Schema.Number),
|
|
25
|
+
email: Schema.optional(Schema.String),
|
|
26
|
+
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
27
|
+
token: Schema.optional(Schema.String),
|
|
28
|
+
created_at: Schema.optional(Schema.String),
|
|
29
|
+
}),
|
|
30
|
+
),
|
|
31
|
+
),
|
|
32
|
+
});
|
|
33
|
+
export type ListOrganizationInvitesV2Output =
|
|
34
|
+
typeof ListOrganizationInvitesV2Output.Type;
|
|
35
|
+
|
|
36
|
+
// The operation
|
|
37
|
+
/**
|
|
38
|
+
* List Invites
|
|
39
|
+
*
|
|
40
|
+
* Returns a list of pending invites for the organization.
|
|
41
|
+
*
|
|
42
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
43
|
+
*/
|
|
44
|
+
export const listOrganizationInvitesV2 = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
45
|
+
() => ({
|
|
46
|
+
inputSchema: ListOrganizationInvitesV2Input,
|
|
47
|
+
outputSchema: ListOrganizationInvitesV2Output,
|
|
48
|
+
}),
|
|
49
|
+
);
|