@sylphx/contract 0.2.0 → 0.3.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/CHANGELOG.md +6 -0
- package/dist/endpoint.d.ts +13 -1
- package/dist/endpoint.d.ts.map +1 -1
- package/dist/endpoints/admin-ai-playground.d.ts +3 -3
- package/dist/endpoints/admin-ai-playground.js +6 -6
- package/dist/endpoints/admin-anomalies.d.ts +7 -7
- package/dist/endpoints/admin-anomalies.js +14 -14
- package/dist/endpoints/admin-apm.d.ts +6 -6
- package/dist/endpoints/admin-apm.js +12 -12
- package/dist/endpoints/admin-audit.d.ts +185 -52
- package/dist/endpoints/admin-audit.d.ts.map +1 -1
- package/dist/endpoints/admin-audit.js +113 -113
- package/dist/endpoints/admin-billing.d.ts +19 -19
- package/dist/endpoints/admin-billing.js +38 -38
- package/dist/endpoints/admin-bootstrap.d.ts +1 -1
- package/dist/endpoints/admin-bootstrap.js +2 -2
- package/dist/endpoints/admin-broadcasts.d.ts +5 -5
- package/dist/endpoints/admin-broadcasts.js +10 -10
- package/dist/endpoints/admin-builds.d.ts +1 -1
- package/dist/endpoints/admin-builds.js +2 -2
- package/dist/endpoints/admin-config.d.ts +11 -11
- package/dist/endpoints/admin-config.js +22 -22
- package/dist/endpoints/admin-consent.d.ts +38 -14
- package/dist/endpoints/admin-consent.d.ts.map +1 -1
- package/dist/endpoints/admin-consent.js +27 -27
- package/dist/endpoints/admin-env-services.d.ts +1 -1
- package/dist/endpoints/admin-env-services.js +2 -2
- package/dist/endpoints/admin-impersonation.d.ts +9 -9
- package/dist/endpoints/admin-impersonation.js +18 -18
- package/dist/endpoints/admin-invitations.d.ts +5 -5
- package/dist/endpoints/admin-invitations.js +10 -10
- package/dist/endpoints/admin-jwt-keys.d.ts +6 -6
- package/dist/endpoints/admin-jwt-keys.js +12 -12
- package/dist/endpoints/admin-logs.d.ts +7 -7
- package/dist/endpoints/admin-logs.js +14 -14
- package/dist/endpoints/admin-plans.d.ts +4 -4
- package/dist/endpoints/admin-plans.js +8 -8
- package/dist/endpoints/admin-project-users.d.ts +8 -8
- package/dist/endpoints/admin-project-users.js +16 -16
- package/dist/endpoints/admin-projects.d.ts +36 -7
- package/dist/endpoints/admin-projects.d.ts.map +1 -1
- package/dist/endpoints/admin-projects.js +44 -15
- package/dist/endpoints/admin-quotas.d.ts +6 -6
- package/dist/endpoints/admin-quotas.js +12 -12
- package/dist/endpoints/admin-rate-limits.d.ts +2 -2
- package/dist/endpoints/admin-rate-limits.js +4 -4
- package/dist/endpoints/admin-reconcile.d.ts +1 -1
- package/dist/endpoints/admin-reconcile.js +2 -2
- package/dist/endpoints/admin-resources.d.ts +2 -2
- package/dist/endpoints/admin-resources.js +4 -4
- package/dist/endpoints/admin-secrets.d.ts +2 -2
- package/dist/endpoints/admin-secrets.js +4 -4
- package/dist/endpoints/admin-services.d.ts +1 -1
- package/dist/endpoints/admin-services.js +2 -2
- package/dist/endpoints/admin-tasks.d.ts +6 -6
- package/dist/endpoints/admin-tasks.js +12 -12
- package/dist/endpoints/admin-tenants.d.ts +1 -1
- package/dist/endpoints/admin-tenants.js +2 -2
- package/dist/endpoints/admin-traces.d.ts +5 -5
- package/dist/endpoints/admin-traces.js +10 -10
- package/dist/endpoints/admin-users.d.ts +8 -8
- package/dist/endpoints/admin-users.js +16 -16
- package/dist/endpoints/admin-webhook-signature-versions.d.ts +3 -3
- package/dist/endpoints/admin-webhook-signature-versions.js +6 -6
- package/dist/endpoints/auth.d.ts +6 -0
- package/dist/endpoints/auth.d.ts.map +1 -1
- package/dist/endpoints/auth.js +12 -1
- package/dist/endpoints/branch-databases.d.ts +27 -28
- package/dist/endpoints/branch-databases.d.ts.map +1 -1
- package/dist/endpoints/branch-databases.js +7 -7
- package/dist/endpoints/databases.d.ts +253 -3
- package/dist/endpoints/databases.d.ts.map +1 -1
- package/dist/endpoints/databases.js +19 -12
- package/dist/endpoints/environments.d.ts +9 -0
- package/dist/endpoints/environments.d.ts.map +1 -1
- package/dist/endpoints/organizations.d.ts +11 -0
- package/dist/endpoints/organizations.d.ts.map +1 -1
- package/dist/endpoints/organizations.js +8 -1
- package/dist/endpoints/project-manifest.d.ts +42 -34
- package/dist/endpoints/project-manifest.d.ts.map +1 -1
- package/dist/endpoints/secrets.d.ts +6 -6
- package/dist/endpoints/secrets.d.ts.map +1 -1
- package/dist/endpoints/secrets.js +6 -5
- package/dist/endpoints/storage.d.ts +4 -6
- package/dist/endpoints/storage.d.ts.map +1 -1
- package/dist/endpoints/storage.js +1 -12
- package/dist/hono-app.d.ts +206 -0
- package/dist/hono-app.d.ts.map +1 -0
- package/dist/hono-app.js +62 -0
- package/dist/index.d.ts +503 -278
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/schemas/admin-audit.d.ts +183 -0
- package/dist/schemas/admin-audit.d.ts.map +1 -1
- package/dist/schemas/admin-audit.js +144 -0
- package/dist/schemas/admin-consent.d.ts +32 -3
- package/dist/schemas/admin-consent.d.ts.map +1 -1
- package/dist/schemas/admin-consent.js +28 -1
- package/dist/schemas/admin-projects.d.ts +20 -0
- package/dist/schemas/admin-projects.d.ts.map +1 -1
- package/dist/schemas/admin-projects.js +17 -0
- package/dist/schemas/auth.d.ts +11 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +10 -0
- package/dist/schemas/branch-database.d.ts +20 -19
- package/dist/schemas/branch-database.d.ts.map +1 -1
- package/dist/schemas/branch-database.js +9 -7
- package/dist/schemas/environment.d.ts +6 -0
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js +2 -0
- package/dist/schemas/ids.d.ts +2 -0
- package/dist/schemas/ids.d.ts.map +1 -1
- package/dist/schemas/ids.js +1 -0
- package/dist/schemas/organization.d.ts +24 -2
- package/dist/schemas/organization.d.ts.map +1 -1
- package/dist/schemas/organization.js +13 -1
- package/dist/schemas/project-manifest.d.ts +59 -37
- package/dist/schemas/project-manifest.d.ts.map +1 -1
- package/dist/schemas/project-manifest.js +11 -3
- package/dist/schemas/secret.d.ts +1 -1
- package/dist/schemas/secret.js +2 -2
- package/dist/schemas/storage.d.ts +4 -5
- package/dist/schemas/storage.d.ts.map +1 -1
- package/dist/schemas/storage.js +5 -4
- package/package.json +16 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Production mount: `/admin/invitations/*`. `/accept` is public (no auth).
|
|
6
6
|
*/
|
|
7
7
|
export declare const adminInvitationsEndpoints: {
|
|
8
|
-
readonly create: import("../endpoint.js").Endpoint<"POST", "/
|
|
8
|
+
readonly create: import("../endpoint.js").Endpoint<"POST", "/operator/invitations/", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
9
9
|
email: typeof import("effect/Schema").String;
|
|
10
10
|
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "admin", "super_admin"]>>;
|
|
11
11
|
note: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -16,7 +16,7 @@ export declare const adminInvitationsEndpoints: {
|
|
|
16
16
|
inviteUrl: typeof import("effect/Schema").String;
|
|
17
17
|
expiresAt: typeof import("effect/Schema").String;
|
|
18
18
|
}>>;
|
|
19
|
-
readonly list: import("../endpoint.js").Endpoint<"GET", "/
|
|
19
|
+
readonly list: import("../endpoint.js").Endpoint<"GET", "/operator/invitations/", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
20
20
|
limit: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
21
21
|
offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
22
22
|
statsOnly: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -43,19 +43,19 @@ export declare const adminInvitationsEndpoints: {
|
|
|
43
43
|
pendingInvites: typeof import("effect/Schema").Number;
|
|
44
44
|
acceptedInvites: typeof import("effect/Schema").Number;
|
|
45
45
|
}>]>>;
|
|
46
|
-
readonly revoke: import("../endpoint.js").Endpoint<"DELETE", "/
|
|
46
|
+
readonly revoke: import("../endpoint.js").Endpoint<"DELETE", "/operator/invitations/:id", import("effect/Schema").Struct<{
|
|
47
47
|
id: typeof import("effect/Schema").String;
|
|
48
48
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
49
49
|
success: typeof import("effect/Schema").Boolean;
|
|
50
50
|
}>>;
|
|
51
|
-
readonly resend: import("../endpoint.js").Endpoint<"POST", "/
|
|
51
|
+
readonly resend: import("../endpoint.js").Endpoint<"POST", "/operator/invitations/:id/resend", import("effect/Schema").Struct<{
|
|
52
52
|
id: typeof import("effect/Schema").String;
|
|
53
53
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
54
54
|
success: typeof import("effect/Schema").Boolean;
|
|
55
55
|
inviteUrl: typeof import("effect/Schema").String;
|
|
56
56
|
expiresAt: typeof import("effect/Schema").String;
|
|
57
57
|
}>>;
|
|
58
|
-
readonly accept: import("../endpoint.js").Endpoint<"POST", "/
|
|
58
|
+
readonly accept: import("../endpoint.js").Endpoint<"POST", "/operator/invitations/accept", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
59
59
|
code: typeof import("effect/Schema").String;
|
|
60
60
|
name: typeof import("effect/Schema").String;
|
|
61
61
|
password: typeof import("effect/Schema").String;
|
|
@@ -9,46 +9,46 @@ import { AdminAcceptInvitationInput, AdminAcceptInvitationResult, AdminCreateInv
|
|
|
9
9
|
export const adminInvitationsEndpoints = {
|
|
10
10
|
create: defineEndpoint({
|
|
11
11
|
method: 'POST',
|
|
12
|
-
path: '/
|
|
12
|
+
path: '/operator/invitations/',
|
|
13
13
|
body: AdminCreateInvitationInput,
|
|
14
14
|
response: AdminCreateInvitationResult,
|
|
15
|
-
plane: '
|
|
15
|
+
plane: 'management',
|
|
16
16
|
summary: 'Create a team invitation and send email',
|
|
17
17
|
tags: ['admin-invitations'],
|
|
18
18
|
}),
|
|
19
19
|
list: defineEndpoint({
|
|
20
20
|
method: 'GET',
|
|
21
|
-
path: '/
|
|
21
|
+
path: '/operator/invitations/',
|
|
22
22
|
query: AdminListInvitationsQuery,
|
|
23
23
|
response: AdminListInvitationsResult,
|
|
24
|
-
plane: '
|
|
24
|
+
plane: 'management',
|
|
25
25
|
summary: 'List team invitations (or stats-only mode)',
|
|
26
26
|
tags: ['admin-invitations'],
|
|
27
27
|
}),
|
|
28
28
|
revoke: defineEndpoint({
|
|
29
29
|
method: 'DELETE',
|
|
30
|
-
path: '/
|
|
30
|
+
path: '/operator/invitations/:id',
|
|
31
31
|
params: AdminInvitationIdParams,
|
|
32
32
|
response: AdminRevokeInvitationResult,
|
|
33
|
-
plane: '
|
|
33
|
+
plane: 'management',
|
|
34
34
|
summary: 'Revoke a pending invitation',
|
|
35
35
|
tags: ['admin-invitations'],
|
|
36
36
|
}),
|
|
37
37
|
resend: defineEndpoint({
|
|
38
38
|
method: 'POST',
|
|
39
|
-
path: '/
|
|
39
|
+
path: '/operator/invitations/:id/resend',
|
|
40
40
|
params: AdminInvitationIdParams,
|
|
41
41
|
response: AdminResendInvitationResult,
|
|
42
|
-
plane: '
|
|
42
|
+
plane: 'management',
|
|
43
43
|
summary: 'Resend an invitation with a fresh code + extended expiry',
|
|
44
44
|
tags: ['admin-invitations'],
|
|
45
45
|
}),
|
|
46
46
|
accept: defineEndpoint({
|
|
47
47
|
method: 'POST',
|
|
48
|
-
path: '/
|
|
48
|
+
path: '/operator/invitations/accept',
|
|
49
49
|
body: AdminAcceptInvitationInput,
|
|
50
50
|
response: AdminAcceptInvitationResult,
|
|
51
|
-
plane: '
|
|
51
|
+
plane: 'management',
|
|
52
52
|
summary: 'Public invite acceptance endpoint — creates the user account',
|
|
53
53
|
tags: ['admin-invitations'],
|
|
54
54
|
}),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Production mount: `/admin/jwt-keys/*`.
|
|
6
6
|
*/
|
|
7
7
|
export declare const adminJwtKeysEndpoints: {
|
|
8
|
-
readonly list: import("../endpoint.js").Endpoint<"GET", "/
|
|
8
|
+
readonly list: import("../endpoint.js").Endpoint<"GET", "/operator/jwt-keys/keys", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
9
9
|
keys: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
10
10
|
id: typeof import("effect/Schema").String;
|
|
11
11
|
keyId: typeof import("effect/Schema").String;
|
|
@@ -18,7 +18,7 @@ export declare const adminJwtKeysEndpoints: {
|
|
|
18
18
|
retiredAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
19
19
|
}>>;
|
|
20
20
|
}>>;
|
|
21
|
-
readonly get: import("../endpoint.js").Endpoint<"GET", "/
|
|
21
|
+
readonly get: import("../endpoint.js").Endpoint<"GET", "/operator/jwt-keys/keys/:keyId", import("effect/Schema").Struct<{
|
|
22
22
|
keyId: typeof import("effect/Schema").String;
|
|
23
23
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
24
24
|
id: typeof import("effect/Schema").String;
|
|
@@ -37,14 +37,14 @@ export declare const adminJwtKeysEndpoints: {
|
|
|
37
37
|
name: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
38
38
|
}>>;
|
|
39
39
|
}>>;
|
|
40
|
-
readonly rotate: import("../endpoint.js").Endpoint<"POST", "/
|
|
40
|
+
readonly rotate: import("../endpoint.js").Endpoint<"POST", "/operator/jwt-keys/rotate", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
41
41
|
reason: import("effect/Schema").Literal<["scheduled", "manual", "compromise"]>;
|
|
42
42
|
notes: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
43
43
|
}>, import("effect/Schema").Struct<{
|
|
44
44
|
success: typeof import("effect/Schema").Boolean;
|
|
45
45
|
newKeyId: typeof import("effect/Schema").String;
|
|
46
46
|
}>>;
|
|
47
|
-
readonly forceRetire: import("../endpoint.js").Endpoint<"POST", "/
|
|
47
|
+
readonly forceRetire: import("../endpoint.js").Endpoint<"POST", "/operator/jwt-keys/keys/:keyId/retire", import("effect/Schema").Struct<{
|
|
48
48
|
keyId: typeof import("effect/Schema").String;
|
|
49
49
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
50
50
|
notes: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -53,7 +53,7 @@ export declare const adminJwtKeysEndpoints: {
|
|
|
53
53
|
keyId: typeof import("effect/Schema").String;
|
|
54
54
|
wasActive: typeof import("effect/Schema").Boolean;
|
|
55
55
|
}>>;
|
|
56
|
-
readonly rotations: import("../endpoint.js").Endpoint<"GET", "/
|
|
56
|
+
readonly rotations: import("../endpoint.js").Endpoint<"GET", "/operator/jwt-keys/rotations", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
57
57
|
limit: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
58
58
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
59
59
|
rotations: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
@@ -65,7 +65,7 @@ export declare const adminJwtKeysEndpoints: {
|
|
|
65
65
|
createdAt: typeof import("effect/Schema").String;
|
|
66
66
|
}>>;
|
|
67
67
|
}>>;
|
|
68
|
-
readonly status: import("../endpoint.js").Endpoint<"GET", "/
|
|
68
|
+
readonly status: import("../endpoint.js").Endpoint<"GET", "/operator/jwt-keys/status", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
69
69
|
rotationNeeded: typeof import("effect/Schema").Boolean;
|
|
70
70
|
activeKeyId: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
71
71
|
activeKeySince: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
@@ -9,54 +9,54 @@ import { AdminForceRetireJwtKeyInput, AdminForceRetireJwtKeyResult, AdminGetJwtK
|
|
|
9
9
|
export const adminJwtKeysEndpoints = {
|
|
10
10
|
list: defineEndpoint({
|
|
11
11
|
method: 'GET',
|
|
12
|
-
path: '/
|
|
12
|
+
path: '/operator/jwt-keys/keys',
|
|
13
13
|
response: AdminListJwtKeysResult,
|
|
14
|
-
plane: '
|
|
14
|
+
plane: 'management',
|
|
15
15
|
summary: 'List all JWT keys with lifecycle status',
|
|
16
16
|
tags: ['admin-jwt-keys'],
|
|
17
17
|
}),
|
|
18
18
|
get: defineEndpoint({
|
|
19
19
|
method: 'GET',
|
|
20
|
-
path: '/
|
|
20
|
+
path: '/operator/jwt-keys/keys/:keyId',
|
|
21
21
|
params: AdminKeyIdParams,
|
|
22
22
|
response: AdminGetJwtKeyResult,
|
|
23
|
-
plane: '
|
|
23
|
+
plane: 'management',
|
|
24
24
|
summary: 'Get a JWT key by its database ID (public key only)',
|
|
25
25
|
tags: ['admin-jwt-keys'],
|
|
26
26
|
}),
|
|
27
27
|
rotate: defineEndpoint({
|
|
28
28
|
method: 'POST',
|
|
29
|
-
path: '/
|
|
29
|
+
path: '/operator/jwt-keys/rotate',
|
|
30
30
|
body: AdminRotateJwtKeysInput,
|
|
31
31
|
response: AdminRotateJwtKeysResult,
|
|
32
|
-
plane: '
|
|
32
|
+
plane: 'management',
|
|
33
33
|
summary: 'Rotate JWT keys (super_admin only)',
|
|
34
34
|
tags: ['admin-jwt-keys'],
|
|
35
35
|
}),
|
|
36
36
|
forceRetire: defineEndpoint({
|
|
37
37
|
method: 'POST',
|
|
38
|
-
path: '/
|
|
38
|
+
path: '/operator/jwt-keys/keys/:keyId/retire',
|
|
39
39
|
params: AdminKeyIdParams,
|
|
40
40
|
body: AdminForceRetireJwtKeyInput,
|
|
41
41
|
response: AdminForceRetireJwtKeyResult,
|
|
42
|
-
plane: '
|
|
42
|
+
plane: 'management',
|
|
43
43
|
summary: 'Emergency JWT key retirement (super_admin only)',
|
|
44
44
|
tags: ['admin-jwt-keys'],
|
|
45
45
|
}),
|
|
46
46
|
rotations: defineEndpoint({
|
|
47
47
|
method: 'GET',
|
|
48
|
-
path: '/
|
|
48
|
+
path: '/operator/jwt-keys/rotations',
|
|
49
49
|
query: AdminRotationHistoryQuery,
|
|
50
50
|
response: AdminRotationHistoryResult,
|
|
51
|
-
plane: '
|
|
51
|
+
plane: 'management',
|
|
52
52
|
summary: 'Get JWT rotation audit trail',
|
|
53
53
|
tags: ['admin-jwt-keys'],
|
|
54
54
|
}),
|
|
55
55
|
status: defineEndpoint({
|
|
56
56
|
method: 'GET',
|
|
57
|
-
path: '/
|
|
57
|
+
path: '/operator/jwt-keys/status',
|
|
58
58
|
response: AdminRotationStatusResult,
|
|
59
|
-
plane: '
|
|
59
|
+
plane: 'management',
|
|
60
60
|
summary: 'Check whether JWT rotation is needed',
|
|
61
61
|
tags: ['admin-jwt-keys'],
|
|
62
62
|
}),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Production mount: `/admin/logs/*`.
|
|
6
6
|
*/
|
|
7
7
|
export declare const adminLogsEndpoints: {
|
|
8
|
-
readonly stats: import("../endpoint.js").Endpoint<"GET", "/
|
|
8
|
+
readonly stats: import("../endpoint.js").Endpoint<"GET", "/operator/logs/projects/:projectId/stats", import("effect/Schema").Struct<{
|
|
9
9
|
projectId: typeof import("effect/Schema").String;
|
|
10
10
|
}>, import("effect/Schema").Struct<{
|
|
11
11
|
startDate: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -22,7 +22,7 @@ export declare const adminLogsEndpoints: {
|
|
|
22
22
|
end: typeof import("effect/Schema").String;
|
|
23
23
|
}>;
|
|
24
24
|
}>>;
|
|
25
|
-
readonly list: import("../endpoint.js").Endpoint<"GET", "/
|
|
25
|
+
readonly list: import("../endpoint.js").Endpoint<"GET", "/operator/logs/projects/:projectId/logs", import("effect/Schema").Struct<{
|
|
26
26
|
projectId: typeof import("effect/Schema").String;
|
|
27
27
|
}>, import("effect/Schema").Struct<{
|
|
28
28
|
levels: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -48,7 +48,7 @@ export declare const adminLogsEndpoints: {
|
|
|
48
48
|
total: typeof import("effect/Schema").Number;
|
|
49
49
|
hasMore: typeof import("effect/Schema").Boolean;
|
|
50
50
|
}>>;
|
|
51
|
-
readonly get: import("../endpoint.js").Endpoint<"GET", "/
|
|
51
|
+
readonly get: import("../endpoint.js").Endpoint<"GET", "/operator/logs/projects/:projectId/logs/:logId", import("effect/Schema").Struct<{
|
|
52
52
|
projectId: typeof import("effect/Schema").String;
|
|
53
53
|
logId: typeof import("effect/Schema").String;
|
|
54
54
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -62,7 +62,7 @@ export declare const adminLogsEndpoints: {
|
|
|
62
62
|
context: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
63
63
|
createdAt: typeof import("effect/Schema").String;
|
|
64
64
|
}>>;
|
|
65
|
-
readonly forTrace: import("../endpoint.js").Endpoint<"GET", "/
|
|
65
|
+
readonly forTrace: import("../endpoint.js").Endpoint<"GET", "/operator/logs/projects/:projectId/traces/:traceId/logs", import("effect/Schema").Struct<{
|
|
66
66
|
projectId: typeof import("effect/Schema").String;
|
|
67
67
|
traceId: typeof import("effect/Schema").String;
|
|
68
68
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
@@ -73,7 +73,7 @@ export declare const adminLogsEndpoints: {
|
|
|
73
73
|
context: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
74
74
|
createdAt: typeof import("effect/Schema").String;
|
|
75
75
|
}>>>;
|
|
76
|
-
readonly volume: import("../endpoint.js").Endpoint<"GET", "/
|
|
76
|
+
readonly volume: import("../endpoint.js").Endpoint<"GET", "/operator/logs/projects/:projectId/volume", import("effect/Schema").Struct<{
|
|
77
77
|
projectId: typeof import("effect/Schema").String;
|
|
78
78
|
}>, import("effect/Schema").Struct<{
|
|
79
79
|
startDate: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -83,7 +83,7 @@ export declare const adminLogsEndpoints: {
|
|
|
83
83
|
count: typeof import("effect/Schema").Number;
|
|
84
84
|
errors: typeof import("effect/Schema").Number;
|
|
85
85
|
}>>>;
|
|
86
|
-
readonly topErrors: import("../endpoint.js").Endpoint<"GET", "/
|
|
86
|
+
readonly topErrors: import("../endpoint.js").Endpoint<"GET", "/operator/logs/projects/:projectId/top-errors", import("effect/Schema").Struct<{
|
|
87
87
|
projectId: typeof import("effect/Schema").String;
|
|
88
88
|
}>, import("effect/Schema").Struct<{
|
|
89
89
|
startDate: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -94,7 +94,7 @@ export declare const adminLogsEndpoints: {
|
|
|
94
94
|
count: typeof import("effect/Schema").Number;
|
|
95
95
|
lastSeen: typeof import("effect/Schema").String;
|
|
96
96
|
}>>>;
|
|
97
|
-
readonly topSources: import("../endpoint.js").Endpoint<"GET", "/
|
|
97
|
+
readonly topSources: import("../endpoint.js").Endpoint<"GET", "/operator/logs/projects/:projectId/top-sources", import("effect/Schema").Struct<{
|
|
98
98
|
projectId: typeof import("effect/Schema").String;
|
|
99
99
|
}>, import("effect/Schema").Struct<{
|
|
100
100
|
startDate: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -9,69 +9,69 @@ import { AdminGetLogResult, AdminListLogsQuery, AdminListLogsResult, AdminLogDat
|
|
|
9
9
|
export const adminLogsEndpoints = {
|
|
10
10
|
stats: defineEndpoint({
|
|
11
11
|
method: 'GET',
|
|
12
|
-
path: '/
|
|
12
|
+
path: '/operator/logs/projects/:projectId/stats',
|
|
13
13
|
params: AdminLogsProjectParams,
|
|
14
14
|
query: AdminLogDateRangeQuery,
|
|
15
15
|
response: AdminLogStatsResult,
|
|
16
|
-
plane: '
|
|
16
|
+
plane: 'management',
|
|
17
17
|
summary: 'Log totals + level breakdown for a project',
|
|
18
18
|
tags: ['admin-logs'],
|
|
19
19
|
}),
|
|
20
20
|
list: defineEndpoint({
|
|
21
21
|
method: 'GET',
|
|
22
|
-
path: '/
|
|
22
|
+
path: '/operator/logs/projects/:projectId/logs',
|
|
23
23
|
params: AdminLogsProjectParams,
|
|
24
24
|
query: AdminListLogsQuery,
|
|
25
25
|
response: AdminListLogsResult,
|
|
26
|
-
plane: '
|
|
26
|
+
plane: 'management',
|
|
27
27
|
summary: 'List logs with filtering + pagination',
|
|
28
28
|
tags: ['admin-logs'],
|
|
29
29
|
}),
|
|
30
30
|
get: defineEndpoint({
|
|
31
31
|
method: 'GET',
|
|
32
|
-
path: '/
|
|
32
|
+
path: '/operator/logs/projects/:projectId/logs/:logId',
|
|
33
33
|
params: AdminLogIdParams,
|
|
34
34
|
response: AdminGetLogResult,
|
|
35
|
-
plane: '
|
|
35
|
+
plane: 'management',
|
|
36
36
|
summary: 'Get a single log entry by ID',
|
|
37
37
|
tags: ['admin-logs'],
|
|
38
38
|
}),
|
|
39
39
|
forTrace: defineEndpoint({
|
|
40
40
|
method: 'GET',
|
|
41
|
-
path: '/
|
|
41
|
+
path: '/operator/logs/projects/:projectId/traces/:traceId/logs',
|
|
42
42
|
params: AdminTraceIdParams,
|
|
43
43
|
response: AdminLogsForTraceResult,
|
|
44
|
-
plane: '
|
|
44
|
+
plane: 'management',
|
|
45
45
|
summary: 'Get all logs associated with a given trace ID',
|
|
46
46
|
tags: ['admin-logs'],
|
|
47
47
|
}),
|
|
48
48
|
volume: defineEndpoint({
|
|
49
49
|
method: 'GET',
|
|
50
|
-
path: '/
|
|
50
|
+
path: '/operator/logs/projects/:projectId/volume',
|
|
51
51
|
params: AdminLogsProjectParams,
|
|
52
52
|
query: AdminLogDateRangeQuery,
|
|
53
53
|
response: AdminLogVolumeResult,
|
|
54
|
-
plane: '
|
|
54
|
+
plane: 'management',
|
|
55
55
|
summary: 'Hourly log volume + error count',
|
|
56
56
|
tags: ['admin-logs'],
|
|
57
57
|
}),
|
|
58
58
|
topErrors: defineEndpoint({
|
|
59
59
|
method: 'GET',
|
|
60
|
-
path: '/
|
|
60
|
+
path: '/operator/logs/projects/:projectId/top-errors',
|
|
61
61
|
params: AdminLogsProjectParams,
|
|
62
62
|
query: AdminTopErrorsQuery,
|
|
63
63
|
response: AdminTopErrorsResult,
|
|
64
|
-
plane: '
|
|
64
|
+
plane: 'management',
|
|
65
65
|
summary: 'Most frequent error messages',
|
|
66
66
|
tags: ['admin-logs'],
|
|
67
67
|
}),
|
|
68
68
|
topSources: defineEndpoint({
|
|
69
69
|
method: 'GET',
|
|
70
|
-
path: '/
|
|
70
|
+
path: '/operator/logs/projects/:projectId/top-sources',
|
|
71
71
|
params: AdminLogsProjectParams,
|
|
72
72
|
query: AdminTopSourcesQuery,
|
|
73
73
|
response: AdminTopSourcesResult,
|
|
74
|
-
plane: '
|
|
74
|
+
plane: 'management',
|
|
75
75
|
summary: 'Most active log sources',
|
|
76
76
|
tags: ['admin-logs'],
|
|
77
77
|
}),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Production mount: `/admin/plans/*`.
|
|
6
6
|
*/
|
|
7
7
|
export declare const adminPlansEndpoints: {
|
|
8
|
-
readonly list: import("../endpoint.js").Endpoint<"GET", "/
|
|
8
|
+
readonly list: import("../endpoint.js").Endpoint<"GET", "/operator/plans/", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
9
9
|
projectId: typeof import("effect/Schema").String;
|
|
10
10
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
11
11
|
plans: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
@@ -22,7 +22,7 @@ export declare const adminPlansEndpoints: {
|
|
|
22
22
|
}>>;
|
|
23
23
|
total: typeof import("effect/Schema").Number;
|
|
24
24
|
}>>;
|
|
25
|
-
readonly create: import("../endpoint.js").Endpoint<"POST", "/
|
|
25
|
+
readonly create: import("../endpoint.js").Endpoint<"POST", "/operator/plans/", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
26
26
|
projectId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
27
27
|
name: typeof import("effect/Schema").String;
|
|
28
28
|
slug: typeof import("effect/Schema").String;
|
|
@@ -37,7 +37,7 @@ export declare const adminPlansEndpoints: {
|
|
|
37
37
|
slug: typeof import("effect/Schema").String;
|
|
38
38
|
name: typeof import("effect/Schema").String;
|
|
39
39
|
}>>;
|
|
40
|
-
readonly update: import("../endpoint.js").Endpoint<"PATCH", "/
|
|
40
|
+
readonly update: import("../endpoint.js").Endpoint<"PATCH", "/operator/plans/:planId", import("effect/Schema").Struct<{
|
|
41
41
|
planId: typeof import("effect/Schema").String;
|
|
42
42
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
43
43
|
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -53,7 +53,7 @@ export declare const adminPlansEndpoints: {
|
|
|
53
53
|
slug: typeof import("effect/Schema").String;
|
|
54
54
|
name: typeof import("effect/Schema").String;
|
|
55
55
|
}>>;
|
|
56
|
-
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/
|
|
56
|
+
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/operator/plans/:planId", import("effect/Schema").Struct<{
|
|
57
57
|
planId: typeof import("effect/Schema").String;
|
|
58
58
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
59
59
|
id: typeof import("effect/Schema").String;
|
|
@@ -9,38 +9,38 @@ import { AdminCreatePlanInput, AdminCreatePlanResult, AdminDeletePlanResult, Adm
|
|
|
9
9
|
export const adminPlansEndpoints = {
|
|
10
10
|
list: defineEndpoint({
|
|
11
11
|
method: 'GET',
|
|
12
|
-
path: '/
|
|
12
|
+
path: '/operator/plans/',
|
|
13
13
|
query: AdminListPlansQuery,
|
|
14
14
|
response: AdminListPlansResult,
|
|
15
|
-
plane: '
|
|
15
|
+
plane: 'management',
|
|
16
16
|
summary: 'List subscription plans for a project',
|
|
17
17
|
tags: ['admin-plans'],
|
|
18
18
|
}),
|
|
19
19
|
create: defineEndpoint({
|
|
20
20
|
method: 'POST',
|
|
21
|
-
path: '/
|
|
21
|
+
path: '/operator/plans/',
|
|
22
22
|
body: AdminCreatePlanInput,
|
|
23
23
|
response: AdminCreatePlanResult,
|
|
24
|
-
plane: '
|
|
24
|
+
plane: 'management',
|
|
25
25
|
summary: 'Create a subscription plan',
|
|
26
26
|
tags: ['admin-plans'],
|
|
27
27
|
}),
|
|
28
28
|
update: defineEndpoint({
|
|
29
29
|
method: 'PATCH',
|
|
30
|
-
path: '/
|
|
30
|
+
path: '/operator/plans/:planId',
|
|
31
31
|
params: AdminPlanIdParams,
|
|
32
32
|
body: AdminUpdatePlanInput,
|
|
33
33
|
response: AdminUpdatePlanResult,
|
|
34
|
-
plane: '
|
|
34
|
+
plane: 'management',
|
|
35
35
|
summary: 'Update an existing subscription plan',
|
|
36
36
|
tags: ['admin-plans'],
|
|
37
37
|
}),
|
|
38
38
|
delete: defineEndpoint({
|
|
39
39
|
method: 'DELETE',
|
|
40
|
-
path: '/
|
|
40
|
+
path: '/operator/plans/:planId',
|
|
41
41
|
params: AdminPlanIdParams,
|
|
42
42
|
response: AdminDeletePlanResult,
|
|
43
|
-
plane: '
|
|
43
|
+
plane: 'management',
|
|
44
44
|
summary: 'Soft-delete a subscription plan (marks inactive)',
|
|
45
45
|
tags: ['admin-plans'],
|
|
46
46
|
}),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Production mount: `/admin/project-users/*`.
|
|
6
6
|
*/
|
|
7
7
|
export declare const adminProjectUsersEndpoints: {
|
|
8
|
-
readonly getByProjectId: import("../endpoint.js").Endpoint<"GET", "/
|
|
8
|
+
readonly getByProjectId: import("../endpoint.js").Endpoint<"GET", "/operator/project-users/projects/:projectId/users", import("effect/Schema").Struct<{
|
|
9
9
|
projectId: typeof import("effect/Schema").String;
|
|
10
10
|
}>, import("effect/Schema").Struct<{
|
|
11
11
|
limit: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -34,7 +34,7 @@ export declare const adminProjectUsersEndpoints: {
|
|
|
34
34
|
limit: typeof import("effect/Schema").Number;
|
|
35
35
|
offset: typeof import("effect/Schema").Number;
|
|
36
36
|
}>>;
|
|
37
|
-
readonly getByIdOrSlug: import("../endpoint.js").Endpoint<"GET", "/
|
|
37
|
+
readonly getByIdOrSlug: import("../endpoint.js").Endpoint<"GET", "/operator/project-users/projects/:id/users", import("effect/Schema").Struct<{
|
|
38
38
|
id: typeof import("effect/Schema").String;
|
|
39
39
|
}>, import("effect/Schema").Struct<{
|
|
40
40
|
limit: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -68,7 +68,7 @@ export declare const adminProjectUsersEndpoints: {
|
|
|
68
68
|
limit: typeof import("effect/Schema").Number;
|
|
69
69
|
offset: typeof import("effect/Schema").Number;
|
|
70
70
|
}>>;
|
|
71
|
-
readonly list: import("../endpoint.js").Endpoint<"GET", "/
|
|
71
|
+
readonly list: import("../endpoint.js").Endpoint<"GET", "/operator/project-users/projects/:id/users/list", import("effect/Schema").Struct<{
|
|
72
72
|
id: typeof import("effect/Schema").String;
|
|
73
73
|
}>, import("effect/Schema").Struct<{
|
|
74
74
|
cursor: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
@@ -100,7 +100,7 @@ export declare const adminProjectUsersEndpoints: {
|
|
|
100
100
|
hasMore: typeof import("effect/Schema").Boolean;
|
|
101
101
|
total: typeof import("effect/Schema").Number;
|
|
102
102
|
}>>;
|
|
103
|
-
readonly updateStatus: import("../endpoint.js").Endpoint<"PATCH", "/
|
|
103
|
+
readonly updateStatus: import("../endpoint.js").Endpoint<"PATCH", "/operator/project-users/projects/:projectId/users/:userId/status", import("effect/Schema").Struct<{
|
|
104
104
|
projectId: typeof import("effect/Schema").String;
|
|
105
105
|
userId: typeof import("effect/Schema").String;
|
|
106
106
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -111,7 +111,7 @@ export declare const adminProjectUsersEndpoints: {
|
|
|
111
111
|
status: import("effect/Schema").Literal<["active", "suspended", "banned"]>;
|
|
112
112
|
statusReason: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
113
113
|
}>>;
|
|
114
|
-
readonly updateRole: import("../endpoint.js").Endpoint<"PATCH", "/
|
|
114
|
+
readonly updateRole: import("../endpoint.js").Endpoint<"PATCH", "/operator/project-users/projects/:projectId/users/:userId/role", import("effect/Schema").Struct<{
|
|
115
115
|
projectId: typeof import("effect/Schema").String;
|
|
116
116
|
userId: typeof import("effect/Schema").String;
|
|
117
117
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
@@ -120,13 +120,13 @@ export declare const adminProjectUsersEndpoints: {
|
|
|
120
120
|
id: typeof import("effect/Schema").String;
|
|
121
121
|
role: import("effect/Schema").Literal<["user", "admin", "super_admin"]>;
|
|
122
122
|
}>>;
|
|
123
|
-
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/
|
|
123
|
+
readonly delete: import("../endpoint.js").Endpoint<"DELETE", "/operator/project-users/projects/:projectId/users/:userId", import("effect/Schema").Struct<{
|
|
124
124
|
projectId: typeof import("effect/Schema").String;
|
|
125
125
|
userId: typeof import("effect/Schema").String;
|
|
126
126
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
127
127
|
success: typeof import("effect/Schema").Boolean;
|
|
128
128
|
}>>;
|
|
129
|
-
readonly bulkUpdateStatus: import("../endpoint.js").Endpoint<"POST", "/
|
|
129
|
+
readonly bulkUpdateStatus: import("../endpoint.js").Endpoint<"POST", "/operator/project-users/projects/:projectId/users/bulk-status", import("effect/Schema").Struct<{
|
|
130
130
|
projectId: typeof import("effect/Schema").String;
|
|
131
131
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
132
132
|
userIds: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
@@ -136,7 +136,7 @@ export declare const adminProjectUsersEndpoints: {
|
|
|
136
136
|
updated: typeof import("effect/Schema").Number;
|
|
137
137
|
total: typeof import("effect/Schema").Number;
|
|
138
138
|
}>>;
|
|
139
|
-
readonly bulkDelete: import("../endpoint.js").Endpoint<"POST", "/
|
|
139
|
+
readonly bulkDelete: import("../endpoint.js").Endpoint<"POST", "/operator/project-users/projects/:projectId/users/bulk-delete", import("effect/Schema").Struct<{
|
|
140
140
|
projectId: typeof import("effect/Schema").String;
|
|
141
141
|
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
142
142
|
userIds: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
@@ -9,80 +9,80 @@ import { AdminBulkDeleteUsersInput, AdminBulkDeleteUsersResult, AdminBulkUpdateS
|
|
|
9
9
|
export const adminProjectUsersEndpoints = {
|
|
10
10
|
getByProjectId: defineEndpoint({
|
|
11
11
|
method: 'GET',
|
|
12
|
-
path: '/
|
|
12
|
+
path: '/operator/project-users/projects/:projectId/users',
|
|
13
13
|
params: AdminProjectUsersProjectParams,
|
|
14
14
|
query: AdminGetProjectUsersQuery,
|
|
15
15
|
response: AdminGetProjectUsersResult,
|
|
16
|
-
plane: '
|
|
16
|
+
plane: 'management',
|
|
17
17
|
summary: 'List app users by project ID (offset pagination)',
|
|
18
18
|
tags: ['admin-project-users'],
|
|
19
19
|
}),
|
|
20
20
|
getByIdOrSlug: defineEndpoint({
|
|
21
21
|
method: 'GET',
|
|
22
|
-
path: '/
|
|
22
|
+
path: '/operator/project-users/projects/:id/users',
|
|
23
23
|
params: AdminProjectIdOrSlugParams,
|
|
24
24
|
query: AdminGetProjectUsersQuery,
|
|
25
25
|
response: AdminGetProjectUsersBySlugResult,
|
|
26
|
-
plane: '
|
|
26
|
+
plane: 'management',
|
|
27
27
|
summary: 'List app users by project ID or slug',
|
|
28
28
|
tags: ['admin-project-users'],
|
|
29
29
|
}),
|
|
30
30
|
list: defineEndpoint({
|
|
31
31
|
method: 'GET',
|
|
32
|
-
path: '/
|
|
32
|
+
path: '/operator/project-users/projects/:id/users/list',
|
|
33
33
|
params: AdminProjectIdOrSlugParams,
|
|
34
34
|
query: AdminListProjectUsersQuery,
|
|
35
35
|
response: AdminListProjectUsersResult,
|
|
36
|
-
plane: '
|
|
36
|
+
plane: 'management',
|
|
37
37
|
summary: 'List app users with cursor pagination (DataTable)',
|
|
38
38
|
tags: ['admin-project-users'],
|
|
39
39
|
}),
|
|
40
40
|
updateStatus: defineEndpoint({
|
|
41
41
|
method: 'PATCH',
|
|
42
|
-
path: '/
|
|
42
|
+
path: '/operator/project-users/projects/:projectId/users/:userId/status',
|
|
43
43
|
params: AdminProjectUserParams,
|
|
44
44
|
body: AdminUpdateProjectUserStatusInput,
|
|
45
45
|
response: AdminUpdateProjectUserStatusResult,
|
|
46
|
-
plane: '
|
|
46
|
+
plane: 'management',
|
|
47
47
|
summary: 'Change app user status (admin role required)',
|
|
48
48
|
tags: ['admin-project-users'],
|
|
49
49
|
}),
|
|
50
50
|
updateRole: defineEndpoint({
|
|
51
51
|
method: 'PATCH',
|
|
52
|
-
path: '/
|
|
52
|
+
path: '/operator/project-users/projects/:projectId/users/:userId/role',
|
|
53
53
|
params: AdminProjectUserParams,
|
|
54
54
|
body: AdminUpdateProjectUserRoleInput,
|
|
55
55
|
response: AdminUpdateProjectUserRoleResult,
|
|
56
|
-
plane: '
|
|
56
|
+
plane: 'management',
|
|
57
57
|
summary: 'Change app user role (admin role required)',
|
|
58
58
|
tags: ['admin-project-users'],
|
|
59
59
|
}),
|
|
60
60
|
delete: defineEndpoint({
|
|
61
61
|
method: 'DELETE',
|
|
62
|
-
path: '/
|
|
62
|
+
path: '/operator/project-users/projects/:projectId/users/:userId',
|
|
63
63
|
params: AdminProjectUserParams,
|
|
64
64
|
response: AdminDeleteProjectUserResult,
|
|
65
|
-
plane: '
|
|
65
|
+
plane: 'management',
|
|
66
66
|
summary: 'Remove user access to the app',
|
|
67
67
|
tags: ['admin-project-users'],
|
|
68
68
|
}),
|
|
69
69
|
bulkUpdateStatus: defineEndpoint({
|
|
70
70
|
method: 'POST',
|
|
71
|
-
path: '/
|
|
71
|
+
path: '/operator/project-users/projects/:projectId/users/bulk-status',
|
|
72
72
|
params: AdminProjectUsersProjectParams,
|
|
73
73
|
body: AdminBulkUpdateStatusInput,
|
|
74
74
|
response: AdminBulkUpdateStatusResult,
|
|
75
|
-
plane: '
|
|
75
|
+
plane: 'management',
|
|
76
76
|
summary: 'Bulk change app user statuses (up to 100)',
|
|
77
77
|
tags: ['admin-project-users'],
|
|
78
78
|
}),
|
|
79
79
|
bulkDelete: defineEndpoint({
|
|
80
80
|
method: 'POST',
|
|
81
|
-
path: '/
|
|
81
|
+
path: '/operator/project-users/projects/:projectId/users/bulk-delete',
|
|
82
82
|
params: AdminProjectUsersProjectParams,
|
|
83
83
|
body: AdminBulkDeleteUsersInput,
|
|
84
84
|
response: AdminBulkDeleteUsersResult,
|
|
85
|
-
plane: '
|
|
85
|
+
plane: 'management',
|
|
86
86
|
summary: 'Bulk delete app users (up to 100)',
|
|
87
87
|
tags: ['admin-project-users'],
|
|
88
88
|
}),
|