@servora/proto-utils 0.1.1 → 0.1.2
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/gen/servora/audit/v1/index.d.ts +0 -21
- package/dist/gen/servora/audit/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/audit/v1/index.js.map +1 -1
- package/dist/gen/servora/authn/audit/v1/index.d.ts +16 -0
- package/dist/gen/servora/authn/audit/v1/index.d.ts.map +1 -0
- package/dist/gen/servora/authn/audit/v1/index.js.map +1 -0
- package/dist/gen/servora/authz/audit/v1/index.d.ts +12 -0
- package/dist/gen/servora/authz/audit/v1/index.d.ts.map +1 -0
- package/dist/gen/servora/authz/audit/v1/index.js.map +1 -0
- package/dist/gen/servora/authz/openfga/audit/v1/index.d.ts +13 -0
- package/dist/gen/servora/authz/openfga/audit/v1/index.d.ts.map +1 -0
- package/dist/gen/servora/{infra/db/clickhouse → authz/openfga/audit}/v1/index.js.map +1 -1
- package/dist/gen/servora/contrib/db/clickhouse/v1/index.d.ts.map +1 -0
- package/dist/gen/servora/contrib/db/clickhouse/v1/index.js.map +1 -0
- package/dist/gen/servora/contrib/db/redis/v1/index.d.ts.map +1 -0
- package/dist/gen/servora/contrib/db/redis/v1/index.js +6 -0
- package/dist/gen/servora/contrib/db/redis/v1/index.js.map +1 -0
- package/dist/gen/servora/contrib/kafka/v1/index.d.ts.map +1 -0
- package/dist/gen/servora/contrib/kafka/v1/index.js +6 -0
- package/dist/gen/servora/contrib/kafka/v1/index.js.map +1 -0
- package/dist/gen/servora/contrib/mail/v1/index.d.ts.map +1 -0
- package/dist/gen/servora/contrib/mail/v1/index.js +6 -0
- package/dist/gen/servora/contrib/mail/v1/index.js.map +1 -0
- package/package.json +1 -1
- package/src/gen/servora/audit/v1/index.ts +10 -50
- package/src/gen/servora/authn/audit/v1/index.ts +42 -0
- package/src/gen/servora/authz/audit/v1/index.ts +40 -0
- package/src/gen/servora/authz/openfga/audit/v1/index.ts +29 -0
- package/dist/gen/servora/infra/db/clickhouse/v1/index.d.ts.map +0 -1
- package/dist/gen/servora/infra/kafka/v1/index.d.ts.map +0 -1
- package/dist/gen/servora/infra/kafka/v1/index.js.map +0 -1
- package/dist/gen/servora/infra/mail/v1/index.d.ts.map +0 -1
- package/dist/gen/servora/infra/mail/v1/index.js.map +0 -1
- package/dist/gen/servora/infra/redis/v1/index.d.ts.map +0 -1
- package/dist/gen/servora/infra/redis/v1/index.js.map +0 -1
- /package/dist/gen/servora/{infra/db/clickhouse → authn/audit}/v1/index.js +0 -0
- /package/dist/gen/servora/{infra/kafka → authz/audit}/v1/index.js +0 -0
- /package/dist/gen/servora/{infra/mail → authz/openfga/audit}/v1/index.js +0 -0
- /package/dist/gen/servora/{infra → contrib}/db/clickhouse/v1/index.d.ts +0 -0
- /package/dist/gen/servora/{infra/redis → contrib/db/clickhouse}/v1/index.js +0 -0
- /package/dist/gen/servora/{infra → contrib/db}/redis/v1/index.d.ts +0 -0
- /package/dist/gen/servora/{infra → contrib}/kafka/v1/index.d.ts +0 -0
- /package/dist/gen/servora/{infra → contrib}/mail/v1/index.d.ts +0 -0
- /package/src/gen/servora/{infra → contrib}/db/clickhouse/v1/index.ts +0 -0
- /package/src/gen/servora/{infra → contrib/db}/redis/v1/index.ts +0 -0
- /package/src/gen/servora/{infra → contrib}/kafka/v1/index.ts +0 -0
- /package/src/gen/servora/{infra → contrib}/mail/v1/index.ts +0 -0
|
@@ -1,26 +1,5 @@
|
|
|
1
1
|
export type AuditMode = "AUDIT_MODE_UNSPECIFIED" | "AUDIT_MODE_DISABLED" | "AUDIT_MODE_ENABLED";
|
|
2
|
-
export type ExtensionMapping = {
|
|
3
|
-
name: string | undefined;
|
|
4
|
-
fromField?: string;
|
|
5
|
-
literal?: servoracloudeventsv1_CloudEvent_CloudEventAttributeValue;
|
|
6
|
-
};
|
|
7
|
-
export type servoracloudeventsv1_CloudEvent_CloudEventAttributeValue = {
|
|
8
|
-
ceBoolean?: boolean;
|
|
9
|
-
ceInteger?: number;
|
|
10
|
-
ceString?: string;
|
|
11
|
-
ceBytes?: string;
|
|
12
|
-
ceUri?: string;
|
|
13
|
-
ceUriRef?: string;
|
|
14
|
-
ceTimestamp?: wellKnownTimestamp;
|
|
15
|
-
};
|
|
16
|
-
type wellKnownTimestamp = string;
|
|
17
2
|
export type AuditRule = {
|
|
18
3
|
mode: AuditMode | undefined;
|
|
19
|
-
eventType: string | undefined;
|
|
20
|
-
severity: string | undefined;
|
|
21
|
-
detailMessageField: string | undefined;
|
|
22
|
-
targetIdField: string | undefined;
|
|
23
|
-
extensions: ExtensionMapping[] | undefined;
|
|
24
4
|
};
|
|
25
|
-
export {};
|
|
26
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/audit/v1/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/audit/v1/index.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,SAAS,GAGjB,wBAAwB,GAExB,qBAAqB,GAErB,oBAAoB,CAAC;AAMzB,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,SAAS,GAAG,SAAS,CAAC;CAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/audit/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/audit/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AAqBd,gDAAgD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type AuthnFailure = {
|
|
2
|
+
reason: string | undefined;
|
|
3
|
+
code: number | undefined;
|
|
4
|
+
message: string | undefined;
|
|
5
|
+
attempts: SchemeAttempt[] | undefined;
|
|
6
|
+
};
|
|
7
|
+
export type SchemeAttempt = {
|
|
8
|
+
scheme: string | undefined;
|
|
9
|
+
reason: string | undefined;
|
|
10
|
+
message: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type AuthnSuccess = {
|
|
13
|
+
scheme: string | undefined;
|
|
14
|
+
message: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/servora/authn/audit/v1/index.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,YAAY,GAAG;IAEzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAEzB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAG5B,QAAQ,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;CACvC,CAAC;AAIF,MAAM,MAAM,aAAa,GAAG;IAE1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAKF,MAAM,MAAM,YAAY,GAAG;IAEzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/gen/servora/authn/audit/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AAuCd,gDAAgD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type AuthzDecision = {
|
|
2
|
+
decision: AuthzDecision_Decision | undefined;
|
|
3
|
+
action: string | undefined;
|
|
4
|
+
resourceType: string | undefined;
|
|
5
|
+
resourceId: string | undefined;
|
|
6
|
+
backend: string | undefined;
|
|
7
|
+
reason: string | undefined;
|
|
8
|
+
code: number | undefined;
|
|
9
|
+
message: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type AuthzDecision_Decision = "DECISION_UNSPECIFIED" | "DECISION_ALLOWED" | "DECISION_DENIED" | "DECISION_ERROR";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/servora/authz/audit/v1/index.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAE7C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAEzB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAGF,MAAM,MAAM,sBAAsB,GAC9B,sBAAsB,GAEtB,kBAAkB,GAElB,iBAAiB,GAEjB,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/gen/servora/authz/audit/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AAqCd,gDAAgD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type TupleMutation = {
|
|
2
|
+
operation: TupleMutation_Operation | undefined;
|
|
3
|
+
tuples: Tuple[] | undefined;
|
|
4
|
+
storeId: string | undefined;
|
|
5
|
+
modelId: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
export type TupleMutation_Operation = "OPERATION_UNSPECIFIED" | "OPERATION_WRITE" | "OPERATION_DELETE";
|
|
8
|
+
export type Tuple = {
|
|
9
|
+
user: string | undefined;
|
|
10
|
+
relation: string | undefined;
|
|
11
|
+
object: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/gen/servora/authz/openfga/audit/v1/index.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAC/C,MAAM,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAGF,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,GACvB,iBAAiB,GACjB,kBAAkB,CAAC;AAEvB,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/gen/servora/
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/gen/servora/authz/openfga/audit/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AA0Bd,gDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/gen/servora/contrib/db/clickhouse/v1/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,eAAe,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC/C,GAAG,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC1C,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/gen/servora/contrib/db/clickhouse/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AA8Bd,gDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/gen/servora/contrib/db/redis/v1/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC7C,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/gen/servora/contrib/db/redis/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AAoBd,gDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/servora/contrib/kafka/v1/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC5C,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC5C,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,GAAG,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC1C,IAAI,EAAE,UAAU,GAAG,SAAS,CAAC;CAC9B,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAGF,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/gen/servora/contrib/kafka/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AAsCd,gDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/servora/contrib/mail/v1/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,GAAG,EAAE,OAAO,GAAG,SAAS,CAAC;IACzB,aAAa,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/gen/servora/contrib/mail/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AA6Bd,gDAAgD"}
|
package/package.json
CHANGED
|
@@ -2,62 +2,22 @@
|
|
|
2
2
|
/* eslint-disable camelcase */
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
|
|
5
|
-
// AuditMode
|
|
6
|
-
// 引入「服务级默认 + 方法级覆盖」机制后,proto3 bool 默认值与「未指定」无法区分;
|
|
7
|
-
// 用 enum 三态可让方法级显式继承(UNSPECIFIED)/ 显式覆盖(DISABLED/ENABLED)语义清晰。
|
|
8
|
-
// 迁移说明:从 v0.x 起替代原 `bool enabled` 字段;旧写法 `enabled: true` 迁移为
|
|
9
|
-
// `mode: AUDIT_MODE_ENABLED`,`enabled: false` 迁移为 `mode: AUDIT_MODE_DISABLED`,
|
|
10
|
-
// 未指定保留为 `AUDIT_MODE_UNSPECIFIED` 表示继承服务级默认。
|
|
5
|
+
// AuditMode controls whether an RPC operation produces a runtime audit event.
|
|
11
6
|
export type AuditMode =
|
|
7
|
+
// UNSPECIFIED inherits the service-level default; treated as DISABLED if no
|
|
8
|
+
// service default is declared.
|
|
12
9
|
| "AUDIT_MODE_UNSPECIFIED"
|
|
10
|
+
// DISABLED suppresses audit events for this operation.
|
|
13
11
|
| "AUDIT_MODE_DISABLED"
|
|
12
|
+
// ENABLED emits a servora.audit.rpc.v1 CloudEvents event for every call.
|
|
14
13
|
| "AUDIT_MODE_ENABLED";
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// 从请求/响应消息的 proto field path 提取(如 "req.id"、"resp.name")。
|
|
21
|
-
fromField?: string;
|
|
22
|
-
// 字面值,直接写入事件扩展属性。
|
|
23
|
-
literal?: servoracloudeventsv1_CloudEvent_CloudEventAttributeValue;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
// The CloudEvent specification defines seven attribute value types.
|
|
27
|
-
export type servoracloudeventsv1_CloudEvent_CloudEventAttributeValue = {
|
|
28
|
-
ceBoolean?: boolean;
|
|
29
|
-
ceInteger?: number;
|
|
30
|
-
ceString?: string;
|
|
31
|
-
ceBytes?: string;
|
|
32
|
-
ceUri?: string;
|
|
33
|
-
ceUriRef?: string;
|
|
34
|
-
ceTimestamp?: wellKnownTimestamp;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
// Encoded using RFC 3339, where generated output will always be Z-normalized
|
|
38
|
-
// and uses 0, 3, 6 or 9 fractional digits.
|
|
39
|
-
// Offsets other than "Z" are also accepted.
|
|
40
|
-
type wellKnownTimestamp = string;
|
|
41
|
-
|
|
42
|
-
// AuditRule 声明一个 RPC 方法的审计规则。
|
|
43
|
-
// 与 CloudEvents 对齐:event_type 和 severity 映射到 CloudEvents type 与扩展属性,
|
|
44
|
-
// extensions 允许声明式地从请求/响应中提取任意扩展属性。
|
|
14
|
+
// AuditRule is the RPC audit on/off switch. It intentionally carries only
|
|
15
|
+
// mode: event type, severity, field extraction and CloudEvents extensions are
|
|
16
|
+
// the responsibility of the event producer (authn, authz, CRUD generator, or
|
|
17
|
+
// business code). Keeping this annotation minimal prevents it from becoming a
|
|
18
|
+
// mixed DSL.
|
|
45
19
|
export type AuditRule = {
|
|
46
|
-
// 是否产生审计事件。UNSPECIFIED 表示沿用服务级默认或框架默认。
|
|
47
20
|
mode: AuditMode | undefined;
|
|
48
|
-
// CloudEvents type 属性值(如 "servora.audit.resource_mutation")。
|
|
49
|
-
eventType: string | undefined;
|
|
50
|
-
// 事件严重级别(如 "info"、"warning"、"critical")。
|
|
51
|
-
// 映射到 CloudEvents 扩展属性 "severity"。
|
|
52
|
-
severity: string | undefined;
|
|
53
|
-
// detail message 的 proto field path(如 "req"),
|
|
54
|
-
// 运行时序列化后作为 CloudEvent data 载荷。留空则不附带详情。
|
|
55
|
-
detailMessageField: string | undefined;
|
|
56
|
-
// 目标 ID 的 proto field path(如 "req.id"、"resp.id")。
|
|
57
|
-
// 由 protoc-gen-servora-audit 生成提取函数,留空则不提取。
|
|
58
|
-
targetIdField: string | undefined;
|
|
59
|
-
// 额外的 CloudEvents 扩展属性映射。
|
|
60
|
-
extensions: ExtensionMapping[] | undefined;
|
|
61
21
|
};
|
|
62
22
|
|
|
63
23
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable camelcase */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// AuthnFailure is the CloudEvents data payload for servora.authn.failure.v1
|
|
6
|
+
// events. All string fields MUST be sanitised — no raw tokens, API keys, or
|
|
7
|
+
// full JWT claims may appear here.
|
|
8
|
+
export type AuthnFailure = {
|
|
9
|
+
// reason is the high-level failure reason (e.g. "AUTHN_FAILED").
|
|
10
|
+
reason: string | undefined;
|
|
11
|
+
// code is the HTTP/gRPC status code (e.g. 401).
|
|
12
|
+
code: number | undefined;
|
|
13
|
+
// message is a sanitised, human-readable failure description.
|
|
14
|
+
message: string | undefined;
|
|
15
|
+
// attempts lists the per-scheme authentication results when Multi dispatch
|
|
16
|
+
// was used.
|
|
17
|
+
attempts: SchemeAttempt[] | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// SchemeAttempt records the outcome of a single authentication scheme within a
|
|
21
|
+
// Multi-dispatcher round.
|
|
22
|
+
export type SchemeAttempt = {
|
|
23
|
+
// scheme is the authenticator name (e.g. "jwt", "apikey", "casdoor").
|
|
24
|
+
scheme: string | undefined;
|
|
25
|
+
// reason is the sanitised failure reason returned by this scheme's backend.
|
|
26
|
+
reason: string | undefined;
|
|
27
|
+
// message is a sanitised description from this scheme's backend.
|
|
28
|
+
message: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// AuthnSuccess is the CloudEvents data payload for servora.authn.success.v1
|
|
32
|
+
// events. Identity fields are intentionally omitted — the authenticated
|
|
33
|
+
// subject is carried in CloudEvents extensions or set by the business layer.
|
|
34
|
+
export type AuthnSuccess = {
|
|
35
|
+
// scheme is the authentication scheme that succeeded (e.g. "jwt", "apikey").
|
|
36
|
+
scheme: string | undefined;
|
|
37
|
+
// message is an optional human-readable note.
|
|
38
|
+
message: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
// @@protoc_insertion_point(typescript-http-eof)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable camelcase */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// AuthzDecision is the CloudEvents data payload shared by all three authz
|
|
6
|
+
// audit event types:
|
|
7
|
+
// - servora.authz.allowed.v1
|
|
8
|
+
// - servora.authz.denied.v1
|
|
9
|
+
// - servora.authz.error.v1
|
|
10
|
+
// The Decision enum distinguishes outcomes so consumers can branch on data
|
|
11
|
+
// without re-parsing the CloudEvents type attribute.
|
|
12
|
+
export type AuthzDecision = {
|
|
13
|
+
decision: AuthzDecision_Decision | undefined;
|
|
14
|
+
// action is the authz action being checked (e.g. "read", "delete").
|
|
15
|
+
action: string | undefined;
|
|
16
|
+
// resource_type is the resource type from the authz rule (e.g. "document").
|
|
17
|
+
resourceType: string | undefined;
|
|
18
|
+
// resource_id is the resolved resource identifier.
|
|
19
|
+
resourceId: string | undefined;
|
|
20
|
+
// backend identifies the authorizer implementation (e.g. "openfga", "casbin").
|
|
21
|
+
backend: string | undefined;
|
|
22
|
+
// reason is an optional Kratos-style reason code (e.g. "AUTHZ_DENIED").
|
|
23
|
+
reason: string | undefined;
|
|
24
|
+
// code is the HTTP/gRPC status code.
|
|
25
|
+
code: number | undefined;
|
|
26
|
+
// message is a sanitised description.
|
|
27
|
+
message: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Decision enumerates the three possible authz outcomes.
|
|
31
|
+
export type AuthzDecision_Decision =
|
|
32
|
+
| "DECISION_UNSPECIFIED"
|
|
33
|
+
// ALLOWED — authorizer.Check returned (true, nil).
|
|
34
|
+
| "DECISION_ALLOWED"
|
|
35
|
+
// DENIED — authorizer.Check returned (false, nil): policy explicitly denied.
|
|
36
|
+
| "DECISION_DENIED"
|
|
37
|
+
// ERROR — authorizer.Check returned (_, err != nil): check itself failed.
|
|
38
|
+
| "DECISION_ERROR";
|
|
39
|
+
|
|
40
|
+
// @@protoc_insertion_point(typescript-http-eof)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable camelcase */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// TupleMutation is the CloudEvents data payload for
|
|
6
|
+
// servora.authz.openfga.tuple_mutation.v1 events. It records OpenFGA tuple
|
|
7
|
+
// write or delete operations. The CloudEvents subject MUST be set to
|
|
8
|
+
// "openfga/store/{store_id}"; individual tuples are listed here in data.
|
|
9
|
+
export type TupleMutation = {
|
|
10
|
+
operation: TupleMutation_Operation | undefined;
|
|
11
|
+
tuples: Tuple[] | undefined;
|
|
12
|
+
storeId: string | undefined;
|
|
13
|
+
modelId: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
// Operation identifies whether tuples were written or deleted.
|
|
17
|
+
export type TupleMutation_Operation =
|
|
18
|
+
| "OPERATION_UNSPECIFIED"
|
|
19
|
+
| "OPERATION_WRITE"
|
|
20
|
+
| "OPERATION_DELETE";
|
|
21
|
+
// Tuple represents a single OpenFGA relationship tuple.
|
|
22
|
+
export type Tuple = {
|
|
23
|
+
user: string | undefined;
|
|
24
|
+
relation: string | undefined;
|
|
25
|
+
object: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
// @@protoc_insertion_point(typescript-http-eof)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/gen/servora/infra/db/clickhouse/v1/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,eAAe,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC/C,GAAG,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC1C,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/servora/infra/kafka/v1/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC5C,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC5C,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,GAAG,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC1C,IAAI,EAAE,UAAU,GAAG,SAAS,CAAC;CAC9B,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAGF,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/gen/servora/infra/kafka/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AAsCd,gDAAgD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/servora/infra/mail/v1/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,GAAG,EAAE,OAAO,GAAG,SAAS,CAAC;IACzB,aAAa,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/gen/servora/infra/mail/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AA6Bd,gDAAgD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/servora/infra/redis/v1/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC7C,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/gen/servora/infra/redis/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,8BAA8B;AAC9B,cAAc;;AAoBd,gDAAgD"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|