@microsoft/agents-hosting-storage-blob 1.9.0-beta.8.gf58e66b2ee → 1.9.1
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/README.md +26 -8
- package/dist/package.json +4 -4
- package/dist/src/blobsStorage.d.ts +68 -36
- package/dist/src/blobsStorage.js +286 -61
- package/dist/src/blobsStorage.js.map +1 -1
- package/dist/src/errorHelper.js +40 -0
- package/dist/src/errorHelper.js.map +1 -1
- package/package.json +4 -4
- package/src/blobsStorage.ts +303 -125
- package/src/errorHelper.ts +48 -0
package/src/errorHelper.ts
CHANGED
|
@@ -41,5 +41,53 @@ export const Errors: { [key: string]: AgentErrorDefinition } = {
|
|
|
41
41
|
ETagConflict: {
|
|
42
42
|
code: -160002,
|
|
43
43
|
description: 'Storage: error writing "{key}" due to eTag conflict.'
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
/** Error thrown when an empty V2 storage version token is provided. */
|
|
47
|
+
StorageV2ExpectedVersionEmpty: {
|
|
48
|
+
code: -160003,
|
|
49
|
+
description: 'Storage V2 expectedVersion cannot be empty.'
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
/** Error thrown when a V2 value is not a non-array object. */
|
|
53
|
+
StorageV2ValueRequired: {
|
|
54
|
+
code: -160004,
|
|
55
|
+
description: 'Storage V2 values must be non-null, non-array objects.'
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
/** Error thrown when an Azure Blob V2 operation fails unexpectedly. */
|
|
59
|
+
StorageV2OperationFailed: {
|
|
60
|
+
code: -160005,
|
|
61
|
+
description: 'Blob Storage V2 {operation} failed for key "{key}".'
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
/** Error thrown when a legacy Blob Storage write fails unexpectedly. */
|
|
65
|
+
StorageWriteFailed: {
|
|
66
|
+
code: -160008,
|
|
67
|
+
description: 'Blob Storage failed to write key "{key}".'
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
/** Error thrown when a V2 storage key is empty or whitespace. */
|
|
71
|
+
StorageV2KeyRequired: {
|
|
72
|
+
code: -160006,
|
|
73
|
+
description: 'Storage V2 keys must be non-empty strings.'
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
/** Error thrown when a V2 write mode is not supported. */
|
|
77
|
+
StorageV2WriteModeUnsupported: {
|
|
78
|
+
code: -160007,
|
|
79
|
+
description: 'Storage V2 write mode "{mode}" is not supported.'
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
/** Error thrown when V2 write changes are missing or invalid. */
|
|
83
|
+
StorageV2ChangesRequired: {
|
|
84
|
+
code: -160009,
|
|
85
|
+
description: 'Storage V2 changes must be an object.'
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
/** Error thrown when the V2 key collection is missing or invalid. */
|
|
89
|
+
StorageV2KeysRequired: {
|
|
90
|
+
code: -160010,
|
|
91
|
+
description: 'Storage V2 keys must be an array.'
|
|
44
92
|
}
|
|
45
93
|
}
|