@bite-ninja/zenu-sdk 0.11.3 → 0.11.5

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.
@@ -0,0 +1,79 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import type { CallContext, CallOptions } from "nice-grpc-common";
3
+ /** Parameters for a user invitation notification. */
4
+ export interface UserInvitationNotification {
5
+ /** The unique identifier for the invitation. */
6
+ invitationId: string;
7
+ /** The name of the organization the user is being invited to. */
8
+ organizationName: string;
9
+ /** The given (first) name of the person sending the invitation. */
10
+ senderGivenName: string;
11
+ }
12
+ /**
13
+ * A single notification to be sent.
14
+ *
15
+ * The oneof field determines both the type and parameters of the notification.
16
+ * To add a new notification type, define a new parameter message and add it as
17
+ * a variant here.
18
+ */
19
+ export interface Notification {
20
+ /** Notify a user that they have been invited to an organization. */
21
+ userInvitation?: UserInvitationNotification | undefined;
22
+ }
23
+ /** Request to send one or more notifications. */
24
+ export interface SendNotificationRequest {
25
+ /** The notifications to send. */
26
+ notifications: Notification[];
27
+ }
28
+ /** Response after sending notifications. */
29
+ export interface SendNotificationResponse {
30
+ }
31
+ export declare const UserInvitationNotification: MessageFns<UserInvitationNotification>;
32
+ export declare const Notification: MessageFns<Notification>;
33
+ export declare const SendNotificationRequest: MessageFns<SendNotificationRequest>;
34
+ export declare const SendNotificationResponse: MessageFns<SendNotificationResponse>;
35
+ /** Service for sending notifications to users. */
36
+ export type NotificationsServiceDefinition = typeof NotificationsServiceDefinition;
37
+ export declare const NotificationsServiceDefinition: {
38
+ readonly name: "NotificationsService";
39
+ readonly fullName: "zenu.notifications.v1.NotificationsService";
40
+ readonly methods: {
41
+ /** Sends one or more notifications. */
42
+ readonly sendNotification: {
43
+ readonly name: "SendNotification";
44
+ readonly requestType: MessageFns<SendNotificationRequest>;
45
+ readonly requestStream: false;
46
+ readonly responseType: MessageFns<SendNotificationResponse>;
47
+ readonly responseStream: false;
48
+ readonly options: {};
49
+ };
50
+ };
51
+ };
52
+ export interface NotificationsServiceImplementation<CallContextExt = {}> {
53
+ /** Sends one or more notifications. */
54
+ sendNotification(request: SendNotificationRequest, context: CallContext & CallContextExt): Promise<DeepPartial<SendNotificationResponse>>;
55
+ }
56
+ export interface NotificationsServiceClient<CallOptionsExt = {}> {
57
+ /** Sends one or more notifications. */
58
+ sendNotification(request: DeepPartial<SendNotificationRequest>, options?: CallOptions & CallOptionsExt): Promise<SendNotificationResponse>;
59
+ }
60
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
61
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
62
+ [K in keyof T]?: DeepPartial<T[K]>;
63
+ } : Partial<T>;
64
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
65
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
66
+ [K in keyof P]: Exact<P[K], I[K]>;
67
+ } & {
68
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
69
+ };
70
+ interface MessageFns<T> {
71
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
72
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
73
+ fromJSON(object: any): T;
74
+ toJSON(message: T): unknown;
75
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
76
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
77
+ }
78
+ export {};
79
+ //# sourceMappingURL=notifications_service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications_service.d.ts","sourceRoot":"","sources":["../../../../../src/gen/zenu/notifications/v1/notifications_service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEjE,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