@kosha-ai/server 0.1.0 → 0.2.0

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 (199) hide show
  1. package/dist/auth/api-key.guard.d.ts +7 -2
  2. package/dist/auth/api-key.guard.d.ts.map +1 -1
  3. package/dist/auth/api-key.guard.js +28 -8
  4. package/dist/auth/auth.factory.d.ts +15 -1
  5. package/dist/auth/auth.factory.d.ts.map +1 -1
  6. package/dist/auth/auth.factory.js +48 -2
  7. package/dist/bootstrap.d.ts.map +1 -1
  8. package/dist/bootstrap.js +24 -6
  9. package/dist/configurations/configurations.controller.d.ts +11 -136
  10. package/dist/configurations/configurations.controller.d.ts.map +1 -1
  11. package/dist/configurations/configurations.controller.js +58 -25
  12. package/dist/configurations/configurations.module.d.ts.map +1 -1
  13. package/dist/configurations/configurations.module.js +4 -1
  14. package/dist/configurations/configurations.repository.d.ts +43 -0
  15. package/dist/configurations/configurations.repository.d.ts.map +1 -0
  16. package/dist/configurations/configurations.repository.js +76 -0
  17. package/dist/configurations/configurations.service.d.ts +38 -194
  18. package/dist/configurations/configurations.service.d.ts.map +1 -1
  19. package/dist/configurations/configurations.service.js +118 -110
  20. package/dist/configurations/dto/create-configuration.dto.d.ts +8 -0
  21. package/dist/configurations/dto/create-configuration.dto.d.ts.map +1 -0
  22. package/dist/configurations/dto/create-configuration.dto.js +54 -0
  23. package/dist/configurations/dto/update-configuration.dto.d.ts +7 -0
  24. package/dist/configurations/dto/update-configuration.dto.d.ts.map +1 -0
  25. package/dist/configurations/dto/update-configuration.dto.js +39 -0
  26. package/dist/connect/connect.controller.d.ts +6 -8
  27. package/dist/connect/connect.controller.d.ts.map +1 -1
  28. package/dist/connect/connect.controller.js +45 -15
  29. package/dist/connect/connect.module.d.ts.map +1 -1
  30. package/dist/connect/connect.module.js +4 -2
  31. package/dist/connect/connect.repository.d.ts +78 -0
  32. package/dist/connect/connect.repository.d.ts.map +1 -0
  33. package/dist/connect/connect.repository.js +146 -0
  34. package/dist/connect/connect.service.d.ts +28 -19
  35. package/dist/connect/connect.service.d.ts.map +1 -1
  36. package/dist/connect/connect.service.js +149 -163
  37. package/dist/connect/dto/create-connect-session.dto.d.ts +8 -0
  38. package/dist/connect/dto/create-connect-session.dto.d.ts.map +1 -0
  39. package/dist/connect/dto/create-connect-session.dto.js +55 -0
  40. package/dist/connect/dto/create-test-session.dto.d.ts +10 -0
  41. package/dist/connect/dto/create-test-session.dto.d.ts.map +1 -0
  42. package/dist/connect/dto/create-test-session.dto.js +34 -0
  43. package/dist/connections/connections.controller.d.ts +8 -61
  44. package/dist/connections/connections.controller.d.ts.map +1 -1
  45. package/dist/connections/connections.controller.js +31 -9
  46. package/dist/connections/connections.module.d.ts.map +1 -1
  47. package/dist/connections/connections.module.js +4 -1
  48. package/dist/connections/connections.repository.d.ts +24 -0
  49. package/dist/connections/connections.repository.d.ts.map +1 -0
  50. package/dist/connections/connections.repository.js +66 -0
  51. package/dist/connections/connections.service.d.ts +24 -69
  52. package/dist/connections/connections.service.d.ts.map +1 -1
  53. package/dist/connections/connections.service.js +59 -56
  54. package/dist/connections/dto/list-connections.dto.d.ts +5 -0
  55. package/dist/connections/dto/list-connections.dto.d.ts.map +1 -0
  56. package/dist/connections/dto/list-connections.dto.js +25 -0
  57. package/dist/connections/environment-connections.controller.d.ts +26 -0
  58. package/dist/connections/environment-connections.controller.d.ts.map +1 -0
  59. package/dist/connections/environment-connections.controller.js +81 -0
  60. package/dist/connections/environment-connections.module.d.ts +11 -0
  61. package/dist/connections/environment-connections.module.d.ts.map +1 -0
  62. package/dist/connections/environment-connections.module.js +21 -0
  63. package/dist/credentials/credentials.module.js +3 -3
  64. package/dist/credentials/credentials.repository.d.ts +8 -0
  65. package/dist/credentials/credentials.repository.d.ts.map +1 -0
  66. package/dist/credentials/credentials.repository.js +21 -0
  67. package/dist/credentials/credentials.service.d.ts +19 -29
  68. package/dist/credentials/credentials.service.d.ts.map +1 -1
  69. package/dist/credentials/credentials.service.js +84 -57
  70. package/dist/crypto/credential-envelope.d.ts +56 -0
  71. package/dist/crypto/credential-envelope.d.ts.map +1 -0
  72. package/dist/crypto/credential-envelope.js +70 -0
  73. package/dist/crypto/crypto.service.d.ts +8 -0
  74. package/dist/crypto/crypto.service.d.ts.map +1 -1
  75. package/dist/crypto/crypto.service.js +12 -0
  76. package/dist/egress/dto/mint-grant.dto.d.ts +7 -0
  77. package/dist/egress/dto/mint-grant.dto.d.ts.map +1 -0
  78. package/dist/egress/dto/mint-grant.dto.js +44 -0
  79. package/dist/egress/egress.controller.d.ts +2 -8
  80. package/dist/egress/egress.controller.d.ts.map +1 -1
  81. package/dist/egress/egress.controller.js +27 -6
  82. package/dist/egress/egress.listener.d.ts +3 -1
  83. package/dist/egress/egress.listener.d.ts.map +1 -1
  84. package/dist/egress/egress.listener.js +12 -8
  85. package/dist/egress/egress.module.d.ts.map +1 -1
  86. package/dist/egress/egress.module.js +10 -2
  87. package/dist/egress/egress.repository.d.ts +58 -0
  88. package/dist/egress/egress.repository.d.ts.map +1 -0
  89. package/dist/egress/egress.repository.js +116 -0
  90. package/dist/egress/grants.service.d.ts +23 -78
  91. package/dist/egress/grants.service.d.ts.map +1 -1
  92. package/dist/egress/grants.service.js +44 -104
  93. package/dist/environments/dto/create-environment.dto.d.ts +6 -0
  94. package/dist/environments/dto/create-environment.dto.d.ts.map +1 -0
  95. package/dist/environments/dto/create-environment.dto.js +34 -0
  96. package/dist/environments/dto/update-environment.dto.d.ts +5 -0
  97. package/dist/environments/dto/update-environment.dto.d.ts.map +1 -0
  98. package/dist/environments/dto/update-environment.dto.js +24 -0
  99. package/dist/environments/environments.controller.d.ts +53 -0
  100. package/dist/environments/environments.controller.d.ts.map +1 -0
  101. package/dist/environments/environments.controller.js +101 -0
  102. package/dist/environments/environments.module.d.ts +3 -0
  103. package/dist/environments/environments.module.d.ts.map +1 -0
  104. package/dist/environments/environments.module.js +15 -0
  105. package/dist/environments/environments.repository.d.ts +37 -0
  106. package/dist/environments/environments.repository.d.ts.map +1 -0
  107. package/dist/environments/environments.repository.js +82 -0
  108. package/dist/environments/environments.service.d.ts +43 -0
  109. package/dist/environments/environments.service.d.ts.map +1 -0
  110. package/dist/environments/environments.service.js +124 -0
  111. package/dist/generated/prisma/browser.d.ts +14 -37
  112. package/dist/generated/prisma/browser.d.ts.map +1 -1
  113. package/dist/generated/prisma/client.d.ts +14 -37
  114. package/dist/generated/prisma/client.d.ts.map +1 -1
  115. package/dist/generated/prisma/commonInputTypes.d.ts +104 -145
  116. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -1
  117. package/dist/generated/prisma/enums.d.ts +1 -21
  118. package/dist/generated/prisma/enums.d.ts.map +1 -1
  119. package/dist/generated/prisma/enums.js +1 -18
  120. package/dist/generated/prisma/internal/class.d.ts +20 -53
  121. package/dist/generated/prisma/internal/class.d.ts.map +1 -1
  122. package/dist/generated/prisma/internal/class.js +4 -4
  123. package/dist/generated/prisma/internal/prismaNamespace.d.ts +215 -519
  124. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -1
  125. package/dist/generated/prisma/internal/prismaNamespace.js +38 -90
  126. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +37 -92
  127. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -1
  128. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +38 -90
  129. package/dist/generated/prisma/models/Account.d.ts +344 -26
  130. package/dist/generated/prisma/models/Account.d.ts.map +1 -1
  131. package/dist/generated/prisma/models/Configuration.d.ts +218 -851
  132. package/dist/generated/prisma/models/Configuration.d.ts.map +1 -1
  133. package/dist/generated/prisma/models/EgressGrant.d.ts +131 -134
  134. package/dist/generated/prisma/models/EgressGrant.d.ts.map +1 -1
  135. package/dist/generated/prisma/models/Environment.d.ts +1644 -0
  136. package/dist/generated/prisma/models/Environment.d.ts.map +1 -0
  137. package/dist/generated/prisma/models/Invitation.d.ts +42 -1
  138. package/dist/generated/prisma/models/Invitation.d.ts.map +1 -1
  139. package/dist/generated/prisma/models/Organization.d.ts +122 -408
  140. package/dist/generated/prisma/models/Organization.d.ts.map +1 -1
  141. package/dist/generated/prisma/models/Session.d.ts +36 -1
  142. package/dist/generated/prisma/models/Session.d.ts.map +1 -1
  143. package/dist/generated/prisma/models/Team.d.ts +1498 -0
  144. package/dist/generated/prisma/models/Team.d.ts.map +1 -0
  145. package/dist/generated/prisma/models/TeamMember.d.ts +1281 -0
  146. package/dist/generated/prisma/models/TeamMember.d.ts.map +1 -0
  147. package/dist/generated/prisma/models/User.d.ts +338 -2
  148. package/dist/generated/prisma/models/User.d.ts.map +1 -1
  149. package/dist/generated/prisma/models.d.ts +3 -6
  150. package/dist/generated/prisma/models.d.ts.map +1 -1
  151. package/dist/index.d.ts +15 -5
  152. package/dist/index.d.ts.map +1 -1
  153. package/dist/index.js +11 -2
  154. package/dist/integrations/integrations.controller.d.ts +2 -1
  155. package/dist/integrations/integrations.controller.d.ts.map +1 -1
  156. package/dist/integrations/integrations.module.d.ts.map +1 -1
  157. package/dist/integrations/integrations.module.js +0 -2
  158. package/dist/kosha.module.d.ts.map +1 -1
  159. package/dist/kosha.module.js +9 -3
  160. package/dist/proxy/proxy.controller.d.ts +8 -3
  161. package/dist/proxy/proxy.controller.d.ts.map +1 -1
  162. package/dist/proxy/proxy.controller.js +26 -10
  163. package/dist/proxy/proxy.module.d.ts.map +1 -1
  164. package/dist/proxy/proxy.module.js +5 -2
  165. package/dist/proxy/proxy.repository.d.ts +24 -0
  166. package/dist/proxy/proxy.repository.d.ts.map +1 -0
  167. package/dist/proxy/proxy.repository.js +47 -0
  168. package/dist/proxy/proxy.service.d.ts +17 -5
  169. package/dist/proxy/proxy.service.d.ts.map +1 -1
  170. package/dist/proxy/proxy.service.js +58 -27
  171. package/package.json +7 -4
  172. package/prisma/migrations/20260929101936_init/migration.sql +345 -0
  173. package/prisma/migrations/20260930102529_connection_config/migration.sql +2 -0
  174. package/prisma/schema.prisma +93 -198
  175. package/dist/generated/prisma/models/ConnectSession.d.ts +0 -1606
  176. package/dist/generated/prisma/models/ConnectSession.d.ts.map +0 -1
  177. package/dist/generated/prisma/models/Connection.d.ts +0 -1949
  178. package/dist/generated/prisma/models/Connection.d.ts.map +0 -1
  179. package/dist/generated/prisma/models/ConnectionCredential.d.ts +0 -1293
  180. package/dist/generated/prisma/models/ConnectionCredential.d.ts.map +0 -1
  181. package/dist/generated/prisma/models/EndUser.d.ts +0 -1666
  182. package/dist/generated/prisma/models/EndUser.d.ts.map +0 -1
  183. package/dist/generated/prisma/models/EndUser.js +0 -1
  184. package/dist/generated/prisma/models/OAuthState.d.ts +0 -1404
  185. package/dist/generated/prisma/models/OAuthState.d.ts.map +0 -1
  186. package/dist/generated/prisma/models/OAuthState.js +0 -1
  187. package/dist/generated/prisma/models/Provider.d.ts +0 -1462
  188. package/dist/generated/prisma/models/Provider.d.ts.map +0 -1
  189. package/dist/generated/prisma/models/Provider.js +0 -1
  190. package/dist/integrations/provider-sync.service.d.ts +0 -24
  191. package/dist/integrations/provider-sync.service.d.ts.map +0 -1
  192. package/dist/integrations/provider-sync.service.js +0 -74
  193. package/prisma/migrations/20260908000000_init/migration.sql +0 -209
  194. package/prisma/migrations/20260908161813_add_connect_domain/migration.sql +0 -173
  195. package/prisma/migrations/20260916000000_add_configuration_slug/migration.sql +0 -15
  196. package/prisma/migrations/20260921000000_add_egress_grant/migration.sql +0 -31
  197. /package/dist/generated/prisma/models/{ConnectSession.js → Environment.js} +0 -0
  198. /package/dist/generated/prisma/models/{Connection.js → Team.js} +0 -0
  199. /package/dist/generated/prisma/models/{ConnectionCredential.js → TeamMember.js} +0 -0
@@ -0,0 +1,43 @@
1
+ import type { Environment } from '../generated/prisma/client.js';
2
+ import type { CreateEnvironmentDto } from './dto/create-environment.dto.js';
3
+ import type { UpdateEnvironmentDto } from './dto/update-environment.dto.js';
4
+ import { EnvironmentsRepository } from './environments.repository.js';
5
+ export declare class EnvironmentsService {
6
+ private readonly environments;
7
+ constructor(environments: EnvironmentsRepository);
8
+ /**
9
+ * What the member can reach: an environment with no team is open to the
10
+ * whole organization, one with a team needs membership of it.
11
+ */
12
+ listFor(organizationId: string, userId: string): Promise<Environment[]>;
13
+ /**
14
+ * For machine callers. An API key already names one environment and the
15
+ * guard has checked it belongs to the key's organization; a key is not a
16
+ * person and has no teams.
17
+ */
18
+ get(organizationId: string, id: string): Promise<Environment>;
19
+ /**
20
+ * For a signed-in person. A team gates the environment itself, not merely
21
+ * its place in a listing — otherwise the id is the whole security of it, and
22
+ * ids travel.
23
+ *
24
+ * Answers "not found" rather than "forbidden", so nobody learns which
25
+ * environments exist by asking.
26
+ */
27
+ getForMember(organizationId: string, userId: string, id: string): Promise<Environment>;
28
+ /** Resolves the slug a caller quotes, within one organization. */
29
+ getBySlug(organizationId: string, slug: string): Promise<Environment>;
30
+ create(organizationId: string, input: CreateEnvironmentDto): Promise<Environment>;
31
+ update(organizationId: string, userId: string, id: string, input: UpdateEnvironmentDto): Promise<Environment>;
32
+ remove(organizationId: string, userId: string, id: string): Promise<void>;
33
+ /** Called from the organization-creation hook. */
34
+ seedDefaults(organizationId: string): Promise<void>;
35
+ /**
36
+ * The environment an API key names, re-checked against the key's own
37
+ * organization. `apikey.metadata` is a soft reference: nothing stops a key
38
+ * naming an environment that has since moved or gone.
39
+ */
40
+ resolveForOrganization(organizationId: string, environmentId: unknown): Promise<Environment>;
41
+ private assertTeamBelongs;
42
+ }
43
+ //# sourceMappingURL=environments.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environments.service.d.ts","sourceRoot":"","sources":["../../src/environments/environments.service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAWtE,qBACa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,sBAAsB;IAEjE;;;OAGG;IACG,OAAO,CACX,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,WAAW,EAAE,CAAC;IAKzB;;;;OAIG;IACG,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAMnE;;;;;;;OAOG;IACG,YAAY,CAChB,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,WAAW,CAAC;IAWvB,kEAAkE;IAC5D,SAAS,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IASrE,MAAM,CACV,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,WAAW,CAAC;IAsBjB,MAAM,CACV,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,WAAW,CAAC;IAWjB,MAAM,CACV,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,IAAI,CAAC;IAKhB,kDAAkD;IAC5C,YAAY,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMzD;;;;OAIG;IACG,sBAAsB,CAC1B,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,OAAO,GACrB,OAAO,CAAC,WAAW,CAAC;YAmBT,iBAAiB;CAUhC"}
@@ -0,0 +1,124 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { BadRequestException, Injectable, NotFoundException, } from '@nestjs/common';
3
+ import { EnvironmentsRepository } from './environments.repository.js';
4
+ /**
5
+ * Every organization starts with these two. Sandbox is first so a new
6
+ * organization does not point at production by omission.
7
+ */
8
+ const DEFAULTS = [
9
+ { name: 'Sandbox', slug: 'sandbox' },
10
+ { name: 'Production', slug: 'production' },
11
+ ];
12
+ let EnvironmentsService = class EnvironmentsService {
13
+ environments;
14
+ constructor(environments) {
15
+ this.environments = environments;
16
+ }
17
+ /**
18
+ * What the member can reach: an environment with no team is open to the
19
+ * whole organization, one with a team needs membership of it.
20
+ */
21
+ async listFor(organizationId, userId) {
22
+ const teamIds = await this.environments.teamIdsFor(organizationId, userId);
23
+ return this.environments.findVisible(organizationId, teamIds);
24
+ }
25
+ /**
26
+ * For machine callers. An API key already names one environment and the
27
+ * guard has checked it belongs to the key's organization; a key is not a
28
+ * person and has no teams.
29
+ */
30
+ async get(organizationId, id) {
31
+ const environment = await this.environments.findById(organizationId, id);
32
+ if (!environment)
33
+ throw new NotFoundException('Environment not found');
34
+ return environment;
35
+ }
36
+ /**
37
+ * For a signed-in person. A team gates the environment itself, not merely
38
+ * its place in a listing — otherwise the id is the whole security of it, and
39
+ * ids travel.
40
+ *
41
+ * Answers "not found" rather than "forbidden", so nobody learns which
42
+ * environments exist by asking.
43
+ */
44
+ async getForMember(organizationId, userId, id) {
45
+ const teamIds = await this.environments.teamIdsFor(organizationId, userId);
46
+ const environment = await this.environments.findVisibleById(organizationId, id, teamIds);
47
+ if (!environment)
48
+ throw new NotFoundException('Environment not found');
49
+ return environment;
50
+ }
51
+ /** Resolves the slug a caller quotes, within one organization. */
52
+ async getBySlug(organizationId, slug) {
53
+ const environment = await this.environments.findBySlug(organizationId, slug);
54
+ if (!environment)
55
+ throw new NotFoundException('Environment not found');
56
+ return environment;
57
+ }
58
+ async create(organizationId, input) {
59
+ const name = input.name.trim();
60
+ if (!name)
61
+ throw new BadRequestException('name is required');
62
+ const slug = slugify(input.slug ?? name);
63
+ if (!slug) {
64
+ throw new BadRequestException('slug must contain at least one letter or digit');
65
+ }
66
+ if (input.teamId)
67
+ await this.assertTeamBelongs(organizationId, input.teamId);
68
+ return this.environments.create({
69
+ organizationId,
70
+ name,
71
+ slug,
72
+ teamId: input.teamId ?? null,
73
+ });
74
+ }
75
+ async update(organizationId, userId, id, input) {
76
+ await this.getForMember(organizationId, userId, id);
77
+ if (input.teamId)
78
+ await this.assertTeamBelongs(organizationId, input.teamId);
79
+ return this.environments.update(id, {
80
+ name: input.name?.trim(),
81
+ teamId: input.teamId,
82
+ });
83
+ }
84
+ async remove(organizationId, userId, id) {
85
+ await this.getForMember(organizationId, userId, id);
86
+ await this.environments.delete(id);
87
+ }
88
+ /** Called from the organization-creation hook. */
89
+ async seedDefaults(organizationId) {
90
+ await this.environments.createMany(DEFAULTS.map((environment) => ({ ...environment, organizationId })));
91
+ }
92
+ /**
93
+ * The environment an API key names, re-checked against the key's own
94
+ * organization. `apikey.metadata` is a soft reference: nothing stops a key
95
+ * naming an environment that has since moved or gone.
96
+ */
97
+ async resolveForOrganization(organizationId, environmentId) {
98
+ if (typeof environmentId !== 'string' || !environmentId) {
99
+ throw new BadRequestException('This API key names no environment. Re-issue it against one.');
100
+ }
101
+ const environment = await this.environments.findById(organizationId, environmentId);
102
+ if (!environment) {
103
+ throw new BadRequestException('This API key names an environment that does not belong to its organization');
104
+ }
105
+ return environment;
106
+ }
107
+ async assertTeamBelongs(organizationId, teamId) {
108
+ if (!(await this.environments.teamExists(organizationId, teamId))) {
109
+ throw new BadRequestException('That team belongs to another organization');
110
+ }
111
+ }
112
+ };
113
+ EnvironmentsService = __decorate([
114
+ Injectable(),
115
+ __metadata("design:paramtypes", [EnvironmentsRepository])
116
+ ], EnvironmentsService);
117
+ export { EnvironmentsService };
118
+ /** Lowercase, digits and single dashes. Empty if the input has no word chars. */
119
+ function slugify(value) {
120
+ return value
121
+ .toLowerCase()
122
+ .replace(/[^a-z0-9]+/g, '-')
123
+ .replace(/^-+|-+$/g, '');
124
+ }
@@ -38,53 +38,30 @@ export type Member = Prisma.MemberModel;
38
38
  */
39
39
  export type Invitation = Prisma.InvitationModel;
40
40
  /**
41
- * Model Apikey
41
+ * Model Team
42
42
  *
43
43
  */
44
- export type Apikey = Prisma.ApikeyModel;
45
- /**
46
- * Model Provider
47
- * Catalogue of providers Kosha can talk to. Derived state: every row is
48
- * upserted at boot from the installed integration packages, and rows whose
49
- * package is gone are deactivated rather than deleted.
50
- */
51
- export type Provider = Prisma.ProviderModel;
52
- /**
53
- * Model Configuration
54
- * One organization's setup of one provider: which OAuth app, which scopes,
55
- * which environment. `metadata` holds the integration's own `configFields`.
56
- */
57
- export type Configuration = Prisma.ConfigurationModel;
58
- /**
59
- * Model EndUser
60
- * The organization's own users, identified by the organization's id for them
61
- * — never by a Kosha auth user.
62
- */
63
- export type EndUser = Prisma.EndUserModel;
44
+ export type Team = Prisma.TeamModel;
64
45
  /**
65
- * Model Connection
66
- * The authorized link between an EndUser and a Configuration. An end user may
67
- * hold several connections against the same configuration (two GitHub
68
- * accounts), so uniqueness is per provider account, not per end user.
46
+ * Model TeamMember
47
+ *
69
48
  */
70
- export type Connection = Prisma.ConnectionModel;
49
+ export type TeamMember = Prisma.TeamMemberModel;
71
50
  /**
72
- * Model ConnectionCredential
73
- * Tokens, split out from Connection so they have their own access path.
74
- * Every token column is AES-256-GCM ciphertext.
51
+ * Model Apikey
52
+ *
75
53
  */
76
- export type ConnectionCredential = Prisma.ConnectionCredentialModel;
54
+ export type Apikey = Prisma.ApikeyModel;
77
55
  /**
78
- * Model ConnectSession
79
- * Short-lived token handed to the organization's frontend to drive one
80
- * connect flow.
56
+ * Model Environment
57
+ *
81
58
  */
82
- export type ConnectSession = Prisma.ConnectSessionModel;
59
+ export type Environment = Prisma.EnvironmentModel;
83
60
  /**
84
- * Model OAuthState
85
- * CSRF state and PKCE verifier for one OAuth redirect attempt.
61
+ * Model Configuration
62
+ *
86
63
  */
87
- export type OAuthState = Prisma.OAuthStateModel;
64
+ export type Configuration = Prisma.ConfigurationModel;
88
65
  /**
89
66
  * Model EgressGrant
90
67
  *
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/browser.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,MAAM,sCAAsC,CAAA;AAC9D,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAC;AAC3B;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAA;AAC3C;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAA;AACrD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,yBAAyB,CAAA;AACnE;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,mBAAmB,CAAA;AACvD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA"}
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/browser.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,MAAM,sCAAsC,CAAA;AAC9D,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAC;AAC3B;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA;AACjD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAA;AACrD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA"}
@@ -57,53 +57,30 @@ export type Member = Prisma.MemberModel;
57
57
  */
58
58
  export type Invitation = Prisma.InvitationModel;
59
59
  /**
60
- * Model Apikey
60
+ * Model Team
61
61
  *
62
62
  */
63
- export type Apikey = Prisma.ApikeyModel;
64
- /**
65
- * Model Provider
66
- * Catalogue of providers Kosha can talk to. Derived state: every row is
67
- * upserted at boot from the installed integration packages, and rows whose
68
- * package is gone are deactivated rather than deleted.
69
- */
70
- export type Provider = Prisma.ProviderModel;
71
- /**
72
- * Model Configuration
73
- * One organization's setup of one provider: which OAuth app, which scopes,
74
- * which environment. `metadata` holds the integration's own `configFields`.
75
- */
76
- export type Configuration = Prisma.ConfigurationModel;
77
- /**
78
- * Model EndUser
79
- * The organization's own users, identified by the organization's id for them
80
- * — never by a Kosha auth user.
81
- */
82
- export type EndUser = Prisma.EndUserModel;
63
+ export type Team = Prisma.TeamModel;
83
64
  /**
84
- * Model Connection
85
- * The authorized link between an EndUser and a Configuration. An end user may
86
- * hold several connections against the same configuration (two GitHub
87
- * accounts), so uniqueness is per provider account, not per end user.
65
+ * Model TeamMember
66
+ *
88
67
  */
89
- export type Connection = Prisma.ConnectionModel;
68
+ export type TeamMember = Prisma.TeamMemberModel;
90
69
  /**
91
- * Model ConnectionCredential
92
- * Tokens, split out from Connection so they have their own access path.
93
- * Every token column is AES-256-GCM ciphertext.
70
+ * Model Apikey
71
+ *
94
72
  */
95
- export type ConnectionCredential = Prisma.ConnectionCredentialModel;
73
+ export type Apikey = Prisma.ApikeyModel;
96
74
  /**
97
- * Model ConnectSession
98
- * Short-lived token handed to the organization's frontend to drive one
99
- * connect flow.
75
+ * Model Environment
76
+ *
100
77
  */
101
- export type ConnectSession = Prisma.ConnectSessionModel;
78
+ export type Environment = Prisma.EnvironmentModel;
102
79
  /**
103
- * Model OAuthState
104
- * CSRF state and PKCE verifier for one OAuth redirect attempt.
80
+ * Model Configuration
81
+ *
105
82
  */
106
- export type OAuthState = Prisma.OAuthStateModel;
83
+ export type Configuration = Prisma.ConfigurationModel;
107
84
  /**
108
85
  * Model EgressGrant
109
86
  *
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/client.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAA;AAExD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAEvD,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,gCAAgC,CAAA;AACzD,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,SAAS,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,SAAS,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,IAAI,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;AAC3S,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAA;AAC3C;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAA;AACrD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,yBAAyB,CAAA;AACnE;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,mBAAmB,CAAA;AACvD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/client.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAA;AAExD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAEvD,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,gCAAgC,CAAA;AACzD,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,SAAS,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,SAAS,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,IAAI,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;AAC3S,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA;AACjD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAA;AACrD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,gBAAgB,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
- import * as $Enums from "./enums.js";
3
2
  import type * as Prisma from "./internal/prismaNamespace.js";
4
3
  export type StringFilter<$PrismaModel = never> = {
5
4
  equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
@@ -111,6 +110,23 @@ export type DateTimeNullableFilter<$PrismaModel = never> = {
111
110
  gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
112
111
  not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
113
112
  };
113
+ export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
114
+ export type JsonNullableFilterBase<$PrismaModel = never> = {
115
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
116
+ path?: string[];
117
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
118
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
119
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
120
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
121
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
122
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
123
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
124
+ lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
125
+ lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
126
+ gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
127
+ gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
128
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
129
+ };
114
130
  export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
115
131
  equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
116
132
  in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
@@ -124,6 +140,51 @@ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
124
140
  _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
125
141
  _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
126
142
  };
143
+ export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
144
+ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
145
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
146
+ path?: string[];
147
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
148
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
149
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
150
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
151
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
152
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
153
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
154
+ lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
155
+ lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
156
+ gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
157
+ gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
158
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
159
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
160
+ _min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
161
+ _max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
162
+ };
163
+ export type IntFilter<$PrismaModel = never> = {
164
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
165
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
166
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
167
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
168
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
169
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
170
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
171
+ not?: Prisma.NestedIntFilter<$PrismaModel> | number;
172
+ };
173
+ export type IntWithAggregatesFilter<$PrismaModel = never> = {
174
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
175
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
176
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
177
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
178
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
179
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
180
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
181
+ not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
182
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
183
+ _avg?: Prisma.NestedFloatFilter<$PrismaModel>;
184
+ _sum?: Prisma.NestedIntFilter<$PrismaModel>;
185
+ _min?: Prisma.NestedIntFilter<$PrismaModel>;
186
+ _max?: Prisma.NestedIntFilter<$PrismaModel>;
187
+ };
127
188
  export type IntNullableFilter<$PrismaModel = never> = {
128
189
  equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
129
190
  in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
@@ -160,88 +221,6 @@ export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
160
221
  _min?: Prisma.NestedBoolNullableFilter<$PrismaModel>;
161
222
  _max?: Prisma.NestedBoolNullableFilter<$PrismaModel>;
162
223
  };
163
- export type EnumAuthTypeFilter<$PrismaModel = never> = {
164
- equals?: $Enums.AuthType | Prisma.EnumAuthTypeFieldRefInput<$PrismaModel>;
165
- in?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
166
- notIn?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
167
- not?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel> | $Enums.AuthType;
168
- };
169
- export type EnumAuthTypeWithAggregatesFilter<$PrismaModel = never> = {
170
- equals?: $Enums.AuthType | Prisma.EnumAuthTypeFieldRefInput<$PrismaModel>;
171
- in?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
172
- notIn?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
173
- not?: Prisma.NestedEnumAuthTypeWithAggregatesFilter<$PrismaModel> | $Enums.AuthType;
174
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
175
- _min?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel>;
176
- _max?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel>;
177
- };
178
- export type EnumConnectionEnvironmentFilter<$PrismaModel = never> = {
179
- equals?: $Enums.ConnectionEnvironment | Prisma.EnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
180
- in?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
181
- notIn?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
182
- not?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel> | $Enums.ConnectionEnvironment;
183
- };
184
- export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
185
- export type JsonNullableFilterBase<$PrismaModel = never> = {
186
- equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
187
- path?: string[];
188
- mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
189
- string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
190
- string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
191
- string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
192
- array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
193
- array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
194
- array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
195
- lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
196
- lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
197
- gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
198
- gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
199
- not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
200
- };
201
- export type EnumConnectionEnvironmentWithAggregatesFilter<$PrismaModel = never> = {
202
- equals?: $Enums.ConnectionEnvironment | Prisma.EnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
203
- in?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
204
- notIn?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
205
- not?: Prisma.NestedEnumConnectionEnvironmentWithAggregatesFilter<$PrismaModel> | $Enums.ConnectionEnvironment;
206
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
207
- _min?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel>;
208
- _max?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel>;
209
- };
210
- export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
211
- export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
212
- equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
213
- path?: string[];
214
- mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
215
- string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
216
- string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
217
- string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
218
- array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
219
- array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
220
- array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
221
- lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
222
- lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
223
- gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
224
- gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
225
- not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
226
- _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
227
- _min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
228
- _max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
229
- };
230
- export type EnumConnectionStatusFilter<$PrismaModel = never> = {
231
- equals?: $Enums.ConnectionStatus | Prisma.EnumConnectionStatusFieldRefInput<$PrismaModel>;
232
- in?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
233
- notIn?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
234
- not?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel> | $Enums.ConnectionStatus;
235
- };
236
- export type EnumConnectionStatusWithAggregatesFilter<$PrismaModel = never> = {
237
- equals?: $Enums.ConnectionStatus | Prisma.EnumConnectionStatusFieldRefInput<$PrismaModel>;
238
- in?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
239
- notIn?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
240
- not?: Prisma.NestedEnumConnectionStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConnectionStatus;
241
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
242
- _min?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel>;
243
- _max?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel>;
244
- };
245
224
  export type NestedStringFilter<$PrismaModel = never> = {
246
225
  equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
247
226
  in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
@@ -377,6 +356,48 @@ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
377
356
  _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
378
357
  _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
379
358
  };
359
+ export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
360
+ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
361
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
362
+ path?: string[];
363
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
364
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
365
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
366
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
367
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
368
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
369
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
370
+ lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
371
+ lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
372
+ gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
373
+ gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
374
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
375
+ };
376
+ export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
377
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
378
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
379
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
380
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
381
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
382
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
383
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
384
+ not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
385
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
386
+ _avg?: Prisma.NestedFloatFilter<$PrismaModel>;
387
+ _sum?: Prisma.NestedIntFilter<$PrismaModel>;
388
+ _min?: Prisma.NestedIntFilter<$PrismaModel>;
389
+ _max?: Prisma.NestedIntFilter<$PrismaModel>;
390
+ };
391
+ export type NestedFloatFilter<$PrismaModel = never> = {
392
+ equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
393
+ in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
394
+ notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
395
+ lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
396
+ lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
397
+ gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
398
+ gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
399
+ not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
400
+ };
380
401
  export type NestedBoolNullableFilter<$PrismaModel = never> = {
381
402
  equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> | null;
382
403
  not?: Prisma.NestedBoolNullableFilter<$PrismaModel> | boolean | null;
@@ -413,66 +434,4 @@ export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
413
434
  _min?: Prisma.NestedBoolNullableFilter<$PrismaModel>;
414
435
  _max?: Prisma.NestedBoolNullableFilter<$PrismaModel>;
415
436
  };
416
- export type NestedEnumAuthTypeFilter<$PrismaModel = never> = {
417
- equals?: $Enums.AuthType | Prisma.EnumAuthTypeFieldRefInput<$PrismaModel>;
418
- in?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
419
- notIn?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
420
- not?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel> | $Enums.AuthType;
421
- };
422
- export type NestedEnumAuthTypeWithAggregatesFilter<$PrismaModel = never> = {
423
- equals?: $Enums.AuthType | Prisma.EnumAuthTypeFieldRefInput<$PrismaModel>;
424
- in?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
425
- notIn?: $Enums.AuthType[] | Prisma.ListEnumAuthTypeFieldRefInput<$PrismaModel>;
426
- not?: Prisma.NestedEnumAuthTypeWithAggregatesFilter<$PrismaModel> | $Enums.AuthType;
427
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
428
- _min?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel>;
429
- _max?: Prisma.NestedEnumAuthTypeFilter<$PrismaModel>;
430
- };
431
- export type NestedEnumConnectionEnvironmentFilter<$PrismaModel = never> = {
432
- equals?: $Enums.ConnectionEnvironment | Prisma.EnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
433
- in?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
434
- notIn?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
435
- not?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel> | $Enums.ConnectionEnvironment;
436
- };
437
- export type NestedEnumConnectionEnvironmentWithAggregatesFilter<$PrismaModel = never> = {
438
- equals?: $Enums.ConnectionEnvironment | Prisma.EnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
439
- in?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
440
- notIn?: $Enums.ConnectionEnvironment[] | Prisma.ListEnumConnectionEnvironmentFieldRefInput<$PrismaModel>;
441
- not?: Prisma.NestedEnumConnectionEnvironmentWithAggregatesFilter<$PrismaModel> | $Enums.ConnectionEnvironment;
442
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
443
- _min?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel>;
444
- _max?: Prisma.NestedEnumConnectionEnvironmentFilter<$PrismaModel>;
445
- };
446
- export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
447
- export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
448
- equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
449
- path?: string[];
450
- mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
451
- string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
452
- string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
453
- string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
454
- array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
455
- array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
456
- array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
457
- lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
458
- lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
459
- gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
460
- gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
461
- not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
462
- };
463
- export type NestedEnumConnectionStatusFilter<$PrismaModel = never> = {
464
- equals?: $Enums.ConnectionStatus | Prisma.EnumConnectionStatusFieldRefInput<$PrismaModel>;
465
- in?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
466
- notIn?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
467
- not?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel> | $Enums.ConnectionStatus;
468
- };
469
- export type NestedEnumConnectionStatusWithAggregatesFilter<$PrismaModel = never> = {
470
- equals?: $Enums.ConnectionStatus | Prisma.EnumConnectionStatusFieldRefInput<$PrismaModel>;
471
- in?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
472
- notIn?: $Enums.ConnectionStatus[] | Prisma.ListEnumConnectionStatusFieldRefInput<$PrismaModel>;
473
- not?: Prisma.NestedEnumConnectionStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConnectionStatus;
474
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
475
- _min?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel>;
476
- _max?: Prisma.NestedEnumConnectionStatusFilter<$PrismaModel>;
477
- };
478
437
  //# sourceMappingURL=commonInputTypes.d.ts.map