@gomomento/sdk-core 1.35.0 → 1.36.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.
- package/dist/src/auth/credential-provider.d.ts +7 -0
- package/dist/src/auth/credential-provider.js +5 -1
- package/dist/src/auth/tokens/disposable-token-scopes.d.ts +8 -0
- package/dist/src/auth/tokens/disposable-token-scopes.js +74 -0
- package/dist/src/auth/tokens/token-scope.d.ts +30 -9
- package/dist/src/auth/tokens/token-scope.js +61 -6
- package/dist/src/clients/IAuthClient.d.ts +3 -2
- package/dist/src/clients/IAuthClient.js +1 -1
- package/dist/src/clients/IVectorClient.d.ts +3 -0
- package/dist/src/clients/IVectorClient.js +3 -0
- package/dist/src/index.d.ts +7 -3
- package/dist/src/index.js +30 -7
- package/dist/src/internal/clients/auth/AbstractAuthClient.d.ts +12 -2
- package/dist/src/internal/clients/auth/AbstractAuthClient.js +13 -1
- package/dist/src/internal/clients/index.d.ts +1 -0
- package/dist/src/internal/clients/index.js +2 -1
- package/dist/src/internal/clients/vector/AbstractVectorClient.d.ts +35 -0
- package/dist/src/internal/clients/vector/AbstractVectorClient.js +44 -0
- package/dist/src/internal/clients/vector/IVectorControlClient.d.ts +6 -0
- package/dist/src/internal/clients/vector/IVectorControlClient.js +3 -0
- package/dist/src/internal/clients/vector/index.d.ts +3 -0
- package/dist/src/internal/clients/vector/index.js +20 -0
- package/dist/src/internal/utils/auth.d.ts +1 -0
- package/dist/src/internal/utils/auth.js +3 -1
- package/dist/src/internal/utils/validators.d.ts +5 -0
- package/dist/src/internal/utils/validators.js +33 -2
- package/dist/src/messages/responses/generate-disposable-token.d.ts +47 -0
- package/dist/src/messages/responses/generate-disposable-token.js +42 -0
- package/dist/src/messages/responses/vector/create-vector-index.d.ts +67 -0
- package/dist/src/messages/responses/vector/create-vector-index.js +61 -0
- package/dist/src/messages/responses/vector/delete-vector-index.d.ts +61 -0
- package/dist/src/messages/responses/vector/delete-vector-index.js +54 -0
- package/dist/src/messages/responses/vector/index.d.ts +3 -0
- package/dist/src/messages/responses/vector/index.js +7 -0
- package/dist/src/messages/responses/vector/list-vector-indexes.d.ts +69 -0
- package/dist/src/messages/responses/vector/list-vector-indexes.js +68 -0
- package/package.json +1 -1
@@ -0,0 +1,61 @@
|
|
1
|
+
import { SdkError } from '../../../errors';
|
2
|
+
import { ResponseBase } from '../response-base';
|
3
|
+
/**
|
4
|
+
* Parent response type for a delete index request. The
|
5
|
+
* response object is resolved to a type-safe object of one of
|
6
|
+
* the following subtypes:
|
7
|
+
*
|
8
|
+
* - {Success}
|
9
|
+
* - {Error}
|
10
|
+
*
|
11
|
+
* `instanceof` type guards can be used to operate on the appropriate subtype.
|
12
|
+
* @example
|
13
|
+
* For example:
|
14
|
+
* ```
|
15
|
+
* if (response instanceof DeleteIndex.Error) {
|
16
|
+
* // Handle error as appropriate. The compiler will smart-cast `response` to type
|
17
|
+
* // `DeleteIndex.Error` in this block, so you will have access to the properties
|
18
|
+
* // of the Error class; e.g. `response.errorCode()`.
|
19
|
+
* }
|
20
|
+
* ```
|
21
|
+
*/
|
22
|
+
export declare abstract class Response extends ResponseBase {
|
23
|
+
}
|
24
|
+
declare class _Success extends Response {
|
25
|
+
}
|
26
|
+
declare const Success_base: {
|
27
|
+
new (...args: any[]): {
|
28
|
+
readonly is_success: boolean;
|
29
|
+
};
|
30
|
+
} & typeof _Success;
|
31
|
+
/**
|
32
|
+
* Indicates a Successful delete index request.
|
33
|
+
*/
|
34
|
+
export declare class Success extends Success_base {
|
35
|
+
}
|
36
|
+
declare class _Error extends Response {
|
37
|
+
protected _innerException: SdkError;
|
38
|
+
constructor(_innerException: SdkError);
|
39
|
+
}
|
40
|
+
declare const Error_base: {
|
41
|
+
new (...args: any[]): {
|
42
|
+
_innerException: SdkError;
|
43
|
+
message(): string;
|
44
|
+
innerException(): SdkError;
|
45
|
+
errorCode(): import("../../../errors").MomentoErrorCode;
|
46
|
+
toString(): string;
|
47
|
+
};
|
48
|
+
} & typeof _Error;
|
49
|
+
/**
|
50
|
+
* Indicates that an error occurred during the delete index request.
|
51
|
+
*
|
52
|
+
* This response object includes the following fields that you can use to determine
|
53
|
+
* how you would like to handle the error:
|
54
|
+
*
|
55
|
+
* - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
|
56
|
+
* - `message()` - a human-readable description of the error
|
57
|
+
* - `innerException()` - the original error that caused the failure; can be re-thrown.
|
58
|
+
*/
|
59
|
+
export declare class Error extends Error_base {
|
60
|
+
}
|
61
|
+
export {};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Error = exports.Success = exports.Response = void 0;
|
4
|
+
const response_base_1 = require("../response-base");
|
5
|
+
/**
|
6
|
+
* Parent response type for a delete index request. The
|
7
|
+
* response object is resolved to a type-safe object of one of
|
8
|
+
* the following subtypes:
|
9
|
+
*
|
10
|
+
* - {Success}
|
11
|
+
* - {Error}
|
12
|
+
*
|
13
|
+
* `instanceof` type guards can be used to operate on the appropriate subtype.
|
14
|
+
* @example
|
15
|
+
* For example:
|
16
|
+
* ```
|
17
|
+
* if (response instanceof DeleteIndex.Error) {
|
18
|
+
* // Handle error as appropriate. The compiler will smart-cast `response` to type
|
19
|
+
* // `DeleteIndex.Error` in this block, so you will have access to the properties
|
20
|
+
* // of the Error class; e.g. `response.errorCode()`.
|
21
|
+
* }
|
22
|
+
* ```
|
23
|
+
*/
|
24
|
+
class Response extends response_base_1.ResponseBase {
|
25
|
+
}
|
26
|
+
exports.Response = Response;
|
27
|
+
class _Success extends Response {
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* Indicates a Successful delete index request.
|
31
|
+
*/
|
32
|
+
class Success extends (0, response_base_1.ResponseSuccess)(_Success) {
|
33
|
+
}
|
34
|
+
exports.Success = Success;
|
35
|
+
class _Error extends Response {
|
36
|
+
constructor(_innerException) {
|
37
|
+
super();
|
38
|
+
this._innerException = _innerException;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* Indicates that an error occurred during the delete index request.
|
43
|
+
*
|
44
|
+
* This response object includes the following fields that you can use to determine
|
45
|
+
* how you would like to handle the error:
|
46
|
+
*
|
47
|
+
* - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
|
48
|
+
* - `message()` - a human-readable description of the error
|
49
|
+
* - `innerException()` - the original error that caused the failure; can be re-thrown.
|
50
|
+
*/
|
51
|
+
class Error extends (0, response_base_1.ResponseError)(_Error) {
|
52
|
+
}
|
53
|
+
exports.Error = Error;
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLXZlY3Rvci1pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tZXNzYWdlcy9yZXNwb25zZXMvdmVjdG9yL2RlbGV0ZS12ZWN0b3ItaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esb0RBQThFO0FBRTlFOzs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FrQkc7QUFDSCxNQUFzQixRQUFTLFNBQVEsNEJBQVk7Q0FBRztBQUF0RCw0QkFBc0Q7QUFFdEQsTUFBTSxRQUFTLFNBQVEsUUFBUTtDQUFHO0FBRWxDOztHQUVHO0FBQ0gsTUFBYSxPQUFRLFNBQVEsSUFBQSwrQkFBZSxFQUFDLFFBQVEsQ0FBQztDQUFHO0FBQXpELDBCQUF5RDtBQUV6RCxNQUFNLE1BQU8sU0FBUSxRQUFRO0lBQzNCLFlBQXNCLGVBQXlCO1FBQzdDLEtBQUssRUFBRSxDQUFDO1FBRFksb0JBQWUsR0FBZixlQUFlLENBQVU7SUFFL0MsQ0FBQztDQUNGO0FBRUQ7Ozs7Ozs7OztHQVNHO0FBQ0gsTUFBYSxLQUFNLFNBQVEsSUFBQSw2QkFBYSxFQUFDLE1BQU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bnNlRXJyb3IoX0Vycm9yKSB7fVxuIl19
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeleteVectorIndex = exports.ListVectorIndexes = exports.CreateVectorIndex = void 0;
|
4
|
+
exports.CreateVectorIndex = require("./create-vector-index");
|
5
|
+
exports.ListVectorIndexes = require("./list-vector-indexes");
|
6
|
+
exports.DeleteVectorIndex = require("./delete-vector-index");
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbWVzc2FnZXMvcmVzcG9uc2VzL3ZlY3Rvci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2REFBMkQ7QUFDM0QsNkRBQTJEO0FBQzNELDZEQUEyRCIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGFzIENyZWF0ZVZlY3RvckluZGV4IGZyb20gJy4vY3JlYXRlLXZlY3Rvci1pbmRleCc7XG5leHBvcnQgKiBhcyBMaXN0VmVjdG9ySW5kZXhlcyBmcm9tICcuL2xpc3QtdmVjdG9yLWluZGV4ZXMnO1xuZXhwb3J0ICogYXMgRGVsZXRlVmVjdG9ySW5kZXggZnJvbSAnLi9kZWxldGUtdmVjdG9yLWluZGV4JztcbiJdfQ==
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { SdkError } from '../../../errors';
|
2
|
+
import { ResponseBase } from '../response-base';
|
3
|
+
/**
|
4
|
+
* Parent response type for a list indexes request. The
|
5
|
+
* response object is resolved to a type-safe object of one of
|
6
|
+
* the following subtypes:
|
7
|
+
*
|
8
|
+
* - {Success}
|
9
|
+
* - {Error}
|
10
|
+
*
|
11
|
+
* `instanceof` type guards can be used to operate on the appropriate subtype.
|
12
|
+
* @example
|
13
|
+
* For example:
|
14
|
+
* ```
|
15
|
+
* if (response instanceof ListIndexes.Error) {
|
16
|
+
* // Handle error as appropriate. The compiler will smart-cast `response` to type
|
17
|
+
* // `ListIndexes.Error` in this block, so you will have access to the properties
|
18
|
+
* // of the Error class; e.g. `response.errorCode()`.
|
19
|
+
* }
|
20
|
+
* ```
|
21
|
+
*/
|
22
|
+
export declare abstract class Response extends ResponseBase {
|
23
|
+
}
|
24
|
+
declare class _Success extends Response {
|
25
|
+
private readonly indexNames;
|
26
|
+
constructor(indexNames: string[]);
|
27
|
+
/**
|
28
|
+
* An array of index names.
|
29
|
+
* @returns {string[]}
|
30
|
+
*/
|
31
|
+
getIndexNames(): string[];
|
32
|
+
toString(): string;
|
33
|
+
}
|
34
|
+
declare const Success_base: {
|
35
|
+
new (...args: any[]): {
|
36
|
+
readonly is_success: boolean;
|
37
|
+
};
|
38
|
+
} & typeof _Success;
|
39
|
+
/**
|
40
|
+
* Indicates a Successful list indexes request.
|
41
|
+
*/
|
42
|
+
export declare class Success extends Success_base {
|
43
|
+
}
|
44
|
+
declare class _Error extends Response {
|
45
|
+
protected _innerException: SdkError;
|
46
|
+
constructor(_innerException: SdkError);
|
47
|
+
}
|
48
|
+
declare const Error_base: {
|
49
|
+
new (...args: any[]): {
|
50
|
+
_innerException: SdkError;
|
51
|
+
message(): string;
|
52
|
+
innerException(): SdkError;
|
53
|
+
errorCode(): import("../../../errors").MomentoErrorCode;
|
54
|
+
toString(): string;
|
55
|
+
};
|
56
|
+
} & typeof _Error;
|
57
|
+
/**
|
58
|
+
* Indicates that an error occurred during the list indexes request.
|
59
|
+
*
|
60
|
+
* This response object includes the following fields that you can use to determine
|
61
|
+
* how you would like to handle the error:
|
62
|
+
*
|
63
|
+
* - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
|
64
|
+
* - `message()` - a human-readable description of the error
|
65
|
+
* - `innerException()` - the original error that caused the failure; can be re-thrown.
|
66
|
+
*/
|
67
|
+
export declare class Error extends Error_base {
|
68
|
+
}
|
69
|
+
export {};
|
@@ -0,0 +1,68 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Error = exports.Success = exports.Response = void 0;
|
4
|
+
const response_base_1 = require("../response-base");
|
5
|
+
/**
|
6
|
+
* Parent response type for a list indexes request. The
|
7
|
+
* response object is resolved to a type-safe object of one of
|
8
|
+
* the following subtypes:
|
9
|
+
*
|
10
|
+
* - {Success}
|
11
|
+
* - {Error}
|
12
|
+
*
|
13
|
+
* `instanceof` type guards can be used to operate on the appropriate subtype.
|
14
|
+
* @example
|
15
|
+
* For example:
|
16
|
+
* ```
|
17
|
+
* if (response instanceof ListIndexes.Error) {
|
18
|
+
* // Handle error as appropriate. The compiler will smart-cast `response` to type
|
19
|
+
* // `ListIndexes.Error` in this block, so you will have access to the properties
|
20
|
+
* // of the Error class; e.g. `response.errorCode()`.
|
21
|
+
* }
|
22
|
+
* ```
|
23
|
+
*/
|
24
|
+
class Response extends response_base_1.ResponseBase {
|
25
|
+
}
|
26
|
+
exports.Response = Response;
|
27
|
+
class _Success extends Response {
|
28
|
+
constructor(indexNames) {
|
29
|
+
super();
|
30
|
+
this.indexNames = indexNames;
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* An array of index names.
|
34
|
+
* @returns {string[]}
|
35
|
+
*/
|
36
|
+
getIndexNames() {
|
37
|
+
return this.indexNames;
|
38
|
+
}
|
39
|
+
toString() {
|
40
|
+
return super.toString() + ': ' + this.indexNames.join(', ');
|
41
|
+
}
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Indicates a Successful list indexes request.
|
45
|
+
*/
|
46
|
+
class Success extends (0, response_base_1.ResponseSuccess)(_Success) {
|
47
|
+
}
|
48
|
+
exports.Success = Success;
|
49
|
+
class _Error extends Response {
|
50
|
+
constructor(_innerException) {
|
51
|
+
super();
|
52
|
+
this._innerException = _innerException;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
/**
|
56
|
+
* Indicates that an error occurred during the list indexes request.
|
57
|
+
*
|
58
|
+
* This response object includes the following fields that you can use to determine
|
59
|
+
* how you would like to handle the error:
|
60
|
+
*
|
61
|
+
* - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
|
62
|
+
* - `message()` - a human-readable description of the error
|
63
|
+
* - `innerException()` - the original error that caused the failure; can be re-thrown.
|
64
|
+
*/
|
65
|
+
class Error extends (0, response_base_1.ResponseError)(_Error) {
|
66
|
+
}
|
67
|
+
exports.Error = Error;
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC12ZWN0b3ItaW5kZXhlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tZXNzYWdlcy9yZXNwb25zZXMvdmVjdG9yL2xpc3QtdmVjdG9yLWluZGV4ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esb0RBQThFO0FBRTlFOzs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FrQkc7QUFDSCxNQUFzQixRQUFTLFNBQVEsNEJBQVk7Q0FBRztBQUF0RCw0QkFBc0Q7QUFFdEQsTUFBTSxRQUFTLFNBQVEsUUFBUTtJQUU3QixZQUFZLFVBQW9CO1FBQzlCLEtBQUssRUFBRSxDQUFDO1FBQ1IsSUFBSSxDQUFDLFVBQVUsR0FBRyxVQUFVLENBQUM7SUFDL0IsQ0FBQztJQUVEOzs7T0FHRztJQUNJLGFBQWE7UUFDbEIsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDO0lBQ3pCLENBQUM7SUFFZSxRQUFRO1FBQ3RCLE9BQU8sS0FBSyxDQUFDLFFBQVEsRUFBRSxHQUFHLElBQUksR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUM5RCxDQUFDO0NBQ0Y7QUFFRDs7R0FFRztBQ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