@contractspec/lib.identity-rbac 1.56.1 → 1.58.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 (82) hide show
  1. package/dist/browser/contracts/index.js +1045 -0
  2. package/dist/browser/contracts/organization.js +655 -0
  3. package/dist/browser/contracts/rbac.js +599 -0
  4. package/dist/browser/contracts/user.js +235 -0
  5. package/dist/browser/entities/index.js +464 -0
  6. package/dist/browser/entities/organization.js +150 -0
  7. package/dist/browser/entities/rbac.js +124 -0
  8. package/dist/browser/entities/user.js +168 -0
  9. package/dist/browser/events.js +374 -0
  10. package/dist/browser/identity-rbac.capability.js +28 -0
  11. package/dist/browser/identity-rbac.feature.js +67 -0
  12. package/dist/browser/index.js +2099 -0
  13. package/dist/browser/policies/engine.js +154 -0
  14. package/dist/browser/policies/index.js +154 -0
  15. package/dist/contracts/index.d.ts +4 -4
  16. package/dist/contracts/index.d.ts.map +1 -0
  17. package/dist/contracts/index.js +1045 -4
  18. package/dist/contracts/organization.d.ts +758 -764
  19. package/dist/contracts/organization.d.ts.map +1 -1
  20. package/dist/contracts/organization.js +653 -602
  21. package/dist/contracts/rbac.d.ts +517 -523
  22. package/dist/contracts/rbac.d.ts.map +1 -1
  23. package/dist/contracts/rbac.js +597 -481
  24. package/dist/contracts/user.d.ts +513 -519
  25. package/dist/contracts/user.d.ts.map +1 -1
  26. package/dist/contracts/user.js +222 -319
  27. package/dist/entities/index.d.ts +164 -169
  28. package/dist/entities/index.d.ts.map +1 -1
  29. package/dist/entities/index.js +462 -33
  30. package/dist/entities/organization.d.ts +58 -63
  31. package/dist/entities/organization.d.ts.map +1 -1
  32. package/dist/entities/organization.js +145 -145
  33. package/dist/entities/rbac.d.ts +62 -67
  34. package/dist/entities/rbac.d.ts.map +1 -1
  35. package/dist/entities/rbac.js +119 -132
  36. package/dist/entities/user.d.ts +66 -71
  37. package/dist/entities/user.d.ts.map +1 -1
  38. package/dist/entities/user.js +164 -189
  39. package/dist/events.d.ts +537 -543
  40. package/dist/events.d.ts.map +1 -1
  41. package/dist/events.js +343 -651
  42. package/dist/identity-rbac.capability.d.ts +2 -7
  43. package/dist/identity-rbac.capability.d.ts.map +1 -1
  44. package/dist/identity-rbac.capability.js +29 -29
  45. package/dist/identity-rbac.feature.d.ts +1 -7
  46. package/dist/identity-rbac.feature.d.ts.map +1 -1
  47. package/dist/identity-rbac.feature.js +66 -193
  48. package/dist/index.d.ts +6 -12
  49. package/dist/index.d.ts.map +1 -0
  50. package/dist/index.js +2100 -14
  51. package/dist/node/contracts/index.js +1045 -0
  52. package/dist/node/contracts/organization.js +655 -0
  53. package/dist/node/contracts/rbac.js +599 -0
  54. package/dist/node/contracts/user.js +235 -0
  55. package/dist/node/entities/index.js +464 -0
  56. package/dist/node/entities/organization.js +150 -0
  57. package/dist/node/entities/rbac.js +124 -0
  58. package/dist/node/entities/user.js +168 -0
  59. package/dist/node/events.js +374 -0
  60. package/dist/node/identity-rbac.capability.js +28 -0
  61. package/dist/node/identity-rbac.feature.js +67 -0
  62. package/dist/node/index.js +2099 -0
  63. package/dist/node/policies/engine.js +154 -0
  64. package/dist/node/policies/index.js +154 -0
  65. package/dist/policies/engine.d.ts +98 -101
  66. package/dist/policies/engine.d.ts.map +1 -1
  67. package/dist/policies/engine.js +151 -164
  68. package/dist/policies/index.d.ts +2 -2
  69. package/dist/policies/index.d.ts.map +1 -0
  70. package/dist/policies/index.js +154 -2
  71. package/package.json +149 -40
  72. package/dist/contracts/organization.js.map +0 -1
  73. package/dist/contracts/rbac.js.map +0 -1
  74. package/dist/contracts/user.js.map +0 -1
  75. package/dist/entities/index.js.map +0 -1
  76. package/dist/entities/organization.js.map +0 -1
  77. package/dist/entities/rbac.js.map +0 -1
  78. package/dist/entities/user.js.map +0 -1
  79. package/dist/events.js.map +0 -1
  80. package/dist/identity-rbac.capability.js.map +0 -1
  81. package/dist/identity-rbac.feature.js.map +0 -1
  82. package/dist/policies/engine.js.map +0 -1
@@ -1,896 +1,890 @@
1
- import * as _contractspec_lib_schema258 from "@contractspec/lib.schema";
2
- import { SchemaModel } from "@contractspec/lib.schema";
3
- import * as _contractspec_lib_contracts40 from "@contractspec/lib.contracts";
4
-
5
- //#region src/contracts/organization.d.ts
6
- declare const OrganizationModel: SchemaModel<{
7
- id: {
8
- type: _contractspec_lib_schema258.FieldType<string, string>;
9
- isOptional: false;
10
- };
11
- name: {
12
- type: _contractspec_lib_schema258.FieldType<string, string>;
13
- isOptional: false;
14
- };
15
- slug: {
16
- type: _contractspec_lib_schema258.FieldType<string, string>;
17
- isOptional: true;
18
- };
19
- logo: {
20
- type: _contractspec_lib_schema258.FieldType<string, string>;
21
- isOptional: true;
22
- };
23
- description: {
24
- type: _contractspec_lib_schema258.FieldType<string, string>;
25
- isOptional: true;
26
- };
27
- type: {
28
- type: _contractspec_lib_schema258.FieldType<string, string>;
29
- isOptional: false;
30
- };
31
- onboardingCompleted: {
32
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
33
- isOptional: false;
34
- };
35
- createdAt: {
36
- type: _contractspec_lib_schema258.FieldType<Date, string>;
37
- isOptional: false;
38
- };
1
+ import { SchemaModel } from '@contractspec/lib.schema';
2
+ export declare const OrganizationModel: SchemaModel<{
3
+ id: {
4
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
5
+ isOptional: false;
6
+ };
7
+ name: {
8
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
9
+ isOptional: false;
10
+ };
11
+ slug: {
12
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
13
+ isOptional: true;
14
+ };
15
+ logo: {
16
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
17
+ isOptional: true;
18
+ };
19
+ description: {
20
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
21
+ isOptional: true;
22
+ };
23
+ type: {
24
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
25
+ isOptional: false;
26
+ };
27
+ onboardingCompleted: {
28
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
29
+ isOptional: false;
30
+ };
31
+ createdAt: {
32
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
33
+ isOptional: false;
34
+ };
39
35
  }>;
40
- declare const MemberUserModel: SchemaModel<{
41
- id: {
42
- type: _contractspec_lib_schema258.FieldType<string, string>;
43
- isOptional: false;
44
- };
45
- email: {
46
- type: _contractspec_lib_schema258.FieldType<string, string>;
47
- isOptional: false;
48
- };
49
- name: {
50
- type: _contractspec_lib_schema258.FieldType<string, string>;
51
- isOptional: true;
52
- };
36
+ export declare const MemberUserModel: SchemaModel<{
37
+ id: {
38
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
39
+ isOptional: false;
40
+ };
41
+ email: {
42
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
43
+ isOptional: false;
44
+ };
45
+ name: {
46
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
47
+ isOptional: true;
48
+ };
53
49
  }>;
54
- declare const MemberModel: SchemaModel<{
55
- id: {
56
- type: _contractspec_lib_schema258.FieldType<string, string>;
57
- isOptional: false;
58
- };
59
- userId: {
60
- type: _contractspec_lib_schema258.FieldType<string, string>;
61
- isOptional: false;
62
- };
63
- organizationId: {
64
- type: _contractspec_lib_schema258.FieldType<string, string>;
65
- isOptional: false;
66
- };
67
- role: {
68
- type: _contractspec_lib_schema258.FieldType<string, string>;
69
- isOptional: false;
70
- };
71
- createdAt: {
72
- type: _contractspec_lib_schema258.FieldType<Date, string>;
73
- isOptional: false;
74
- };
75
- user: {
76
- type: SchemaModel<{
77
- id: {
78
- type: _contractspec_lib_schema258.FieldType<string, string>;
79
- isOptional: false;
80
- };
81
- email: {
82
- type: _contractspec_lib_schema258.FieldType<string, string>;
83
- isOptional: false;
84
- };
85
- name: {
86
- type: _contractspec_lib_schema258.FieldType<string, string>;
87
- isOptional: true;
88
- };
89
- }>;
90
- isOptional: false;
91
- };
50
+ export declare const MemberModel: SchemaModel<{
51
+ id: {
52
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
53
+ isOptional: false;
54
+ };
55
+ userId: {
56
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
57
+ isOptional: false;
58
+ };
59
+ organizationId: {
60
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
61
+ isOptional: false;
62
+ };
63
+ role: {
64
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
65
+ isOptional: false;
66
+ };
67
+ createdAt: {
68
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
69
+ isOptional: false;
70
+ };
71
+ user: {
72
+ type: SchemaModel<{
73
+ id: {
74
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
75
+ isOptional: false;
76
+ };
77
+ email: {
78
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
79
+ isOptional: false;
80
+ };
81
+ name: {
82
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
83
+ isOptional: true;
84
+ };
85
+ }>;
86
+ isOptional: false;
87
+ };
92
88
  }>;
93
- declare const InvitationModel: SchemaModel<{
94
- id: {
95
- type: _contractspec_lib_schema258.FieldType<string, string>;
96
- isOptional: false;
97
- };
98
- email: {
99
- type: _contractspec_lib_schema258.FieldType<string, string>;
100
- isOptional: false;
101
- };
102
- role: {
103
- type: _contractspec_lib_schema258.FieldType<string, string>;
104
- isOptional: true;
105
- };
106
- status: {
107
- type: _contractspec_lib_schema258.FieldType<string, string>;
108
- isOptional: false;
109
- };
110
- expiresAt: {
111
- type: _contractspec_lib_schema258.FieldType<Date, string>;
112
- isOptional: true;
113
- };
114
- createdAt: {
115
- type: _contractspec_lib_schema258.FieldType<Date, string>;
116
- isOptional: false;
117
- };
89
+ export declare const InvitationModel: SchemaModel<{
90
+ id: {
91
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
92
+ isOptional: false;
93
+ };
94
+ email: {
95
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
96
+ isOptional: false;
97
+ };
98
+ role: {
99
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
100
+ isOptional: true;
101
+ };
102
+ status: {
103
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
104
+ isOptional: false;
105
+ };
106
+ expiresAt: {
107
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
108
+ isOptional: true;
109
+ };
110
+ createdAt: {
111
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
112
+ isOptional: false;
113
+ };
118
114
  }>;
119
- declare const CreateOrgInputModel: SchemaModel<{
120
- name: {
121
- type: _contractspec_lib_schema258.FieldType<string, string>;
122
- isOptional: false;
123
- };
124
- slug: {
125
- type: _contractspec_lib_schema258.FieldType<string, string>;
126
- isOptional: true;
127
- };
128
- description: {
129
- type: _contractspec_lib_schema258.FieldType<string, string>;
130
- isOptional: true;
131
- };
132
- type: {
133
- type: _contractspec_lib_schema258.FieldType<string, string>;
134
- isOptional: true;
135
- };
115
+ export declare const CreateOrgInputModel: SchemaModel<{
116
+ name: {
117
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
118
+ isOptional: false;
119
+ };
120
+ slug: {
121
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
122
+ isOptional: true;
123
+ };
124
+ description: {
125
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
126
+ isOptional: true;
127
+ };
128
+ type: {
129
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
130
+ isOptional: true;
131
+ };
136
132
  }>;
137
- declare const GetOrgInputModel: SchemaModel<{
138
- orgId: {
139
- type: _contractspec_lib_schema258.FieldType<string, string>;
140
- isOptional: false;
141
- };
133
+ export declare const GetOrgInputModel: SchemaModel<{
134
+ orgId: {
135
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
136
+ isOptional: false;
137
+ };
142
138
  }>;
143
- declare const UpdateOrgInputModel: SchemaModel<{
144
- orgId: {
145
- type: _contractspec_lib_schema258.FieldType<string, string>;
146
- isOptional: false;
147
- };
148
- name: {
149
- type: _contractspec_lib_schema258.FieldType<string, string>;
150
- isOptional: true;
151
- };
152
- slug: {
153
- type: _contractspec_lib_schema258.FieldType<string, string>;
154
- isOptional: true;
155
- };
156
- logo: {
157
- type: _contractspec_lib_schema258.FieldType<string, string>;
158
- isOptional: true;
159
- };
160
- description: {
161
- type: _contractspec_lib_schema258.FieldType<string, string>;
162
- isOptional: true;
163
- };
139
+ export declare const UpdateOrgInputModel: SchemaModel<{
140
+ orgId: {
141
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
142
+ isOptional: false;
143
+ };
144
+ name: {
145
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
146
+ isOptional: true;
147
+ };
148
+ slug: {
149
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
150
+ isOptional: true;
151
+ };
152
+ logo: {
153
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
154
+ isOptional: true;
155
+ };
156
+ description: {
157
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
158
+ isOptional: true;
159
+ };
164
160
  }>;
165
- declare const InviteMemberInputModel: SchemaModel<{
166
- orgId: {
167
- type: _contractspec_lib_schema258.FieldType<string, string>;
168
- isOptional: false;
169
- };
170
- email: {
171
- type: _contractspec_lib_schema258.FieldType<string, string>;
172
- isOptional: false;
173
- };
174
- role: {
175
- type: _contractspec_lib_schema258.FieldType<string, string>;
176
- isOptional: false;
177
- };
178
- teamId: {
179
- type: _contractspec_lib_schema258.FieldType<string, string>;
180
- isOptional: true;
181
- };
161
+ export declare const InviteMemberInputModel: SchemaModel<{
162
+ orgId: {
163
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
164
+ isOptional: false;
165
+ };
166
+ email: {
167
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
168
+ isOptional: false;
169
+ };
170
+ role: {
171
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
172
+ isOptional: false;
173
+ };
174
+ teamId: {
175
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
176
+ isOptional: true;
177
+ };
182
178
  }>;
183
- declare const AcceptInviteInputModel: SchemaModel<{
184
- invitationId: {
185
- type: _contractspec_lib_schema258.FieldType<string, string>;
186
- isOptional: false;
187
- };
179
+ export declare const AcceptInviteInputModel: SchemaModel<{
180
+ invitationId: {
181
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
182
+ isOptional: false;
183
+ };
188
184
  }>;
189
- declare const RemoveMemberInputModel: SchemaModel<{
190
- orgId: {
191
- type: _contractspec_lib_schema258.FieldType<string, string>;
192
- isOptional: false;
193
- };
194
- userId: {
195
- type: _contractspec_lib_schema258.FieldType<string, string>;
196
- isOptional: false;
197
- };
185
+ export declare const RemoveMemberInputModel: SchemaModel<{
186
+ orgId: {
187
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
188
+ isOptional: false;
189
+ };
190
+ userId: {
191
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
192
+ isOptional: false;
193
+ };
198
194
  }>;
199
- declare const MemberRemovedPayloadModel: SchemaModel<{
200
- orgId: {
201
- type: _contractspec_lib_schema258.FieldType<string, string>;
202
- isOptional: false;
203
- };
204
- userId: {
205
- type: _contractspec_lib_schema258.FieldType<string, string>;
206
- isOptional: false;
207
- };
195
+ export declare const MemberRemovedPayloadModel: SchemaModel<{
196
+ orgId: {
197
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
198
+ isOptional: false;
199
+ };
200
+ userId: {
201
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
202
+ isOptional: false;
203
+ };
208
204
  }>;
209
- declare const ListMembersInputModel: SchemaModel<{
210
- orgId: {
211
- type: _contractspec_lib_schema258.FieldType<string, string>;
212
- isOptional: false;
213
- };
214
- limit: {
215
- type: _contractspec_lib_schema258.FieldType<number, number>;
216
- isOptional: true;
217
- };
218
- offset: {
219
- type: _contractspec_lib_schema258.FieldType<number, number>;
220
- isOptional: true;
221
- };
205
+ export declare const ListMembersInputModel: SchemaModel<{
206
+ orgId: {
207
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
208
+ isOptional: false;
209
+ };
210
+ limit: {
211
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
212
+ isOptional: true;
213
+ };
214
+ offset: {
215
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
216
+ isOptional: true;
217
+ };
222
218
  }>;
223
- declare const ListMembersOutputModel: SchemaModel<{
224
- members: {
225
- type: SchemaModel<{
226
- id: {
227
- type: _contractspec_lib_schema258.FieldType<string, string>;
228
- isOptional: false;
229
- };
230
- userId: {
231
- type: _contractspec_lib_schema258.FieldType<string, string>;
232
- isOptional: false;
233
- };
234
- organizationId: {
235
- type: _contractspec_lib_schema258.FieldType<string, string>;
236
- isOptional: false;
237
- };
238
- role: {
239
- type: _contractspec_lib_schema258.FieldType<string, string>;
240
- isOptional: false;
241
- };
242
- createdAt: {
243
- type: _contractspec_lib_schema258.FieldType<Date, string>;
244
- isOptional: false;
245
- };
246
- user: {
219
+ export declare const ListMembersOutputModel: SchemaModel<{
220
+ members: {
247
221
  type: SchemaModel<{
248
- id: {
249
- type: _contractspec_lib_schema258.FieldType<string, string>;
250
- isOptional: false;
251
- };
252
- email: {
253
- type: _contractspec_lib_schema258.FieldType<string, string>;
254
- isOptional: false;
255
- };
256
- name: {
257
- type: _contractspec_lib_schema258.FieldType<string, string>;
258
- isOptional: true;
259
- };
222
+ id: {
223
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
224
+ isOptional: false;
225
+ };
226
+ userId: {
227
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
228
+ isOptional: false;
229
+ };
230
+ organizationId: {
231
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
232
+ isOptional: false;
233
+ };
234
+ role: {
235
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
236
+ isOptional: false;
237
+ };
238
+ createdAt: {
239
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
240
+ isOptional: false;
241
+ };
242
+ user: {
243
+ type: SchemaModel<{
244
+ id: {
245
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
246
+ isOptional: false;
247
+ };
248
+ email: {
249
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
250
+ isOptional: false;
251
+ };
252
+ name: {
253
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
254
+ isOptional: true;
255
+ };
256
+ }>;
257
+ isOptional: false;
258
+ };
260
259
  }>;
261
260
  isOptional: false;
262
- };
263
- }>;
264
- isOptional: false;
265
- isArray: true;
266
- };
267
- total: {
268
- type: _contractspec_lib_schema258.FieldType<number, number>;
269
- isOptional: false;
270
- };
271
- }>;
272
- declare const OrganizationWithRoleModel: SchemaModel<{
273
- id: {
274
- type: _contractspec_lib_schema258.FieldType<string, string>;
275
- isOptional: false;
276
- };
277
- name: {
278
- type: _contractspec_lib_schema258.FieldType<string, string>;
279
- isOptional: false;
280
- };
281
- slug: {
282
- type: _contractspec_lib_schema258.FieldType<string, string>;
283
- isOptional: true;
284
- };
285
- logo: {
286
- type: _contractspec_lib_schema258.FieldType<string, string>;
287
- isOptional: true;
288
- };
289
- description: {
290
- type: _contractspec_lib_schema258.FieldType<string, string>;
291
- isOptional: true;
292
- };
293
- type: {
294
- type: _contractspec_lib_schema258.FieldType<string, string>;
295
- isOptional: false;
296
- };
297
- onboardingCompleted: {
298
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
299
- isOptional: false;
300
- };
301
- createdAt: {
302
- type: _contractspec_lib_schema258.FieldType<Date, string>;
303
- isOptional: false;
304
- };
305
- role: {
306
- type: _contractspec_lib_schema258.FieldType<string, string>;
307
- isOptional: false;
308
- };
261
+ isArray: true;
262
+ };
263
+ total: {
264
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
265
+ isOptional: false;
266
+ };
309
267
  }>;
310
- declare const ListUserOrgsOutputModel: SchemaModel<{
311
- organizations: {
312
- type: SchemaModel<{
313
- id: {
314
- type: _contractspec_lib_schema258.FieldType<string, string>;
268
+ export declare const OrganizationWithRoleModel: SchemaModel<{
269
+ id: {
270
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
315
271
  isOptional: false;
316
- };
317
- name: {
318
- type: _contractspec_lib_schema258.FieldType<string, string>;
272
+ };
273
+ name: {
274
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
319
275
  isOptional: false;
320
- };
321
- slug: {
322
- type: _contractspec_lib_schema258.FieldType<string, string>;
276
+ };
277
+ slug: {
278
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
323
279
  isOptional: true;
324
- };
325
- logo: {
326
- type: _contractspec_lib_schema258.FieldType<string, string>;
280
+ };
281
+ logo: {
282
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
327
283
  isOptional: true;
328
- };
329
- description: {
330
- type: _contractspec_lib_schema258.FieldType<string, string>;
284
+ };
285
+ description: {
286
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
331
287
  isOptional: true;
332
- };
333
- type: {
334
- type: _contractspec_lib_schema258.FieldType<string, string>;
288
+ };
289
+ type: {
290
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
291
+ isOptional: false;
292
+ };
293
+ onboardingCompleted: {
294
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
335
295
  isOptional: false;
336
- };
337
- onboardingCompleted: {
338
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
296
+ };
297
+ createdAt: {
298
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
339
299
  isOptional: false;
340
- };
341
- createdAt: {
342
- type: _contractspec_lib_schema258.FieldType<Date, string>;
300
+ };
301
+ role: {
302
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
343
303
  isOptional: false;
344
- };
345
- role: {
346
- type: _contractspec_lib_schema258.FieldType<string, string>;
304
+ };
305
+ }>;
306
+ export declare const ListUserOrgsOutputModel: SchemaModel<{
307
+ organizations: {
308
+ type: SchemaModel<{
309
+ id: {
310
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
311
+ isOptional: false;
312
+ };
313
+ name: {
314
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
315
+ isOptional: false;
316
+ };
317
+ slug: {
318
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
319
+ isOptional: true;
320
+ };
321
+ logo: {
322
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
323
+ isOptional: true;
324
+ };
325
+ description: {
326
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
327
+ isOptional: true;
328
+ };
329
+ type: {
330
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
331
+ isOptional: false;
332
+ };
333
+ onboardingCompleted: {
334
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
335
+ isOptional: false;
336
+ };
337
+ createdAt: {
338
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
339
+ isOptional: false;
340
+ };
341
+ role: {
342
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
343
+ isOptional: false;
344
+ };
345
+ }>;
347
346
  isOptional: false;
348
- };
349
- }>;
350
- isOptional: false;
351
- isArray: true;
352
- };
347
+ isArray: true;
348
+ };
353
349
  }>;
354
350
  /**
355
351
  * Create a new organization.
356
352
  */
357
- declare const CreateOrgContract: _contractspec_lib_contracts40.OperationSpec<SchemaModel<{
358
- name: {
359
- type: _contractspec_lib_schema258.FieldType<string, string>;
360
- isOptional: false;
361
- };
362
- slug: {
363
- type: _contractspec_lib_schema258.FieldType<string, string>;
364
- isOptional: true;
365
- };
366
- description: {
367
- type: _contractspec_lib_schema258.FieldType<string, string>;
368
- isOptional: true;
369
- };
370
- type: {
371
- type: _contractspec_lib_schema258.FieldType<string, string>;
372
- isOptional: true;
373
- };
353
+ export declare const CreateOrgContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
354
+ name: {
355
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
356
+ isOptional: false;
357
+ };
358
+ slug: {
359
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
360
+ isOptional: true;
361
+ };
362
+ description: {
363
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
364
+ isOptional: true;
365
+ };
366
+ type: {
367
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
368
+ isOptional: true;
369
+ };
374
370
  }>, SchemaModel<{
375
- id: {
376
- type: _contractspec_lib_schema258.FieldType<string, string>;
377
- isOptional: false;
378
- };
379
- name: {
380
- type: _contractspec_lib_schema258.FieldType<string, string>;
381
- isOptional: false;
382
- };
383
- slug: {
384
- type: _contractspec_lib_schema258.FieldType<string, string>;
385
- isOptional: true;
386
- };
387
- logo: {
388
- type: _contractspec_lib_schema258.FieldType<string, string>;
389
- isOptional: true;
390
- };
391
- description: {
392
- type: _contractspec_lib_schema258.FieldType<string, string>;
393
- isOptional: true;
394
- };
395
- type: {
396
- type: _contractspec_lib_schema258.FieldType<string, string>;
397
- isOptional: false;
398
- };
399
- onboardingCompleted: {
400
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
401
- isOptional: false;
402
- };
403
- createdAt: {
404
- type: _contractspec_lib_schema258.FieldType<Date, string>;
405
- isOptional: false;
406
- };
407
- }>, {
408
- key: string;
409
- version: string;
410
- when: string;
411
- payload: SchemaModel<{
412
371
  id: {
413
- type: _contractspec_lib_schema258.FieldType<string, string>;
414
- isOptional: false;
372
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
373
+ isOptional: false;
415
374
  };
416
375
  name: {
417
- type: _contractspec_lib_schema258.FieldType<string, string>;
418
- isOptional: false;
376
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
377
+ isOptional: false;
419
378
  };
420
379
  slug: {
421
- type: _contractspec_lib_schema258.FieldType<string, string>;
422
- isOptional: true;
380
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
381
+ isOptional: true;
423
382
  };
424
383
  logo: {
425
- type: _contractspec_lib_schema258.FieldType<string, string>;
426
- isOptional: true;
384
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
385
+ isOptional: true;
427
386
  };
428
387
  description: {
429
- type: _contractspec_lib_schema258.FieldType<string, string>;
430
- isOptional: true;
388
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
389
+ isOptional: true;
431
390
  };
432
391
  type: {
433
- type: _contractspec_lib_schema258.FieldType<string, string>;
434
- isOptional: false;
392
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
393
+ isOptional: false;
435
394
  };
436
395
  onboardingCompleted: {
437
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
438
- isOptional: false;
396
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
397
+ isOptional: false;
439
398
  };
440
399
  createdAt: {
441
- type: _contractspec_lib_schema258.FieldType<Date, string>;
442
- isOptional: false;
400
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
401
+ isOptional: false;
443
402
  };
444
- }>;
403
+ }>, {
404
+ key: string;
405
+ version: string;
406
+ when: string;
407
+ payload: SchemaModel<{
408
+ id: {
409
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
410
+ isOptional: false;
411
+ };
412
+ name: {
413
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
414
+ isOptional: false;
415
+ };
416
+ slug: {
417
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
418
+ isOptional: true;
419
+ };
420
+ logo: {
421
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
422
+ isOptional: true;
423
+ };
424
+ description: {
425
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
426
+ isOptional: true;
427
+ };
428
+ type: {
429
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
430
+ isOptional: false;
431
+ };
432
+ onboardingCompleted: {
433
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
434
+ isOptional: false;
435
+ };
436
+ createdAt: {
437
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
438
+ isOptional: false;
439
+ };
440
+ }>;
445
441
  }[]>;
446
442
  /**
447
443
  * Get organization details.
448
444
  */
449
- declare const GetOrgContract: _contractspec_lib_contracts40.OperationSpec<SchemaModel<{
450
- orgId: {
451
- type: _contractspec_lib_schema258.FieldType<string, string>;
452
- isOptional: false;
453
- };
445
+ export declare const GetOrgContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
446
+ orgId: {
447
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
448
+ isOptional: false;
449
+ };
454
450
  }>, SchemaModel<{
455
- id: {
456
- type: _contractspec_lib_schema258.FieldType<string, string>;
457
- isOptional: false;
458
- };
459
- name: {
460
- type: _contractspec_lib_schema258.FieldType<string, string>;
461
- isOptional: false;
462
- };
463
- slug: {
464
- type: _contractspec_lib_schema258.FieldType<string, string>;
465
- isOptional: true;
466
- };
467
- logo: {
468
- type: _contractspec_lib_schema258.FieldType<string, string>;
469
- isOptional: true;
470
- };
471
- description: {
472
- type: _contractspec_lib_schema258.FieldType<string, string>;
473
- isOptional: true;
474
- };
475
- type: {
476
- type: _contractspec_lib_schema258.FieldType<string, string>;
477
- isOptional: false;
478
- };
479
- onboardingCompleted: {
480
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
481
- isOptional: false;
482
- };
483
- createdAt: {
484
- type: _contractspec_lib_schema258.FieldType<Date, string>;
485
- isOptional: false;
486
- };
451
+ id: {
452
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
453
+ isOptional: false;
454
+ };
455
+ name: {
456
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
457
+ isOptional: false;
458
+ };
459
+ slug: {
460
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
461
+ isOptional: true;
462
+ };
463
+ logo: {
464
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
465
+ isOptional: true;
466
+ };
467
+ description: {
468
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
469
+ isOptional: true;
470
+ };
471
+ type: {
472
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
473
+ isOptional: false;
474
+ };
475
+ onboardingCompleted: {
476
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
477
+ isOptional: false;
478
+ };
479
+ createdAt: {
480
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
481
+ isOptional: false;
482
+ };
487
483
  }>, undefined>;
488
484
  /**
489
485
  * Update organization.
490
486
  */
491
- declare const UpdateOrgContract: _contractspec_lib_contracts40.OperationSpec<SchemaModel<{
492
- orgId: {
493
- type: _contractspec_lib_schema258.FieldType<string, string>;
494
- isOptional: false;
495
- };
496
- name: {
497
- type: _contractspec_lib_schema258.FieldType<string, string>;
498
- isOptional: true;
499
- };
500
- slug: {
501
- type: _contractspec_lib_schema258.FieldType<string, string>;
502
- isOptional: true;
503
- };
504
- logo: {
505
- type: _contractspec_lib_schema258.FieldType<string, string>;
506
- isOptional: true;
507
- };
508
- description: {
509
- type: _contractspec_lib_schema258.FieldType<string, string>;
510
- isOptional: true;
511
- };
487
+ export declare const UpdateOrgContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
488
+ orgId: {
489
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
490
+ isOptional: false;
491
+ };
492
+ name: {
493
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
494
+ isOptional: true;
495
+ };
496
+ slug: {
497
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
498
+ isOptional: true;
499
+ };
500
+ logo: {
501
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
502
+ isOptional: true;
503
+ };
504
+ description: {
505
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
506
+ isOptional: true;
507
+ };
512
508
  }>, SchemaModel<{
513
- id: {
514
- type: _contractspec_lib_schema258.FieldType<string, string>;
515
- isOptional: false;
516
- };
517
- name: {
518
- type: _contractspec_lib_schema258.FieldType<string, string>;
519
- isOptional: false;
520
- };
521
- slug: {
522
- type: _contractspec_lib_schema258.FieldType<string, string>;
523
- isOptional: true;
524
- };
525
- logo: {
526
- type: _contractspec_lib_schema258.FieldType<string, string>;
527
- isOptional: true;
528
- };
529
- description: {
530
- type: _contractspec_lib_schema258.FieldType<string, string>;
531
- isOptional: true;
532
- };
533
- type: {
534
- type: _contractspec_lib_schema258.FieldType<string, string>;
535
- isOptional: false;
536
- };
537
- onboardingCompleted: {
538
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
539
- isOptional: false;
540
- };
541
- createdAt: {
542
- type: _contractspec_lib_schema258.FieldType<Date, string>;
543
- isOptional: false;
544
- };
545
- }>, {
546
- key: string;
547
- version: string;
548
- when: string;
549
- payload: SchemaModel<{
550
509
  id: {
551
- type: _contractspec_lib_schema258.FieldType<string, string>;
552
- isOptional: false;
510
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
511
+ isOptional: false;
553
512
  };
554
513
  name: {
555
- type: _contractspec_lib_schema258.FieldType<string, string>;
556
- isOptional: false;
514
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
515
+ isOptional: false;
557
516
  };
558
517
  slug: {
559
- type: _contractspec_lib_schema258.FieldType<string, string>;
560
- isOptional: true;
518
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
519
+ isOptional: true;
561
520
  };
562
521
  logo: {
563
- type: _contractspec_lib_schema258.FieldType<string, string>;
564
- isOptional: true;
522
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
523
+ isOptional: true;
565
524
  };
566
525
  description: {
567
- type: _contractspec_lib_schema258.FieldType<string, string>;
568
- isOptional: true;
526
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
527
+ isOptional: true;
569
528
  };
570
529
  type: {
571
- type: _contractspec_lib_schema258.FieldType<string, string>;
572
- isOptional: false;
530
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
531
+ isOptional: false;
573
532
  };
574
533
  onboardingCompleted: {
575
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
576
- isOptional: false;
534
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
535
+ isOptional: false;
577
536
  };
578
537
  createdAt: {
579
- type: _contractspec_lib_schema258.FieldType<Date, string>;
580
- isOptional: false;
538
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
539
+ isOptional: false;
581
540
  };
582
- }>;
541
+ }>, {
542
+ key: string;
543
+ version: string;
544
+ when: string;
545
+ payload: SchemaModel<{
546
+ id: {
547
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
548
+ isOptional: false;
549
+ };
550
+ name: {
551
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
552
+ isOptional: false;
553
+ };
554
+ slug: {
555
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
556
+ isOptional: true;
557
+ };
558
+ logo: {
559
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
560
+ isOptional: true;
561
+ };
562
+ description: {
563
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
564
+ isOptional: true;
565
+ };
566
+ type: {
567
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
568
+ isOptional: false;
569
+ };
570
+ onboardingCompleted: {
571
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
572
+ isOptional: false;
573
+ };
574
+ createdAt: {
575
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
576
+ isOptional: false;
577
+ };
578
+ }>;
583
579
  }[]>;
584
580
  /**
585
581
  * Invite a member to the organization.
586
582
  */
587
- declare const InviteMemberContract: _contractspec_lib_contracts40.OperationSpec<SchemaModel<{
588
- orgId: {
589
- type: _contractspec_lib_schema258.FieldType<string, string>;
590
- isOptional: false;
591
- };
592
- email: {
593
- type: _contractspec_lib_schema258.FieldType<string, string>;
594
- isOptional: false;
595
- };
596
- role: {
597
- type: _contractspec_lib_schema258.FieldType<string, string>;
598
- isOptional: false;
599
- };
600
- teamId: {
601
- type: _contractspec_lib_schema258.FieldType<string, string>;
602
- isOptional: true;
603
- };
583
+ export declare const InviteMemberContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
584
+ orgId: {
585
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
586
+ isOptional: false;
587
+ };
588
+ email: {
589
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
590
+ isOptional: false;
591
+ };
592
+ role: {
593
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
594
+ isOptional: false;
595
+ };
596
+ teamId: {
597
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
598
+ isOptional: true;
599
+ };
604
600
  }>, SchemaModel<{
605
- id: {
606
- type: _contractspec_lib_schema258.FieldType<string, string>;
607
- isOptional: false;
608
- };
609
- email: {
610
- type: _contractspec_lib_schema258.FieldType<string, string>;
611
- isOptional: false;
612
- };
613
- role: {
614
- type: _contractspec_lib_schema258.FieldType<string, string>;
615
- isOptional: true;
616
- };
617
- status: {
618
- type: _contractspec_lib_schema258.FieldType<string, string>;
619
- isOptional: false;
620
- };
621
- expiresAt: {
622
- type: _contractspec_lib_schema258.FieldType<Date, string>;
623
- isOptional: true;
624
- };
625
- createdAt: {
626
- type: _contractspec_lib_schema258.FieldType<Date, string>;
627
- isOptional: false;
628
- };
629
- }>, {
630
- key: string;
631
- version: string;
632
- when: string;
633
- payload: SchemaModel<{
634
601
  id: {
635
- type: _contractspec_lib_schema258.FieldType<string, string>;
636
- isOptional: false;
602
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
603
+ isOptional: false;
637
604
  };
638
605
  email: {
639
- type: _contractspec_lib_schema258.FieldType<string, string>;
640
- isOptional: false;
606
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
607
+ isOptional: false;
641
608
  };
642
609
  role: {
643
- type: _contractspec_lib_schema258.FieldType<string, string>;
644
- isOptional: true;
610
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
611
+ isOptional: true;
645
612
  };
646
613
  status: {
647
- type: _contractspec_lib_schema258.FieldType<string, string>;
648
- isOptional: false;
614
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
615
+ isOptional: false;
649
616
  };
650
617
  expiresAt: {
651
- type: _contractspec_lib_schema258.FieldType<Date, string>;
652
- isOptional: true;
618
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
619
+ isOptional: true;
653
620
  };
654
621
  createdAt: {
655
- type: _contractspec_lib_schema258.FieldType<Date, string>;
656
- isOptional: false;
622
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
623
+ isOptional: false;
657
624
  };
658
- }>;
625
+ }>, {
626
+ key: string;
627
+ version: string;
628
+ when: string;
629
+ payload: SchemaModel<{
630
+ id: {
631
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
632
+ isOptional: false;
633
+ };
634
+ email: {
635
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
636
+ isOptional: false;
637
+ };
638
+ role: {
639
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
640
+ isOptional: true;
641
+ };
642
+ status: {
643
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
644
+ isOptional: false;
645
+ };
646
+ expiresAt: {
647
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
648
+ isOptional: true;
649
+ };
650
+ createdAt: {
651
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
652
+ isOptional: false;
653
+ };
654
+ }>;
659
655
  }[]>;
660
656
  /**
661
657
  * Accept an invitation.
662
658
  */
663
- declare const AcceptInviteContract: _contractspec_lib_contracts40.OperationSpec<SchemaModel<{
664
- invitationId: {
665
- type: _contractspec_lib_schema258.FieldType<string, string>;
666
- isOptional: false;
667
- };
659
+ export declare const AcceptInviteContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
660
+ invitationId: {
661
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
662
+ isOptional: false;
663
+ };
668
664
  }>, SchemaModel<{
669
- id: {
670
- type: _contractspec_lib_schema258.FieldType<string, string>;
671
- isOptional: false;
672
- };
673
- userId: {
674
- type: _contractspec_lib_schema258.FieldType<string, string>;
675
- isOptional: false;
676
- };
677
- organizationId: {
678
- type: _contractspec_lib_schema258.FieldType<string, string>;
679
- isOptional: false;
680
- };
681
- role: {
682
- type: _contractspec_lib_schema258.FieldType<string, string>;
683
- isOptional: false;
684
- };
685
- createdAt: {
686
- type: _contractspec_lib_schema258.FieldType<Date, string>;
687
- isOptional: false;
688
- };
689
- user: {
690
- type: SchemaModel<{
691
- id: {
692
- type: _contractspec_lib_schema258.FieldType<string, string>;
693
- isOptional: false;
694
- };
695
- email: {
696
- type: _contractspec_lib_schema258.FieldType<string, string>;
697
- isOptional: false;
698
- };
699
- name: {
700
- type: _contractspec_lib_schema258.FieldType<string, string>;
701
- isOptional: true;
702
- };
703
- }>;
704
- isOptional: false;
705
- };
706
- }>, {
707
- key: string;
708
- version: string;
709
- when: string;
710
- payload: SchemaModel<{
711
665
  id: {
712
- type: _contractspec_lib_schema258.FieldType<string, string>;
713
- isOptional: false;
666
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
667
+ isOptional: false;
714
668
  };
715
669
  userId: {
716
- type: _contractspec_lib_schema258.FieldType<string, string>;
717
- isOptional: false;
670
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
671
+ isOptional: false;
718
672
  };
719
673
  organizationId: {
720
- type: _contractspec_lib_schema258.FieldType<string, string>;
721
- isOptional: false;
674
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
675
+ isOptional: false;
722
676
  };
723
677
  role: {
724
- type: _contractspec_lib_schema258.FieldType<string, string>;
725
- isOptional: false;
678
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
679
+ isOptional: false;
726
680
  };
727
681
  createdAt: {
728
- type: _contractspec_lib_schema258.FieldType<Date, string>;
729
- isOptional: false;
682
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
683
+ isOptional: false;
730
684
  };
731
685
  user: {
732
- type: SchemaModel<{
686
+ type: SchemaModel<{
687
+ id: {
688
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
689
+ isOptional: false;
690
+ };
691
+ email: {
692
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
693
+ isOptional: false;
694
+ };
695
+ name: {
696
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
697
+ isOptional: true;
698
+ };
699
+ }>;
700
+ isOptional: false;
701
+ };
702
+ }>, {
703
+ key: string;
704
+ version: string;
705
+ when: string;
706
+ payload: SchemaModel<{
733
707
  id: {
734
- type: _contractspec_lib_schema258.FieldType<string, string>;
735
- isOptional: false;
708
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
709
+ isOptional: false;
736
710
  };
737
- email: {
738
- type: _contractspec_lib_schema258.FieldType<string, string>;
739
- isOptional: false;
711
+ userId: {
712
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
713
+ isOptional: false;
740
714
  };
741
- name: {
742
- type: _contractspec_lib_schema258.FieldType<string, string>;
743
- isOptional: true;
715
+ organizationId: {
716
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
717
+ isOptional: false;
744
718
  };
745
- }>;
746
- isOptional: false;
747
- };
748
- }>;
719
+ role: {
720
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
721
+ isOptional: false;
722
+ };
723
+ createdAt: {
724
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
725
+ isOptional: false;
726
+ };
727
+ user: {
728
+ type: SchemaModel<{
729
+ id: {
730
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
731
+ isOptional: false;
732
+ };
733
+ email: {
734
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
735
+ isOptional: false;
736
+ };
737
+ name: {
738
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
739
+ isOptional: true;
740
+ };
741
+ }>;
742
+ isOptional: false;
743
+ };
744
+ }>;
749
745
  }[]>;
750
746
  /**
751
747
  * Remove a member from the organization.
752
748
  */
753
- declare const RemoveMemberContract: _contractspec_lib_contracts40.OperationSpec<SchemaModel<{
754
- orgId: {
755
- type: _contractspec_lib_schema258.FieldType<string, string>;
756
- isOptional: false;
757
- };
758
- userId: {
759
- type: _contractspec_lib_schema258.FieldType<string, string>;
760
- isOptional: false;
761
- };
762
- }>, SchemaModel<{
763
- success: {
764
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
765
- isOptional: false;
766
- };
767
- }>, {
768
- key: string;
769
- version: string;
770
- when: string;
771
- payload: SchemaModel<{
749
+ export declare const RemoveMemberContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
772
750
  orgId: {
773
- type: _contractspec_lib_schema258.FieldType<string, string>;
774
- isOptional: false;
751
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
752
+ isOptional: false;
775
753
  };
776
754
  userId: {
777
- type: _contractspec_lib_schema258.FieldType<string, string>;
778
- isOptional: false;
755
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
756
+ isOptional: false;
779
757
  };
780
- }>;
781
- }[]>;
782
- /**
783
- * List organization members.
784
- */
785
- declare const ListMembersContract: _contractspec_lib_contracts40.OperationSpec<SchemaModel<{
786
- orgId: {
787
- type: _contractspec_lib_schema258.FieldType<string, string>;
788
- isOptional: false;
789
- };
790
- limit: {
791
- type: _contractspec_lib_schema258.FieldType<number, number>;
792
- isOptional: true;
793
- };
794
- offset: {
795
- type: _contractspec_lib_schema258.FieldType<number, number>;
796
- isOptional: true;
797
- };
798
758
  }>, SchemaModel<{
799
- members: {
800
- type: SchemaModel<{
801
- id: {
802
- type: _contractspec_lib_schema258.FieldType<string, string>;
803
- isOptional: false;
804
- };
805
- userId: {
806
- type: _contractspec_lib_schema258.FieldType<string, string>;
759
+ success: {
760
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
807
761
  isOptional: false;
808
- };
809
- organizationId: {
810
- type: _contractspec_lib_schema258.FieldType<string, string>;
811
- isOptional: false;
812
- };
813
- role: {
814
- type: _contractspec_lib_schema258.FieldType<string, string>;
815
- isOptional: false;
816
- };
817
- createdAt: {
818
- type: _contractspec_lib_schema258.FieldType<Date, string>;
819
- isOptional: false;
820
- };
821
- user: {
822
- type: SchemaModel<{
823
- id: {
824
- type: _contractspec_lib_schema258.FieldType<string, string>;
762
+ };
763
+ }>, {
764
+ key: string;
765
+ version: string;
766
+ when: string;
767
+ payload: SchemaModel<{
768
+ orgId: {
769
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
825
770
  isOptional: false;
826
- };
827
- email: {
828
- type: _contractspec_lib_schema258.FieldType<string, string>;
771
+ };
772
+ userId: {
773
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
829
774
  isOptional: false;
830
- };
831
- name: {
832
- type: _contractspec_lib_schema258.FieldType<string, string>;
833
- isOptional: true;
834
- };
835
- }>;
836
- isOptional: false;
837
- };
775
+ };
838
776
  }>;
839
- isOptional: false;
840
- isArray: true;
841
- };
842
- total: {
843
- type: _contractspec_lib_schema258.FieldType<number, number>;
844
- isOptional: false;
845
- };
846
- }>, undefined>;
777
+ }[]>;
847
778
  /**
848
- * List user's organizations.
779
+ * List organization members.
849
780
  */
850
- declare const ListUserOrgsContract: _contractspec_lib_contracts40.OperationSpec<_contractspec_lib_schema258.AnySchemaModel, SchemaModel<{
851
- organizations: {
852
- type: SchemaModel<{
853
- id: {
854
- type: _contractspec_lib_schema258.FieldType<string, string>;
855
- isOptional: false;
856
- };
857
- name: {
858
- type: _contractspec_lib_schema258.FieldType<string, string>;
781
+ export declare const ListMembersContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
782
+ orgId: {
783
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
859
784
  isOptional: false;
860
- };
861
- slug: {
862
- type: _contractspec_lib_schema258.FieldType<string, string>;
863
- isOptional: true;
864
- };
865
- logo: {
866
- type: _contractspec_lib_schema258.FieldType<string, string>;
785
+ };
786
+ limit: {
787
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
867
788
  isOptional: true;
868
- };
869
- description: {
870
- type: _contractspec_lib_schema258.FieldType<string, string>;
789
+ };
790
+ offset: {
791
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
871
792
  isOptional: true;
872
- };
873
- type: {
874
- type: _contractspec_lib_schema258.FieldType<string, string>;
875
- isOptional: false;
876
- };
877
- onboardingCompleted: {
878
- type: _contractspec_lib_schema258.FieldType<boolean, boolean>;
793
+ };
794
+ }>, SchemaModel<{
795
+ members: {
796
+ type: SchemaModel<{
797
+ id: {
798
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
799
+ isOptional: false;
800
+ };
801
+ userId: {
802
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
803
+ isOptional: false;
804
+ };
805
+ organizationId: {
806
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
807
+ isOptional: false;
808
+ };
809
+ role: {
810
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
811
+ isOptional: false;
812
+ };
813
+ createdAt: {
814
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
815
+ isOptional: false;
816
+ };
817
+ user: {
818
+ type: SchemaModel<{
819
+ id: {
820
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
821
+ isOptional: false;
822
+ };
823
+ email: {
824
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
825
+ isOptional: false;
826
+ };
827
+ name: {
828
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
829
+ isOptional: true;
830
+ };
831
+ }>;
832
+ isOptional: false;
833
+ };
834
+ }>;
879
835
  isOptional: false;
880
- };
881
- createdAt: {
882
- type: _contractspec_lib_schema258.FieldType<Date, string>;
836
+ isArray: true;
837
+ };
838
+ total: {
839
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
883
840
  isOptional: false;
884
- };
885
- role: {
886
- type: _contractspec_lib_schema258.FieldType<string, string>;
841
+ };
842
+ }>, undefined>;
843
+ /**
844
+ * List user's organizations.
845
+ */
846
+ export declare const ListUserOrgsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").AnySchemaModel, SchemaModel<{
847
+ organizations: {
848
+ type: SchemaModel<{
849
+ id: {
850
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
851
+ isOptional: false;
852
+ };
853
+ name: {
854
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
855
+ isOptional: false;
856
+ };
857
+ slug: {
858
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
859
+ isOptional: true;
860
+ };
861
+ logo: {
862
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
863
+ isOptional: true;
864
+ };
865
+ description: {
866
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
867
+ isOptional: true;
868
+ };
869
+ type: {
870
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
871
+ isOptional: false;
872
+ };
873
+ onboardingCompleted: {
874
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
875
+ isOptional: false;
876
+ };
877
+ createdAt: {
878
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
879
+ isOptional: false;
880
+ };
881
+ role: {
882
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
883
+ isOptional: false;
884
+ };
885
+ }>;
887
886
  isOptional: false;
888
- };
889
- }>;
890
- isOptional: false;
891
- isArray: true;
892
- };
887
+ isArray: true;
888
+ };
893
889
  }>, undefined>;
894
- //#endregion
895
- export { AcceptInviteContract, AcceptInviteInputModel, CreateOrgContract, CreateOrgInputModel, GetOrgContract, GetOrgInputModel, InvitationModel, InviteMemberContract, InviteMemberInputModel, ListMembersContract, ListMembersInputModel, ListMembersOutputModel, ListUserOrgsContract, ListUserOrgsOutputModel, MemberModel, MemberRemovedPayloadModel, MemberUserModel, OrganizationModel, OrganizationWithRoleModel, RemoveMemberContract, RemoveMemberInputModel, UpdateOrgContract, UpdateOrgInputModel };
896
890
  //# sourceMappingURL=organization.d.ts.map