Skip to content

Commit 539ac15

Browse files
committed
chore: release model
1 parent 90c3c33 commit 539ac15

File tree

3 files changed

+32
-33
lines changed

3 files changed

+32
-33
lines changed

ask-smapi-model/index.ts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2843,14 +2843,14 @@ export namespace v1.skill.accountLinking {
28432843

28442844
export namespace v1.skill.asr.annotationSets {
28452845
/**
2846-
*
2846+
* A single test case that describes the audio reference, expected transcriptions, test case weight etc. Each annotation object must have at least expectedTranscription or, uploadId and filePathInUpload in pair. In any case, filePathInUpload and uploadId must be present or missing in pair.
28472847
* @interface
28482848
*/
28492849
export interface Annotation {
2850-
'uploadId': string;
2851-
'filePathInUpload': string;
2852-
'evaluationWeight': number;
2853-
'expectedTranscription': string;
2850+
'uploadId'?: string;
2851+
'filePathInUpload'?: string;
2852+
'evaluationWeight'?: number;
2853+
'expectedTranscription'?: string;
28542854
}
28552855
}
28562856

@@ -2863,6 +2863,7 @@ export namespace v1.skill.asr.annotationSets {
28632863
'name': string;
28642864
'annotationCount': number;
28652865
'lastUpdatedTimestamp': string;
2866+
'eligibleForEvaluation'?: boolean;
28662867
}
28672868
}
28682869

@@ -2888,7 +2889,7 @@ export namespace v1.skill.asr.annotationSets {
28882889

28892890
export namespace v1.skill.asr.annotationSets {
28902891
/**
2891-
* timestamp when the audio download url expire in ISO 8601 format
2892+
* Timestamp when the audio download url expire in ISO 8601 format
28922893
* @interface
28932894
*/
28942895
export interface AudioAssetDownloadUrlExpiryTime {
@@ -2917,7 +2918,7 @@ export namespace v1.skill.asr.annotationSets {
29172918

29182919
export namespace v1.skill.asr.annotationSets {
29192920
/**
2920-
* This the payload schema for annotation set contents. Note that 'audioAsset' is always included in the returned annotation set content payload in case the payload content type is 'application/json'. For 'text/csv' annotation set content type, 'audioAssetDownloadUrl' and 'audioAssetDownloadUrlExpiryTime' are included in the csv headers for representing the audio download url and the expiry time of the presigned audio download url.
2921+
* This is the payload schema for annotation set contents. Note that when uploadId and filePathInUpload is present, and the payload content type is 'application/json', audioAsset is included in the returned annotation set content payload. For 'text/csv' annotation set content type, audioAssetDownloadUrl and audioAssetDownloadUrlExpiryTime are included in the csv headers for representing the audio download url and the expiry time of the presigned audio download.
29212922
* @interface
29222923
*/
29232924
export interface GetAsrAnnotationSetAnnotationsResponse {
@@ -5930,21 +5931,22 @@ export namespace v1.skill.asr.annotationSets {
59305931
'name': string;
59315932
'annotationCount': number;
59325933
'lastUpdatedTimestamp': string;
5934+
'eligibleForEvaluation'?: boolean;
59335935
'id': string;
59345936
}
59355937
}
59365938

59375939
export namespace v1.skill.asr.annotationSets {
59385940
/**
5939-
* object containing annotation content and audio file download information.
5941+
* Object containing annotation content and audio file download information.
59405942
* @interface
59415943
*/
59425944
export interface AnnotationWithAudioAsset {
5943-
'uploadId': string;
5944-
'filePathInUpload': string;
5945-
'evaluationWeight': number;
5946-
'expectedTranscription': string;
5947-
'audioAsset': v1.skill.asr.annotationSets.AudioAsset;
5945+
'uploadId'?: string;
5946+
'filePathInUpload'?: string;
5947+
'evaluationWeight'?: number;
5948+
'expectedTranscription'?: string;
5949+
'audioAsset'?: v1.skill.asr.annotationSets.AudioAsset;
59485950
}
59495951
}
59505952

@@ -5957,6 +5959,7 @@ export namespace v1.skill.asr.annotationSets {
59575959
'name': string;
59585960
'annotationCount': number;
59595961
'lastUpdatedTimestamp': string;
5962+
'eligibleForEvaluation'?: boolean;
59605963
}
59615964
}
59625965

ask-smapi-model/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ask-smapi-model",
3-
"version": "1.10.1",
3+
"version": "1.11.0",
44
"description": "Model package for Skill Management API (SMAPI) SDK",
55
"main": "index.js",
66
"types": "index.d.ts",

ask-smapi-model/spec.json

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12149,7 +12149,7 @@
1214912149
"headers": {
1215012150
"Content-Type": {
1215112151
"type": "string",
12152-
"description": "returned content type, application/json supported",
12152+
"description": "Returned content type, application/json supported",
1215312153
"enum": [
1215412154
"application/json"
1215512155
]
@@ -22268,7 +22268,7 @@
2226822268
"properties": {
2226922269
"id": {
2227022270
"type": "string",
22271-
"description": "annotation set id"
22271+
"description": "The Annotation set id"
2227222272
}
2227322273
}
2227422274
}
@@ -22317,7 +22317,7 @@
2231722317
"$ref": "#/definitions/v1.skill.asr.annotationSets.PaginationContext"
2231822318
}
2231922319
},
22320-
"description": "This the payload schema for annotation set contents. Note that 'audioAsset' is always included in the returned annotation set content payload in case the payload content type is 'application/json'. For 'text/csv' annotation set content type, 'audioAssetDownloadUrl' and 'audioAssetDownloadUrlExpiryTime' are included in the csv headers for representing the audio download url and the expiry time of the presigned audio download url.\n"
22320+
"description": "This is the payload schema for annotation set contents. Note that when uploadId and filePathInUpload is present, and the payload content type is 'application/json', audioAsset is included in the returned annotation set content payload. For 'text/csv' annotation set content type, audioAssetDownloadUrl and audioAssetDownloadUrlExpiryTime are included in the csv headers for representing the audio download url and the expiry time of the presigned audio download.\n"
2232122321
},
2232222322
"v1.skill.asr.annotationSets.AudioAsset": {
2232322323
"type": "object",
@@ -22341,7 +22341,7 @@
2234122341
},
2234222342
"v1.skill.asr.annotationSets.AudioAssetDownloadUrlExpiryTime": {
2234322343
"type": "string",
22344-
"description": "timestamp when the audio download url expire in ISO 8601 format"
22344+
"description": "Timestamp when the audio download url expire in ISO 8601 format"
2234522345
},
2234622346
"v1.skill.asr.annotationSets.AnnotationWithAudioAsset": {
2234722347
"allOf": [
@@ -22350,46 +22350,38 @@
2235022350
},
2235122351
{
2235222352
"type": "object",
22353-
"required": [
22354-
"audioAsset"
22355-
],
2235622353
"properties": {
2235722354
"audioAsset": {
2235822355
"$ref": "#/definitions/v1.skill.asr.annotationSets.AudioAsset"
2235922356
}
2236022357
}
2236122358
}
2236222359
],
22363-
"description": "object containing annotation content and audio file download information."
22360+
"description": "Object containing annotation content and audio file download information."
2236422361
},
2236522362
"v1.skill.asr.annotationSets.Annotation": {
2236622363
"type": "object",
22367-
"required": [
22368-
"evaluationWeight",
22369-
"expectedTranscription",
22370-
"filePathInUpload",
22371-
"uploadId"
22372-
],
2237322364
"properties": {
2237422365
"uploadId": {
2237522366
"type": "string",
22376-
"description": "upload id obtained when developer creates an upload using catalog API"
22367+
"description": "Upload id obtained when developer creates an upload using catalog API. Required to be present when expectedTranscription is missing. When uploadId is present, filePathInUpload must also be present."
2237722368
},
2237822369
"filePathInUpload": {
2237922370
"type": "string",
22380-
"description": "file path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories."
22371+
"description": "File path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. Required to be present when expectedTranscription is missing. When filePathInUpload is present, uploadId must also be present."
2238122372
},
2238222373
"evaluationWeight": {
2238322374
"type": "number",
22384-
"description": "weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8\n",
22375+
"description": "Weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8\n",
2238522376
"minimum": 1,
2238622377
"maximum": 1000
2238722378
},
2238822379
"expectedTranscription": {
2238922380
"type": "string",
22390-
"description": "expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters"
22381+
"description": "Expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters. Required to be present when uploadId and filePathInUpload are missing."
2239122382
}
22392-
}
22383+
},
22384+
"description": "A single test case that describes the audio reference, expected transcriptions, test case weight etc. Each annotation object must have at least expectedTranscription or, uploadId and filePathInUpload in pair. In any case, filePathInUpload and uploadId must be present or missing in pair."
2239322385
},
2239422386
"v1.skill.asr.annotationSets.GetASRAnnotationSetsPropertiesResponse": {
2239522387
"allOf": [
@@ -22431,6 +22423,10 @@
2243122423
"type": "string",
2243222424
"format": "date-time",
2243322425
"description": "The timestamp for the most recent update of ASR annotation set"
22426+
},
22427+
"eligibleForEvaluation": {
22428+
"type": "boolean",
22429+
"description": "Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight."
2243422430
}
2243522431
}
2243622432
},

0 commit comments

Comments
 (0)