@timeback/oneroster 0.1.9-beta.20260310173551 → 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.
@@ -192,12 +192,14 @@ var LEARNWITHAI_QTI_URLS = {
192
192
  var PLATFORM_ENDPOINTS = {
193
193
  BEYOND_AI: {
194
194
  token: BEYONDAI_TOKEN_URLS,
195
+ tokenScope: undefined,
195
196
  api: BEYONDAI_API_URLS,
196
197
  caliper: BEYONDAI_CALIPER_URLS,
197
198
  qti: BEYONDAI_QTI_URLS
198
199
  },
199
200
  LEARNWITH_AI: {
200
201
  token: LEARNWITHAI_TOKEN_URLS,
202
+ tokenScope: "https://purl.imsglobal.org/spec/caliper/v1p2/scope/events.write",
201
203
  api: LEARNWITHAI_API_URLS,
202
204
  caliper: LEARNWITHAI_CALIPER_URLS,
203
205
  qti: LEARNWITHAI_QTI_URLS
@@ -581,7 +583,7 @@ class TokenManager {
581
583
  Authorization: `Basic ${credentials}`,
582
584
  "Content-Type": "application/x-www-form-urlencoded"
583
585
  },
584
- body: "grant_type=client_credentials"
586
+ body: this.config.scope ? `grant_type=client_credentials&scope=${encodeURIComponent(this.config.scope)}` : "grant_type=client_credentials"
585
587
  });
586
588
  const duration = Math.round(performance.now() - start);
587
589
  if (!response.ok) {
@@ -645,7 +647,7 @@ var BEYONDAI_PATHS = {
645
647
  };
646
648
  var LEARNWITHAI_PATHS = {
647
649
  caliper: {
648
- send: "/events/1.0/",
650
+ send: "/caliper/v1p2",
649
651
  validate: null,
650
652
  list: null,
651
653
  get: null,
@@ -660,7 +662,9 @@ var LEARNWITHAI_PATHS = {
660
662
  edubridge: null,
661
663
  powerpath: null,
662
664
  clr: null,
663
- case: null
665
+ case: {
666
+ base: "/case/1.1"
667
+ }
664
668
  };
665
669
  var PLATFORM_PATHS = {
666
670
  BEYOND_AI: BEYONDAI_PATHS,
@@ -697,6 +701,7 @@ class TimebackProvider {
697
701
  timeout;
698
702
  endpoints;
699
703
  authUrl;
704
+ tokenScope;
700
705
  pathProfiles;
701
706
  tokenManagers = new Map;
702
707
  constructor(config) {
@@ -712,6 +717,7 @@ class TimebackProvider {
712
717
  throw new Error(`Unknown platform: ${platform}`);
713
718
  }
714
719
  this.authUrl = platformEndpoints.token[env];
720
+ this.tokenScope = platformEndpoints.tokenScope ?? undefined;
715
721
  this.pathProfiles = PLATFORM_PATHS[platform] ?? BEYONDAI_PATHS;
716
722
  this.endpoints = {
717
723
  oneroster: {
@@ -837,7 +843,8 @@ class TimebackProvider {
837
843
  credentials: {
838
844
  clientId: this.auth.clientId,
839
845
  clientSecret: this.auth.clientSecret
840
- }
846
+ },
847
+ scope: this.tokenScope
841
848
  });
842
849
  this.tokenManagers.set(authUrl, manager);
843
850
  }
@@ -855,7 +862,8 @@ class TimebackProvider {
855
862
  credentials: {
856
863
  clientId: this.auth.clientId,
857
864
  clientSecret: this.auth.clientSecret
858
- }
865
+ },
866
+ scope: this.tokenScope
859
867
  });
860
868
  this.tokenManagers.set(this.authUrl, manager);
861
869
  }
package/dist/errors.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  NotFoundError,
6
6
  UnauthorizedError,
7
7
  ValidationError
8
- } from "./chunk-567r42vy.js";
8
+ } from "./chunk-4fwv2yyb.js";
9
9
  import"./chunk-6jf1natv.js";
10
10
  export {
11
11
  ValidationError,
package/dist/index.d.ts CHANGED
@@ -3637,7 +3637,7 @@ declare abstract class BaseResource<T extends Base, F = T, I = Partial<T>, P ext
3637
3637
  * This returns a single page plus metadata (`hasMore`, `total`, `nextOffset`).
3638
3638
  * Use `stream()` for lazy iteration or `listAll()` to fetch everything.
3639
3639
  *
3640
- * @param params - Optional filtering, sorting, and pagination parameters
3640
+ * @param params - Optional `where` clause, sorting, and pagination parameters
3641
3641
  * @returns Promise resolving to the first page of matching resources
3642
3642
  *
3643
3643
  * @example
@@ -3650,14 +3650,14 @@ declare abstract class BaseResource<T extends Base, F = T, I = Partial<T>, P ext
3650
3650
  /**
3651
3651
  * List all resources, fetching all pages automatically.
3652
3652
  *
3653
- * @param params - Optional filtering, sorting, and pagination parameters
3653
+ * @param params - Optional `where` clause, sorting, and pagination parameters
3654
3654
  * @returns Promise resolving to an array of all matching resources
3655
3655
  */
3656
3656
  listAll(params?: P): Promise<T[]>;
3657
3657
  /**
3658
3658
  * Get the first matching resource, or undefined if none match.
3659
3659
  *
3660
- * @param params - Optional filtering parameters
3660
+ * @param params - Optional `where` clause parameters
3661
3661
  * @returns The first matching resource, or undefined
3662
3662
  *
3663
3663
  * @example
@@ -3673,7 +3673,7 @@ declare abstract class BaseResource<T extends Base, F = T, I = Partial<T>, P ext
3673
3673
  * Use this for large datasets where you want to process items
3674
3674
  * one at a time without loading everything into memory.
3675
3675
  *
3676
- * @param params - Optional filtering, sorting, and pagination parameters
3676
+ * @param params - Optional `where` clause, sorting, and pagination parameters
3677
3677
  * @returns Async iterable paginator for streaming results
3678
3678
  * @throws {InputValidationError} If params are invalid (e.g., negative limit)
3679
3679
  *
@@ -3900,25 +3900,25 @@ declare class ScopedTermResource {
3900
3900
  exists(): Promise<boolean>;
3901
3901
  /**
3902
3902
  * List classes in this term.
3903
- * @param params - Optional filter and pagination parameters
3903
+ * @param params - Optional `where` clause and pagination parameters
3904
3904
  * @returns Promise resolving to class array
3905
3905
  */
3906
3906
  classes(params?: ListParamsNoSearch<ClassFilterFields>): Promise<Class$1[]>;
3907
3907
  /**
3908
3908
  * Stream classes with lazy pagination.
3909
- * @param params - Optional filter and pagination parameters
3909
+ * @param params - Optional `where` clause and pagination parameters
3910
3910
  * @returns Paginator for streaming classes
3911
3911
  */
3912
3912
  streamClasses(params?: ListParamsNoSearch<ClassFilterFields>): Paginator<Class$1, ClassFilterFields>;
3913
3913
  /**
3914
3914
  * List grading periods in this term.
3915
- * @param params - Optional filter and pagination parameters
3915
+ * @param params - Optional `where` clause and pagination parameters
3916
3916
  * @returns Promise resolving to grading period array
3917
3917
  */
3918
3918
  gradingPeriods(params?: ListParamsNoSearch<AcademicSessionFilterFields>): Promise<GradingPeriod[]>;
3919
3919
  /**
3920
3920
  * Stream grading periods with lazy pagination.
3921
- * @param params - Optional filter and pagination parameters
3921
+ * @param params - Optional `where` clause and pagination parameters
3922
3922
  * @returns Paginator for streaming grading periods
3923
3923
  */
3924
3924
  streamGradingPeriods(params?: ListParamsNoSearch<AcademicSessionFilterFields>): Paginator<GradingPeriod, AcademicSessionFilterFields>;
@@ -4005,13 +4005,13 @@ declare class ScopedClassStudentResource {
4005
4005
  constructor(transport: OneRosterTransportLike, classId: string, studentId: string);
4006
4006
  /**
4007
4007
  * List results for this student in this class.
4008
- * @param params - Optional filter and pagination parameters
4008
+ * @param params - Optional `where` clause and pagination parameters
4009
4009
  * @returns Promise resolving to result array
4010
4010
  */
4011
4011
  results(params?: ListParamsNoSearch<ResultFilterFields>): Promise<Result[]>;
4012
4012
  /**
4013
4013
  * Stream results with lazy pagination.
4014
- * @param params - Optional filter and pagination parameters
4014
+ * @param params - Optional `where` clause and pagination parameters
4015
4015
  * @returns Paginator for streaming results
4016
4016
  */
4017
4017
  streamResults(params?: ListParamsNoSearch<ResultFilterFields>): Paginator<Result, ResultFilterFields>;
@@ -4032,13 +4032,13 @@ declare class ScopedClassLineItemResource {
4032
4032
  constructor(transport: OneRosterTransportLike, classId: string, lineItemId: string);
4033
4033
  /**
4034
4034
  * List results for this line item in this class.
4035
- * @param params - Optional filter and pagination parameters
4035
+ * @param params - Optional `where` clause and pagination parameters
4036
4036
  * @returns Promise resolving to result array
4037
4037
  */
4038
4038
  results(params?: ListParamsNoSearch<ResultFilterFields>): Promise<Result[]>;
4039
4039
  /**
4040
4040
  * Stream results with lazy pagination.
4041
- * @param params - Optional filter and pagination parameters
4041
+ * @param params - Optional `where` clause and pagination parameters
4042
4042
  * @returns Paginator for streaming results
4043
4043
  */
4044
4044
  streamResults(params?: ListParamsNoSearch<ResultFilterFields>): Paginator<Result, ResultFilterFields>;
@@ -4075,25 +4075,25 @@ declare class ScopedClassResource {
4075
4075
  exists(): Promise<boolean>;
4076
4076
  /**
4077
4077
  * List students in this class.
4078
- * @param params - Optional filter and pagination parameters
4078
+ * @param params - Optional `where` clause and pagination parameters
4079
4079
  * @returns Promise resolving to user array
4080
4080
  */
4081
4081
  students(params?: ListParamsNoSearch<UserFilterFields>): Promise<User[]>;
4082
4082
  /**
4083
4083
  * Stream students with lazy pagination.
4084
- * @param params - Optional filter and pagination parameters
4084
+ * @param params - Optional `where` clause and pagination parameters
4085
4085
  * @returns Paginator for streaming students
4086
4086
  */
4087
4087
  streamStudents(params?: ListParamsNoSearch<UserFilterFields>): Paginator<User, UserFilterFields>;
4088
4088
  /**
4089
4089
  * List teachers in this class.
4090
- * @param params - Optional filter and pagination parameters
4090
+ * @param params - Optional `where` clause and pagination parameters
4091
4091
  * @returns Promise resolving to user array
4092
4092
  */
4093
4093
  teachers(params?: ListParamsNoSearch<UserFilterFields>): Promise<User[]>;
4094
4094
  /**
4095
4095
  * Stream teachers with lazy pagination.
4096
- * @param params - Optional filter and pagination parameters
4096
+ * @param params - Optional `where` clause and pagination parameters
4097
4097
  * @returns Paginator for streaming teachers
4098
4098
  */
4099
4099
  streamTeachers(params?: ListParamsNoSearch<UserFilterFields>): Paginator<User, UserFilterFields>;
@@ -4111,13 +4111,13 @@ declare class ScopedClassResource {
4111
4111
  enroll(input: EnrollInput): Promise<CreateResponse>;
4112
4112
  /**
4113
4113
  * List line items (assignments) in this class.
4114
- * @param params - Optional filter and pagination parameters
4114
+ * @param params - Optional `where` clause and pagination parameters
4115
4115
  * @returns Promise resolving to line item array
4116
4116
  */
4117
4117
  lineItems(params?: ListParamsNoSearch<LineItemFilterFields>): Promise<LineItem[]>;
4118
4118
  /**
4119
4119
  * Stream line items with lazy pagination.
4120
- * @param params - Optional filter and pagination parameters
4120
+ * @param params - Optional `where` clause and pagination parameters
4121
4121
  * @returns Paginator for streaming line items
4122
4122
  */
4123
4123
  streamLineItems(params?: ListParamsNoSearch<LineItemFilterFields>): Paginator<LineItem, LineItemFilterFields>;
@@ -4142,25 +4142,25 @@ declare class ScopedClassResource {
4142
4142
  createLineItem(data: LineItemCreateInput): Promise<CreateResponse>;
4143
4143
  /**
4144
4144
  * List results in this class.
4145
- * @param params - Optional filter and pagination parameters
4145
+ * @param params - Optional `where` clause and pagination parameters
4146
4146
  * @returns Promise resolving to result array
4147
4147
  */
4148
4148
  results(params?: ListParamsNoSearch<ResultFilterFields>): Promise<Result[]>;
4149
4149
  /**
4150
4150
  * Stream results with lazy pagination.
4151
- * @param params - Optional filter and pagination parameters
4151
+ * @param params - Optional `where` clause and pagination parameters
4152
4152
  * @returns Paginator for streaming results
4153
4153
  */
4154
4154
  streamResults(params?: ListParamsNoSearch<ResultFilterFields>): Paginator<Result, ResultFilterFields>;
4155
4155
  /**
4156
4156
  * List resources for this class.
4157
- * @param params - Optional filter and pagination parameters
4157
+ * @param params - Optional `where` clause and pagination parameters
4158
4158
  * @returns Promise resolving to resource array
4159
4159
  */
4160
4160
  resources(params?: ListParamsNoSearch<ResourceFilterFields>): Promise<Resource[]>;
4161
4161
  /**
4162
4162
  * Stream resources with lazy pagination.
4163
- * @param params - Optional filter and pagination parameters
4163
+ * @param params - Optional `where` clause and pagination parameters
4164
4164
  * @returns Paginator for streaming resources
4165
4165
  */
4166
4166
  streamResources(params?: ListParamsNoSearch<ResourceFilterFields>): Paginator<Resource, ResourceFilterFields>;
@@ -4203,25 +4203,25 @@ declare class ScopedClassResource {
4203
4203
  academicSession(sessionId: string): ScopedClassAcademicSessionResource;
4204
4204
  /**
4205
4205
  * List score scales for this class.
4206
- * @param params - Optional filter and pagination parameters
4206
+ * @param params - Optional `where` clause and pagination parameters
4207
4207
  * @returns Promise resolving to score scale array
4208
4208
  */
4209
4209
  scoreScales(params?: ListParamsNoSearch<ScoreScaleFilterFields>): Promise<ScoreScale[]>;
4210
4210
  /**
4211
4211
  * Stream score scales with lazy pagination.
4212
- * @param params - Optional filter and pagination parameters
4212
+ * @param params - Optional `where` clause and pagination parameters
4213
4213
  * @returns Paginator for streaming score scales
4214
4214
  */
4215
4215
  streamScoreScales(params?: ListParamsNoSearch<ScoreScaleFilterFields>): Paginator<ScoreScale, ScoreScaleFilterFields>;
4216
4216
  /**
4217
4217
  * List categories for this class.
4218
- * @param params - Optional filter and pagination parameters
4218
+ * @param params - Optional `where` clause and pagination parameters
4219
4219
  * @returns Promise resolving to category array
4220
4220
  */
4221
4221
  categories(params?: ListParamsNoSearch<CategoryFilterFields>): Promise<Category[]>;
4222
4222
  /**
4223
4223
  * Stream categories with lazy pagination.
4224
- * @param params - Optional filter and pagination parameters
4224
+ * @param params - Optional `where` clause and pagination parameters
4225
4225
  * @returns Paginator for streaming categories
4226
4226
  */
4227
4227
  streamCategories(params?: ListParamsNoSearch<CategoryFilterFields>): Paginator<Category, CategoryFilterFields>;
@@ -4263,37 +4263,37 @@ declare class ScopedCourseResource {
4263
4263
  exists(): Promise<boolean>;
4264
4264
  /**
4265
4265
  * List classes for this course.
4266
- * @param params - Optional filter and pagination parameters
4266
+ * @param params - Optional `where` clause and pagination parameters
4267
4267
  * @returns Promise resolving to class array
4268
4268
  */
4269
4269
  classes(params?: ListParamsNoSearch<ClassFilterFields>): Promise<Class$1[]>;
4270
4270
  /**
4271
4271
  * Stream classes with lazy pagination.
4272
- * @param params - Optional filter and pagination parameters
4272
+ * @param params - Optional `where` clause and pagination parameters
4273
4273
  * @returns Paginator for streaming classes
4274
4274
  */
4275
4275
  streamClasses(params?: ListParamsNoSearch<ClassFilterFields>): Paginator<Class$1, ClassFilterFields>;
4276
4276
  /**
4277
4277
  * List components for this course.
4278
- * @param params - Optional filter and pagination parameters
4278
+ * @param params - Optional `where` clause and pagination parameters
4279
4279
  * @returns Promise resolving to component array
4280
4280
  */
4281
4281
  components(params?: ListParamsNoSearch<CourseComponentFilterFields>): Promise<CourseComponent[]>;
4282
4282
  /**
4283
4283
  * Stream components with lazy pagination.
4284
- * @param params - Optional filter and pagination parameters
4284
+ * @param params - Optional `where` clause and pagination parameters
4285
4285
  * @returns Paginator for streaming components
4286
4286
  */
4287
4287
  streamComponents(params?: ListParamsNoSearch<CourseComponentFilterFields>): Paginator<CourseComponent, CourseComponentFilterFields>;
4288
4288
  /**
4289
4289
  * List resources for this course.
4290
- * @param params - Optional filter and pagination parameters
4290
+ * @param params - Optional `where` clause and pagination parameters
4291
4291
  * @returns Promise resolving to resource array
4292
4292
  */
4293
4293
  resources(params?: ListParamsNoSearch<ResourceFilterFields>): Promise<Resource[]>;
4294
4294
  /**
4295
4295
  * Stream resources with lazy pagination.
4296
- * @param params - Optional filter and pagination parameters
4296
+ * @param params - Optional `where` clause and pagination parameters
4297
4297
  * @returns Paginator for streaming resources
4298
4298
  */
4299
4299
  streamResources(params?: ListParamsNoSearch<ResourceFilterFields>): Paginator<Resource, ResourceFilterFields>;
@@ -4321,37 +4321,37 @@ declare class ScopedSchoolClassResource {
4321
4321
  constructor(transport: OneRosterTransportLike, schoolId: string, classId: string);
4322
4322
  /**
4323
4323
  * List enrollments for this class within this school.
4324
- * @param params - Optional filter and pagination parameters
4324
+ * @param params - Optional `where` clause and pagination parameters
4325
4325
  * @returns Promise resolving to enrollment array
4326
4326
  */
4327
4327
  enrollments(params?: ListParamsNoSearch<EnrollmentFilterFields>): Promise<Enrollment[]>;
4328
4328
  /**
4329
4329
  * Stream enrollments with lazy pagination.
4330
- * @param params - Optional filter and pagination parameters
4330
+ * @param params - Optional `where` clause and pagination parameters
4331
4331
  * @returns Paginator for streaming enrollments
4332
4332
  */
4333
4333
  streamEnrollments(params?: ListParamsNoSearch<EnrollmentFilterFields>): Paginator<Enrollment, EnrollmentFilterFields>;
4334
4334
  /**
4335
4335
  * List students in this class at this school.
4336
- * @param params - Optional filter and pagination parameters
4336
+ * @param params - Optional `where` clause and pagination parameters
4337
4337
  * @returns Promise resolving to user array
4338
4338
  */
4339
4339
  students(params?: ListParamsNoSearch<UserFilterFields>): Promise<User[]>;
4340
4340
  /**
4341
4341
  * Stream students with lazy pagination.
4342
- * @param params - Optional filter and pagination parameters
4342
+ * @param params - Optional `where` clause and pagination parameters
4343
4343
  * @returns Paginator for streaming students
4344
4344
  */
4345
4345
  streamStudents(params?: ListParamsNoSearch<UserFilterFields>): Paginator<User, UserFilterFields>;
4346
4346
  /**
4347
4347
  * List teachers for this class at this school.
4348
- * @param params - Optional filter and pagination parameters
4348
+ * @param params - Optional `where` clause and pagination parameters
4349
4349
  * @returns Promise resolving to user array
4350
4350
  */
4351
4351
  teachers(params?: ListParamsNoSearch<UserFilterFields>): Promise<User[]>;
4352
4352
  /**
4353
4353
  * Stream teachers with lazy pagination.
4354
- * @param params - Optional filter and pagination parameters
4354
+ * @param params - Optional `where` clause and pagination parameters
4355
4355
  * @returns Paginator for streaming teachers
4356
4356
  */
4357
4357
  streamTeachers(params?: ListParamsNoSearch<UserFilterFields>): Paginator<User, UserFilterFields>;
@@ -4395,85 +4395,85 @@ declare class ScopedSchoolResource {
4395
4395
  class(classId: string): ScopedSchoolClassResource;
4396
4396
  /**
4397
4397
  * List classes in this school.
4398
- * @param params - Optional filter and pagination parameters
4398
+ * @param params - Optional `where` clause and pagination parameters
4399
4399
  * @returns Promise resolving to class array
4400
4400
  */
4401
4401
  classes(params?: ListParamsNoSearch<ClassFilterFields>): Promise<Class$1[]>;
4402
4402
  /**
4403
4403
  * Stream classes with lazy pagination.
4404
- * @param params - Optional filter and pagination parameters
4404
+ * @param params - Optional `where` clause and pagination parameters
4405
4405
  * @returns Paginator for streaming classes
4406
4406
  */
4407
4407
  streamClasses(params?: ListParamsNoSearch<ClassFilterFields>): Paginator<Class$1, ClassFilterFields>;
4408
4408
  /**
4409
4409
  * List enrollments in this school.
4410
- * @param params - Optional filter and pagination parameters
4410
+ * @param params - Optional `where` clause and pagination parameters
4411
4411
  * @returns Promise resolving to enrollment array
4412
4412
  */
4413
4413
  enrollments(params?: ListParamsNoSearch<EnrollmentFilterFields>): Promise<Enrollment[]>;
4414
4414
  /**
4415
4415
  * Stream enrollments with lazy pagination.
4416
- * @param params - Optional filter and pagination parameters
4416
+ * @param params - Optional `where` clause and pagination parameters
4417
4417
  * @returns Paginator for streaming enrollments
4418
4418
  */
4419
4419
  streamEnrollments(params?: ListParamsNoSearch<EnrollmentFilterFields>): Paginator<Enrollment, EnrollmentFilterFields>;
4420
4420
  /**
4421
4421
  * List students in this school.
4422
- * @param params - Optional filter and pagination parameters
4422
+ * @param params - Optional `where` clause and pagination parameters
4423
4423
  * @returns Promise resolving to user array
4424
4424
  */
4425
4425
  students(params?: ListParamsNoSearch<UserFilterFields>): Promise<User[]>;
4426
4426
  /**
4427
4427
  * Stream students with lazy pagination.
4428
- * @param params - Optional filter and pagination parameters
4428
+ * @param params - Optional `where` clause and pagination parameters
4429
4429
  * @returns Paginator for streaming students
4430
4430
  */
4431
4431
  streamStudents(params?: ListParamsNoSearch<UserFilterFields>): Paginator<User, UserFilterFields>;
4432
4432
  /**
4433
4433
  * List teachers in this school.
4434
- * @param params - Optional filter and pagination parameters
4434
+ * @param params - Optional `where` clause and pagination parameters
4435
4435
  * @returns Promise resolving to user array
4436
4436
  */
4437
4437
  teachers(params?: ListParamsNoSearch<UserFilterFields>): Promise<User[]>;
4438
4438
  /**
4439
4439
  * Stream teachers with lazy pagination.
4440
- * @param params - Optional filter and pagination parameters
4440
+ * @param params - Optional `where` clause and pagination parameters
4441
4441
  * @returns Paginator for streaming teachers
4442
4442
  */
4443
4443
  streamTeachers(params?: ListParamsNoSearch<UserFilterFields>): Paginator<User, UserFilterFields>;
4444
4444
  /**
4445
4445
  * List courses in this school.
4446
- * @param params - Optional filter and pagination parameters
4446
+ * @param params - Optional `where` clause and pagination parameters
4447
4447
  * @returns Promise resolving to course array
4448
4448
  */
4449
4449
  courses(params?: ListParamsNoSearch<CourseFilterFields>): Promise<Course[]>;
4450
4450
  /**
4451
4451
  * Stream courses with lazy pagination.
4452
- * @param params - Optional filter and pagination parameters
4452
+ * @param params - Optional `where` clause and pagination parameters
4453
4453
  * @returns Paginator for streaming courses
4454
4454
  */
4455
4455
  streamCourses(params?: ListParamsNoSearch<CourseFilterFields>): Paginator<Course, CourseFilterFields>;
4456
4456
  /**
4457
4457
  * List terms/academic sessions for this school.
4458
- * @param params - Optional filter and pagination parameters
4458
+ * @param params - Optional `where` clause and pagination parameters
4459
4459
  * @returns Promise resolving to academic session array
4460
4460
  */
4461
4461
  terms(params?: ListParamsNoSearch<AcademicSessionFilterFields>): Promise<AcademicSession[]>;
4462
4462
  /**
4463
4463
  * Stream terms with lazy pagination.
4464
- * @param params - Optional filter and pagination parameters
4464
+ * @param params - Optional `where` clause and pagination parameters
4465
4465
  * @returns Paginator for streaming academic sessions
4466
4466
  */
4467
4467
  streamTerms(params?: ListParamsNoSearch<AcademicSessionFilterFields>): Paginator<AcademicSession, AcademicSessionFilterFields>;
4468
4468
  /**
4469
4469
  * List line items (assignments) in this school.
4470
- * @param params - Optional filter and pagination parameters
4470
+ * @param params - Optional `where` clause and pagination parameters
4471
4471
  * @returns Promise resolving to line item array
4472
4472
  */
4473
4473
  lineItems(params?: ListParamsNoSearch<LineItemFilterFields>): Promise<LineItem[]>;
4474
4474
  /**
4475
4475
  * Stream line items with lazy pagination.
4476
- * @param params - Optional filter and pagination parameters
4476
+ * @param params - Optional `where` clause and pagination parameters
4477
4477
  * @returns Paginator for streaming line items
4478
4478
  */
4479
4479
  streamLineItems(params?: ListParamsNoSearch<LineItemFilterFields>): Paginator<LineItem, LineItemFilterFields>;
@@ -4498,13 +4498,13 @@ declare class ScopedSchoolResource {
4498
4498
  createLineItem(data: LineItemCreateInput): Promise<CreateResponse>;
4499
4499
  /**
4500
4500
  * List score scales for this school.
4501
- * @param params - Optional filter and pagination parameters
4501
+ * @param params - Optional `where` clause and pagination parameters
4502
4502
  * @returns Promise resolving to score scale array
4503
4503
  */
4504
4504
  scoreScales(params?: ListParamsNoSearch<ScoreScaleFilterFields>): Promise<ScoreScale[]>;
4505
4505
  /**
4506
4506
  * Stream score scales with lazy pagination.
4507
- * @param params - Optional filter and pagination parameters
4507
+ * @param params - Optional `where` clause and pagination parameters
4508
4508
  * @returns Paginator for streaming score scales
4509
4509
  */
4510
4510
  streamScoreScales(params?: ListParamsNoSearch<ScoreScaleFilterFields>): Paginator<ScoreScale, ScoreScaleFilterFields>;
@@ -4552,25 +4552,25 @@ declare class ScopedUserResource {
4552
4552
  demographics(): Promise<User>;
4553
4553
  /**
4554
4554
  * List resources for this user.
4555
- * @param params - Optional filter and pagination parameters
4555
+ * @param params - Optional `where` clause and pagination parameters
4556
4556
  * @returns Promise resolving to resource array
4557
4557
  */
4558
4558
  resources(params?: ListParamsNoSearch<ResourceFilterFields>): Promise<Resource[]>;
4559
4559
  /**
4560
4560
  * Stream resources with lazy pagination.
4561
- * @param params - Optional filter and pagination parameters
4561
+ * @param params - Optional `where` clause and pagination parameters
4562
4562
  * @returns Paginator for streaming resources
4563
4563
  */
4564
4564
  streamResources(params?: ListParamsNoSearch<ResourceFilterFields>): Paginator<Resource, ResourceFilterFields>;
4565
4565
  /**
4566
4566
  * List classes for this user.
4567
- * @param params - Optional filter and pagination parameters
4567
+ * @param params - Optional `where` clause and pagination parameters
4568
4568
  * @returns Promise resolving to class array
4569
4569
  */
4570
4570
  classes(params?: ListParamsNoSearch<ClassFilterFields>): Promise<Class$1[]>;
4571
4571
  /**
4572
4572
  * Stream classes with lazy pagination.
4573
- * @param params - Optional filter and pagination parameters
4573
+ * @param params - Optional `where` clause and pagination parameters
4574
4574
  * @returns Paginator for streaming classes
4575
4575
  */
4576
4576
  streamClasses(params?: ListParamsNoSearch<ClassFilterFields>): Paginator<Class$1, ClassFilterFields>;
@@ -4650,13 +4650,13 @@ declare class ScopedStudentResource {
4650
4650
  exists(): Promise<boolean>;
4651
4651
  /**
4652
4652
  * List classes this student is enrolled in.
4653
- * @param params - Optional filter and pagination parameters
4653
+ * @param params - Optional `where` clause and pagination parameters
4654
4654
  * @returns Promise resolving to class array
4655
4655
  */
4656
4656
  classes(params?: ListParamsNoSearch<ClassFilterFields>): Promise<Class$1[]>;
4657
4657
  /**
4658
4658
  * Stream classes with lazy pagination.
4659
- * @param params - Optional filter and pagination parameters
4659
+ * @param params - Optional `where` clause and pagination parameters
4660
4660
  * @returns Paginator for streaming classes
4661
4661
  */
4662
4662
  streamClasses(params?: ListParamsNoSearch<ClassFilterFields>): Paginator<Class$1, ClassFilterFields>;
@@ -4688,13 +4688,13 @@ declare class ScopedTeacherResource {
4688
4688
  exists(): Promise<boolean>;
4689
4689
  /**
4690
4690
  * List classes this teacher is assigned to.
4691
- * @param params - Optional filter and pagination parameters
4691
+ * @param params - Optional `where` clause and pagination parameters
4692
4692
  * @returns Promise resolving to class array
4693
4693
  */
4694
4694
  classes(params?: ListParamsNoSearch<ClassFilterFields>): Promise<Class$1[]>;
4695
4695
  /**
4696
4696
  * Stream classes with lazy pagination.
4697
- * @param params - Optional filter and pagination parameters
4697
+ * @param params - Optional `where` clause and pagination parameters
4698
4698
  * @returns Paginator for streaming classes
4699
4699
  */
4700
4700
  streamClasses(params?: ListParamsNoSearch<ClassFilterFields>): Paginator<Class$1, ClassFilterFields>;
@@ -5015,9 +5015,9 @@ type OneRosterClientInstance = InstanceType<typeof OneRosterClient>;
5015
5015
  * ```typescript
5016
5016
  * const lineItem = await client.assessmentLineItems(lineItemId).get()
5017
5017
  *
5018
- * // To get results for an assessment line item, use assessmentResults with a filter:
5018
+ * // To get results for an assessment line item, use assessmentResults with a where clause:
5019
5019
  * const results = await client.assessmentResults.list({
5020
- * filter: { lineItem: { sourcedId: lineItemId } }
5020
+ * where: { 'assessmentLineItem.sourcedId': lineItemId }
5021
5021
  * })
5022
5022
  * ```
5023
5023
  */