@distilled.cloud/turso 0.27.0 → 0.28.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/lib/operations/addLocationToGroup.d.ts +18 -31
- package/lib/operations/addLocationToGroup.d.ts.map +1 -1
- package/lib/operations/addLocationToGroup.js +0 -2
- package/lib/operations/addLocationToGroup.js.map +1 -1
- package/lib/operations/addOrganizationMember.d.ts +12 -19
- package/lib/operations/addOrganizationMember.d.ts.map +1 -1
- package/lib/operations/addOrganizationMember.js +0 -2
- package/lib/operations/addOrganizationMember.js.map +1 -1
- package/lib/operations/createAPIToken.d.ts +20 -20
- package/lib/operations/createAPIToken.d.ts.map +1 -1
- package/lib/operations/createAPIToken.js +20 -3
- package/lib/operations/createAPIToken.js.map +1 -1
- package/lib/operations/createDatabase.d.ts +25 -45
- package/lib/operations/createDatabase.d.ts.map +1 -1
- package/lib/operations/createDatabase.js +0 -2
- package/lib/operations/createDatabase.js.map +1 -1
- package/lib/operations/createDatabaseToken.d.ts +17 -29
- package/lib/operations/createDatabaseToken.d.ts.map +1 -1
- package/lib/operations/createDatabaseToken.js +0 -2
- package/lib/operations/createDatabaseToken.js.map +1 -1
- package/lib/operations/createGroup.d.ts +19 -33
- package/lib/operations/createGroup.d.ts.map +1 -1
- package/lib/operations/createGroup.js +15 -3
- package/lib/operations/createGroup.js.map +1 -1
- package/lib/operations/createGroupToken.d.ts +17 -29
- package/lib/operations/createGroupToken.d.ts.map +1 -1
- package/lib/operations/createGroupToken.js +0 -2
- package/lib/operations/createGroupToken.js.map +1 -1
- package/lib/operations/deleteDatabase.d.ts +10 -15
- package/lib/operations/deleteDatabase.d.ts.map +1 -1
- package/lib/operations/deleteDatabase.js +0 -2
- package/lib/operations/deleteDatabase.js.map +1 -1
- package/lib/operations/deleteGroup.d.ts +17 -29
- package/lib/operations/deleteGroup.d.ts.map +1 -1
- package/lib/operations/deleteGroup.js +0 -2
- package/lib/operations/deleteGroup.js.map +1 -1
- package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +8 -11
- package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +1 -1
- package/lib/operations/deleteOrganizationInviteByEmailV2.js +0 -2
- package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +1 -1
- package/lib/operations/getCurrentUser.d.ts +16 -25
- package/lib/operations/getCurrentUser.d.ts.map +1 -1
- package/lib/operations/getCurrentUser.js +0 -2
- package/lib/operations/getCurrentUser.js.map +1 -1
- package/lib/operations/getDatabase.d.ts +25 -45
- package/lib/operations/getDatabase.d.ts.map +1 -1
- package/lib/operations/getDatabase.js +0 -2
- package/lib/operations/getDatabase.js.map +1 -1
- package/lib/operations/getDatabaseConfiguration.d.ts +16 -23
- package/lib/operations/getDatabaseConfiguration.d.ts.map +1 -1
- package/lib/operations/getDatabaseConfiguration.js +2 -2
- package/lib/operations/getDatabaseConfiguration.js.map +1 -1
- package/lib/operations/getDatabaseInstance.d.ts +17 -29
- package/lib/operations/getDatabaseInstance.d.ts.map +1 -1
- package/lib/operations/getDatabaseInstance.js +0 -2
- package/lib/operations/getDatabaseInstance.js.map +1 -1
- package/lib/operations/getDatabaseStats.d.ts +14 -23
- package/lib/operations/getDatabaseStats.d.ts.map +1 -1
- package/lib/operations/getDatabaseStats.js +0 -2
- package/lib/operations/getDatabaseStats.js.map +1 -1
- package/lib/operations/getDatabaseUsage.d.ts +29 -53
- package/lib/operations/getDatabaseUsage.d.ts.map +1 -1
- package/lib/operations/getDatabaseUsage.js +0 -2
- package/lib/operations/getDatabaseUsage.js.map +1 -1
- package/lib/operations/getGroup.d.ts +17 -29
- package/lib/operations/getGroup.d.ts.map +1 -1
- package/lib/operations/getGroup.js +0 -2
- package/lib/operations/getGroup.js.map +1 -1
- package/lib/operations/getGroupConfiguration.d.ts +10 -15
- package/lib/operations/getGroupConfiguration.d.ts.map +1 -1
- package/lib/operations/getGroupConfiguration.js +0 -2
- package/lib/operations/getGroupConfiguration.js.map +1 -1
- package/lib/operations/getOrganization.d.ts +20 -33
- package/lib/operations/getOrganization.d.ts.map +1 -1
- package/lib/operations/getOrganization.js +1 -2
- package/lib/operations/getOrganization.js.map +1 -1
- package/lib/operations/getOrganizationMember.d.ts +14 -23
- package/lib/operations/getOrganizationMember.d.ts.map +1 -1
- package/lib/operations/getOrganizationMember.js +0 -2
- package/lib/operations/getOrganizationMember.js.map +1 -1
- package/lib/operations/getOrganizationSubscription.d.ts +14 -23
- package/lib/operations/getOrganizationSubscription.d.ts.map +1 -1
- package/lib/operations/getOrganizationSubscription.js +0 -2
- package/lib/operations/getOrganizationSubscription.js.map +1 -1
- package/lib/operations/getOrganizationUsage.d.ts +38 -71
- package/lib/operations/getOrganizationUsage.d.ts.map +1 -1
- package/lib/operations/getOrganizationUsage.js +0 -2
- package/lib/operations/getOrganizationUsage.js.map +1 -1
- package/lib/operations/index.d.ts +2 -3
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +2 -3
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/invalidateDatabaseTokens.d.ts +8 -11
- package/lib/operations/invalidateDatabaseTokens.d.ts.map +1 -1
- package/lib/operations/invalidateDatabaseTokens.js +0 -2
- package/lib/operations/invalidateDatabaseTokens.js.map +1 -1
- package/lib/operations/invalidateGroupTokens.d.ts +8 -11
- package/lib/operations/invalidateGroupTokens.d.ts.map +1 -1
- package/lib/operations/invalidateGroupTokens.js +0 -2
- package/lib/operations/invalidateGroupTokens.js.map +1 -1
- package/lib/operations/inviteOrganizationMemberV2.d.ts +16 -27
- package/lib/operations/inviteOrganizationMemberV2.d.ts.map +1 -1
- package/lib/operations/inviteOrganizationMemberV2.js +2 -4
- package/lib/operations/inviteOrganizationMemberV2.js.map +1 -1
- package/lib/operations/listAPITokens.d.ts +15 -17
- package/lib/operations/listAPITokens.d.ts.map +1 -1
- package/lib/operations/listAPITokens.js +3 -2
- package/lib/operations/listAPITokens.js.map +1 -1
- package/lib/operations/listDatabaseInstances.d.ts +16 -27
- package/lib/operations/listDatabaseInstances.d.ts.map +1 -1
- package/lib/operations/listDatabaseInstances.js +0 -2
- package/lib/operations/listDatabaseInstances.js.map +1 -1
- package/lib/operations/listDatabases.d.ts +27 -49
- package/lib/operations/listDatabases.d.ts.map +1 -1
- package/lib/operations/listDatabases.js +0 -2
- package/lib/operations/listDatabases.js.map +1 -1
- package/lib/operations/listGroups.d.ts +16 -27
- package/lib/operations/listGroups.d.ts.map +1 -1
- package/lib/operations/listGroups.js +0 -2
- package/lib/operations/listGroups.js.map +1 -1
- package/lib/operations/listLocations.d.ts +8 -11
- package/lib/operations/listLocations.d.ts.map +1 -1
- package/lib/operations/listLocations.js +0 -2
- package/lib/operations/listLocations.js.map +1 -1
- package/lib/operations/listOrganizationAPITokens.d.ts +33 -0
- package/lib/operations/listOrganizationAPITokens.d.ts.map +1 -0
- package/lib/operations/listOrganizationAPITokens.js +42 -0
- package/lib/operations/listOrganizationAPITokens.js.map +1 -0
- package/lib/operations/listOrganizationAuditLogs.d.ts +24 -43
- package/lib/operations/listOrganizationAuditLogs.d.ts.map +1 -1
- package/lib/operations/listOrganizationAuditLogs.js +0 -2
- package/lib/operations/listOrganizationAuditLogs.js.map +1 -1
- package/lib/operations/listOrganizationInvitesV2.d.ts +14 -25
- package/lib/operations/listOrganizationInvitesV2.d.ts.map +1 -1
- package/lib/operations/listOrganizationInvitesV2.js +0 -3
- package/lib/operations/listOrganizationInvitesV2.js.map +1 -1
- package/lib/operations/listOrganizationInvoices.d.ts +17 -29
- package/lib/operations/listOrganizationInvoices.d.ts.map +1 -1
- package/lib/operations/listOrganizationInvoices.js +0 -2
- package/lib/operations/listOrganizationInvoices.js.map +1 -1
- package/lib/operations/listOrganizationMembers.d.ts +13 -21
- package/lib/operations/listOrganizationMembers.d.ts.map +1 -1
- package/lib/operations/listOrganizationMembers.js +0 -2
- package/lib/operations/listOrganizationMembers.js.map +1 -1
- package/lib/operations/listOrganizationPlans.d.ts +25 -45
- package/lib/operations/listOrganizationPlans.d.ts.map +1 -1
- package/lib/operations/listOrganizationPlans.js +0 -2
- package/lib/operations/listOrganizationPlans.js.map +1 -1
- package/lib/operations/listOrganizations.d.ts +17 -25
- package/lib/operations/listOrganizations.d.ts.map +1 -1
- package/lib/operations/listOrganizations.js +1 -2
- package/lib/operations/listOrganizations.js.map +1 -1
- package/lib/operations/removeLocationFromGroup.d.ts +18 -31
- package/lib/operations/removeLocationFromGroup.d.ts.map +1 -1
- package/lib/operations/removeLocationFromGroup.js +0 -2
- package/lib/operations/removeLocationFromGroup.js.map +1 -1
- package/lib/operations/removeOrganizationMember.d.ts +10 -15
- package/lib/operations/removeOrganizationMember.d.ts.map +1 -1
- package/lib/operations/removeOrganizationMember.js +0 -2
- package/lib/operations/removeOrganizationMember.js.map +1 -1
- package/lib/operations/revokeAPIToken.d.ts +9 -13
- package/lib/operations/revokeAPIToken.d.ts.map +1 -1
- package/lib/operations/revokeAPIToken.js +0 -2
- package/lib/operations/revokeAPIToken.js.map +1 -1
- package/lib/operations/revokeOrganizationAPIToken.d.ts +25 -0
- package/lib/operations/revokeOrganizationAPIToken.d.ts.map +1 -0
- package/lib/operations/revokeOrganizationAPIToken.js +34 -0
- package/lib/operations/revokeOrganizationAPIToken.js.map +1 -0
- package/lib/operations/transferGroup.d.ts +16 -27
- package/lib/operations/transferGroup.d.ts.map +1 -1
- package/lib/operations/transferGroup.js +0 -2
- package/lib/operations/transferGroup.js.map +1 -1
- package/lib/operations/unarchiveGroup.d.ts +17 -29
- package/lib/operations/unarchiveGroup.d.ts.map +1 -1
- package/lib/operations/unarchiveGroup.js +0 -2
- package/lib/operations/unarchiveGroup.js.map +1 -1
- package/lib/operations/updateDatabaseConfiguration.d.ts +23 -33
- package/lib/operations/updateDatabaseConfiguration.d.ts.map +1 -1
- package/lib/operations/updateDatabaseConfiguration.js +4 -2
- package/lib/operations/updateDatabaseConfiguration.js.map +1 -1
- package/lib/operations/updateGroupConfiguration.d.ts +11 -17
- package/lib/operations/updateGroupConfiguration.d.ts.map +1 -1
- package/lib/operations/updateGroupConfiguration.js +0 -2
- package/lib/operations/updateGroupConfiguration.js.map +1 -1
- package/lib/operations/updateGroupDatabases.d.ts +8 -11
- package/lib/operations/updateGroupDatabases.d.ts.map +1 -1
- package/lib/operations/updateGroupDatabases.js +0 -2
- package/lib/operations/updateGroupDatabases.js.map +1 -1
- package/lib/operations/updateMemberRole.d.ts +15 -25
- package/lib/operations/updateMemberRole.d.ts.map +1 -1
- package/lib/operations/updateMemberRole.js +0 -2
- package/lib/operations/updateMemberRole.js.map +1 -1
- package/lib/operations/updateOrganization.d.ts +22 -35
- package/lib/operations/updateOrganization.d.ts.map +1 -1
- package/lib/operations/updateOrganization.js +2 -2
- package/lib/operations/updateOrganization.js.map +1 -1
- package/lib/operations/validateAPIToken.d.ts +8 -9
- package/lib/operations/validateAPIToken.d.ts.map +1 -1
- package/lib/operations/validateAPIToken.js +0 -2
- package/lib/operations/validateAPIToken.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/addLocationToGroup.ts +17 -4
- package/src/operations/addOrganizationMember.ts +11 -5
- package/src/operations/createAPIToken.ts +51 -5
- package/src/operations/createDatabase.ts +29 -4
- package/src/operations/createDatabaseToken.ts +12 -4
- package/src/operations/createGroup.ts +50 -5
- package/src/operations/createGroupToken.ts +12 -4
- package/src/operations/deleteDatabase.ts +9 -4
- package/src/operations/deleteGroup.ts +16 -4
- package/src/operations/deleteOrganizationInviteByEmailV2.ts +7 -6
- package/src/operations/getCurrentUser.ts +16 -4
- package/src/operations/getDatabase.ts +20 -4
- package/src/operations/getDatabaseConfiguration.ts +17 -6
- package/src/operations/getDatabaseInstance.ts +16 -4
- package/src/operations/getDatabaseStats.ts +11 -4
- package/src/operations/getDatabaseUsage.ts +28 -4
- package/src/operations/getGroup.ts +16 -4
- package/src/operations/getGroupConfiguration.ts +9 -5
- package/src/operations/getOrganization.ts +20 -4
- package/src/operations/getOrganizationMember.ts +13 -5
- package/src/operations/getOrganizationSubscription.ts +13 -6
- package/src/operations/getOrganizationUsage.ts +37 -4
- package/src/operations/index.ts +2 -3
- package/src/operations/invalidateDatabaseTokens.ts +7 -6
- package/src/operations/invalidateGroupTokens.ts +7 -5
- package/src/operations/inviteOrganizationMemberV2.ts +17 -8
- package/src/operations/listAPITokens.ts +18 -4
- package/src/operations/listDatabaseInstances.ts +15 -5
- package/src/operations/listDatabases.ts +22 -4
- package/src/operations/listGroups.ts +15 -4
- package/src/operations/listLocations.ts +8 -4
- package/src/operations/listOrganizationAPITokens.ts +70 -0
- package/src/operations/listOrganizationAuditLogs.ts +47 -6
- package/src/operations/listOrganizationInvitesV2.ts +13 -7
- package/src/operations/listOrganizationInvoices.ts +16 -6
- package/src/operations/listOrganizationMembers.ts +12 -6
- package/src/operations/listOrganizationPlans.ts +21 -5
- package/src/operations/listOrganizations.ts +18 -4
- package/src/operations/removeLocationFromGroup.ts +17 -6
- package/src/operations/removeOrganizationMember.ts +9 -6
- package/src/operations/revokeAPIToken.ts +10 -4
- package/src/operations/revokeOrganizationAPIToken.ts +49 -0
- package/src/operations/transferGroup.ts +15 -4
- package/src/operations/unarchiveGroup.ts +16 -4
- package/src/operations/updateDatabaseConfiguration.ts +26 -6
- package/src/operations/updateGroupConfiguration.ts +10 -6
- package/src/operations/updateGroupDatabases.ts +7 -4
- package/src/operations/updateMemberRole.ts +14 -4
- package/src/operations/updateOrganization.ts +23 -4
- package/src/operations/validateAPIToken.ts +8 -4
|
@@ -2,7 +2,6 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { NotFound } from "../errors.js";
|
|
5
|
-
// Input Schema
|
|
6
5
|
export const UpdateGroupDatabasesInput =
|
|
7
6
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
7
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -11,7 +10,6 @@ export const UpdateGroupDatabasesInput =
|
|
|
11
10
|
method: "POST",
|
|
12
11
|
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/update",
|
|
13
12
|
}));
|
|
14
|
-
// Output Schema
|
|
15
13
|
export const UpdateGroupDatabasesOutput =
|
|
16
14
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
17
15
|
// The operation
|
|
@@ -1 +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,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
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,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOxC,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,CACmD,CAAC;AAI1D,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,IAA2D,CAAC;AAEjG,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;IACxC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CACH,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { BadRequest, Forbidden, NotFound } from "../errors.ts";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export
|
|
3
|
+
export interface UpdateMemberRoleInput {
|
|
4
|
+
organizationSlug: string;
|
|
5
|
+
username: string;
|
|
6
|
+
role: "admin" | "member" | "viewer";
|
|
7
|
+
}
|
|
8
|
+
export declare const UpdateMemberRoleInput: Schema.Codec<UpdateMemberRoleInput>;
|
|
9
|
+
export interface UpdateMemberRoleOutput {
|
|
10
|
+
member?: {
|
|
11
|
+
username?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
role?: "admin" | "member" | "viewer";
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const UpdateMemberRoleOutput: Schema.Codec<UpdateMemberRoleOutput>;
|
|
17
17
|
/**
|
|
18
18
|
* Update Member Role
|
|
19
19
|
*
|
|
@@ -22,15 +22,5 @@ export type UpdateMemberRoleOutput = typeof UpdateMemberRoleOutput.Type;
|
|
|
22
22
|
* @param organizationSlug - The slug of the organization or user account.
|
|
23
23
|
* @param username - The username of a Turso user or organization member.
|
|
24
24
|
*/
|
|
25
|
-
export declare const updateMemberRole: import("@distilled.cloud/core/client").OperationMethod<
|
|
26
|
-
readonly organizationSlug: string;
|
|
27
|
-
readonly username: string;
|
|
28
|
-
readonly role: "admin" | "member" | "viewer";
|
|
29
|
-
}, {
|
|
30
|
-
readonly member?: {
|
|
31
|
-
readonly username?: string | undefined;
|
|
32
|
-
readonly email?: string | undefined;
|
|
33
|
-
readonly role?: "admin" | "member" | "viewer" | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
}, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials, never>;
|
|
25
|
+
export declare const updateMemberRole: import("@distilled.cloud/core/client").OperationMethod<UpdateMemberRoleInput, UpdateMemberRoleOutput, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials, never>;
|
|
36
26
|
//# sourceMappingURL=updateMemberRole.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateMemberRole.d.ts","sourceRoot":"","sources":["../../src/operations/updateMemberRole.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAG/D,
|
|
1
|
+
{"version":3,"file":"updateMemberRole.d.ts","sourceRoot":"","sources":["../../src/operations/updateMemberRole.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAG/D,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;CACrC;AACD,eAAO,MAAM,qBAAqB,EASlB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAGpD,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;KACtC,CAAC;CACH;AACD,eAAO,MAAM,sBAAsB,EAUnB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAGrD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,0LAI1B,CAAC"}
|
|
@@ -2,7 +2,6 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { BadRequest, Forbidden, NotFound } from "../errors.js";
|
|
5
|
-
// Input Schema
|
|
6
5
|
export const UpdateMemberRoleInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
6
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
7
|
username: Schema.String.pipe(T.PathParam()),
|
|
@@ -11,7 +10,6 @@ export const UpdateMemberRoleInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
11
10
|
method: "PATCH",
|
|
12
11
|
path: "/v1/organizations/{organizationSlug}/members/{username}",
|
|
13
12
|
}));
|
|
14
|
-
// Output Schema
|
|
15
13
|
export const UpdateMemberRoleOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
14
|
member: Schema.optional(Schema.Struct({
|
|
17
15
|
username: Schema.optional(Schema.String),
|
|
@@ -1 +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,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
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,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAQ/D,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,CAC+C,CAAC;AAUpD,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,CACiD,CAAC;AAErD,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;IACpC,MAAM,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAU;CACnD,CAAC,CAAC,CAAC"}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
export interface UpdateOrganizationInput {
|
|
3
|
+
organizationSlug: string;
|
|
4
|
+
overages?: boolean;
|
|
5
|
+
require_mfa?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const UpdateOrganizationInput: Schema.Codec<UpdateOrganizationInput>;
|
|
8
|
+
export interface UpdateOrganizationOutput {
|
|
9
|
+
organization?: {
|
|
10
|
+
name?: string;
|
|
11
|
+
slug?: string;
|
|
12
|
+
type?: "personal" | "team";
|
|
13
|
+
overages?: boolean;
|
|
14
|
+
require_mfa?: boolean;
|
|
15
|
+
blocked_reads?: boolean;
|
|
16
|
+
blocked_writes?: boolean;
|
|
17
|
+
plan_id?: string;
|
|
18
|
+
plan_timeline?: string;
|
|
19
|
+
platform?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const UpdateOrganizationOutput: Schema.Codec<UpdateOrganizationOutput>;
|
|
21
23
|
/**
|
|
22
24
|
* Update Organization
|
|
23
25
|
*
|
|
@@ -25,20 +27,5 @@ export type UpdateOrganizationOutput = typeof UpdateOrganizationOutput.Type;
|
|
|
25
27
|
*
|
|
26
28
|
* @param organizationSlug - The slug of the organization or user account.
|
|
27
29
|
*/
|
|
28
|
-
export declare const updateOrganization: import("@distilled.cloud/core/client").OperationMethod<
|
|
29
|
-
readonly organizationSlug: string;
|
|
30
|
-
readonly overages?: boolean | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
readonly organization?: {
|
|
33
|
-
readonly name?: string | undefined;
|
|
34
|
-
readonly slug?: string | undefined;
|
|
35
|
-
readonly type?: "personal" | "team" | undefined;
|
|
36
|
-
readonly overages?: boolean | undefined;
|
|
37
|
-
readonly blocked_reads?: boolean | undefined;
|
|
38
|
-
readonly blocked_writes?: boolean | undefined;
|
|
39
|
-
readonly plan_id?: string | undefined;
|
|
40
|
-
readonly plan_timeline?: string | undefined;
|
|
41
|
-
readonly platform?: string | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
}, never, import("../credentials.ts").Credentials, never>;
|
|
30
|
+
export declare const updateOrganization: import("@distilled.cloud/core/client").OperationMethod<UpdateOrganizationInput, UpdateOrganizationOutput, never, import("../credentials.ts").Credentials, never>;
|
|
44
31
|
//# sourceMappingURL=updateOrganization.d.ts.map
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"updateOrganization.d.ts","sourceRoot":"","sources":["../../src/operations/updateOrganization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AACD,eAAO,MAAM,uBAAuB,EAOlB,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAGxD,MAAM,WAAW,wBAAwB;IACvC,YAAY,CAAC,EAAE;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;QAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AACD,eAAO,MAAM,wBAAwB,EAgBlB,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAG1D;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,kKAG5B,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
// Input Schema
|
|
5
4
|
export const UpdateOrganizationInput =
|
|
6
5
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
6
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
8
7
|
overages: Schema.optional(Schema.Boolean),
|
|
8
|
+
require_mfa: Schema.optional(Schema.Boolean),
|
|
9
9
|
}).pipe(T.Http({ method: "PATCH", path: "/v1/organizations/{organizationSlug}" }));
|
|
10
|
-
// Output Schema
|
|
11
10
|
export const UpdateOrganizationOutput =
|
|
12
11
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
12
|
organization: Schema.optional(Schema.Struct({
|
|
@@ -15,6 +14,7 @@ export const UpdateOrganizationOutput =
|
|
|
15
14
|
slug: Schema.optional(Schema.String),
|
|
16
15
|
type: Schema.optional(Schema.Literals(["personal", "team"])),
|
|
17
16
|
overages: Schema.optional(Schema.Boolean),
|
|
17
|
+
require_mfa: Schema.optional(Schema.Boolean),
|
|
18
18
|
blocked_reads: Schema.optional(Schema.Boolean),
|
|
19
19
|
blocked_writes: Schema.optional(Schema.Boolean),
|
|
20
20
|
plan_id: Schema.optional(Schema.String),
|
|
@@ -1 +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,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;
|
|
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,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAQlC,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;IACzC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,sCAAsC,EAAE,CAAC,CACtB,CAAC;AAiBxD,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,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC5C,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,CAAsD,CAAC;AAE1D,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"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
export interface ValidateAPITokenInput {
|
|
3
|
+
}
|
|
4
|
+
export declare const ValidateAPITokenInput: Schema.Codec<ValidateAPITokenInput>;
|
|
5
|
+
export interface ValidateAPITokenOutput {
|
|
6
|
+
exp?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const ValidateAPITokenOutput: Schema.Codec<ValidateAPITokenOutput>;
|
|
8
9
|
/**
|
|
9
10
|
* Validate API Token
|
|
10
11
|
*
|
|
11
12
|
* Validates an API token belonging to a user.
|
|
12
13
|
*/
|
|
13
|
-
export declare const validateAPIToken: import("@distilled.cloud/core/client").OperationMethod<
|
|
14
|
-
readonly exp?: number | undefined;
|
|
15
|
-
}, never, import("../credentials.ts").Credentials, never>;
|
|
14
|
+
export declare const validateAPIToken: import("@distilled.cloud/core/client").OperationMethod<ValidateAPITokenInput, ValidateAPITokenOutput, never, import("../credentials.ts").Credentials, never>;
|
|
16
15
|
//# sourceMappingURL=validateAPIToken.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"validateAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/validateAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,qBAAqB;CAAG;AACzC,eAAO,MAAM,qBAAqB,EAIlB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAGpD,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AACD,eAAO,MAAM,sBAAsB,EAInB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAGrD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,8JAG1B,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
// Input Schema
|
|
5
4
|
export const ValidateAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v1/auth/validate" }));
|
|
6
|
-
// Output Schema
|
|
7
5
|
export const ValidateAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
6
|
exp: Schema.optional(Schema.Number),
|
|
9
7
|
});
|
|
@@ -1 +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,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;
|
|
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,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAIlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC5E,EAAE,CACH,CAAC,IAAI,CACJ,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CACH,CAAC;AAMpD,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,CACiD,CAAC;AAErD,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.28.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"specs:update": "git -C specs/turso-docs fetch && git -C specs/turso-docs checkout main && git -C specs/turso-docs pull"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@distilled.cloud/core": "0.
|
|
78
|
+
"@distilled.cloud/core": "0.28.1"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@types/bun": "^1.3.0",
|
|
@@ -4,6 +4,11 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface AddLocationToGroupInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
groupName: string;
|
|
10
|
+
location: string;
|
|
11
|
+
}
|
|
7
12
|
export const AddLocationToGroupInput =
|
|
8
13
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
14
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -14,10 +19,19 @@ export const AddLocationToGroupInput =
|
|
|
14
19
|
method: "POST",
|
|
15
20
|
path: "/v1/organizations/{organizationSlug}/groups/{groupName}/locations/{location}",
|
|
16
21
|
}),
|
|
17
|
-
)
|
|
18
|
-
export type AddLocationToGroupInput = typeof AddLocationToGroupInput.Type;
|
|
22
|
+
) as unknown as Schema.Codec<AddLocationToGroupInput>;
|
|
19
23
|
|
|
20
24
|
// Output Schema
|
|
25
|
+
export interface AddLocationToGroupOutput {
|
|
26
|
+
group?: {
|
|
27
|
+
name?: string;
|
|
28
|
+
version?: string;
|
|
29
|
+
uuid?: string;
|
|
30
|
+
locations?: string[];
|
|
31
|
+
primary?: string;
|
|
32
|
+
delete_protection?: boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
21
35
|
export const AddLocationToGroupOutput =
|
|
22
36
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
37
|
group: Schema.optional(
|
|
@@ -30,8 +44,7 @@ export const AddLocationToGroupOutput =
|
|
|
30
44
|
delete_protection: Schema.optional(Schema.Boolean),
|
|
31
45
|
}),
|
|
32
46
|
),
|
|
33
|
-
})
|
|
34
|
-
export type AddLocationToGroupOutput = typeof AddLocationToGroupOutput.Type;
|
|
47
|
+
}) as unknown as Schema.Codec<AddLocationToGroupOutput>;
|
|
35
48
|
|
|
36
49
|
// The operation
|
|
37
50
|
/**
|
|
@@ -4,6 +4,11 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, NotFound, Conflict } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface AddOrganizationMemberInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
username?: string;
|
|
10
|
+
role?: "admin" | "member" | "viewer";
|
|
11
|
+
}
|
|
7
12
|
export const AddOrganizationMemberInput =
|
|
8
13
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
14
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -14,19 +19,20 @@ export const AddOrganizationMemberInput =
|
|
|
14
19
|
method: "POST",
|
|
15
20
|
path: "/v1/organizations/{organizationSlug}/members",
|
|
16
21
|
}),
|
|
17
|
-
)
|
|
18
|
-
export type AddOrganizationMemberInput = typeof AddOrganizationMemberInput.Type;
|
|
22
|
+
) as unknown as Schema.Codec<AddOrganizationMemberInput>;
|
|
19
23
|
|
|
20
24
|
// Output Schema
|
|
25
|
+
export interface AddOrganizationMemberOutput {
|
|
26
|
+
member?: string;
|
|
27
|
+
role?: "owner" | "admin" | "member" | "viewer";
|
|
28
|
+
}
|
|
21
29
|
export const AddOrganizationMemberOutput =
|
|
22
30
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
31
|
member: Schema.optional(Schema.String),
|
|
24
32
|
role: Schema.optional(
|
|
25
33
|
Schema.Literals(["owner", "admin", "member", "viewer"]),
|
|
26
34
|
),
|
|
27
|
-
})
|
|
28
|
-
export type AddOrganizationMemberOutput =
|
|
29
|
-
typeof AddOrganizationMemberOutput.Type;
|
|
35
|
+
}) as unknown as Schema.Codec<AddOrganizationMemberOutput>;
|
|
30
36
|
|
|
31
37
|
// The operation
|
|
32
38
|
/**
|
|
@@ -3,25 +3,71 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface CreateAPITokenInput {
|
|
7
|
+
tokenName: string;
|
|
8
|
+
organization?: string;
|
|
9
|
+
group?: string;
|
|
10
|
+
scopes?: (
|
|
11
|
+
| "read"
|
|
12
|
+
| "db:create"
|
|
13
|
+
| "db:delete"
|
|
14
|
+
| "db:configure"
|
|
15
|
+
| "db:mint-token"
|
|
16
|
+
| "db:rotate-creds"
|
|
17
|
+
| "group:configure"
|
|
18
|
+
| "group:mint-token"
|
|
19
|
+
| "group:rotate-creds"
|
|
20
|
+
| "read-only"
|
|
21
|
+
| "full-access"
|
|
22
|
+
)[];
|
|
23
|
+
}
|
|
6
24
|
export const CreateAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
25
|
tokenName: Schema.String.pipe(T.PathParam()),
|
|
8
26
|
organization: Schema.optional(Schema.String),
|
|
9
|
-
|
|
10
|
-
|
|
27
|
+
group: Schema.optional(Schema.String),
|
|
28
|
+
scopes: Schema.optional(
|
|
29
|
+
Schema.Array(
|
|
30
|
+
Schema.Literals([
|
|
31
|
+
"read",
|
|
32
|
+
"db:create",
|
|
33
|
+
"db:delete",
|
|
34
|
+
"db:configure",
|
|
35
|
+
"db:mint-token",
|
|
36
|
+
"db:rotate-creds",
|
|
37
|
+
"group:configure",
|
|
38
|
+
"group:mint-token",
|
|
39
|
+
"group:rotate-creds",
|
|
40
|
+
"read-only",
|
|
41
|
+
"full-access",
|
|
42
|
+
]),
|
|
43
|
+
),
|
|
44
|
+
),
|
|
45
|
+
}).pipe(
|
|
46
|
+
T.Http({ method: "POST", path: "/v1/auth/api-tokens/{tokenName}" }),
|
|
47
|
+
) as unknown as Schema.Codec<CreateAPITokenInput>;
|
|
11
48
|
|
|
12
49
|
// Output Schema
|
|
50
|
+
export interface CreateAPITokenOutput {
|
|
51
|
+
name?: string;
|
|
52
|
+
id?: string;
|
|
53
|
+
token?: string;
|
|
54
|
+
}
|
|
13
55
|
export const CreateAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
56
|
name: Schema.optional(Schema.String),
|
|
15
57
|
id: Schema.optional(Schema.String),
|
|
16
58
|
token: Schema.optional(Schema.String),
|
|
17
|
-
})
|
|
18
|
-
export type CreateAPITokenOutput = typeof CreateAPITokenOutput.Type;
|
|
59
|
+
}) as unknown as Schema.Codec<CreateAPITokenOutput>;
|
|
19
60
|
|
|
20
61
|
// The operation
|
|
21
62
|
/**
|
|
22
63
|
* Create API Token
|
|
23
64
|
*
|
|
24
|
-
* Returns a new API token belonging to a user.
|
|
65
|
+
* Returns a new API token belonging to a user.
|
|
66
|
+
* The token can be minted at three levels of restriction, in increasing order of narrowness:
|
|
67
|
+
* - **Organization-scoped** — pass `organization`. The token can only act on resources inside that organization.
|
|
68
|
+
* - **Group-scoped** — pass `organization`, `group`, and `scopes`. The token is pinned to a single group inside the organization and only the operations listed in `scopes` are allowed. The caller must be an admin or owner of the organization.
|
|
69
|
+
* - **Unrestricted** *(deprecated)* — no request body. The token can act on every organization the caller belongs to. **Unrestricted tokens are deprecated and will be removed in a future release.** Always pass `organization` for new tokens and rotate existing unrestricted tokens to scoped tokens.
|
|
70
|
+
* Group-scoped tokens are designed for automations that should be able to provision and manage databases inside a single group without being able to touch the rest of the organization.
|
|
25
71
|
*
|
|
26
72
|
* @param tokenName - The name of the api token.
|
|
27
73
|
*/
|
|
@@ -4,6 +4,30 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, Conflict } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface CreateDatabaseInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
name: string;
|
|
10
|
+
group: string;
|
|
11
|
+
seed?: {
|
|
12
|
+
type?: "database" | "database_upload";
|
|
13
|
+
name?: string;
|
|
14
|
+
timestamp?: string;
|
|
15
|
+
};
|
|
16
|
+
size_limit?: string;
|
|
17
|
+
remote_encryption?: {
|
|
18
|
+
encryption_key?: string;
|
|
19
|
+
encryption_cipher?:
|
|
20
|
+
| "aes256gcm"
|
|
21
|
+
| "aes128gcm"
|
|
22
|
+
| "chacha20poly1305"
|
|
23
|
+
| "aegis128l"
|
|
24
|
+
| "aegis128x2"
|
|
25
|
+
| "aegis128x4"
|
|
26
|
+
| "aegis256"
|
|
27
|
+
| "aegis256x2"
|
|
28
|
+
| "aegis256x4";
|
|
29
|
+
};
|
|
30
|
+
}
|
|
7
31
|
export const CreateDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
32
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
33
|
name: Schema.String,
|
|
@@ -39,10 +63,12 @@ export const CreateDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
39
63
|
method: "POST",
|
|
40
64
|
path: "/v1/organizations/{organizationSlug}/databases",
|
|
41
65
|
}),
|
|
42
|
-
)
|
|
43
|
-
export type CreateDatabaseInput = typeof CreateDatabaseInput.Type;
|
|
66
|
+
) as unknown as Schema.Codec<CreateDatabaseInput>;
|
|
44
67
|
|
|
45
68
|
// Output Schema
|
|
69
|
+
export interface CreateDatabaseOutput {
|
|
70
|
+
database?: { DbId?: string; Hostname?: string; Name?: string };
|
|
71
|
+
}
|
|
46
72
|
export const CreateDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
47
73
|
database: Schema.optional(
|
|
48
74
|
Schema.Struct({
|
|
@@ -51,8 +77,7 @@ export const CreateDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
51
77
|
Name: Schema.optional(Schema.String),
|
|
52
78
|
}),
|
|
53
79
|
),
|
|
54
|
-
})
|
|
55
|
-
export type CreateDatabaseOutput = typeof CreateDatabaseOutput.Type;
|
|
80
|
+
}) as unknown as Schema.Codec<CreateDatabaseOutput>;
|
|
56
81
|
|
|
57
82
|
// The operation
|
|
58
83
|
/**
|
|
@@ -4,6 +4,13 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface CreateDatabaseTokenInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
databaseName: string;
|
|
10
|
+
expiration?: string;
|
|
11
|
+
authorization?: "full-access" | "read-only";
|
|
12
|
+
permissions?: { read_attach?: { databases?: string[] } };
|
|
13
|
+
}
|
|
7
14
|
export const CreateDatabaseTokenInput =
|
|
8
15
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
16
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
@@ -26,15 +33,16 @@ export const CreateDatabaseTokenInput =
|
|
|
26
33
|
method: "POST",
|
|
27
34
|
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/auth/tokens",
|
|
28
35
|
}),
|
|
29
|
-
)
|
|
30
|
-
export type CreateDatabaseTokenInput = typeof CreateDatabaseTokenInput.Type;
|
|
36
|
+
) as unknown as Schema.Codec<CreateDatabaseTokenInput>;
|
|
31
37
|
|
|
32
38
|
// Output Schema
|
|
39
|
+
export interface CreateDatabaseTokenOutput {
|
|
40
|
+
jwt?: string;
|
|
41
|
+
}
|
|
33
42
|
export const CreateDatabaseTokenOutput =
|
|
34
43
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
35
44
|
jwt: Schema.optional(Schema.String),
|
|
36
|
-
})
|
|
37
|
-
export type CreateDatabaseTokenOutput = typeof CreateDatabaseTokenOutput.Type;
|
|
45
|
+
}) as unknown as Schema.Codec<CreateDatabaseTokenOutput>;
|
|
38
46
|
|
|
39
47
|
// The operation
|
|
40
48
|
/**
|
|
@@ -4,20 +4,66 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, Conflict } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface CreateGroupInput {
|
|
8
|
+
organizationSlug: string;
|
|
9
|
+
name: string;
|
|
10
|
+
location: string;
|
|
11
|
+
extensions?:
|
|
12
|
+
| "all"
|
|
13
|
+
| (
|
|
14
|
+
| "vector"
|
|
15
|
+
| "crypto"
|
|
16
|
+
| "fuzzy"
|
|
17
|
+
| "math"
|
|
18
|
+
| "stats"
|
|
19
|
+
| "text"
|
|
20
|
+
| "unicode"
|
|
21
|
+
| "uuid"
|
|
22
|
+
| "regexp"
|
|
23
|
+
| "vec"
|
|
24
|
+
)[];
|
|
25
|
+
}
|
|
7
26
|
export const CreateGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
27
|
organizationSlug: Schema.String.pipe(T.PathParam()),
|
|
9
28
|
name: Schema.String,
|
|
10
29
|
location: Schema.String,
|
|
11
|
-
extensions: Schema.optional(
|
|
30
|
+
extensions: Schema.optional(
|
|
31
|
+
Schema.Union([
|
|
32
|
+
Schema.Literals(["all"]),
|
|
33
|
+
Schema.Array(
|
|
34
|
+
Schema.Literals([
|
|
35
|
+
"vector",
|
|
36
|
+
"crypto",
|
|
37
|
+
"fuzzy",
|
|
38
|
+
"math",
|
|
39
|
+
"stats",
|
|
40
|
+
"text",
|
|
41
|
+
"unicode",
|
|
42
|
+
"uuid",
|
|
43
|
+
"regexp",
|
|
44
|
+
"vec",
|
|
45
|
+
]),
|
|
46
|
+
),
|
|
47
|
+
]),
|
|
48
|
+
),
|
|
12
49
|
}).pipe(
|
|
13
50
|
T.Http({
|
|
14
51
|
method: "POST",
|
|
15
52
|
path: "/v1/organizations/{organizationSlug}/groups",
|
|
16
53
|
}),
|
|
17
|
-
)
|
|
18
|
-
export type CreateGroupInput = typeof CreateGroupInput.Type;
|
|
54
|
+
) as unknown as Schema.Codec<CreateGroupInput>;
|
|
19
55
|
|
|
20
56
|
// Output Schema
|
|
57
|
+
export interface CreateGroupOutput {
|
|
58
|
+
group?: {
|
|
59
|
+
name?: string;
|
|
60
|
+
version?: string;
|
|
61
|
+
uuid?: string;
|
|
62
|
+
locations?: string[];
|
|
63
|
+
primary?: string;
|
|
64
|
+
delete_protection?: boolean;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
21
67
|
export const CreateGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
68
|
group: Schema.optional(
|
|
23
69
|
Schema.Struct({
|
|
@@ -29,8 +75,7 @@ export const CreateGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
29
75
|
delete_protection: Schema.optional(Schema.Boolean),
|
|
30
76
|
}),
|
|
31
77
|
),
|
|
32
|
-
})
|
|
33
|
-
export type CreateGroupOutput = typeof CreateGroupOutput.Type;
|
|
78
|
+
}) as unknown as Schema.Codec<CreateGroupOutput>;
|
|
34
79
|
|
|
35
80
|
// The operation
|
|
36
81
|
/**
|