@eduware/oneroster 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +232 -0
- package/README.md +493 -334
- package/bin/mcp-server.js +338 -1328
- package/bin/mcp-server.js.map +22 -21
- package/dist/commonjs/enums/index.d.ts +2 -0
- package/dist/commonjs/enums/index.d.ts.map +1 -0
- package/dist/commonjs/enums/index.js +18 -0
- package/dist/commonjs/enums/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +41 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +18 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/operations/createuser.d.ts +8 -270
- package/dist/commonjs/models/operations/createuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createuser.js +17 -178
- package/dist/commonjs/models/operations/createuser.js.map +1 -1
- package/dist/commonjs/models/operations/getallstudents.d.ts +6 -206
- package/dist/commonjs/models/operations/getallstudents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getallstudents.js +12 -132
- package/dist/commonjs/models/operations/getallstudents.js.map +1 -1
- package/dist/commonjs/models/operations/getallteachers.d.ts +6 -206
- package/dist/commonjs/models/operations/getallteachers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getallteachers.js +12 -132
- package/dist/commonjs/models/operations/getallteachers.js.map +1 -1
- package/dist/commonjs/models/operations/getallusers.d.ts +6 -206
- package/dist/commonjs/models/operations/getallusers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getallusers.js +12 -132
- package/dist/commonjs/models/operations/getallusers.js.map +1 -1
- package/dist/commonjs/models/operations/getclassesforuser.d.ts +4 -85
- package/dist/commonjs/models/operations/getclassesforuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getclassesforuser.js +8 -67
- package/dist/commonjs/models/operations/getclassesforuser.js.map +1 -1
- package/dist/commonjs/models/operations/getresourcesforuser.d.ts +5 -111
- package/dist/commonjs/models/operations/getresourcesforuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getresourcesforuser.js +10 -88
- package/dist/commonjs/models/operations/getresourcesforuser.js.map +1 -1
- package/dist/commonjs/models/operations/getstudent.d.ts +5 -174
- package/dist/commonjs/models/operations/getstudent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstudent.js +10 -108
- package/dist/commonjs/models/operations/getstudent.js.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforclass.d.ts +6 -206
- package/dist/commonjs/models/operations/getstudentsforclass.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforclass.js +12 -132
- package/dist/commonjs/models/operations/getstudentsforclass.js.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforclassinschool.d.ts +6 -206
- package/dist/commonjs/models/operations/getstudentsforclassinschool.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforclassinschool.js +12 -132
- package/dist/commonjs/models/operations/getstudentsforclassinschool.js.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforschool.d.ts +6 -206
- package/dist/commonjs/models/operations/getstudentsforschool.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforschool.js +12 -132
- package/dist/commonjs/models/operations/getstudentsforschool.js.map +1 -1
- package/dist/commonjs/models/operations/getteacher.d.ts +5 -174
- package/dist/commonjs/models/operations/getteacher.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getteacher.js +10 -108
- package/dist/commonjs/models/operations/getteacher.js.map +1 -1
- package/dist/commonjs/models/operations/getteachersforclass.d.ts +6 -206
- package/dist/commonjs/models/operations/getteachersforclass.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getteachersforclass.js +12 -132
- package/dist/commonjs/models/operations/getteachersforclass.js.map +1 -1
- package/dist/commonjs/models/operations/getteachersforclassinschool.d.ts +6 -206
- package/dist/commonjs/models/operations/getteachersforclassinschool.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getteachersforclassinschool.js +12 -132
- package/dist/commonjs/models/operations/getteachersforclassinschool.js.map +1 -1
- package/dist/commonjs/models/operations/getteachersforschool.d.ts +6 -206
- package/dist/commonjs/models/operations/getteachersforschool.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getteachersforschool.js +12 -132
- package/dist/commonjs/models/operations/getteachersforschool.js.map +1 -1
- package/dist/commonjs/models/operations/getuser.d.ts +5 -174
- package/dist/commonjs/models/operations/getuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getuser.js +10 -108
- package/dist/commonjs/models/operations/getuser.js.map +1 -1
- package/dist/commonjs/models/operations/getuserwithdemographics.d.ts +5 -174
- package/dist/commonjs/models/operations/getuserwithdemographics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getuserwithdemographics.js +10 -108
- package/dist/commonjs/models/operations/getuserwithdemographics.js.map +1 -1
- package/dist/commonjs/models/operations/updateuser.d.ts +8 -270
- package/dist/commonjs/models/operations/updateuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateuser.js +17 -178
- package/dist/commonjs/models/operations/updateuser.js.map +1 -1
- package/dist/commonjs/models/shared/enums.d.ts +440 -0
- package/dist/commonjs/models/shared/enums.d.ts.map +1 -0
- package/dist/commonjs/models/shared/enums.js +499 -0
- package/dist/commonjs/models/shared/enums.js.map +1 -0
- package/dist/commonjs/models/shared/index.d.ts +8 -0
- package/dist/commonjs/models/shared/index.d.ts.map +1 -0
- package/dist/commonjs/models/shared/index.js +24 -0
- package/dist/commonjs/models/shared/index.js.map +1 -0
- package/dist/commonjs/types/index.d.ts +1 -0
- package/dist/commonjs/types/index.d.ts.map +1 -1
- package/dist/commonjs/types/index.js +16 -0
- package/dist/commonjs/types/index.js.map +1 -1
- package/dist/esm/enums/index.d.ts +2 -0
- package/dist/esm/enums/index.d.ts.map +1 -0
- package/dist/esm/enums/index.js +2 -0
- package/dist/esm/enums/index.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/operations/createuser.d.ts +8 -270
- package/dist/esm/models/operations/createuser.d.ts.map +1 -1
- package/dist/esm/models/operations/createuser.js +15 -176
- package/dist/esm/models/operations/createuser.js.map +1 -1
- package/dist/esm/models/operations/getallstudents.d.ts +6 -206
- package/dist/esm/models/operations/getallstudents.d.ts.map +1 -1
- package/dist/esm/models/operations/getallstudents.js +11 -131
- package/dist/esm/models/operations/getallstudents.js.map +1 -1
- package/dist/esm/models/operations/getallteachers.d.ts +6 -206
- package/dist/esm/models/operations/getallteachers.d.ts.map +1 -1
- package/dist/esm/models/operations/getallteachers.js +11 -131
- package/dist/esm/models/operations/getallteachers.js.map +1 -1
- package/dist/esm/models/operations/getallusers.d.ts +6 -206
- package/dist/esm/models/operations/getallusers.d.ts.map +1 -1
- package/dist/esm/models/operations/getallusers.js +11 -131
- package/dist/esm/models/operations/getallusers.js.map +1 -1
- package/dist/esm/models/operations/getclassesforuser.d.ts +4 -85
- package/dist/esm/models/operations/getclassesforuser.d.ts.map +1 -1
- package/dist/esm/models/operations/getclassesforuser.js +7 -66
- package/dist/esm/models/operations/getclassesforuser.js.map +1 -1
- package/dist/esm/models/operations/getresourcesforuser.d.ts +5 -111
- package/dist/esm/models/operations/getresourcesforuser.d.ts.map +1 -1
- package/dist/esm/models/operations/getresourcesforuser.js +9 -87
- package/dist/esm/models/operations/getresourcesforuser.js.map +1 -1
- package/dist/esm/models/operations/getstudent.d.ts +5 -174
- package/dist/esm/models/operations/getstudent.d.ts.map +1 -1
- package/dist/esm/models/operations/getstudent.js +9 -107
- package/dist/esm/models/operations/getstudent.js.map +1 -1
- package/dist/esm/models/operations/getstudentsforclass.d.ts +6 -206
- package/dist/esm/models/operations/getstudentsforclass.d.ts.map +1 -1
- package/dist/esm/models/operations/getstudentsforclass.js +11 -131
- package/dist/esm/models/operations/getstudentsforclass.js.map +1 -1
- package/dist/esm/models/operations/getstudentsforclassinschool.d.ts +6 -206
- package/dist/esm/models/operations/getstudentsforclassinschool.d.ts.map +1 -1
- package/dist/esm/models/operations/getstudentsforclassinschool.js +11 -131
- package/dist/esm/models/operations/getstudentsforclassinschool.js.map +1 -1
- package/dist/esm/models/operations/getstudentsforschool.d.ts +6 -206
- package/dist/esm/models/operations/getstudentsforschool.d.ts.map +1 -1
- package/dist/esm/models/operations/getstudentsforschool.js +11 -131
- package/dist/esm/models/operations/getstudentsforschool.js.map +1 -1
- package/dist/esm/models/operations/getteacher.d.ts +5 -174
- package/dist/esm/models/operations/getteacher.d.ts.map +1 -1
- package/dist/esm/models/operations/getteacher.js +9 -107
- package/dist/esm/models/operations/getteacher.js.map +1 -1
- package/dist/esm/models/operations/getteachersforclass.d.ts +6 -206
- package/dist/esm/models/operations/getteachersforclass.d.ts.map +1 -1
- package/dist/esm/models/operations/getteachersforclass.js +11 -131
- package/dist/esm/models/operations/getteachersforclass.js.map +1 -1
- package/dist/esm/models/operations/getteachersforclassinschool.d.ts +6 -206
- package/dist/esm/models/operations/getteachersforclassinschool.d.ts.map +1 -1
- package/dist/esm/models/operations/getteachersforclassinschool.js +11 -131
- package/dist/esm/models/operations/getteachersforclassinschool.js.map +1 -1
- package/dist/esm/models/operations/getteachersforschool.d.ts +6 -206
- package/dist/esm/models/operations/getteachersforschool.d.ts.map +1 -1
- package/dist/esm/models/operations/getteachersforschool.js +11 -131
- package/dist/esm/models/operations/getteachersforschool.js.map +1 -1
- package/dist/esm/models/operations/getuser.d.ts +5 -174
- package/dist/esm/models/operations/getuser.d.ts.map +1 -1
- package/dist/esm/models/operations/getuser.js +9 -107
- package/dist/esm/models/operations/getuser.js.map +1 -1
- package/dist/esm/models/operations/getuserwithdemographics.d.ts +5 -174
- package/dist/esm/models/operations/getuserwithdemographics.d.ts.map +1 -1
- package/dist/esm/models/operations/getuserwithdemographics.js +9 -107
- package/dist/esm/models/operations/getuserwithdemographics.js.map +1 -1
- package/dist/esm/models/operations/updateuser.d.ts +8 -270
- package/dist/esm/models/operations/updateuser.d.ts.map +1 -1
- package/dist/esm/models/operations/updateuser.js +15 -176
- package/dist/esm/models/operations/updateuser.js.map +1 -1
- package/dist/esm/models/shared/enums.d.ts +440 -0
- package/dist/esm/models/shared/enums.d.ts.map +1 -0
- package/dist/esm/models/shared/enums.js +462 -0
- package/dist/esm/models/shared/enums.js.map +1 -0
- package/dist/esm/models/shared/index.d.ts +8 -0
- package/dist/esm/models/shared/index.d.ts.map +1 -0
- package/dist/esm/models/shared/index.js +8 -0
- package/dist/esm/models/shared/index.js.map +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +2 -0
- package/dist/esm/types/index.js.map +1 -1
- package/package.json +37 -64
- package/src/enums/index.ts +1 -0
- package/src/index.ts +44 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/index.ts +1 -0
- package/src/models/operations/createuser.ts +35 -238
- package/src/models/operations/getallstudents.ts +32 -170
- package/src/models/operations/getallteachers.ts +32 -170
- package/src/models/operations/getallusers.ts +32 -170
- package/src/models/operations/getclassesforuser.ts +20 -97
- package/src/models/operations/getresourcesforuser.ts +26 -127
- package/src/models/operations/getstudent.ts +26 -136
- package/src/models/operations/getstudentsforclass.ts +32 -180
- package/src/models/operations/getstudentsforclassinschool.ts +32 -188
- package/src/models/operations/getstudentsforschool.ts +32 -180
- package/src/models/operations/getteacher.ts +26 -136
- package/src/models/operations/getteachersforclass.ts +32 -180
- package/src/models/operations/getteachersforclassinschool.ts +32 -188
- package/src/models/operations/getteachersforschool.ts +32 -180
- package/src/models/operations/getuser.ts +26 -136
- package/src/models/operations/getuserwithdemographics.ts +26 -144
- package/src/models/operations/updateuser.ts +35 -238
- package/src/models/shared/enums.ts +567 -0
- package/src/models/shared/index.ts +8 -0
- package/src/types/index.ts +3 -0
- package/test/classlink.test.ts +26 -26
- package/vitest.config.ts +2 -2
- package/test/summary-reporter.ts +0 -114
|
@@ -2,10 +2,23 @@ import * as z from 'zod';
|
|
|
2
2
|
|
|
3
3
|
import { remap as remap$ } from '../../lib/primitives.js';
|
|
4
4
|
import { collectExtraKeys as collectExtraKeys$, safeParse } from '../../lib/schemas.js';
|
|
5
|
-
import { ClosedEnum } from '../../types/enums.js';
|
|
6
5
|
import { Result as SafeParseResult } from '../../types/fp.js';
|
|
7
6
|
import * as components from '../components/index.js';
|
|
8
7
|
import { SDKValidationError } from '../errors/sdkvalidationerror.js';
|
|
8
|
+
import {
|
|
9
|
+
EntityType,
|
|
10
|
+
EntityType$inboundSchema,
|
|
11
|
+
EntityType$outboundSchema,
|
|
12
|
+
RoleType,
|
|
13
|
+
RoleType$inboundSchema,
|
|
14
|
+
RoleType$outboundSchema,
|
|
15
|
+
Status,
|
|
16
|
+
Status$inboundSchema,
|
|
17
|
+
Status$outboundSchema,
|
|
18
|
+
UserRole,
|
|
19
|
+
UserRole$inboundSchema,
|
|
20
|
+
UserRole$outboundSchema,
|
|
21
|
+
} from '../shared/enums.js';
|
|
9
22
|
|
|
10
23
|
export type UpdateUserOnboardingCompleted = {
|
|
11
24
|
state?: 'completed' | undefined;
|
|
@@ -38,42 +51,18 @@ export type UpdateUserMetadata = {
|
|
|
38
51
|
additionalProperties?: { [k: string]: any };
|
|
39
52
|
};
|
|
40
53
|
|
|
41
|
-
export const UpdateUserStatusRequest = {
|
|
42
|
-
Active: 'active',
|
|
43
|
-
Tobedeleted: 'tobedeleted',
|
|
44
|
-
} as const;
|
|
45
|
-
export type UpdateUserStatusRequest = ClosedEnum<typeof UpdateUserStatusRequest>;
|
|
46
|
-
|
|
47
54
|
export type UpdateUserUserIdRequest = {
|
|
48
55
|
type: string;
|
|
49
56
|
identifier: string;
|
|
50
57
|
};
|
|
51
58
|
|
|
52
|
-
export const UpdateUserRoleTypeRequest = {
|
|
53
|
-
Primary: 'primary',
|
|
54
|
-
Secondary: 'secondary',
|
|
55
|
-
} as const;
|
|
56
|
-
export type UpdateUserRoleTypeRequest = ClosedEnum<typeof UpdateUserRoleTypeRequest>;
|
|
57
|
-
|
|
58
|
-
export const UpdateUserRoleRequestEnum = {
|
|
59
|
-
Administrator: 'administrator',
|
|
60
|
-
Aide: 'aide',
|
|
61
|
-
Guardian: 'guardian',
|
|
62
|
-
Parent: 'parent',
|
|
63
|
-
Proctor: 'proctor',
|
|
64
|
-
Relative: 'relative',
|
|
65
|
-
Student: 'student',
|
|
66
|
-
Teacher: 'teacher',
|
|
67
|
-
} as const;
|
|
68
|
-
export type UpdateUserRoleRequestEnum = ClosedEnum<typeof UpdateUserRoleRequestEnum>;
|
|
69
|
-
|
|
70
59
|
export type UpdateUserOrgRequest = {
|
|
71
60
|
sourcedId: string;
|
|
72
61
|
};
|
|
73
62
|
|
|
74
63
|
export type UpdateUserRoleRequest = {
|
|
75
|
-
roleType:
|
|
76
|
-
role:
|
|
64
|
+
roleType: RoleType;
|
|
65
|
+
role: UserRole;
|
|
77
66
|
org: UpdateUserOrgRequest;
|
|
78
67
|
userProfile?: string | undefined;
|
|
79
68
|
beginDate?: string | undefined;
|
|
@@ -91,7 +80,7 @@ export type UpdateUserAgentRequest = {
|
|
|
91
80
|
export type UpdateUserUserRequest = {
|
|
92
81
|
sourcedId?: string | undefined;
|
|
93
82
|
metadata?: UpdateUserMetadata | undefined;
|
|
94
|
-
status?:
|
|
83
|
+
status?: Status | undefined;
|
|
95
84
|
userMasterIdentifier?: string | null | undefined;
|
|
96
85
|
username?: string | null | undefined;
|
|
97
86
|
userIds?: Array<UpdateUserUserIdRequest> | undefined;
|
|
@@ -125,35 +114,11 @@ export type UpdateUserRequest = {
|
|
|
125
114
|
requestBody: UpdateUserRequestBody;
|
|
126
115
|
};
|
|
127
116
|
|
|
128
|
-
export const UpdateUserStatusResponse = {
|
|
129
|
-
Active: 'active',
|
|
130
|
-
Tobedeleted: 'tobedeleted',
|
|
131
|
-
} as const;
|
|
132
|
-
export type UpdateUserStatusResponse = ClosedEnum<typeof UpdateUserStatusResponse>;
|
|
133
|
-
|
|
134
117
|
export type UpdateUserUserIdResponse = {
|
|
135
118
|
type: string;
|
|
136
119
|
identifier: string;
|
|
137
120
|
};
|
|
138
121
|
|
|
139
|
-
export const UpdateUserRoleTypeResponse = {
|
|
140
|
-
Primary: 'primary',
|
|
141
|
-
Secondary: 'secondary',
|
|
142
|
-
} as const;
|
|
143
|
-
export type UpdateUserRoleTypeResponse = ClosedEnum<typeof UpdateUserRoleTypeResponse>;
|
|
144
|
-
|
|
145
|
-
export const UpdateUserRoleResponseEnum = {
|
|
146
|
-
Administrator: 'administrator',
|
|
147
|
-
Aide: 'aide',
|
|
148
|
-
Guardian: 'guardian',
|
|
149
|
-
Parent: 'parent',
|
|
150
|
-
Proctor: 'proctor',
|
|
151
|
-
Relative: 'relative',
|
|
152
|
-
Student: 'student',
|
|
153
|
-
Teacher: 'teacher',
|
|
154
|
-
} as const;
|
|
155
|
-
export type UpdateUserRoleResponseEnum = ClosedEnum<typeof UpdateUserRoleResponseEnum>;
|
|
156
|
-
|
|
157
122
|
export type UpdateUserOrgResponse = {
|
|
158
123
|
href: string;
|
|
159
124
|
sourcedId: string;
|
|
@@ -161,41 +126,18 @@ export type UpdateUserOrgResponse = {
|
|
|
161
126
|
};
|
|
162
127
|
|
|
163
128
|
export type UpdateUserRoleResponse = {
|
|
164
|
-
roleType:
|
|
165
|
-
role:
|
|
129
|
+
roleType: RoleType;
|
|
130
|
+
role: UserRole;
|
|
166
131
|
org: UpdateUserOrgResponse;
|
|
167
132
|
userProfile?: string | undefined;
|
|
168
133
|
beginDate: string | null;
|
|
169
134
|
endDate: string | null;
|
|
170
135
|
};
|
|
171
136
|
|
|
172
|
-
export const UpdateUserType = {
|
|
173
|
-
AcademicSession: 'academicSession',
|
|
174
|
-
AssessmentLineItem: 'assessmentLineItem',
|
|
175
|
-
Category: 'category',
|
|
176
|
-
Class: 'class',
|
|
177
|
-
Course: 'course',
|
|
178
|
-
Demographics: 'demographics',
|
|
179
|
-
Enrollment: 'enrollment',
|
|
180
|
-
GradingPeriod: 'gradingPeriod',
|
|
181
|
-
LineItem: 'lineItem',
|
|
182
|
-
Org: 'org',
|
|
183
|
-
Resource: 'resource',
|
|
184
|
-
Result: 'result',
|
|
185
|
-
ScoreScale: 'scoreScale',
|
|
186
|
-
Student: 'student',
|
|
187
|
-
Teacher: 'teacher',
|
|
188
|
-
Term: 'term',
|
|
189
|
-
User: 'user',
|
|
190
|
-
ComponentResource: 'componentResource',
|
|
191
|
-
CourseComponent: 'courseComponent',
|
|
192
|
-
} as const;
|
|
193
|
-
export type UpdateUserType = ClosedEnum<typeof UpdateUserType>;
|
|
194
|
-
|
|
195
137
|
export type UpdateUserAgentResponse = {
|
|
196
138
|
href: string;
|
|
197
139
|
sourcedId: string;
|
|
198
|
-
type:
|
|
140
|
+
type: EntityType;
|
|
199
141
|
};
|
|
200
142
|
|
|
201
143
|
export type UpdateUserPrimaryOrgResponse = {
|
|
@@ -206,7 +148,7 @@ export type UpdateUserPrimaryOrgResponse = {
|
|
|
206
148
|
|
|
207
149
|
export type UpdateUserUserResponse = {
|
|
208
150
|
sourcedId: string;
|
|
209
|
-
status:
|
|
151
|
+
status: Status;
|
|
210
152
|
dateLastModified?: Date | undefined;
|
|
211
153
|
metadata?: { [k: string]: any } | null | undefined;
|
|
212
154
|
userMasterIdentifier?: string | null | undefined;
|
|
@@ -555,27 +497,6 @@ export function updateUserMetadataFromJSON(
|
|
|
555
497
|
);
|
|
556
498
|
}
|
|
557
499
|
|
|
558
|
-
/** @internal */
|
|
559
|
-
export const UpdateUserStatusRequest$inboundSchema: z.ZodNativeEnum<
|
|
560
|
-
typeof UpdateUserStatusRequest
|
|
561
|
-
> = z.nativeEnum(UpdateUserStatusRequest);
|
|
562
|
-
|
|
563
|
-
/** @internal */
|
|
564
|
-
export const UpdateUserStatusRequest$outboundSchema: z.ZodNativeEnum<
|
|
565
|
-
typeof UpdateUserStatusRequest
|
|
566
|
-
> = UpdateUserStatusRequest$inboundSchema;
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* @internal
|
|
570
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
571
|
-
*/
|
|
572
|
-
export namespace UpdateUserStatusRequest$ {
|
|
573
|
-
/** @deprecated use `UpdateUserStatusRequest$inboundSchema` instead. */
|
|
574
|
-
export const inboundSchema = UpdateUserStatusRequest$inboundSchema;
|
|
575
|
-
/** @deprecated use `UpdateUserStatusRequest$outboundSchema` instead. */
|
|
576
|
-
export const outboundSchema = UpdateUserStatusRequest$outboundSchema;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
500
|
/** @internal */
|
|
580
501
|
export const UpdateUserUserIdRequest$inboundSchema: z.ZodType<
|
|
581
502
|
UpdateUserUserIdRequest,
|
|
@@ -631,48 +552,6 @@ export function updateUserUserIdRequestFromJSON(
|
|
|
631
552
|
);
|
|
632
553
|
}
|
|
633
554
|
|
|
634
|
-
/** @internal */
|
|
635
|
-
export const UpdateUserRoleTypeRequest$inboundSchema: z.ZodNativeEnum<
|
|
636
|
-
typeof UpdateUserRoleTypeRequest
|
|
637
|
-
> = z.nativeEnum(UpdateUserRoleTypeRequest);
|
|
638
|
-
|
|
639
|
-
/** @internal */
|
|
640
|
-
export const UpdateUserRoleTypeRequest$outboundSchema: z.ZodNativeEnum<
|
|
641
|
-
typeof UpdateUserRoleTypeRequest
|
|
642
|
-
> = UpdateUserRoleTypeRequest$inboundSchema;
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* @internal
|
|
646
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
647
|
-
*/
|
|
648
|
-
export namespace UpdateUserRoleTypeRequest$ {
|
|
649
|
-
/** @deprecated use `UpdateUserRoleTypeRequest$inboundSchema` instead. */
|
|
650
|
-
export const inboundSchema = UpdateUserRoleTypeRequest$inboundSchema;
|
|
651
|
-
/** @deprecated use `UpdateUserRoleTypeRequest$outboundSchema` instead. */
|
|
652
|
-
export const outboundSchema = UpdateUserRoleTypeRequest$outboundSchema;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
/** @internal */
|
|
656
|
-
export const UpdateUserRoleRequestEnum$inboundSchema: z.ZodNativeEnum<
|
|
657
|
-
typeof UpdateUserRoleRequestEnum
|
|
658
|
-
> = z.nativeEnum(UpdateUserRoleRequestEnum);
|
|
659
|
-
|
|
660
|
-
/** @internal */
|
|
661
|
-
export const UpdateUserRoleRequestEnum$outboundSchema: z.ZodNativeEnum<
|
|
662
|
-
typeof UpdateUserRoleRequestEnum
|
|
663
|
-
> = UpdateUserRoleRequestEnum$inboundSchema;
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
* @internal
|
|
667
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
668
|
-
*/
|
|
669
|
-
export namespace UpdateUserRoleRequestEnum$ {
|
|
670
|
-
/** @deprecated use `UpdateUserRoleRequestEnum$inboundSchema` instead. */
|
|
671
|
-
export const inboundSchema = UpdateUserRoleRequestEnum$inboundSchema;
|
|
672
|
-
/** @deprecated use `UpdateUserRoleRequestEnum$outboundSchema` instead. */
|
|
673
|
-
export const outboundSchema = UpdateUserRoleRequestEnum$outboundSchema;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
555
|
/** @internal */
|
|
677
556
|
export const UpdateUserOrgRequest$inboundSchema: z.ZodType<
|
|
678
557
|
UpdateUserOrgRequest,
|
|
@@ -729,8 +608,8 @@ export const UpdateUserRoleRequest$inboundSchema: z.ZodType<
|
|
|
729
608
|
z.ZodTypeDef,
|
|
730
609
|
unknown
|
|
731
610
|
> = z.object({
|
|
732
|
-
roleType:
|
|
733
|
-
role:
|
|
611
|
+
roleType: RoleType$inboundSchema,
|
|
612
|
+
role: UserRole$inboundSchema,
|
|
734
613
|
org: z.lazy(() => UpdateUserOrgRequest$inboundSchema),
|
|
735
614
|
userProfile: z.string().optional(),
|
|
736
615
|
beginDate: z.string().optional(),
|
|
@@ -753,8 +632,8 @@ export const UpdateUserRoleRequest$outboundSchema: z.ZodType<
|
|
|
753
632
|
z.ZodTypeDef,
|
|
754
633
|
UpdateUserRoleRequest
|
|
755
634
|
> = z.object({
|
|
756
|
-
roleType:
|
|
757
|
-
role:
|
|
635
|
+
roleType: RoleType$outboundSchema,
|
|
636
|
+
role: UserRole$outboundSchema,
|
|
758
637
|
org: z.lazy(() => UpdateUserOrgRequest$outboundSchema),
|
|
759
638
|
userProfile: z.string().optional(),
|
|
760
639
|
beginDate: z.string().optional(),
|
|
@@ -902,7 +781,7 @@ export const UpdateUserUserRequest$inboundSchema: z.ZodType<
|
|
|
902
781
|
> = z.object({
|
|
903
782
|
sourcedId: z.string().optional(),
|
|
904
783
|
metadata: z.lazy(() => UpdateUserMetadata$inboundSchema).optional(),
|
|
905
|
-
status:
|
|
784
|
+
status: Status$inboundSchema.default('active'),
|
|
906
785
|
userMasterIdentifier: z.nullable(z.string()).optional(),
|
|
907
786
|
username: z.nullable(z.string()).optional(),
|
|
908
787
|
userIds: z.array(z.lazy(() => UpdateUserUserIdRequest$inboundSchema)).optional(),
|
|
@@ -958,7 +837,7 @@ export const UpdateUserUserRequest$outboundSchema: z.ZodType<
|
|
|
958
837
|
> = z.object({
|
|
959
838
|
sourcedId: z.string().optional(),
|
|
960
839
|
metadata: z.lazy(() => UpdateUserMetadata$outboundSchema).optional(),
|
|
961
|
-
status:
|
|
840
|
+
status: Status$outboundSchema.default('active'),
|
|
962
841
|
userMasterIdentifier: z.nullable(z.string()).optional(),
|
|
963
842
|
username: z.nullable(z.string()).optional(),
|
|
964
843
|
userIds: z.array(z.lazy(() => UpdateUserUserIdRequest$outboundSchema)).optional(),
|
|
@@ -1119,27 +998,6 @@ export function updateUserRequestFromJSON(
|
|
|
1119
998
|
);
|
|
1120
999
|
}
|
|
1121
1000
|
|
|
1122
|
-
/** @internal */
|
|
1123
|
-
export const UpdateUserStatusResponse$inboundSchema: z.ZodNativeEnum<
|
|
1124
|
-
typeof UpdateUserStatusResponse
|
|
1125
|
-
> = z.nativeEnum(UpdateUserStatusResponse);
|
|
1126
|
-
|
|
1127
|
-
/** @internal */
|
|
1128
|
-
export const UpdateUserStatusResponse$outboundSchema: z.ZodNativeEnum<
|
|
1129
|
-
typeof UpdateUserStatusResponse
|
|
1130
|
-
> = UpdateUserStatusResponse$inboundSchema;
|
|
1131
|
-
|
|
1132
|
-
/**
|
|
1133
|
-
* @internal
|
|
1134
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1135
|
-
*/
|
|
1136
|
-
export namespace UpdateUserStatusResponse$ {
|
|
1137
|
-
/** @deprecated use `UpdateUserStatusResponse$inboundSchema` instead. */
|
|
1138
|
-
export const inboundSchema = UpdateUserStatusResponse$inboundSchema;
|
|
1139
|
-
/** @deprecated use `UpdateUserStatusResponse$outboundSchema` instead. */
|
|
1140
|
-
export const outboundSchema = UpdateUserStatusResponse$outboundSchema;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
1001
|
/** @internal */
|
|
1144
1002
|
export const UpdateUserUserIdResponse$inboundSchema: z.ZodType<
|
|
1145
1003
|
UpdateUserUserIdResponse,
|
|
@@ -1195,48 +1053,6 @@ export function updateUserUserIdResponseFromJSON(
|
|
|
1195
1053
|
);
|
|
1196
1054
|
}
|
|
1197
1055
|
|
|
1198
|
-
/** @internal */
|
|
1199
|
-
export const UpdateUserRoleTypeResponse$inboundSchema: z.ZodNativeEnum<
|
|
1200
|
-
typeof UpdateUserRoleTypeResponse
|
|
1201
|
-
> = z.nativeEnum(UpdateUserRoleTypeResponse);
|
|
1202
|
-
|
|
1203
|
-
/** @internal */
|
|
1204
|
-
export const UpdateUserRoleTypeResponse$outboundSchema: z.ZodNativeEnum<
|
|
1205
|
-
typeof UpdateUserRoleTypeResponse
|
|
1206
|
-
> = UpdateUserRoleTypeResponse$inboundSchema;
|
|
1207
|
-
|
|
1208
|
-
/**
|
|
1209
|
-
* @internal
|
|
1210
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1211
|
-
*/
|
|
1212
|
-
export namespace UpdateUserRoleTypeResponse$ {
|
|
1213
|
-
/** @deprecated use `UpdateUserRoleTypeResponse$inboundSchema` instead. */
|
|
1214
|
-
export const inboundSchema = UpdateUserRoleTypeResponse$inboundSchema;
|
|
1215
|
-
/** @deprecated use `UpdateUserRoleTypeResponse$outboundSchema` instead. */
|
|
1216
|
-
export const outboundSchema = UpdateUserRoleTypeResponse$outboundSchema;
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
/** @internal */
|
|
1220
|
-
export const UpdateUserRoleResponseEnum$inboundSchema: z.ZodNativeEnum<
|
|
1221
|
-
typeof UpdateUserRoleResponseEnum
|
|
1222
|
-
> = z.nativeEnum(UpdateUserRoleResponseEnum);
|
|
1223
|
-
|
|
1224
|
-
/** @internal */
|
|
1225
|
-
export const UpdateUserRoleResponseEnum$outboundSchema: z.ZodNativeEnum<
|
|
1226
|
-
typeof UpdateUserRoleResponseEnum
|
|
1227
|
-
> = UpdateUserRoleResponseEnum$inboundSchema;
|
|
1228
|
-
|
|
1229
|
-
/**
|
|
1230
|
-
* @internal
|
|
1231
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1232
|
-
*/
|
|
1233
|
-
export namespace UpdateUserRoleResponseEnum$ {
|
|
1234
|
-
/** @deprecated use `UpdateUserRoleResponseEnum$inboundSchema` instead. */
|
|
1235
|
-
export const inboundSchema = UpdateUserRoleResponseEnum$inboundSchema;
|
|
1236
|
-
/** @deprecated use `UpdateUserRoleResponseEnum$outboundSchema` instead. */
|
|
1237
|
-
export const outboundSchema = UpdateUserRoleResponseEnum$outboundSchema;
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
1056
|
/** @internal */
|
|
1241
1057
|
export const UpdateUserOrgResponse$inboundSchema: z.ZodType<
|
|
1242
1058
|
UpdateUserOrgResponse,
|
|
@@ -1299,8 +1115,8 @@ export const UpdateUserRoleResponse$inboundSchema: z.ZodType<
|
|
|
1299
1115
|
z.ZodTypeDef,
|
|
1300
1116
|
unknown
|
|
1301
1117
|
> = z.object({
|
|
1302
|
-
roleType:
|
|
1303
|
-
role:
|
|
1118
|
+
roleType: RoleType$inboundSchema,
|
|
1119
|
+
role: UserRole$inboundSchema,
|
|
1304
1120
|
org: z.lazy(() => UpdateUserOrgResponse$inboundSchema),
|
|
1305
1121
|
userProfile: z.string().optional(),
|
|
1306
1122
|
beginDate: z.nullable(z.string()),
|
|
@@ -1323,8 +1139,8 @@ export const UpdateUserRoleResponse$outboundSchema: z.ZodType<
|
|
|
1323
1139
|
z.ZodTypeDef,
|
|
1324
1140
|
UpdateUserRoleResponse
|
|
1325
1141
|
> = z.object({
|
|
1326
|
-
roleType:
|
|
1327
|
-
role:
|
|
1142
|
+
roleType: RoleType$outboundSchema,
|
|
1143
|
+
role: UserRole$outboundSchema,
|
|
1328
1144
|
org: z.lazy(() => UpdateUserOrgResponse$outboundSchema),
|
|
1329
1145
|
userProfile: z.string().optional(),
|
|
1330
1146
|
beginDate: z.nullable(z.string()),
|
|
@@ -1360,25 +1176,6 @@ export function updateUserRoleResponseFromJSON(
|
|
|
1360
1176
|
);
|
|
1361
1177
|
}
|
|
1362
1178
|
|
|
1363
|
-
/** @internal */
|
|
1364
|
-
export const UpdateUserType$inboundSchema: z.ZodNativeEnum<typeof UpdateUserType> =
|
|
1365
|
-
z.nativeEnum(UpdateUserType);
|
|
1366
|
-
|
|
1367
|
-
/** @internal */
|
|
1368
|
-
export const UpdateUserType$outboundSchema: z.ZodNativeEnum<typeof UpdateUserType> =
|
|
1369
|
-
UpdateUserType$inboundSchema;
|
|
1370
|
-
|
|
1371
|
-
/**
|
|
1372
|
-
* @internal
|
|
1373
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1374
|
-
*/
|
|
1375
|
-
export namespace UpdateUserType$ {
|
|
1376
|
-
/** @deprecated use `UpdateUserType$inboundSchema` instead. */
|
|
1377
|
-
export const inboundSchema = UpdateUserType$inboundSchema;
|
|
1378
|
-
/** @deprecated use `UpdateUserType$outboundSchema` instead. */
|
|
1379
|
-
export const outboundSchema = UpdateUserType$outboundSchema;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
1179
|
/** @internal */
|
|
1383
1180
|
export const UpdateUserAgentResponse$inboundSchema: z.ZodType<
|
|
1384
1181
|
UpdateUserAgentResponse,
|
|
@@ -1387,7 +1184,7 @@ export const UpdateUserAgentResponse$inboundSchema: z.ZodType<
|
|
|
1387
1184
|
> = z.object({
|
|
1388
1185
|
href: z.string(),
|
|
1389
1186
|
sourcedId: z.string(),
|
|
1390
|
-
type:
|
|
1187
|
+
type: EntityType$inboundSchema,
|
|
1391
1188
|
});
|
|
1392
1189
|
|
|
1393
1190
|
/** @internal */
|
|
@@ -1405,7 +1202,7 @@ export const UpdateUserAgentResponse$outboundSchema: z.ZodType<
|
|
|
1405
1202
|
> = z.object({
|
|
1406
1203
|
href: z.string(),
|
|
1407
1204
|
sourcedId: z.string(),
|
|
1408
|
-
type:
|
|
1205
|
+
type: EntityType$outboundSchema,
|
|
1409
1206
|
});
|
|
1410
1207
|
|
|
1411
1208
|
/**
|
|
@@ -1504,7 +1301,7 @@ export const UpdateUserUserResponse$inboundSchema: z.ZodType<
|
|
|
1504
1301
|
unknown
|
|
1505
1302
|
> = z.object({
|
|
1506
1303
|
sourcedId: z.string(),
|
|
1507
|
-
status:
|
|
1304
|
+
status: Status$inboundSchema,
|
|
1508
1305
|
dateLastModified: z
|
|
1509
1306
|
.string()
|
|
1510
1307
|
.datetime({ offset: true })
|
|
@@ -1568,7 +1365,7 @@ export const UpdateUserUserResponse$outboundSchema: z.ZodType<
|
|
|
1568
1365
|
UpdateUserUserResponse
|
|
1569
1366
|
> = z.object({
|
|
1570
1367
|
sourcedId: z.string(),
|
|
1571
|
-
status:
|
|
1368
|
+
status: Status$outboundSchema,
|
|
1572
1369
|
dateLastModified: z
|
|
1573
1370
|
.date()
|
|
1574
1371
|
.transform((v) => v.toISOString())
|