@pikku/addon-admin 0.12.6 → 0.12.7
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/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.js +1 -1
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +1 -1
- package/dist/.pikku/addon/auth/index.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.js +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +1 -1
- package/dist/.pikku/addon/channel/index.d.ts +1 -1
- package/dist/.pikku/addon/channel/index.js +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/addon/error/index.d.ts +1 -1
- package/dist/.pikku/addon/error/index.js +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/addon/function/index.d.ts +1 -1
- package/dist/.pikku/addon/function/index.js +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +15 -8
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +6 -5
- package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/addon/http/index.d.ts +1 -1
- package/dist/.pikku/addon/http/index.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/addon/mcp/index.d.ts +1 -1
- package/dist/.pikku/addon/mcp/index.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/addon/middleware/index.d.ts +1 -1
- package/dist/.pikku/addon/middleware/index.js +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +8 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +8 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +8 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/index.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +7 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/schemas/ListUsersInput.schema.json +1 -1
- package/dist/.pikku/addon/schemas/schemas/ListUsersOutput.schema.json +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +1 -1
- package/dist/.pikku/addon/scopes/index.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/addon/setup/index.d.ts +1 -1
- package/dist/.pikku/addon/setup/index.js +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/trigger/index.d.ts +1 -1
- package/dist/.pikku/addon/trigger/index.js +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/index.d.ts +1 -1
- package/dist/.pikku/addon/variables/index.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/addon/workflow/index.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/src/functions/list-users.function.d.ts +15 -0
- package/dist/src/functions/list-users.function.d.ts.map +1 -1
- package/dist/src/functions/list-users.function.js +102 -25
- package/dist/src/functions/list-users.function.js.map +1 -1
- package/dist/src/functions/list-users.function.test.d.ts +2 -0
- package/dist/src/functions/list-users.function.test.d.ts.map +1 -0
- package/dist/src/functions/list-users.function.test.js +175 -0
- package/dist/src/functions/list-users.function.test.js.map +1 -0
- package/dist/src/lib/is-person.d.ts +16 -0
- package/dist/src/lib/is-person.d.ts.map +1 -1
- package/dist/src/lib/is-person.js +17 -1
- package/dist/src/lib/is-person.js.map +1 -1
- package/dist/src/lib/user.schemas.d.ts +7 -0
- package/dist/src/lib/user.schemas.d.ts.map +1 -1
- package/dist/src/lib/user.schemas.js +26 -0
- package/dist/src/lib/user.schemas.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.162
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAgent } from '@pikku/core/agent';
|
|
5
5
|
import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge } from '@pikku/core/agent-scorer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.162
|
|
3
3
|
*/
|
|
4
4
|
export { defineAnalyticsEvents, LoggerAnalyticsService, flattenAnalyticsEvent } from '@pikku/core/analytics';
|
|
5
5
|
export type { AnalyticsClientContext, AnalyticsEventBase, AnalyticsEventDefinitions, AnalyticsEventPropsSchema, AnalyticsIdentity, AnalyticsLog, AnalyticsRecord, AnalyticsService, } from '@pikku/core/analytics';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.162
|
|
3
3
|
*/
|
|
4
4
|
export { defineAnalyticsEvents, LoggerAnalyticsService, flattenAnalyticsEvent } from '@pikku/core/analytics';
|
|
5
5
|
//# sourceMappingURL=pikku-analytics-types.gen.js.map
|
|
@@ -637,7 +637,14 @@
|
|
|
637
637
|
"services": {
|
|
638
638
|
"optimized": true,
|
|
639
639
|
"services": [
|
|
640
|
-
"auth"
|
|
640
|
+
"auth",
|
|
641
|
+
"scopeService"
|
|
642
|
+
]
|
|
643
|
+
},
|
|
644
|
+
"wires": {
|
|
645
|
+
"optimized": true,
|
|
646
|
+
"wires": [
|
|
647
|
+
"session"
|
|
641
648
|
]
|
|
642
649
|
},
|
|
643
650
|
"inputSchemaName": "ListUsersInput",
|
|
@@ -652,17 +659,17 @@
|
|
|
652
659
|
"scopes": [
|
|
653
660
|
"admin:users:list"
|
|
654
661
|
],
|
|
655
|
-
"implementationHash": "
|
|
662
|
+
"implementationHash": "8812f71fece12c9f",
|
|
656
663
|
"title": "List Users",
|
|
657
|
-
"description": "Lists and searches the user directory, read through the auth adapter so it works on any database better-auth supports.",
|
|
664
|
+
"description": "Lists and searches the user directory, read through the auth adapter so it works on any database better-auth supports. Newest first, paged with `limit` and `offset`.",
|
|
658
665
|
"isDirectFunction": false,
|
|
659
666
|
"sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-admin/src/functions/list-users.function.ts",
|
|
660
667
|
"exportedName": "listUsers",
|
|
661
|
-
"bodyStart":
|
|
662
|
-
"bodyEnd":
|
|
663
|
-
"contractHash": "
|
|
664
|
-
"inputHash": "
|
|
665
|
-
"outputHash": "
|
|
668
|
+
"bodyStart": 61,
|
|
669
|
+
"bodyEnd": 140,
|
|
670
|
+
"contractHash": "106017d68404c4d7",
|
|
671
|
+
"inputHash": "b54e9a5f",
|
|
672
|
+
"outputHash": "b1055a6c"
|
|
666
673
|
},
|
|
667
674
|
"ping": {
|
|
668
675
|
"pikkuFuncId": "ping",
|
|
@@ -509,14 +509,15 @@
|
|
|
509
509
|
"scopes": [
|
|
510
510
|
"admin:users:list"
|
|
511
511
|
],
|
|
512
|
-
"implementationHash": "
|
|
513
|
-
"contractHash": "
|
|
514
|
-
"inputHash": "
|
|
515
|
-
"outputHash": "
|
|
512
|
+
"implementationHash": "8812f71fece12c9f",
|
|
513
|
+
"contractHash": "106017d68404c4d7",
|
|
514
|
+
"inputHash": "b54e9a5f",
|
|
515
|
+
"outputHash": "b1055a6c",
|
|
516
516
|
"services": {
|
|
517
517
|
"optimized": true,
|
|
518
518
|
"services": [
|
|
519
|
-
"auth"
|
|
519
|
+
"auth",
|
|
520
|
+
"scopeService"
|
|
520
521
|
]
|
|
521
522
|
}
|
|
522
523
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.162
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -50,6 +50,8 @@ export type FlagSyncOutput = { synced: number; }
|
|
|
50
50
|
export type ListUsersInput = {
|
|
51
51
|
search?: string | undefined;
|
|
52
52
|
limit?: number | undefined;
|
|
53
|
+
offset?: number | undefined;
|
|
54
|
+
includeRoles?: boolean | undefined;
|
|
53
55
|
}
|
|
54
56
|
export type ListUsersOutput = {
|
|
55
57
|
users: {
|
|
@@ -61,7 +63,12 @@ export type ListUsersOutput = {
|
|
|
61
63
|
banned?: boolean | undefined;
|
|
62
64
|
banReason?: string | undefined;
|
|
63
65
|
banExpires?: string | undefined;
|
|
66
|
+
roles?: string[] | undefined;
|
|
67
|
+
fields?: {
|
|
68
|
+
[key: string]: unknown;
|
|
69
|
+
} | undefined;
|
|
64
70
|
}[];
|
|
71
|
+
total: number;
|
|
65
72
|
}
|
|
66
73
|
export type PingOutput = { pong: true; }
|
|
67
74
|
export type RemoveUserInput = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.162
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -50,6 +50,8 @@ export type FlagSyncOutput = { synced: number; }
|
|
|
50
50
|
export type ListUsersInput = {
|
|
51
51
|
search?: string | undefined;
|
|
52
52
|
limit?: number | undefined;
|
|
53
|
+
offset?: number | undefined;
|
|
54
|
+
includeRoles?: boolean | undefined;
|
|
53
55
|
}
|
|
54
56
|
export type ListUsersOutput = {
|
|
55
57
|
users: {
|
|
@@ -61,7 +63,12 @@ export type ListUsersOutput = {
|
|
|
61
63
|
banned?: boolean | undefined;
|
|
62
64
|
banReason?: string | undefined;
|
|
63
65
|
banExpires?: string | undefined;
|
|
66
|
+
roles?: string[] | undefined;
|
|
67
|
+
fields?: {
|
|
68
|
+
[key: string]: unknown;
|
|
69
|
+
} | undefined;
|
|
64
70
|
}[];
|
|
71
|
+
total: number;
|
|
65
72
|
}
|
|
66
73
|
export type PingOutput = { pong: true; }
|
|
67
74
|
export type RemoveUserInput = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.162
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -48,6 +48,8 @@ export type FlagSyncOutput = { synced: number; }
|
|
|
48
48
|
export type ListUsersInput = {
|
|
49
49
|
search?: string | undefined;
|
|
50
50
|
limit?: number | undefined;
|
|
51
|
+
offset?: number | undefined;
|
|
52
|
+
includeRoles?: boolean | undefined;
|
|
51
53
|
}
|
|
52
54
|
export type ListUsersOutput = {
|
|
53
55
|
users: {
|
|
@@ -59,7 +61,12 @@ export type ListUsersOutput = {
|
|
|
59
61
|
banned?: boolean | undefined;
|
|
60
62
|
banReason?: string | undefined;
|
|
61
63
|
banExpires?: string | undefined;
|
|
64
|
+
roles?: string[] | undefined;
|
|
65
|
+
fields?: {
|
|
66
|
+
[key: string]: unknown;
|
|
67
|
+
} | undefined;
|
|
62
68
|
}[];
|
|
69
|
+
total: number;
|
|
63
70
|
}
|
|
64
71
|
export type PingOutput = { pong: true; }
|
|
65
72
|
export type RemoveUserInput = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.162
|
|
3
3
|
*/
|
|
4
4
|
import type { PikkuScenarioWire, ScenarioStepOptions } from '@pikku/core/scenario';
|
|
5
5
|
import type { PikkuWorkflowWire } from '@pikku/core/workflow';
|
|
@@ -130,6 +130,12 @@ type PikkuFeatureConfig<Scenarios extends readonly unknown[]> = {
|
|
|
130
130
|
name: string;
|
|
131
131
|
description?: string;
|
|
132
132
|
tags?: string[];
|
|
133
|
+
/**
|
|
134
|
+
* Whether this feature is guide material, defaulting to true. `pikku scenario
|
|
135
|
+
* guide` requires every documented feature to be cited by a page; a feature
|
|
136
|
+
* that is pure plumbing sets this false rather than being written about.
|
|
137
|
+
*/
|
|
138
|
+
document?: boolean;
|
|
133
139
|
scenarios: {
|
|
134
140
|
[K in keyof Scenarios]: PikkuFeatureEntry<Scenarios[K]>;
|
|
135
141
|
};
|