@leaflow/sdk 0.197.0 → 0.198.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iam/v1/generated/functions.d.ts +46 -103
- package/dist/iam/v1/generated/functions.js +29 -114
- package/dist/iam/v1/generated/models.d.ts +53 -118
- package/dist/iam/v1/generated/models.js +2 -6
- package/dist/iam/v1/generated/schemas.zod.d.ts +31 -62
- package/dist/iam/v1/generated/schemas.zod.js +35 -53
- package/dist/iam/v1/generated/validators/{updatePolicyRequestBody.zod.d.ts → createMemberPermissionRequestBody.zod.d.ts} +9 -11
- package/dist/iam/v1/generated/validators/createMemberPermissionRequestBody.zod.js +36 -0
- package/dist/iam/v1/generated/validators/grantResource.zod.js +1 -1
- package/dist/iam/v1/generated/validators/lengthAwarePageMemberResource.zod.d.ts +12 -0
- package/dist/iam/v1/generated/validators/{listProjectInvitationsParams.zod.d.ts → listInvitationsParams.zod.d.ts} +8 -8
- package/dist/iam/v1/generated/validators/{listProjectInvitationsParams.zod.js → listInvitationsParams.zod.js} +11 -11
- package/dist/iam/v1/generated/validators/{policyListResponseBody.zod.d.ts → memberPermissionListResponseBody.zod.d.ts} +8 -14
- package/dist/iam/v1/generated/validators/{catalogListResponseBody.zod.js → memberPermissionListResponseBody.zod.js} +3 -3
- package/dist/iam/v1/generated/validators/{policyResource.zod.d.ts → memberPermissionResource.zod.d.ts} +11 -14
- package/dist/iam/v1/generated/validators/memberPermissionResource.zod.js +38 -0
- package/dist/iam/v1/generated/validators/memberResource.zod.d.ts +12 -0
- package/dist/iam/v1/generated/validators/memberResource.zod.js +5 -0
- package/dist/iam/v1/generated/validators/ownershipTransferResponseBody.zod.d.ts +24 -0
- package/dist/iam/v1/generated/validators/{catalogResource.zod.d.ts → permissionListResponseBody.zod.d.ts} +4 -8
- package/dist/iam/v1/generated/validators/{policyListResponseBody.zod.js → permissionListResponseBody.zod.js} +3 -3
- package/dist/routes.d.ts +7 -31
- package/dist/routes.js +7 -34
- package/package.json +1 -1
- package/dist/iam/v1/generated/validators/attachPolicyRequestBody.zod.d.ts +0 -33
- package/dist/iam/v1/generated/validators/attachPolicyRequestBody.zod.js +0 -43
- package/dist/iam/v1/generated/validators/catalogListResponseBody.zod.d.ts +0 -30
- package/dist/iam/v1/generated/validators/catalogResource.zod.js +0 -25
- package/dist/iam/v1/generated/validators/listPoliciesParams.zod.d.ts +0 -21
- package/dist/iam/v1/generated/validators/listPoliciesParams.zod.js +0 -23
- package/dist/iam/v1/generated/validators/policyResource.zod.js +0 -33
- package/dist/iam/v1/generated/validators/resourceTypeResource.zod.d.ts +0 -20
- package/dist/iam/v1/generated/validators/resourceTypeResource.zod.js +0 -20
- package/dist/iam/v1/generated/validators/setMemberPermissionsRequestBody.zod.d.ts +0 -20
- package/dist/iam/v1/generated/validators/setMemberPermissionsRequestBody.zod.js +0 -21
- package/dist/iam/v1/generated/validators/updatePolicyRequestBody.zod.js +0 -39
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export declare const ResourceTypeResource: zod.ZodObject<{
|
|
17
|
-
name: zod.ZodString;
|
|
18
|
-
}, zod.z.core.$strict>;
|
|
19
|
-
export type ResourceTypeResource = zod.input<typeof ResourceTypeResource>;
|
|
20
|
-
export type ResourceTypeResourceOutput = zod.output<typeof ResourceTypeResource>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export const ResourceTypeResource = zod.strictObject({
|
|
17
|
-
name: zod
|
|
18
|
-
.string()
|
|
19
|
-
.describe("The code of the resource type, such as dns:zone. There is no display name here either; what it reads as is decided by the layer rendering it"),
|
|
20
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export declare const SetMemberPermissionsRequestBody: zod.ZodObject<{
|
|
17
|
-
permissions: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
18
|
-
}, zod.z.core.$strict>;
|
|
19
|
-
export type SetMemberPermissionsRequestBody = zod.input<typeof SetMemberPermissionsRequestBody>;
|
|
20
|
-
export type SetMemberPermissionsRequestBodyOutput = zod.output<typeof SetMemberPermissionsRequestBody>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
export const SetMemberPermissionsRequestBody = zod.strictObject({
|
|
17
|
-
permissions: zod
|
|
18
|
-
.array(zod.string())
|
|
19
|
-
.nullable()
|
|
20
|
-
.describe("**Every** permission name to be attached directly to this person, replaced in full. The permissions a role grants are neither listed here nor touched by this write"),
|
|
21
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow IAM API
|
|
5
|
-
* What happens inside a project: members, roles, invitations and the SSH keys the project shares.
|
|
6
|
-
*
|
|
7
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
-
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
-
* account API.
|
|
10
|
-
*
|
|
11
|
-
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
-
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
-
* OpenAPI spec version: 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
import * as zod from "zod";
|
|
16
|
-
import { ResourceRefResource } from "./resourceRefResource.zod.js";
|
|
17
|
-
export const updatePolicyRequestBodyDescriptionMax = 255;
|
|
18
|
-
export const UpdatePolicyRequestBody = zod.strictObject({
|
|
19
|
-
description: zod
|
|
20
|
-
.string()
|
|
21
|
-
.max(updatePolicyRequestBodyDescriptionMax)
|
|
22
|
-
.optional()
|
|
23
|
-
.describe("Why it was granted, written for a reader. It is replaced together with the change, so that what remains does not explain an earlier version"),
|
|
24
|
-
effect: zod
|
|
25
|
-
.enum(["allow", "deny"])
|
|
26
|
-
.describe("Must match the current effect of the policy. The effect itself cannot be changed; delete the policy and create another instead. It is still required in the request because the write replaces the policy in full, and omitting it would let a caller believe an effect had been changed while the field was ignored. A mismatch answers PROJECT_POLICY_EFFECT_IMMUTABLE"),
|
|
27
|
-
permissions: zod
|
|
28
|
-
.array(zod.string())
|
|
29
|
-
.nullish()
|
|
30
|
-
.describe("Permission names attached directly, replaced in full. Anything not listed is withdrawn rather than kept"),
|
|
31
|
-
resources: zod
|
|
32
|
-
.array(ResourceRefResource)
|
|
33
|
-
.nullish()
|
|
34
|
-
.describe("The resource scope of this policy, replaced in full. What the scope contains can change; whether the policy has one cannot. A base policy cannot take a scope, and a scoped policy cannot have its scope cleared"),
|
|
35
|
-
roles: zod
|
|
36
|
-
.array(zod.string())
|
|
37
|
-
.nullish()
|
|
38
|
-
.describe("Each must be a role already defined in this project, replaced in full. As when attaching, `OWNER` and `ADMIN` are not accepted"),
|
|
39
|
-
});
|