@meshery/schemas 1.3.42 → 1.3.43

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.
@@ -5112,10 +5112,10 @@ type SubmitQuizApiArg = {
5112
5112
  testSessionId: string;
5113
5113
  /** The quiz abs path of the quizsubmission. */
5114
5114
  quizAbsPath: string;
5115
- /** ID of the associated registration. */
5116
- registrationId: string;
5117
- /** ID of the user who owns or created this resource. */
5118
- userId: string;
5115
+ /** ID of the associated registration. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.registrationId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier. */
5116
+ registrationId?: string | null;
5117
+ /** ID of the user who owns or created this resource. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.userId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier. */
5118
+ userId?: string | null;
5119
5119
  /** The answers of the quizsubmission. */
5120
5120
  answers: {
5121
5121
  /** ID of the associated question. Mirrors `Question.id`, a content-authored string rather than a database row identifier, so it is not a UUID. */
@@ -5112,10 +5112,10 @@ type SubmitQuizApiArg = {
5112
5112
  testSessionId: string;
5113
5113
  /** The quiz abs path of the quizsubmission. */
5114
5114
  quizAbsPath: string;
5115
- /** ID of the associated registration. */
5116
- registrationId: string;
5117
- /** ID of the user who owns or created this resource. */
5118
- userId: string;
5115
+ /** ID of the associated registration. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.registrationId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier. */
5116
+ registrationId?: string | null;
5117
+ /** ID of the user who owns or created this resource. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.userId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier. */
5118
+ userId?: string | null;
5119
5119
  /** The answers of the quizsubmission. */
5120
5120
  answers: {
5121
5121
  /** ID of the associated question. Mirrors `Question.id`, a content-authored string rather than a database row identifier, so it is not a UUID. */
@@ -3896,6 +3896,7 @@ export interface components {
3896
3896
  */
3897
3897
  registrationId: string;
3898
3898
  };
3899
+ /** @description A learner's answers to a quiz. Submitted as the `submitQuiz` request body and persisted verbatim as `TestSubmission.submissionData`. `registrationId` and `userId` are a convenience echo of the authoritative values on the enclosing `TestSubmission` (`registrationId` / `userId`, backed by the `registration_id` and `owner` `uuid NOT NULL` columns); read them from the enclosing submission, not from here. */
3899
3900
  QuizSubmission: {
3900
3901
  /**
3901
3902
  * Format: uuid
@@ -3906,14 +3907,14 @@ export interface components {
3906
3907
  quizAbsPath: string;
3907
3908
  /**
3908
3909
  * Format: uuid
3909
- * @description ID of the associated registration.
3910
+ * @description ID of the associated registration. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.registrationId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier.
3910
3911
  */
3911
- registrationId: string;
3912
+ registrationId?: string | null;
3912
3913
  /**
3913
3914
  * Format: uuid
3914
- * @description ID of the user who owns or created this resource.
3915
+ * @description ID of the user who owns or created this resource. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.userId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier.
3915
3916
  */
3916
- userId: string;
3917
+ userId?: string | null;
3917
3918
  /** @description The answers of the quizsubmission. */
3918
3919
  answers: {
3919
3920
  /**
@@ -3982,6 +3983,7 @@ export interface components {
3982
3983
  * @description The submitted at of the testsubmission.
3983
3984
  */
3984
3985
  submittedAt?: string;
3986
+ /** @description A learner's answers to a quiz. Submitted as the `submitQuiz` request body and persisted verbatim as `TestSubmission.submissionData`. `registrationId` and `userId` are a convenience echo of the authoritative values on the enclosing `TestSubmission` (`registrationId` / `userId`, backed by the `registration_id` and `owner` `uuid NOT NULL` columns); read them from the enclosing submission, not from here. */
3985
3987
  submissionData?: {
3986
3988
  /**
3987
3989
  * Format: uuid
@@ -3992,14 +3994,14 @@ export interface components {
3992
3994
  quizAbsPath: string;
3993
3995
  /**
3994
3996
  * Format: uuid
3995
- * @description ID of the associated registration.
3997
+ * @description ID of the associated registration. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.registrationId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier.
3996
3998
  */
3997
- registrationId: string;
3999
+ registrationId?: string | null;
3998
4000
  /**
3999
4001
  * Format: uuid
4000
- * @description ID of the user who owns or created this resource.
4002
+ * @description ID of the user who owns or created this resource. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.userId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier.
4001
4003
  */
4002
- userId: string;
4004
+ userId?: string | null;
4003
4005
  /** @description The answers of the quizsubmission. */
4004
4006
  answers: {
4005
4007
  /**
@@ -8250,14 +8252,14 @@ export interface operations {
8250
8252
  quizAbsPath: string;
8251
8253
  /**
8252
8254
  * Format: uuid
8253
- * @description ID of the associated registration.
8255
+ * @description ID of the associated registration. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.registrationId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier.
8254
8256
  */
8255
- registrationId: string;
8257
+ registrationId?: string | null;
8256
8258
  /**
8257
8259
  * Format: uuid
8258
- * @description ID of the user who owns or created this resource.
8260
+ * @description ID of the user who owns or created this resource. Optional, because a submission may not carry this echo; when it is absent the authoritative value is `TestSubmission.userId`. Absence MUST be expressed as `null` or an omitted property - the empty string is not a valid identifier.
8259
8261
  */
8260
- userId: string;
8262
+ userId?: string | null;
8261
8263
  /** @description The answers of the quizsubmission. */
8262
8264
  answers: {
8263
8265
  /**