🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@pidgr/proto

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pidgr/proto - npm Package Compare versions

Comparing version
0.84.0
to
0.85.0
+140
pidgr/v1/authorization_pb.ts
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/authorization.proto (package pidgr.v1, syntax proto3)
/* eslint-disable */
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
import type { Permission } from "./common_pb";
import { file_pidgr_v1_common } from "./common_pb";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file pidgr/v1/authorization.proto.
*/
export const file_pidgr_v1_authorization: GenFile = /*@__PURE__*/
fileDesc("ChxwaWRnci92MS9hdXRob3JpemF0aW9uLnByb3RvEghwaWRnci52MSJ2CiJSZXNvbHZlUHJpbmNpcGFsUGVybWlzc2lvbnNSZXF1ZXN0Eg8KB3N1YmplY3QYASABKAkSDgoGb3JnX2lkGAIgASgJEi8KDnByaW5jaXBhbF90eXBlGAMgASgOMhcucGlkZ3IudjEuUHJpbmNpcGFsVHlwZSJQCiNSZXNvbHZlUHJpbmNpcGFsUGVybWlzc2lvbnNSZXNwb25zZRIpCgtwZXJtaXNzaW9ucxgBIAMoDjIULnBpZGdyLnYxLlBlcm1pc3Npb24qegoNUHJpbmNpcGFsVHlwZRIeChpQUklOQ0lQQUxfVFlQRV9VTlNQRUNJRklFRBAAEhcKE1BSSU5DSVBBTF9UWVBFX1VTRVIQARIWChJQUklOQ0lQQUxfVFlQRV9PUkcQAhIYChRQUklOQ0lQQUxfVFlQRV9TVEFGRhADMpIBChRBdXRob3JpemF0aW9uU2VydmljZRJ6ChtSZXNvbHZlUHJpbmNpcGFsUGVybWlzc2lvbnMSLC5waWRnci52MS5SZXNvbHZlUHJpbmNpcGFsUGVybWlzc2lvbnNSZXF1ZXN0Gi0ucGlkZ3IudjEuUmVzb2x2ZVByaW5jaXBhbFBlcm1pc3Npb25zUmVzcG9uc2VCNlo0Z2l0aHViLmNvbS9waWRnci9waWRnci1wcm90by9nZW4vZ28vcGlkZ3IvdjE7cGlkZ3J2MWIGcHJvdG8z", [file_pidgr_v1_common]);
/**
* Request to resolve the effective permission set for one principal.
*
* @generated from message pidgr.v1.ResolvePrincipalPermissionsRequest
*/
export type ResolvePrincipalPermissionsRequest = Message<"pidgr.v1.ResolvePrincipalPermissionsRequest"> & {
/**
* UUID of the subject whose permissions are being resolved (user or
* principal identifier).
*
* @generated from field: string subject = 1;
*/
subject: string;
/**
* Organization the resolution is scoped to.
*
* @generated from field: string org_id = 2;
*/
orgId: string;
/**
* Kind of principal identified by `subject`.
*
* @generated from field: pidgr.v1.PrincipalType principal_type = 3;
*/
principalType: PrincipalType;
};
/**
* Describes the message pidgr.v1.ResolvePrincipalPermissionsRequest.
* Use `create(ResolvePrincipalPermissionsRequestSchema)` to create a new message.
*/
export const ResolvePrincipalPermissionsRequestSchema: GenMessage<ResolvePrincipalPermissionsRequest> = /*@__PURE__*/
messageDesc(file_pidgr_v1_authorization, 0);
/**
* Effective permissions resolved for the requested principal.
*
* @generated from message pidgr.v1.ResolvePrincipalPermissionsResponse
*/
export type ResolvePrincipalPermissionsResponse = Message<"pidgr.v1.ResolvePrincipalPermissionsResponse"> & {
/**
* Flattened, deduplicated set of permissions granted to the principal in
* the requested organization. Empty when the principal has no grants.
*
* @generated from field: repeated pidgr.v1.Permission permissions = 1;
*/
permissions: Permission[];
};
/**
* Describes the message pidgr.v1.ResolvePrincipalPermissionsResponse.
* Use `create(ResolvePrincipalPermissionsResponseSchema)` to create a new message.
*/
export const ResolvePrincipalPermissionsResponseSchema: GenMessage<ResolvePrincipalPermissionsResponse> = /*@__PURE__*/
messageDesc(file_pidgr_v1_authorization, 1);
/**
* Kind of principal whose permissions are being resolved.
*
* @generated from enum pidgr.v1.PrincipalType
*/
export enum PrincipalType {
/**
* @generated from enum value: PRINCIPAL_TYPE_UNSPECIFIED = 0;
*/
UNSPECIFIED = 0,
/**
* An end user identified by their user UUID, scoped to one organization.
*
* @generated from enum value: PRINCIPAL_TYPE_USER = 1;
*/
USER = 1,
/**
* An organization acting as its own principal (e.g. a service identity
* operating on behalf of the whole org rather than a member).
*
* @generated from enum value: PRINCIPAL_TYPE_ORG = 2;
*/
ORG = 2,
/**
* A platform staff principal whose permissions derive from a role within
* the ORG_TYPE_STAFF organization.
*
* @generated from enum value: PRINCIPAL_TYPE_STAFF = 3;
*/
STAFF = 3,
}
/**
* Describes the enum pidgr.v1.PrincipalType.
*/
export const PrincipalTypeSchema: GenEnum<PrincipalType> = /*@__PURE__*/
enumDesc(file_pidgr_v1_authorization, 0);
/**
* AuthorizationService resolves the effective permission set for a principal
* so a resource server can make authorization decisions without owning the
* role and permission data itself.
*
* AUTH: INTERNAL service-to-service only. This service is served by the core
* API and called by other backend services. It MUST NOT be exposed on the
* public ingress to JWT-authenticated end-user clients.
*
* @generated from service pidgr.v1.AuthorizationService
*/
export const AuthorizationService: GenService<{
/**
* Resolve the effective permissions for one (subject, org, principal type).
*
* @generated from rpc pidgr.v1.AuthorizationService.ResolvePrincipalPermissions
*/
resolvePrincipalPermissions: {
methodKind: "unary";
input: typeof ResolvePrincipalPermissionsRequestSchema;
output: typeof ResolvePrincipalPermissionsResponseSchema;
},
}> = /*@__PURE__*/
serviceDesc(file_pidgr_v1_authorization, 0);
+1
-1
{
"name": "@pidgr/proto",
"version": "0.84.0",
"version": "0.85.0",
"description": "TypeScript protobuf and gRPC client stubs for the Pidgr internal communications platform",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/action.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/api_key.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/audit.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/campaign.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/channel_events.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/common.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/device.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/group.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/heatmap.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/inbox.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/insights.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/integrations.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/integrations_service.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/invite_link.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/member.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/org_security_keys_service.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/organization.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/privacy.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/render.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/replay.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/role.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/sso.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/team.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/template.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/token.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */

@@ -1,2 +0,2 @@

// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts"
// @generated from file pidgr/v1/user.proto (package pidgr.v1, syntax proto3)

@@ -3,0 +3,0 @@ /* eslint-disable */