@distilled.cloud/turso 0.4.0 → 0.5.1
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/README.md +1 -0
- package/lib/operations/addLocationToGroup.d.ts +29 -0
- package/lib/operations/addLocationToGroup.d.ts.map +1 -0
- package/lib/operations/addLocationToGroup.js +40 -0
- package/lib/operations/addLocationToGroup.js.map +1 -0
- package/lib/operations/addOrganizationMember.d.ts +21 -0
- package/lib/operations/addOrganizationMember.d.ts.map +1 -0
- package/lib/operations/addOrganizationMember.js +32 -0
- package/lib/operations/addOrganizationMember.js.map +1 -0
- package/lib/operations/createAPIToken.d.ts +20 -0
- package/lib/operations/createAPIToken.d.ts.map +1 -0
- package/lib/operations/createAPIToken.js +26 -0
- package/lib/operations/createAPIToken.js.map +1 -0
- package/lib/operations/createDatabase.d.ts +34 -0
- package/lib/operations/createDatabase.d.ts.map +1 -0
- package/lib/operations/createDatabase.js +53 -0
- package/lib/operations/createDatabase.js.map +1 -0
- package/lib/operations/createDatabaseToken.d.ts +29 -0
- package/lib/operations/createDatabaseToken.d.ts.map +1 -0
- package/lib/operations/createDatabaseToken.js +40 -0
- package/lib/operations/createDatabaseToken.js.map +1 -0
- package/lib/operations/createGroup.d.ts +28 -0
- package/lib/operations/createGroup.d.ts.map +1 -0
- package/lib/operations/createGroup.js +37 -0
- package/lib/operations/createGroup.js.map +1 -0
- package/lib/operations/createGroupToken.d.ts +29 -0
- package/lib/operations/createGroupToken.d.ts.map +1 -0
- package/lib/operations/createGroupToken.js +38 -0
- package/lib/operations/createGroupToken.js.map +1 -0
- package/lib/operations/deleteDatabase.d.ts +20 -0
- package/lib/operations/deleteDatabase.d.ts.map +1 -0
- package/lib/operations/deleteDatabase.js +29 -0
- package/lib/operations/deleteDatabase.js.map +1 -0
- package/lib/operations/deleteGroup.d.ts +27 -0
- package/lib/operations/deleteGroup.d.ts.map +1 -0
- package/lib/operations/deleteGroup.js +36 -0
- package/lib/operations/deleteGroup.js.map +1 -0
- package/lib/operations/deleteOrganizationInviteByEmail.d.ts +17 -0
- package/lib/operations/deleteOrganizationInviteByEmail.d.ts.map +1 -0
- package/lib/operations/deleteOrganizationInviteByEmail.js +29 -0
- package/lib/operations/deleteOrganizationInviteByEmail.js.map +1 -0
- package/lib/operations/getDatabase.d.ts +35 -0
- package/lib/operations/getDatabase.d.ts.map +1 -0
- package/lib/operations/getDatabase.js +44 -0
- package/lib/operations/getDatabase.js.map +1 -0
- package/lib/operations/getDatabaseConfiguration.d.ts +24 -0
- package/lib/operations/getDatabaseConfiguration.d.ts.map +1 -0
- package/lib/operations/getDatabaseConfiguration.js +35 -0
- package/lib/operations/getDatabaseConfiguration.js.map +1 -0
- package/lib/operations/getDatabaseInstance.d.ts +28 -0
- package/lib/operations/getDatabaseInstance.d.ts.map +1 -0
- package/lib/operations/getDatabaseInstance.js +39 -0
- package/lib/operations/getDatabaseInstance.js.map +1 -0
- package/lib/operations/getDatabaseStats.d.ts +24 -0
- package/lib/operations/getDatabaseStats.d.ts.map +1 -0
- package/lib/operations/getDatabaseStats.js +33 -0
- package/lib/operations/getDatabaseStats.js.map +1 -0
- package/lib/operations/getDatabaseUsage.d.ts +41 -0
- package/lib/operations/getDatabaseUsage.d.ts.map +1 -0
- package/lib/operations/getDatabaseUsage.js +50 -0
- package/lib/operations/getDatabaseUsage.js.map +1 -0
- package/lib/operations/getGroup.d.ts +27 -0
- package/lib/operations/getGroup.d.ts.map +1 -0
- package/lib/operations/getGroup.js +36 -0
- package/lib/operations/getGroup.js.map +1 -0
- package/lib/operations/getGroupConfiguration.d.ts +20 -0
- package/lib/operations/getGroupConfiguration.d.ts.map +1 -0
- package/lib/operations/getGroupConfiguration.js +31 -0
- package/lib/operations/getGroupConfiguration.js.map +1 -0
- package/lib/operations/getOrganization.d.ts +28 -0
- package/lib/operations/getOrganization.d.ts.map +1 -0
- package/lib/operations/getOrganization.js +34 -0
- package/lib/operations/getOrganization.js.map +1 -0
- package/lib/operations/getOrganizationMember.d.ts +24 -0
- package/lib/operations/getOrganizationMember.d.ts.map +1 -0
- package/lib/operations/getOrganizationMember.js +35 -0
- package/lib/operations/getOrganizationMember.js.map +1 -0
- package/lib/operations/getOrganizationSubscription.d.ts +23 -0
- package/lib/operations/getOrganizationSubscription.d.ts.map +1 -0
- package/lib/operations/getOrganizationSubscription.js +34 -0
- package/lib/operations/getOrganizationSubscription.js.map +1 -0
- package/lib/operations/getOrganizationUsage.d.ts +47 -0
- package/lib/operations/getOrganizationUsage.d.ts.map +1 -0
- package/lib/operations/getOrganizationUsage.js +58 -0
- package/lib/operations/getOrganizationUsage.js.map +1 -0
- package/lib/operations/index.d.ts +46 -1
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +46 -2
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/invalidateDatabaseTokens.d.ts +18 -0
- package/lib/operations/invalidateDatabaseTokens.d.ts.map +1 -0
- package/lib/operations/invalidateDatabaseTokens.js +29 -0
- package/lib/operations/invalidateDatabaseTokens.js.map +1 -0
- package/lib/operations/invalidateGroupTokens.d.ts +18 -0
- package/lib/operations/invalidateGroupTokens.d.ts.map +1 -0
- package/lib/operations/invalidateGroupTokens.js +29 -0
- package/lib/operations/invalidateGroupTokens.js.map +1 -0
- package/lib/operations/inviteOrganizationMember.d.ts +41 -0
- package/lib/operations/inviteOrganizationMember.d.ts.map +1 -0
- package/lib/operations/inviteOrganizationMember.js +52 -0
- package/lib/operations/inviteOrganizationMember.js.map +1 -0
- package/lib/operations/listAPITokens.d.ts +17 -0
- package/lib/operations/listAPITokens.d.ts.map +1 -0
- package/lib/operations/listAPITokens.js +23 -0
- package/lib/operations/listAPITokens.js.map +1 -0
- package/lib/operations/listDatabaseInstances.d.ts +26 -0
- package/lib/operations/listDatabaseInstances.d.ts.map +1 -0
- package/lib/operations/listDatabaseInstances.js +37 -0
- package/lib/operations/listDatabaseInstances.js.map +1 -0
- package/lib/operations/listDatabases.d.ts +39 -0
- package/lib/operations/listDatabases.d.ts.map +1 -0
- package/lib/operations/listDatabases.js +48 -0
- package/lib/operations/listDatabases.js.map +1 -0
- package/lib/operations/listGroups.d.ts +25 -0
- package/lib/operations/listGroups.d.ts.map +1 -0
- package/lib/operations/listGroups.js +34 -0
- package/lib/operations/listGroups.js.map +1 -0
- package/lib/operations/listLocations.d.ts +14 -0
- package/lib/operations/listLocations.d.ts.map +1 -0
- package/lib/operations/listLocations.js +20 -0
- package/lib/operations/listLocations.js.map +1 -0
- package/lib/operations/listOrganizationAuditLogs.d.ts +35 -0
- package/lib/operations/listOrganizationAuditLogs.d.ts.map +1 -0
- package/lib/operations/listOrganizationAuditLogs.js +71 -0
- package/lib/operations/listOrganizationAuditLogs.js.map +1 -0
- package/lib/operations/listOrganizationInvites.d.ts +39 -0
- package/lib/operations/listOrganizationInvites.d.ts.map +1 -0
- package/lib/operations/listOrganizationInvites.js +50 -0
- package/lib/operations/listOrganizationInvites.js.map +1 -0
- package/lib/operations/listOrganizationInvoices.d.ts +27 -0
- package/lib/operations/listOrganizationInvoices.d.ts.map +1 -0
- package/lib/operations/listOrganizationInvoices.js +38 -0
- package/lib/operations/listOrganizationInvoices.js.map +1 -0
- package/lib/operations/listOrganizationMembers.d.ts +22 -0
- package/lib/operations/listOrganizationMembers.d.ts.map +1 -0
- package/lib/operations/listOrganizationMembers.js +33 -0
- package/lib/operations/listOrganizationMembers.js.map +1 -0
- package/lib/operations/listOrganizationPlans.d.ts +34 -0
- package/lib/operations/listOrganizationPlans.d.ts.map +1 -0
- package/lib/operations/listOrganizationPlans.js +45 -0
- package/lib/operations/listOrganizationPlans.js.map +1 -0
- package/lib/operations/listOrganizations.d.ts +22 -0
- package/lib/operations/listOrganizations.d.ts.map +1 -0
- package/lib/operations/listOrganizations.js +28 -0
- package/lib/operations/listOrganizations.js.map +1 -0
- package/lib/operations/removeLocationFromGroup.d.ts +29 -0
- package/lib/operations/removeLocationFromGroup.d.ts.map +1 -0
- package/lib/operations/removeLocationFromGroup.js +40 -0
- package/lib/operations/removeLocationFromGroup.js.map +1 -0
- package/lib/operations/removeOrganizationMember.d.ts +20 -0
- package/lib/operations/removeOrganizationMember.d.ts.map +1 -0
- package/lib/operations/removeOrganizationMember.js +31 -0
- package/lib/operations/removeOrganizationMember.js.map +1 -0
- package/lib/operations/revokeAPIToken.d.ts +18 -0
- package/lib/operations/revokeAPIToken.d.ts.map +1 -0
- package/lib/operations/revokeAPIToken.js +24 -0
- package/lib/operations/revokeAPIToken.js.map +1 -0
- package/lib/operations/transferGroup.d.ts +26 -0
- package/lib/operations/transferGroup.d.ts.map +1 -0
- package/lib/operations/transferGroup.js +35 -0
- package/lib/operations/transferGroup.js.map +1 -0
- package/lib/operations/unarchiveGroup.d.ts +27 -0
- package/lib/operations/unarchiveGroup.d.ts.map +1 -0
- package/lib/operations/unarchiveGroup.js +36 -0
- package/lib/operations/unarchiveGroup.js.map +1 -0
- package/lib/operations/updateDatabaseConfiguration.d.ts +29 -0
- package/lib/operations/updateDatabaseConfiguration.d.ts.map +1 -0
- package/lib/operations/updateDatabaseConfiguration.js +40 -0
- package/lib/operations/updateDatabaseConfiguration.js.map +1 -0
- package/lib/operations/updateGroupConfiguration.d.ts +21 -0
- package/lib/operations/updateGroupConfiguration.d.ts.map +1 -0
- package/lib/operations/updateGroupConfiguration.js +32 -0
- package/lib/operations/updateGroupConfiguration.js.map +1 -0
- package/lib/operations/updateGroupDatabases.d.ts +18 -0
- package/lib/operations/updateGroupDatabases.d.ts.map +1 -0
- package/lib/operations/updateGroupDatabases.js +29 -0
- package/lib/operations/updateGroupDatabases.js.map +1 -0
- package/lib/operations/updateMemberRole.d.ts +25 -0
- package/lib/operations/updateMemberRole.d.ts.map +1 -0
- package/lib/operations/updateMemberRole.js +34 -0
- package/lib/operations/updateMemberRole.js.map +1 -0
- package/lib/operations/updateOrganization.d.ts +29 -0
- package/lib/operations/updateOrganization.d.ts.map +1 -0
- package/lib/operations/updateOrganization.js +37 -0
- package/lib/operations/updateOrganization.js.map +1 -0
- package/lib/operations/validateAPIToken.d.ts +14 -0
- package/lib/operations/validateAPIToken.d.ts.map +1 -0
- package/lib/operations/validateAPIToken.js +20 -0
- package/lib/operations/validateAPIToken.js.map +1 -0
- package/package.json +4 -4
- package/src/operations/addLocationToGroup.ts +48 -0
- package/src/operations/addOrganizationMember.ts +43 -0
- package/src/operations/createAPIToken.ts +30 -0
- package/src/operations/createDatabase.ts +67 -0
- package/src/operations/createDatabaseToken.ts +52 -0
- package/src/operations/createGroup.ts +45 -0
- package/src/operations/createGroupToken.ts +50 -0
- package/src/operations/deleteDatabase.ts +35 -0
- package/src/operations/deleteGroup.ts +44 -0
- package/src/operations/deleteOrganizationInviteByEmail.ts +37 -0
- package/src/operations/getDatabase.ts +56 -0
- package/src/operations/getDatabaseConfiguration.ts +45 -0
- package/src/operations/getDatabaseInstance.ts +47 -0
- package/src/operations/getDatabaseStats.ts +47 -0
- package/src/operations/getDatabaseUsage.ts +68 -0
- package/src/operations/getGroup.ts +44 -0
- package/src/operations/getGroupConfiguration.ts +40 -0
- package/src/operations/getOrganization.ts +42 -0
- package/src/operations/getOrganizationMember.ts +48 -0
- package/src/operations/getOrganizationSubscription.ts +46 -0
- package/src/operations/getOrganizationUsage.ts +82 -0
- package/src/operations/index.ts +46 -2
- package/src/operations/invalidateDatabaseTokens.ts +39 -0
- package/src/operations/invalidateGroupTokens.ts +38 -0
- package/src/operations/inviteOrganizationMember.ts +66 -0
- package/src/operations/listAPITokens.ts +33 -0
- package/src/operations/listDatabaseInstances.ts +50 -0
- package/src/operations/listDatabases.ts +62 -0
- package/src/operations/listGroups.ts +44 -0
- package/src/operations/listLocations.ts +26 -0
- package/src/operations/listOrganizationAuditLogs.ts +89 -0
- package/src/operations/listOrganizationInvites.ts +66 -0
- package/src/operations/listOrganizationInvoices.ts +52 -0
- package/src/operations/listOrganizationMembers.ts +49 -0
- package/src/operations/listOrganizationPlans.ts +64 -0
- package/src/operations/listOrganizations.ts +36 -0
- package/src/operations/removeLocationFromGroup.ts +52 -0
- package/src/operations/removeOrganizationMember.ts +41 -0
- package/src/operations/revokeAPIToken.ts +28 -0
- package/src/operations/transferGroup.ts +41 -0
- package/src/operations/unarchiveGroup.ts +44 -0
- package/src/operations/updateDatabaseConfiguration.ts +50 -0
- package/src/operations/updateGroupConfiguration.ts +42 -0
- package/src/operations/updateGroupDatabases.ts +37 -0
- package/src/operations/updateMemberRole.ts +44 -0
- package/src/operations/updateOrganization.ts +45 -0
- package/src/operations/validateAPIToken.ts +28 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const UnarchiveGroupInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type UnarchiveGroupInput = typeof UnarchiveGroupInput.Type;
|
|
7
|
+
export declare const UnarchiveGroupOutput: Schema.Struct<{
|
|
8
|
+
readonly group: Schema.optional<Schema.Struct<{
|
|
9
|
+
readonly name: Schema.optional<Schema.String>;
|
|
10
|
+
readonly version: Schema.optional<Schema.String>;
|
|
11
|
+
readonly uuid: Schema.optional<Schema.String>;
|
|
12
|
+
readonly locations: Schema.optional<Schema.$Array<Schema.String>>;
|
|
13
|
+
readonly primary: Schema.optional<Schema.String>;
|
|
14
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
15
|
+
}>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type UnarchiveGroupOutput = typeof UnarchiveGroupOutput.Type;
|
|
18
|
+
/**
|
|
19
|
+
* Unarchive Group
|
|
20
|
+
*
|
|
21
|
+
* Unarchive a group that has been archived due to inactivity.
|
|
22
|
+
*
|
|
23
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
24
|
+
* @param groupName - The name of the group.
|
|
25
|
+
*/
|
|
26
|
+
export declare const unarchiveGroup: any;
|
|
27
|
+
//# sourceMappingURL=unarchiveGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unarchiveGroup.d.ts","sourceRoot":"","sources":["../../src/operations/unarchiveGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;;EAQ/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;;;;;;EAW/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,KAGxB,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 UnarchiveGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
groupName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({
|
|
9
|
+
method: "POST",
|
|
10
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/unarchive",
|
|
11
|
+
}));
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const UnarchiveGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
group: Schema.optional(Schema.Struct({
|
|
15
|
+
name: Schema.optional(Schema.String),
|
|
16
|
+
version: Schema.optional(Schema.String),
|
|
17
|
+
uuid: Schema.optional(Schema.String),
|
|
18
|
+
locations: Schema.optional(Schema.Array(Schema.String)),
|
|
19
|
+
primary: Schema.optional(Schema.String),
|
|
20
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
21
|
+
})),
|
|
22
|
+
});
|
|
23
|
+
// The operation
|
|
24
|
+
/**
|
|
25
|
+
* Unarchive Group
|
|
26
|
+
*
|
|
27
|
+
* Unarchive a group that has been archived due to inactivity.
|
|
28
|
+
*
|
|
29
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
30
|
+
* @param groupName - The name of the group.
|
|
31
|
+
*/
|
|
32
|
+
export const unarchiveGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: UnarchiveGroupInput,
|
|
34
|
+
outputSchema: UnarchiveGroupOutput,
|
|
35
|
+
}));
|
|
36
|
+
//# sourceMappingURL=unarchiveGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unarchiveGroup.js","sourceRoot":"","sources":["../../src/operations/unarchiveGroup.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,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,mEAAmE;CAC1E,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACvD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KACnD,CAAC,CACH;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;GAOG;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,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const UpdateDatabaseConfigurationInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly databaseName: Schema.String;
|
|
5
|
+
readonly size_limit: Schema.optional<Schema.String>;
|
|
6
|
+
readonly allow_attach: Schema.optional<Schema.Boolean>;
|
|
7
|
+
readonly block_reads: Schema.optional<Schema.Boolean>;
|
|
8
|
+
readonly block_writes: Schema.optional<Schema.Boolean>;
|
|
9
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
10
|
+
}>;
|
|
11
|
+
export type UpdateDatabaseConfigurationInput = typeof UpdateDatabaseConfigurationInput.Type;
|
|
12
|
+
export declare const UpdateDatabaseConfigurationOutput: Schema.Struct<{
|
|
13
|
+
readonly size_limit: Schema.optional<Schema.String>;
|
|
14
|
+
readonly allow_attach: Schema.optional<Schema.Boolean>;
|
|
15
|
+
readonly block_reads: Schema.optional<Schema.Boolean>;
|
|
16
|
+
readonly block_writes: Schema.optional<Schema.Boolean>;
|
|
17
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
18
|
+
}>;
|
|
19
|
+
export type UpdateDatabaseConfigurationOutput = typeof UpdateDatabaseConfigurationOutput.Type;
|
|
20
|
+
/**
|
|
21
|
+
* Update Database Configuration
|
|
22
|
+
*
|
|
23
|
+
* Update a database configuration belonging to the organization or user.
|
|
24
|
+
*
|
|
25
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
26
|
+
* @param databaseName - The name of the database.
|
|
27
|
+
*/
|
|
28
|
+
export declare const updateDatabaseConfiguration: any;
|
|
29
|
+
//# sourceMappingURL=updateDatabaseConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateDatabaseConfiguration.d.ts","sourceRoot":"","sources":["../../src/operations/updateDatabaseConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,gCAAgC;;;;;;;;EAc1C,CAAC;AACJ,MAAM,MAAM,gCAAgC,GAC1C,OAAO,gCAAgC,CAAC,IAAI,CAAC;AAG/C,eAAO,MAAM,iCAAiC;;;;;;EAO1C,CAAC;AACL,MAAM,MAAM,iCAAiC,GAC3C,OAAO,iCAAiC,CAAC,IAAI,CAAC;AAGhD;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,KAKvC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const UpdateDatabaseConfigurationInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
databaseName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
size_limit: Schema.optional(Schema.String),
|
|
10
|
+
allow_attach: Schema.optional(Schema.Boolean),
|
|
11
|
+
block_reads: Schema.optional(Schema.Boolean),
|
|
12
|
+
block_writes: Schema.optional(Schema.Boolean),
|
|
13
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
14
|
+
}).pipe(T.Http({
|
|
15
|
+
method: "PATCH",
|
|
16
|
+
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/configuration",
|
|
17
|
+
}));
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const UpdateDatabaseConfigurationOutput =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
size_limit: Schema.optional(Schema.String),
|
|
22
|
+
allow_attach: Schema.optional(Schema.Boolean),
|
|
23
|
+
block_reads: Schema.optional(Schema.Boolean),
|
|
24
|
+
block_writes: Schema.optional(Schema.Boolean),
|
|
25
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
26
|
+
});
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* Update Database Configuration
|
|
30
|
+
*
|
|
31
|
+
* Update a database configuration belonging to the organization or user.
|
|
32
|
+
*
|
|
33
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
34
|
+
* @param databaseName - The name of the database.
|
|
35
|
+
*/
|
|
36
|
+
export const updateDatabaseConfiguration = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
37
|
+
inputSchema: UpdateDatabaseConfigurationInput,
|
|
38
|
+
outputSchema: UpdateDatabaseConfigurationOutput,
|
|
39
|
+
}));
|
|
40
|
+
//# sourceMappingURL=updateDatabaseConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateDatabaseConfiguration.js","sourceRoot":"","sources":["../../src/operations/updateDatabaseConfiguration.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,gCAAgC;AAC3C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC7C,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CACnD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,6EAA6E;CACpF,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC7C,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CACnD,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC7E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,gCAAgC;IAC7C,YAAY,EAAE,iCAAiC;CAChD,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const UpdateGroupConfigurationInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
6
|
+
}>;
|
|
7
|
+
export type UpdateGroupConfigurationInput = typeof UpdateGroupConfigurationInput.Type;
|
|
8
|
+
export declare const UpdateGroupConfigurationOutput: Schema.Struct<{
|
|
9
|
+
readonly delete_protection: Schema.optional<Schema.Boolean>;
|
|
10
|
+
}>;
|
|
11
|
+
export type UpdateGroupConfigurationOutput = typeof UpdateGroupConfigurationOutput.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Update Group Configuration
|
|
14
|
+
*
|
|
15
|
+
* Update a group configuration belonging to the organization or user.
|
|
16
|
+
*
|
|
17
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
18
|
+
* @param groupName - The name of the group.
|
|
19
|
+
*/
|
|
20
|
+
export declare const updateGroupConfiguration: any;
|
|
21
|
+
//# sourceMappingURL=updateGroupConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateGroupConfiguration.d.ts","sourceRoot":"","sources":["../../src/operations/updateGroupConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,6BAA6B;;;;EAUvC,CAAC;AACJ,MAAM,MAAM,6BAA6B,GACvC,OAAO,6BAA6B,CAAC,IAAI,CAAC;AAG5C,eAAO,MAAM,8BAA8B;;EAGvC,CAAC;AACL,MAAM,MAAM,8BAA8B,GACxC,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAG7C;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,KAKpC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const UpdateGroupConfigurationInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
groupName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
10
|
+
}).pipe(T.Http({
|
|
11
|
+
method: "PATCH",
|
|
12
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/configuration",
|
|
13
|
+
}));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const UpdateGroupConfigurationOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
18
|
+
});
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Update Group Configuration
|
|
22
|
+
*
|
|
23
|
+
* Update a group configuration belonging to the organization or user.
|
|
24
|
+
*
|
|
25
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
26
|
+
* @param groupName - The name of the group.
|
|
27
|
+
*/
|
|
28
|
+
export const updateGroupConfiguration = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: UpdateGroupConfigurationInput,
|
|
30
|
+
outputSchema: UpdateGroupConfigurationOutput,
|
|
31
|
+
}));
|
|
32
|
+
//# sourceMappingURL=updateGroupConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateGroupConfiguration.js","sourceRoot":"","sources":["../../src/operations/updateGroupConfiguration.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,6BAA6B;AACxC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CACnD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,uEAAuE;CAC9E,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CACnD,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC1E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,6BAA6B;IAC1C,YAAY,EAAE,8BAA8B;CAC7C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const UpdateGroupDatabasesInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly groupName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type UpdateGroupDatabasesInput = typeof UpdateGroupDatabasesInput.Type;
|
|
7
|
+
export declare const UpdateGroupDatabasesOutput: Schema.Void;
|
|
8
|
+
export type UpdateGroupDatabasesOutput = typeof UpdateGroupDatabasesOutput.Type;
|
|
9
|
+
/**
|
|
10
|
+
* Update Databases in a Group
|
|
11
|
+
*
|
|
12
|
+
* Updates all databases in the group to the latest libSQL version.
|
|
13
|
+
*
|
|
14
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
15
|
+
* @param groupName - The name of the group.
|
|
16
|
+
*/
|
|
17
|
+
export declare const updateGroupDatabases: any;
|
|
18
|
+
//# sourceMappingURL=updateGroupDatabases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateGroupDatabases.d.ts","sourceRoot":"","sources":["../../src/operations/updateGroupDatabases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,yBAAyB;;;EASnC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E,eAAO,MAAM,0BAA0B,aACE,CAAC;AAC1C,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,KAKhC,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 UpdateGroupDatabasesInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
groupName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "POST",
|
|
11
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/update",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const UpdateGroupDatabasesOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
16
|
+
// The operation
|
|
17
|
+
/**
|
|
18
|
+
* Update Databases in a Group
|
|
19
|
+
*
|
|
20
|
+
* Updates all databases in the group to the latest libSQL version.
|
|
21
|
+
*
|
|
22
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
23
|
+
* @param groupName - The name of the group.
|
|
24
|
+
*/
|
|
25
|
+
export const updateGroupDatabases = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
26
|
+
inputSchema: UpdateGroupDatabasesInput,
|
|
27
|
+
outputSchema: UpdateGroupDatabasesOutput,
|
|
28
|
+
}));
|
|
29
|
+
//# sourceMappingURL=updateGroupDatabases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateGroupDatabases.js","sourceRoot":"","sources":["../../src/operations/updateGroupDatabases.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,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,gEAAgE;CACvE,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAG1C,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACtE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,yBAAyB;IACtC,YAAY,EAAE,0BAA0B;CACzC,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const UpdateMemberRoleInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly username: Schema.String;
|
|
5
|
+
readonly role: Schema.Literals<readonly ["admin", "member", "viewer"]>;
|
|
6
|
+
}>;
|
|
7
|
+
export type UpdateMemberRoleInput = typeof UpdateMemberRoleInput.Type;
|
|
8
|
+
export declare const UpdateMemberRoleOutput: Schema.Struct<{
|
|
9
|
+
readonly member: Schema.optional<Schema.Struct<{
|
|
10
|
+
readonly username: Schema.optional<Schema.String>;
|
|
11
|
+
readonly email: Schema.optional<Schema.String>;
|
|
12
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["admin", "member", "viewer"]>>;
|
|
13
|
+
}>>;
|
|
14
|
+
}>;
|
|
15
|
+
export type UpdateMemberRoleOutput = typeof UpdateMemberRoleOutput.Type;
|
|
16
|
+
/**
|
|
17
|
+
* Update Member Role
|
|
18
|
+
*
|
|
19
|
+
* Update the role of an organization member. Only organization admins or owners can perform this action.
|
|
20
|
+
*
|
|
21
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
22
|
+
* @param username - The username of a Turso user or organization member.
|
|
23
|
+
*/
|
|
24
|
+
export declare const updateMemberRole: any;
|
|
25
|
+
//# sourceMappingURL=updateMemberRole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateMemberRole.d.ts","sourceRoot":"","sources":["../../src/operations/updateMemberRole.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;;;EASjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;EAUlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const UpdateMemberRoleInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
7
|
+
username: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
role: Schema.Literals(["admin", "member", "viewer"]),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "PATCH",
|
|
11
|
+
path: "/v1/organizations/{organizationSlug}/members/{username}",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const UpdateMemberRoleOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
member: Schema.optional(Schema.Struct({
|
|
16
|
+
username: Schema.optional(Schema.String),
|
|
17
|
+
email: Schema.optional(Schema.String),
|
|
18
|
+
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
19
|
+
})),
|
|
20
|
+
});
|
|
21
|
+
// The operation
|
|
22
|
+
/**
|
|
23
|
+
* Update Member Role
|
|
24
|
+
*
|
|
25
|
+
* Update the role of an organization member. Only organization admins or owners can perform this action.
|
|
26
|
+
*
|
|
27
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
28
|
+
* @param username - The username of a Turso user or organization member.
|
|
29
|
+
*/
|
|
30
|
+
export const updateMemberRole = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
31
|
+
inputSchema: UpdateMemberRoleInput,
|
|
32
|
+
outputSchema: UpdateMemberRoleOutput,
|
|
33
|
+
}));
|
|
34
|
+
//# sourceMappingURL=updateMemberRole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateMemberRole.js","sourceRoot":"","sources":["../../src/operations/updateMemberRole.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,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;CACrD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,yDAAyD;CAChE,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,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;KACtE,CAAC,CACH;CACF,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const UpdateOrganizationInput: Schema.Struct<{
|
|
3
|
+
readonly organizationSlug: Schema.String;
|
|
4
|
+
readonly overages: Schema.optional<Schema.Boolean>;
|
|
5
|
+
}>;
|
|
6
|
+
export type UpdateOrganizationInput = typeof UpdateOrganizationInput.Type;
|
|
7
|
+
export declare const UpdateOrganizationOutput: Schema.Struct<{
|
|
8
|
+
readonly organization: Schema.optional<Schema.Struct<{
|
|
9
|
+
readonly name: Schema.optional<Schema.String>;
|
|
10
|
+
readonly slug: Schema.optional<Schema.String>;
|
|
11
|
+
readonly type: Schema.optional<Schema.Literals<readonly ["personal", "team"]>>;
|
|
12
|
+
readonly overages: Schema.optional<Schema.Boolean>;
|
|
13
|
+
readonly blocked_reads: Schema.optional<Schema.Boolean>;
|
|
14
|
+
readonly blocked_writes: Schema.optional<Schema.Boolean>;
|
|
15
|
+
readonly plan_id: Schema.optional<Schema.String>;
|
|
16
|
+
readonly plan_timeline: Schema.optional<Schema.String>;
|
|
17
|
+
readonly platform: Schema.optional<Schema.String>;
|
|
18
|
+
}>>;
|
|
19
|
+
}>;
|
|
20
|
+
export type UpdateOrganizationOutput = typeof UpdateOrganizationOutput.Type;
|
|
21
|
+
/**
|
|
22
|
+
* Update Organization
|
|
23
|
+
*
|
|
24
|
+
* Update an organization you own or are a member of.
|
|
25
|
+
*
|
|
26
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
27
|
+
*/
|
|
28
|
+
export declare const updateOrganization: any;
|
|
29
|
+
//# sourceMappingURL=updateOrganization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateOrganization.d.ts","sourceRoot":"","sources":["../../src/operations/updateOrganization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,uBAAuB;;;EAMjC,CAAC;AACJ,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAejC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,KAG5B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const UpdateOrganizationInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
overages: Schema.optional(Schema.Boolean),
|
|
9
|
+
}).pipe(T.Http({ method: "PATCH", path: "/v1/organizations/{organizationSlug}" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const UpdateOrganizationOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
organization: Schema.optional(Schema.Struct({
|
|
14
|
+
name: Schema.optional(Schema.String),
|
|
15
|
+
slug: Schema.optional(Schema.String),
|
|
16
|
+
type: Schema.optional(Schema.Literals(["personal", "team"])),
|
|
17
|
+
overages: Schema.optional(Schema.Boolean),
|
|
18
|
+
blocked_reads: Schema.optional(Schema.Boolean),
|
|
19
|
+
blocked_writes: Schema.optional(Schema.Boolean),
|
|
20
|
+
plan_id: Schema.optional(Schema.String),
|
|
21
|
+
plan_timeline: Schema.optional(Schema.String),
|
|
22
|
+
platform: Schema.optional(Schema.String),
|
|
23
|
+
})),
|
|
24
|
+
});
|
|
25
|
+
// The operation
|
|
26
|
+
/**
|
|
27
|
+
* Update Organization
|
|
28
|
+
*
|
|
29
|
+
* Update an organization you own or are a member of.
|
|
30
|
+
*
|
|
31
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
32
|
+
*/
|
|
33
|
+
export const updateOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
34
|
+
inputSchema: UpdateOrganizationInput,
|
|
35
|
+
outputSchema: UpdateOrganizationOutput,
|
|
36
|
+
}));
|
|
37
|
+
//# sourceMappingURL=updateOrganization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateOrganization.js","sourceRoot":"","sources":["../../src/operations/updateOrganization.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,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CAC1C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,sCAAsC,EAAE,CAAC,CAC1E,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAC3B,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;QAC5D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QACzC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC9C,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC7C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACzC,CAAC,CACH;CACF,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const ValidateAPITokenInput: Schema.Struct<{}>;
|
|
3
|
+
export type ValidateAPITokenInput = typeof ValidateAPITokenInput.Type;
|
|
4
|
+
export declare const ValidateAPITokenOutput: Schema.Struct<{
|
|
5
|
+
readonly exp: Schema.optional<Schema.Number>;
|
|
6
|
+
}>;
|
|
7
|
+
export type ValidateAPITokenOutput = typeof ValidateAPITokenOutput.Type;
|
|
8
|
+
/**
|
|
9
|
+
* Validate API Token
|
|
10
|
+
*
|
|
11
|
+
* Validates an API token belonging to a user.
|
|
12
|
+
*/
|
|
13
|
+
export declare const validateAPIToken: any;
|
|
14
|
+
//# sourceMappingURL=validateAPIToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/validateAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB,mBAE0B,CAAC;AAC7D,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;EAIlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const ValidateAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v1/auth/validate" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const ValidateAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
exp: Schema.optional(Schema.Number),
|
|
9
|
+
});
|
|
10
|
+
// The operation
|
|
11
|
+
/**
|
|
12
|
+
* Validate API Token
|
|
13
|
+
*
|
|
14
|
+
* Validates an API token belonging to a user.
|
|
15
|
+
*/
|
|
16
|
+
export const validateAPIToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
17
|
+
inputSchema: ValidateAPITokenInput,
|
|
18
|
+
outputSchema: ValidateAPITokenOutput,
|
|
19
|
+
}));
|
|
20
|
+
//# sourceMappingURL=validateAPIToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateAPIToken.js","sourceRoot":"","sources":["../../src/operations/validateAPIToken.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,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC5E,EAAE,CACH,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAG7D,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACpC,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/turso",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"check": "tsgo && oxlint src && oxfmt --check src",
|
|
69
69
|
"test": "bunx vitest run test",
|
|
70
70
|
"publish:npm": "bun run build && bun publish --access public",
|
|
71
|
-
"generate": "bun run scripts/generate.ts && oxfmt --write src &&
|
|
72
|
-
"specs:fetch": "git submodule update --force --init --recursive specs/turso-docs && git -C specs/turso-docs checkout -- .",
|
|
71
|
+
"generate": "bun run scripts/generate.ts && oxlint --fix src && oxfmt --write src && oxfmt --write src",
|
|
72
|
+
"specs:fetch": "git submodule update --force --init --recursive --depth=1 specs/turso-docs && git -C specs/turso-docs checkout -- .",
|
|
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.
|
|
76
|
+
"@distilled.cloud/core": "0.5.1",
|
|
77
77
|
"effect": "4.0.0-beta.30"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
@@ -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 AddLocationToGroupInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
groupName: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
location: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "POST",
|
|
14
|
+
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/locations/{location}",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type AddLocationToGroupInput = typeof AddLocationToGroupInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const AddLocationToGroupOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
group: Schema.optional(
|
|
23
|
+
Schema.Struct({
|
|
24
|
+
name: Schema.optional(Schema.String),
|
|
25
|
+
version: Schema.optional(Schema.String),
|
|
26
|
+
uuid: Schema.optional(Schema.String),
|
|
27
|
+
locations: Schema.optional(Schema.Array(Schema.String)),
|
|
28
|
+
primary: Schema.optional(Schema.String),
|
|
29
|
+
delete_protection: Schema.optional(Schema.Boolean),
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
});
|
|
33
|
+
export type AddLocationToGroupOutput = typeof AddLocationToGroupOutput.Type;
|
|
34
|
+
|
|
35
|
+
// The operation
|
|
36
|
+
/**
|
|
37
|
+
* Add Location to Group
|
|
38
|
+
*
|
|
39
|
+
* Adds a location to the specified group.
|
|
40
|
+
*
|
|
41
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
42
|
+
* @param groupName - The name of the group.
|
|
43
|
+
* @param location - The location code to add to the group.
|
|
44
|
+
*/
|
|
45
|
+
export const addLocationToGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
46
|
+
inputSchema: AddLocationToGroupInput,
|
|
47
|
+
outputSchema: AddLocationToGroupOutput,
|
|
48
|
+
}));
|
|
@@ -0,0 +1,43 @@
|
|
|
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 AddOrganizationMemberInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
username: Schema.optional(Schema.String),
|
|
10
|
+
role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "POST",
|
|
14
|
+
path: "/v1/organizations/{organizationSlug}/members",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type AddOrganizationMemberInput = typeof AddOrganizationMemberInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const AddOrganizationMemberOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
member: Schema.optional(Schema.String),
|
|
23
|
+
role: Schema.optional(
|
|
24
|
+
Schema.Literals(["owner", "admin", "member", "viewer"]),
|
|
25
|
+
),
|
|
26
|
+
});
|
|
27
|
+
export type AddOrganizationMemberOutput =
|
|
28
|
+
typeof AddOrganizationMemberOutput.Type;
|
|
29
|
+
|
|
30
|
+
// The operation
|
|
31
|
+
/**
|
|
32
|
+
* Add Member
|
|
33
|
+
*
|
|
34
|
+
* Add an existing Turso user to an organization.
|
|
35
|
+
*
|
|
36
|
+
* @param organizationSlug - The slug of the organization or user account.
|
|
37
|
+
*/
|
|
38
|
+
export const addOrganizationMember = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
39
|
+
() => ({
|
|
40
|
+
inputSchema: AddOrganizationMemberInput,
|
|
41
|
+
outputSchema: AddOrganizationMemberOutput,
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
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 CreateAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
tokenName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/auth/api-tokens/{tokenName}" }));
|
|
9
|
+
export type CreateAPITokenInput = typeof CreateAPITokenInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const CreateAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
name: Schema.optional(Schema.String),
|
|
14
|
+
id: Schema.optional(Schema.String),
|
|
15
|
+
token: Schema.optional(Schema.String),
|
|
16
|
+
});
|
|
17
|
+
export type CreateAPITokenOutput = typeof CreateAPITokenOutput.Type;
|
|
18
|
+
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Create API Token
|
|
22
|
+
*
|
|
23
|
+
* Returns a new API token belonging to a user.
|
|
24
|
+
*
|
|
25
|
+
* @param tokenName - The name of the api token.
|
|
26
|
+
*/
|
|
27
|
+
export const createAPIToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: CreateAPITokenInput,
|
|
29
|
+
outputSchema: CreateAPITokenOutput,
|
|
30
|
+
}));
|