@wenlarge/communication 1.1.13 → 1.1.16

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/proto/auth.proto CHANGED
@@ -1,98 +1,98 @@
1
- syntax = "proto3";
2
-
3
- import "google/protobuf/empty.proto";
4
-
5
- package auth;
6
-
7
- service AuthService {
8
- rpc Login (LoginRequest) returns (LoginResponse);
9
- rpc Register (RegisterRequest) returns (google.protobuf.Empty);
10
- rpc GetMe (GetMeRequest) returns (GetMeResponse);
11
- rpc InviteToCompany (InviteToCompanyRequest) returns (InviteToCompanyResponse);
12
- rpc UpdateInviteStatus (UpdateInviteStatusRequest) returns (UpdateInviteStatusResponse);
13
- rpc GetCompanyUsers (GetCompanyUsersRequest) returns (GetCompanyUsersResponse);
14
- rpc RemoveUserFromCompany (RemoveUserFromCompanyRequest) returns (google.protobuf.Empty);
15
- }
16
-
17
- message LoginRequest {
18
- string email = 1;
19
- string password = 2;
20
- }
21
-
22
- message LoginResponse {
23
- string jwt = 1;
24
- string expiresIn = 2;
25
- }
26
-
27
- message RegisterRequest {
28
- string name = 1;
29
- string email = 2;
30
- string password = 3;
31
- }
32
-
33
- message GetMeRequest {
34
- string jwt = 1;
35
- }
36
-
37
- message Company {
38
- string id = 1;
39
- string name = 2;
40
- string createdAt = 3;
41
- string updatedAt = 4;
42
- }
43
-
44
- message CompanyUser {
45
- Company company = 1;
46
- }
47
-
48
- message InviteToCompanyRequest {
49
- string companyId = 1;
50
- string email = 2;
51
- }
52
-
53
- message InviteToCompanyResponse{
54
- string id = 1;
55
- string companyId = 2;
56
- string email = 3;
57
- }
58
-
59
- message UpdateInviteStatusRequest{
60
- string inviteId = 1;
61
- string userId =2;
62
- string status = 3;
63
- }
64
-
65
- message UpdateInviteStatusResponse{
66
- string id = 1 ;
67
- string status = 2;
68
- }
69
-
70
- message GetMeResponse {
71
- string id = 1;
72
- string name = 2;
73
- string email = 3;
74
- string createdAt = 4;
75
- string updatedAt = 5;
76
- repeated CompanyUser companyUsersOnUser = 6;
77
- }
78
-
79
- message GetCompanyUsersRequest {
80
- string companyId = 1;
81
- }
82
-
83
- message CompanyUserDetail {
84
- string userId = 1;
85
- string userName = 2;
86
- string userEmail = 3;
87
- string joinedAt = 4;
88
- bool isOwner = 5;
89
- }
90
-
91
- message GetCompanyUsersResponse {
92
- repeated CompanyUserDetail users = 1;
93
- }
94
-
95
- message RemoveUserFromCompanyRequest {
96
- string companyId = 1;
97
- string userId = 2;
1
+ syntax = "proto3";
2
+
3
+ import "google/protobuf/empty.proto";
4
+
5
+ package auth;
6
+
7
+ service AuthService {
8
+ rpc Login (LoginRequest) returns (LoginResponse);
9
+ rpc Register (RegisterRequest) returns (google.protobuf.Empty);
10
+ rpc GetMe (GetMeRequest) returns (GetMeResponse);
11
+ rpc InviteToCompany (InviteToCompanyRequest) returns (InviteToCompanyResponse);
12
+ rpc UpdateInviteStatus (UpdateInviteStatusRequest) returns (UpdateInviteStatusResponse);
13
+ rpc GetCompanyUsers (GetCompanyUsersRequest) returns (GetCompanyUsersResponse);
14
+ rpc RemoveUserFromCompany (RemoveUserFromCompanyRequest) returns (google.protobuf.Empty);
15
+ }
16
+
17
+ message LoginRequest {
18
+ string email = 1;
19
+ string password = 2;
20
+ }
21
+
22
+ message LoginResponse {
23
+ string jwt = 1;
24
+ string expiresIn = 2;
25
+ }
26
+
27
+ message RegisterRequest {
28
+ string name = 1;
29
+ string email = 2;
30
+ string password = 3;
31
+ }
32
+
33
+ message GetMeRequest {
34
+ string jwt = 1;
35
+ }
36
+
37
+ message Company {
38
+ string id = 1;
39
+ string name = 2;
40
+ string createdAt = 3;
41
+ string updatedAt = 4;
42
+ }
43
+
44
+ message CompanyUser {
45
+ Company company = 1;
46
+ }
47
+
48
+ message InviteToCompanyRequest {
49
+ string companyId = 1;
50
+ string email = 2;
51
+ }
52
+
53
+ message InviteToCompanyResponse{
54
+ string id = 1;
55
+ string companyId = 2;
56
+ string email = 3;
57
+ }
58
+
59
+ message UpdateInviteStatusRequest{
60
+ string inviteId = 1;
61
+ string userId =2;
62
+ string status = 3;
63
+ }
64
+
65
+ message UpdateInviteStatusResponse{
66
+ string id = 1 ;
67
+ string status = 2;
68
+ }
69
+
70
+ message GetMeResponse {
71
+ string id = 1;
72
+ string name = 2;
73
+ string email = 3;
74
+ string createdAt = 4;
75
+ string updatedAt = 5;
76
+ repeated CompanyUser companyUsersOnUser = 6;
77
+ }
78
+
79
+ message GetCompanyUsersRequest {
80
+ string companyId = 1;
81
+ }
82
+
83
+ message CompanyUserDetail {
84
+ string userId = 1;
85
+ string userName = 2;
86
+ string userEmail = 3;
87
+ string joinedAt = 4;
88
+ bool isOwner = 5;
89
+ }
90
+
91
+ message GetCompanyUsersResponse {
92
+ repeated CompanyUserDetail users = 1;
93
+ }
94
+
95
+ message RemoveUserFromCompanyRequest {
96
+ string companyId = 1;
97
+ string userId = 2;
98
98
  }
@@ -1,20 +1,20 @@
1
- syntax = "proto3";
2
-
3
- package executor_core;
4
- import "google/protobuf/struct.proto";
5
-
6
- message ExecuteNodeRequest {
7
- string nodeTypeId = 1;
8
- string nodeId = 2;
9
- google.protobuf.Struct config = 3;
10
- google.protobuf.Struct inputSchema = 4;
11
- }
12
-
13
- message ExecuteNodeResponse {
14
- google.protobuf.Struct output = 1;
15
- }
16
-
17
- service CoreExecutionService {
18
- rpc ExecuteNode (ExecuteNodeRequest) returns (ExecuteNodeResponse);
19
-
20
- }
1
+ syntax = "proto3";
2
+
3
+ package executor_core;
4
+ import "google/protobuf/struct.proto";
5
+
6
+ message ExecuteNodeRequest {
7
+ string nodeTypeId = 1;
8
+ string nodeId = 2;
9
+ google.protobuf.Struct config = 3;
10
+ google.protobuf.Struct inputSchema = 4;
11
+ }
12
+
13
+ message ExecuteNodeResponse {
14
+ google.protobuf.Struct output = 1;
15
+ }
16
+
17
+ service CoreExecutionService {
18
+ rpc ExecuteNode (ExecuteNodeRequest) returns (ExecuteNodeResponse);
19
+
20
+ }
@@ -0,0 +1,22 @@
1
+ syntax = "proto3";
2
+
3
+ import "google/protobuf/empty.proto";
4
+
5
+ package notification;
6
+
7
+ service NotificationService {
8
+ rpc AddMail (AddMailRequest) returns (google.protobuf.Empty);
9
+ rpc AddSms (AddSmsRequest) returns (google.protobuf.Empty);
10
+ }
11
+
12
+ message AddMailRequest {
13
+ string to = 1;
14
+ string subject = 2;
15
+ string text = 3;
16
+ string html = 4;
17
+ }
18
+
19
+ message AddSmsRequest {
20
+ string to = 1;
21
+ string body = 2;
22
+ }
@@ -1,153 +1,153 @@
1
- syntax = "proto3";
2
-
3
- import "google/protobuf/empty.proto";
4
-
5
- package project;
6
-
7
- service ProjectService {
8
- rpc Create (CreateProjectRequest) returns (ProjectResponse);
9
- rpc FindMany (FindManyRequest) returns (FindManyResponse);
10
- rpc Delete (DeleteProjectRequest) returns (google.protobuf.Empty);
11
- rpc Update (UpdateProjectRequest) returns (ProjectResponse);
12
- rpc FindFirst (FindFirstRequest) returns (FindFirstResponse);
13
- }
14
-
15
- service EnvironmentService {
16
- rpc Create (CreateEnvironmentRequest) returns (EnvironmentResponse);
17
- rpc Update (UpdateEnvironmentRequest) returns (EnvironmentResponse);
18
- rpc Delete (DeleteEnvironmentRequest) returns (google.protobuf.Empty);
19
- rpc FindMany (FindManyEnvironmentsRequest) returns (FindManyEnvironmentsResponse);
20
- rpc FindFirst (FindFirstEnvironmentRequest) returns (FindFirstEnvironmentResponse);
21
- }
22
-
23
- service EnvironmentVariableService {
24
- rpc Create (CreateEnvironmentVariableRequest) returns (EnvironmentVariableResponse);
25
- rpc Update (UpdateEnvironmentVariableRequest) returns (EnvironmentVariableResponse);
26
- rpc Delete (DeleteEnvironmentVariableRequest) returns (google.protobuf.Empty);
27
- rpc FindMany (FindManyEnvironmentVariablesRequest) returns (FindManyEnvironmentVariablesResponse);
28
- }
29
-
30
- message CreateProjectRequest {
31
- string name = 1;
32
- }
33
-
34
- message ProjectResponse {
35
- string id = 1;
36
- string name = 2;
37
- string companyId = 3;
38
- string createdAt = 4;
39
- string updatedAt = 5;
40
- }
41
-
42
- message DeleteProjectRequest{
43
- string id = 1;
44
- }
45
-
46
- message UpdateProjectRequest{
47
- string id = 1;
48
- string name = 2;
49
- }
50
-
51
- message FindManyRequest{
52
- int32 skip = 1;
53
- int32 take = 2;
54
- }
55
-
56
- message FindManyResponse{
57
- repeated ProjectResponse data = 1;
58
- int32 total = 2;
59
- }
60
-
61
- message FindFirstRequest{
62
- string id = 1;
63
- }
64
-
65
- message FindFirstResponse{
66
- ProjectResponse project = 1;
67
- }
68
-
69
- message CreateEnvironmentRequest {
70
- string projectId = 1;
71
- string name = 2;
72
- bool isDefault = 3;
73
- }
74
-
75
- message UpdateEnvironmentRequest {
76
- string id = 1;
77
- string name = 2;
78
- bool isDefault = 3;
79
- }
80
-
81
- message DeleteEnvironmentRequest {
82
- string id = 1;
83
- }
84
-
85
- message FindManyEnvironmentsRequest {
86
- string projectId = 1;
87
- int32 skip = 2;
88
- int32 take = 3;
89
- }
90
-
91
- message FindManyEnvironmentsResponse {
92
- repeated EnvironmentResponse data = 1;
93
- int32 total = 2;
94
- }
95
-
96
- message FindFirstEnvironmentRequest {
97
- string id = 1;
98
- }
99
-
100
- message FindFirstEnvironmentResponse {
101
- EnvironmentResponse environment = 1;
102
- }
103
-
104
- message EnvironmentResponse {
105
- string id = 1;
106
- string companyId = 2;
107
- string projectId = 3;
108
- string name = 4;
109
- bool isDefault = 5;
110
- string createdAt = 6;
111
- string updatedAt = 7;
112
- }
113
-
114
- message CreateEnvironmentVariableRequest {
115
- string environmentId = 1;
116
- string key = 2;
117
- string value = 3;
118
- string nodeScope = 4;
119
- }
120
-
121
- message UpdateEnvironmentVariableRequest {
122
- string id = 1;
123
- string key = 2;
124
- string value = 3;
125
- string nodeScope = 4;
126
- }
127
-
128
- message DeleteEnvironmentVariableRequest {
129
- string id = 1;
130
- }
131
-
132
- message FindManyEnvironmentVariablesRequest {
133
- string environmentId = 1;
134
- int32 skip = 2;
135
- int32 take = 3;
136
- }
137
-
138
- message FindManyEnvironmentVariablesResponse {
139
- repeated EnvironmentVariableResponse data = 1;
140
- int32 total = 2;
141
- }
142
-
143
- message EnvironmentVariableResponse {
144
- string id = 1;
145
- string companyId = 2;
146
- string projectId = 3;
147
- string environmentId = 4;
148
- string key = 5;
149
- string value = 6;
150
- string nodeScope = 7;
151
- string createdAt = 8;
152
- string updatedAt = 9;
1
+ syntax = "proto3";
2
+
3
+ import "google/protobuf/empty.proto";
4
+
5
+ package project;
6
+
7
+ service ProjectService {
8
+ rpc Create (CreateProjectRequest) returns (ProjectResponse);
9
+ rpc FindMany (FindManyRequest) returns (FindManyResponse);
10
+ rpc Delete (DeleteProjectRequest) returns (google.protobuf.Empty);
11
+ rpc Update (UpdateProjectRequest) returns (ProjectResponse);
12
+ rpc FindFirst (FindFirstRequest) returns (FindFirstResponse);
13
+ }
14
+
15
+ service EnvironmentService {
16
+ rpc Create (CreateEnvironmentRequest) returns (EnvironmentResponse);
17
+ rpc Update (UpdateEnvironmentRequest) returns (EnvironmentResponse);
18
+ rpc Delete (DeleteEnvironmentRequest) returns (google.protobuf.Empty);
19
+ rpc FindMany (FindManyEnvironmentsRequest) returns (FindManyEnvironmentsResponse);
20
+ rpc FindFirst (FindFirstEnvironmentRequest) returns (FindFirstEnvironmentResponse);
21
+ }
22
+
23
+ service EnvironmentVariableService {
24
+ rpc Create (CreateEnvironmentVariableRequest) returns (EnvironmentVariableResponse);
25
+ rpc Update (UpdateEnvironmentVariableRequest) returns (EnvironmentVariableResponse);
26
+ rpc Delete (DeleteEnvironmentVariableRequest) returns (google.protobuf.Empty);
27
+ rpc FindMany (FindManyEnvironmentVariablesRequest) returns (FindManyEnvironmentVariablesResponse);
28
+ }
29
+
30
+ message CreateProjectRequest {
31
+ string name = 1;
32
+ }
33
+
34
+ message ProjectResponse {
35
+ string id = 1;
36
+ string name = 2;
37
+ string companyId = 3;
38
+ string createdAt = 4;
39
+ string updatedAt = 5;
40
+ }
41
+
42
+ message DeleteProjectRequest{
43
+ string id = 1;
44
+ }
45
+
46
+ message UpdateProjectRequest{
47
+ string id = 1;
48
+ string name = 2;
49
+ }
50
+
51
+ message FindManyRequest{
52
+ int32 skip = 1;
53
+ int32 take = 2;
54
+ }
55
+
56
+ message FindManyResponse{
57
+ repeated ProjectResponse data = 1;
58
+ int32 total = 2;
59
+ }
60
+
61
+ message FindFirstRequest{
62
+ string id = 1;
63
+ }
64
+
65
+ message FindFirstResponse{
66
+ ProjectResponse project = 1;
67
+ }
68
+
69
+ message CreateEnvironmentRequest {
70
+ string projectId = 1;
71
+ string name = 2;
72
+ bool isDefault = 3;
73
+ }
74
+
75
+ message UpdateEnvironmentRequest {
76
+ string id = 1;
77
+ string name = 2;
78
+ bool isDefault = 3;
79
+ }
80
+
81
+ message DeleteEnvironmentRequest {
82
+ string id = 1;
83
+ }
84
+
85
+ message FindManyEnvironmentsRequest {
86
+ string projectId = 1;
87
+ int32 skip = 2;
88
+ int32 take = 3;
89
+ }
90
+
91
+ message FindManyEnvironmentsResponse {
92
+ repeated EnvironmentResponse data = 1;
93
+ int32 total = 2;
94
+ }
95
+
96
+ message FindFirstEnvironmentRequest {
97
+ string id = 1;
98
+ }
99
+
100
+ message FindFirstEnvironmentResponse {
101
+ EnvironmentResponse environment = 1;
102
+ }
103
+
104
+ message EnvironmentResponse {
105
+ string id = 1;
106
+ string companyId = 2;
107
+ string projectId = 3;
108
+ string name = 4;
109
+ bool isDefault = 5;
110
+ string createdAt = 6;
111
+ string updatedAt = 7;
112
+ }
113
+
114
+ message CreateEnvironmentVariableRequest {
115
+ string environmentId = 1;
116
+ string key = 2;
117
+ string value = 3;
118
+ string nodeScope = 4;
119
+ }
120
+
121
+ message UpdateEnvironmentVariableRequest {
122
+ string id = 1;
123
+ string key = 2;
124
+ string value = 3;
125
+ string nodeScope = 4;
126
+ }
127
+
128
+ message DeleteEnvironmentVariableRequest {
129
+ string id = 1;
130
+ }
131
+
132
+ message FindManyEnvironmentVariablesRequest {
133
+ string environmentId = 1;
134
+ int32 skip = 2;
135
+ int32 take = 3;
136
+ }
137
+
138
+ message FindManyEnvironmentVariablesResponse {
139
+ repeated EnvironmentVariableResponse data = 1;
140
+ int32 total = 2;
141
+ }
142
+
143
+ message EnvironmentVariableResponse {
144
+ string id = 1;
145
+ string companyId = 2;
146
+ string projectId = 3;
147
+ string environmentId = 4;
148
+ string key = 5;
149
+ string value = 6;
150
+ string nodeScope = 7;
151
+ string createdAt = 8;
152
+ string updatedAt = 9;
153
153
  }