@scalekit-sdk/node 2.2.0 → 2.2.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.
Files changed (62) hide show
  1. package/{reference.md → REFERENCE.md} +530 -77
  2. package/lib/core.js +1 -1
  3. package/package.json +9 -3
  4. package/.github/dependabot.yml +0 -10
  5. package/.nvmrc +0 -1
  6. package/buf.gen.yaml +0 -20
  7. package/jest.config.js +0 -15
  8. package/src/auth.ts +0 -99
  9. package/src/connect.ts +0 -32
  10. package/src/connection.ts +0 -267
  11. package/src/constants/user.ts +0 -22
  12. package/src/core.ts +0 -139
  13. package/src/directory.ts +0 -431
  14. package/src/domain.ts +0 -273
  15. package/src/errors/base-exception.ts +0 -263
  16. package/src/errors/index.ts +0 -3
  17. package/src/errors/specific-exceptions.ts +0 -88
  18. package/src/index.ts +0 -10
  19. package/src/organization.ts +0 -571
  20. package/src/passwordless.ts +0 -139
  21. package/src/permission.ts +0 -310
  22. package/src/pkg/grpc/buf/validate/validate_pb.ts +0 -28
  23. package/src/pkg/grpc/google/api/annotations_pb.ts +0 -28
  24. package/src/pkg/grpc/google/api/field_behavior_pb.ts +0 -28
  25. package/src/pkg/grpc/google/api/visibility_pb.ts +0 -28
  26. package/src/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.ts +0 -28
  27. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +0 -257
  28. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +0 -836
  29. package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +0 -264
  30. package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +0 -794
  31. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +0 -452
  32. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +0 -2645
  33. package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +0 -1393
  34. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +0 -599
  35. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +0 -311
  36. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +0 -200
  37. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +0 -1141
  38. package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +0 -1491
  39. package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +0 -497
  40. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +0 -1404
  41. package/src/role.ts +0 -463
  42. package/src/scalekit.ts +0 -800
  43. package/src/session.ts +0 -323
  44. package/src/types/auth.ts +0 -73
  45. package/src/types/organization.ts +0 -12
  46. package/src/types/scalekit.ts +0 -50
  47. package/src/types/user.ts +0 -21
  48. package/src/user.ts +0 -829
  49. package/src/webauthn.ts +0 -99
  50. package/tests/README.md +0 -25
  51. package/tests/connection.test.ts +0 -42
  52. package/tests/directory.test.ts +0 -46
  53. package/tests/domain.test.ts +0 -293
  54. package/tests/organization.test.ts +0 -81
  55. package/tests/passwordless.test.ts +0 -108
  56. package/tests/permission.test.ts +0 -399
  57. package/tests/role.test.ts +0 -323
  58. package/tests/scalekit.test.ts +0 -104
  59. package/tests/setup.ts +0 -34
  60. package/tests/users.test.ts +0 -168
  61. package/tests/utils/test-data.ts +0 -490
  62. package/tsconfig.json +0 -19
@@ -1,257 +0,0 @@
1
- // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
- // @generated from file scalekit/v1/auditlogs/auditlogs.proto (package scalekit.v1.auditlogs, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
- import { file_google_api_annotations } from "../../../google/api/annotations_pb";
8
- import type { Timestamp } from "@bufbuild/protobuf/wkt";
9
- import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
10
- import { file_protoc_gen_openapiv2_options_annotations } from "../../../protoc-gen-openapiv2/options/annotations_pb";
11
- import { file_scalekit_v1_options_options } from "../options/options_pb";
12
- import type { Message } from "@bufbuild/protobuf";
13
-
14
- /**
15
- * Describes the file scalekit/v1/auditlogs/auditlogs.proto.
16
- */
17
- export const file_scalekit_v1_auditlogs_auditlogs: GenFile = /*@__PURE__*/
18
- fileDesc("CiVzY2FsZWtpdC92MS9hdWRpdGxvZ3MvYXVkaXRsb2dzLnByb3RvEhVzY2FsZWtpdC52MS5hdWRpdGxvZ3MixgIKEkxpc3RBdXRoTG9nUmVxdWVzdBIRCglwYWdlX3NpemUYASABKA0SEgoKcGFnZV90b2tlbhgCIAEoCRINCgVlbWFpbBgDIAEoCRIOCgZzdGF0dXMYBCADKAkSLgoKc3RhcnRfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLAoIZW5kX3RpbWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhMKC3Jlc291cmNlX2lkGAcgASgJEiQKHGNvbm5lY3RlZF9hY2NvdW50X2lkZW50aWZpZXIYCCABKAkSUQoJY2xpZW50X2lkGAkgASgJQj6SQTsyJ0ZpbHRlciBhdXRoZW50aWNhdGlvbiBsb2dzIGJ5IGNsaWVudCBJREoQInNrY18xMjM0NTY3ODkwIiKYAQoTTGlzdEF1dGhMb2dSZXNwb25zZRIXCg9uZXh0X3BhZ2VfdG9rZW4YASABKAkSFwoPcHJldl9wYWdlX3Rva2VuGAIgASgJEhIKCnRvdGFsX3NpemUYAyABKA0SOwoMYXV0aFJlcXVlc3RzGAQgAygLMiUuc2NhbGVraXQudjEuYXVkaXRsb2dzLkF1dGhMb2dSZXF1ZXN0IsgFCg5BdXRoTG9nUmVxdWVzdBIXCg9vcmdhbml6YXRpb25faWQYASABKAkSFgoOZW52aXJvbm1lbnRfaWQYAiABKAkSFQoNY29ubmVjdGlvbl9pZBgDIAEoCRIXCg9hdXRoX3JlcXVlc3RfaWQYBCABKAkSDQo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zY2FsZWtpdC52MS5hdWRpdGxvZ3MuTGlzdEF1dGhMb2dSZXNwb25zZSIygrUYAhhEgtPkkwImEiQvYXBpL3YxL2xvZ3MvYXV0aGVudGljYXRpb24vcmVxdWVzdHNCNVozZ2l0aHViLmNvbS9zY2FsZWtpdC1pbmMvc2NhbGVraXQvcGtnL2dycGMvYXVkaXRsb2dzYgZwcm90bzM", [file_google_api_annotations, file_google_protobuf_timestamp, file_protoc_gen_openapiv2_options_annotations, file_scalekit_v1_options_options]);
19
-
20
- /**
21
- * @generated from message scalekit.v1.auditlogs.ListAuthLogRequest
22
- */
23
- export type ListAuthLogRequest = Message<"scalekit.v1.auditlogs.ListAuthLogRequest"> & {
24
- /**
25
- * @generated from field: uint32 page_size = 1;
26
- */
27
- pageSize: number;
28
-
29
- /**
30
- * @generated from field: string page_token = 2;
31
- */
32
- pageToken: string;
33
-
34
- /**
35
- * @generated from field: string email = 3;
36
- */
37
- email: string;
38
-
39
- /**
40
- * @generated from field: repeated string status = 4;
41
- */
42
- status: string[];
43
-
44
- /**
45
- * @generated from field: google.protobuf.Timestamp start_time = 5;
46
- */
47
- startTime?: Timestamp;
48
-
49
- /**
50
- * @generated from field: google.protobuf.Timestamp end_time = 6;
51
- */
52
- endTime?: Timestamp;
53
-
54
- /**
55
- * @generated from field: string resource_id = 7;
56
- */
57
- resourceId: string;
58
-
59
- /**
60
- * @generated from field: string connected_account_identifier = 8;
61
- */
62
- connectedAccountIdentifier: string;
63
-
64
- /**
65
- * @generated from field: string client_id = 9;
66
- */
67
- clientId: string;
68
- };
69
-
70
- /**
71
- * Describes the message scalekit.v1.auditlogs.ListAuthLogRequest.
72
- * Use `create(ListAuthLogRequestSchema)` to create a new message.
73
- */
74
- export const ListAuthLogRequestSchema: GenMessage<ListAuthLogRequest> = /*@__PURE__*/
75
- messageDesc(file_scalekit_v1_auditlogs_auditlogs, 0);
76
-
77
- /**
78
- * @generated from message scalekit.v1.auditlogs.ListAuthLogResponse
79
- */
80
- export type ListAuthLogResponse = Message<"scalekit.v1.auditlogs.ListAuthLogResponse"> & {
81
- /**
82
- * @generated from field: string next_page_token = 1;
83
- */
84
- nextPageToken: string;
85
-
86
- /**
87
- * @generated from field: string prev_page_token = 2;
88
- */
89
- prevPageToken: string;
90
-
91
- /**
92
- * @generated from field: uint32 total_size = 3;
93
- */
94
- totalSize: number;
95
-
96
- /**
97
- * @generated from field: repeated scalekit.v1.auditlogs.AuthLogRequest authRequests = 4;
98
- */
99
- authRequests: AuthLogRequest[];
100
- };
101
-
102
- /**
103
- * Describes the message scalekit.v1.auditlogs.ListAuthLogResponse.
104
- * Use `create(ListAuthLogResponseSchema)` to create a new message.
105
- */
106
- export const ListAuthLogResponseSchema: GenMessage<ListAuthLogResponse> = /*@__PURE__*/
107
- messageDesc(file_scalekit_v1_auditlogs_auditlogs, 1);
108
-
109
- /**
110
- * @generated from message scalekit.v1.auditlogs.AuthLogRequest
111
- */
112
- export type AuthLogRequest = Message<"scalekit.v1.auditlogs.AuthLogRequest"> & {
113
- /**
114
- * @generated from field: string organization_id = 1;
115
- */
116
- organizationId: string;
117
-
118
- /**
119
- * @generated from field: string environment_id = 2;
120
- */
121
- environmentId: string;
122
-
123
- /**
124
- * @generated from field: string connection_id = 3;
125
- */
126
- connectionId: string;
127
-
128
- /**
129
- * @generated from field: string auth_request_id = 4;
130
- */
131
- authRequestId: string;
132
-
133
- /**
134
- * @generated from field: string email = 5;
135
- */
136
- email: string;
137
-
138
- /**
139
- * @generated from field: string connection_type = 6;
140
- */
141
- connectionType: string;
142
-
143
- /**
144
- * @generated from field: string connection_provider = 7;
145
- */
146
- connectionProvider: string;
147
-
148
- /**
149
- * @generated from field: string status = 8;
150
- */
151
- status: string;
152
-
153
- /**
154
- * @generated from field: google.protobuf.Timestamp timestamp = 9;
155
- */
156
- timestamp?: Timestamp;
157
-
158
- /**
159
- * @generated from field: repeated scalekit.v1.auditlogs.ConnectionDetails connection_details = 10;
160
- */
161
- connectionDetails: ConnectionDetails[];
162
-
163
- /**
164
- * @generated from field: string workflow = 11;
165
- */
166
- workflow: string;
167
-
168
- /**
169
- * @generated from field: string resource_id = 12;
170
- */
171
- resourceId: string;
172
-
173
- /**
174
- * @generated from field: string resource_name = 13;
175
- */
176
- resourceName: string;
177
-
178
- /**
179
- * @generated from field: string resource_type = 14;
180
- */
181
- resourceType: string;
182
-
183
- /**
184
- * @generated from field: string connected_account_identifier = 15;
185
- */
186
- connectedAccountIdentifier: string;
187
-
188
- /**
189
- * @generated from field: string client_id = 16;
190
- */
191
- clientId: string;
192
-
193
- /**
194
- * @generated from field: string client_name = 17;
195
- */
196
- clientName: string;
197
-
198
- /**
199
- * @generated from field: string client_type = 18;
200
- */
201
- clientType: string;
202
- };
203
-
204
- /**
205
- * Describes the message scalekit.v1.auditlogs.AuthLogRequest.
206
- * Use `create(AuthLogRequestSchema)` to create a new message.
207
- */
208
- export const AuthLogRequestSchema: GenMessage<AuthLogRequest> = /*@__PURE__*/
209
- messageDesc(file_scalekit_v1_auditlogs_auditlogs, 2);
210
-
211
- /**
212
- * @generated from message scalekit.v1.auditlogs.ConnectionDetails
213
- */
214
- export type ConnectionDetails = Message<"scalekit.v1.auditlogs.ConnectionDetails"> & {
215
- /**
216
- * @generated from field: string connection_id = 1;
217
- */
218
- connectionId: string;
219
-
220
- /**
221
- * @generated from field: string organization_id = 2;
222
- */
223
- organizationId: string;
224
-
225
- /**
226
- * @generated from field: string connection_type = 3;
227
- */
228
- connectionType: string;
229
-
230
- /**
231
- * @generated from field: string connection_provider = 4;
232
- */
233
- connectionProvider: string;
234
- };
235
-
236
- /**
237
- * Describes the message scalekit.v1.auditlogs.ConnectionDetails.
238
- * Use `create(ConnectionDetailsSchema)` to create a new message.
239
- */
240
- export const ConnectionDetailsSchema: GenMessage<ConnectionDetails> = /*@__PURE__*/
241
- messageDesc(file_scalekit_v1_auditlogs_auditlogs, 3);
242
-
243
- /**
244
- * @generated from service scalekit.v1.auditlogs.AuditLogsService
245
- */
246
- export const AuditLogsService: GenService<{
247
- /**
248
- * @generated from rpc scalekit.v1.auditlogs.AuditLogsService.ListAuthRequests
249
- */
250
- listAuthRequests: {
251
- methodKind: "unary";
252
- input: typeof ListAuthLogRequestSchema;
253
- output: typeof ListAuthLogResponseSchema;
254
- },
255
- }> = /*@__PURE__*/
256
- serviceDesc(file_scalekit_v1_auditlogs_auditlogs, 0);
257
-