feat: import upstream ZITADEL Login V2 v4.20.4 source workspace

This commit is contained in:
Vib Tools committed 2026-11-22 04:15:54 -08:00
1 parent eadd0e558b
commit 4404849fc4
644 files changed
+153201 -10

No files matched your search

@@ -0,0 +1,3 @@
cjs
es
types
@@ -0,0 +1,6 @@
node_modules
.nx
*.log
.DS_Store
buf.gen.yaml
nx.json
@@ -0,0 +1,3 @@
!cjs
!es
!types
@@ -0,0 +1,47 @@
# @zitadel/proto
## 1.2.0
### Minor Changes
- 62ad388: revert CJS support
## 1.1.0
### Minor Changes
- 9692297: add CJS and ESM support
## 1.0.4
### Patch Changes
- 97b0332: bind @zitadel/proto version to zitadel tag
## 1.0.3
### Patch Changes
- 90fbdd1: use node16/nodenext module resolution
## 1.0.2
### Patch Changes
- include validate, google and protoc-gen-openapiv2
## 1.0.1
### Patch Changes
- README updates
## 1.0.0
### Major Changes
- 32e1199: Initial Release
### Minor Changes
- f32ab7f: Initial release
@@ -0,0 +1,35 @@
# ZITADEL Proto
This package provides the Protocol Buffers (proto) definitions used by ZITADEL projects. It includes the proto files and generated code for interacting with ZITADEL's gRPC APIs.
## Installation
To install the package, use npm or yarn:
```sh
npm install @zitadel/proto
```
or
```sh
yarn add @zitadel/proto
```
## Usage
To use the proto definitions in your project, import the generated code:
```ts
import { Organization } from "@zitadel/proto/zitadel/org/v2/org_pb";
const org: Organization | null = await getDefaultOrg();
```
## Documentation
For detailed documentation and API references, please visit the [ZITADEL documentation](https://zitadel.com/docs).
## Contributing
Contributions are welcome! Please read the contributing guidelines before getting started.
@@ -0,0 +1,26 @@
version: v2
managed:
enabled: true
plugins:
- local: protoc-gen-es
out: es
include_imports: true
opt:
- target=js
- json_types=true
- import_extension=js
- local: protoc-gen-es
out: cjs
include_imports: true
opt:
- target=js
- json_types=true
- import_extension=js
- js_import_style=legacy_commonjs
- local: protoc-gen-es
out: types
include_imports: true
opt:
- target=dts
- json_types=true
- import_extension=js
@@ -0,0 +1,88 @@
{
"name": "@zitadel/proto",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "./cjs/index.js",
"types": "./types/index.d.ts",
"files": [
"cjs/**",
"es/**",
"types/**",
"zitadel/**",
"google/**",
"validate/**",
"protoc-gen-openapiv2/**"
],
"exports": {
"./zitadel/*": {
"types": "./types/zitadel/*.d.ts",
"import": "./es/zitadel/*.js",
"require": "./cjs/zitadel/*.js"
},
"./zitadel/*.js": {
"types": "./types/zitadel/*.d.ts",
"import": "./es/zitadel/*.js",
"require": "./cjs/zitadel/*.js"
},
"./validate/*": {
"types": "./types/validate/*.d.ts",
"import": "./es/validate/*.js",
"require": "./cjs/validate/*.js"
},
"./validate/*.js": {
"types": "./types/validate/*.d.ts",
"import": "./es/validate/*.js",
"require": "./cjs/validate/*.js"
},
"./google/*": {
"types": "./types/google/*.d.ts",
"import": "./es/google/*.js",
"require": "./cjs/google/*.js"
},
"./google/*.js": {
"types": "./types/google/*.d.ts",
"import": "./es/google/*.js",
"require": "./cjs/google/*.js"
},
"./protoc-gen-openapiv2/*": {
"types": "./types/protoc-gen-openapiv2/*.d.ts",
"import": "./es/protoc-gen-openapiv2/*.js",
"require": "./cjs/protoc-gen-openapiv2/*.js"
},
"./protoc-gen-openapiv2/*.js": {
"types": "./types/protoc-gen-openapiv2/*.d.ts",
"import": "./es/protoc-gen-openapiv2/*.js",
"require": "./cjs/protoc-gen-openapiv2/*.js"
}
},
"typesVersions": {
"*": {
"zitadel/*": [
"./types/zitadel/*"
],
"validate/*": [
"./types/validate/*"
],
"google/*": [
"./types/google/*"
],
"protoc-gen-openapiv2/*": [
"./types/protoc-gen-openapiv2/*"
]
}
},
"sideEffects": false,
"scripts": {
"generate": "pnpm exec buf generate ../../proto",
"clean": "rm -rf zitadel node_modules google protoc-gen-openapiv2 validate cjs types es"
},
"dependencies": {
"@bufbuild/protobuf": "^2.12.0"
},
"devDependencies": {
"@bufbuild/protoc-gen-es": "^2.12.0"
}
}
@@ -0,0 +1,23 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"targets": {
"generate": {
"executor": "nx:run-commands",
"cache": true,
"options": {
"command": "pnpm exec buf generate ../../proto",
"cwd": "packages/zitadel-proto"
},
"inputs": [
"default",
"{workspaceRoot}/pnpm-lock.yaml",
"{workspaceRoot}/proto/**/*"
],
"outputs": [
"{projectRoot}/cjs",
"{projectRoot}/es",
"{projectRoot}/types"
]
}
}
}