@temporalio/cloud 1.11.8 → 1.12.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/lib/cloud-operations-client.d.ts +4 -4
- package/lib/cloud-operations-client.js +37 -5
- package/lib/cloud-operations-client.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/package.json +12 -6
- package/src/cloud-operations-client.ts +5 -5
- package/src/index.ts +3 -1
|
@@ -6,7 +6,7 @@ import { Duration } from '@temporalio/common/lib/time';
|
|
|
6
6
|
import { CallContext, HealthService, Metadata } from '@temporalio/client';
|
|
7
7
|
import { CloudService } from './types';
|
|
8
8
|
/**
|
|
9
|
-
* @experimental
|
|
9
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
10
10
|
*/
|
|
11
11
|
export interface CloudOperationsClientOptions {
|
|
12
12
|
/**
|
|
@@ -22,7 +22,7 @@ export interface CloudOperationsClientOptions {
|
|
|
22
22
|
/**
|
|
23
23
|
* High level client for the Temporal Cloud API.
|
|
24
24
|
*
|
|
25
|
-
* @experimental
|
|
25
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
26
26
|
*/
|
|
27
27
|
export declare class CloudOperationsClient {
|
|
28
28
|
/**
|
|
@@ -99,7 +99,7 @@ export declare class CloudOperationsClient {
|
|
|
99
99
|
get cloudService(): CloudService;
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
|
-
* @experimental
|
|
102
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
103
103
|
*/
|
|
104
104
|
export interface CloudOperationsConnectionOptions {
|
|
105
105
|
/**
|
|
@@ -203,7 +203,7 @@ interface CloudOperationsConnectionCtorOptions {
|
|
|
203
203
|
* ⚠️ Connections are expensive to construct and should be reused.
|
|
204
204
|
* Make sure to {@link close} any unused connections to avoid leaking resources.
|
|
205
205
|
*
|
|
206
|
-
* @experimental
|
|
206
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
207
207
|
*/
|
|
208
208
|
export declare class CloudOperationsConnection {
|
|
209
209
|
private static readonly Client;
|
|
@@ -30,6 +30,7 @@ exports.CloudOperationsConnection = exports.CloudOperationsClient = void 0;
|
|
|
30
30
|
const node_async_hooks_1 = require("node:async_hooks");
|
|
31
31
|
const grpc = __importStar(require("@grpc/grpc-js"));
|
|
32
32
|
const internal_non_workflow_1 = require("@temporalio/common/lib/internal-non-workflow");
|
|
33
|
+
const internal_workflow_1 = require("@temporalio/common/lib/internal-workflow");
|
|
33
34
|
const time_1 = require("@temporalio/common/lib/time");
|
|
34
35
|
const client_1 = require("@temporalio/client");
|
|
35
36
|
const pkg_1 = __importDefault(require("./pkg"));
|
|
@@ -37,12 +38,20 @@ const types_1 = require("./types");
|
|
|
37
38
|
/**
|
|
38
39
|
* High level client for the Temporal Cloud API.
|
|
39
40
|
*
|
|
40
|
-
* @experimental
|
|
41
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
41
42
|
*/
|
|
42
43
|
class CloudOperationsClient {
|
|
44
|
+
/**
|
|
45
|
+
* The underlying {@link CloudOperationsConnection | connection} used by this client.
|
|
46
|
+
*
|
|
47
|
+
* Clients are cheap to create, but connections are expensive. Where it makes sense,
|
|
48
|
+
* a single connection may and should be reused by multiple `CloudOperationsClient`s.
|
|
49
|
+
*/
|
|
50
|
+
connection;
|
|
51
|
+
options;
|
|
43
52
|
constructor(options) {
|
|
44
53
|
this.connection = options.connection;
|
|
45
|
-
this.options = (0,
|
|
54
|
+
this.options = (0, internal_workflow_1.filterNullAndUndefined)(options);
|
|
46
55
|
}
|
|
47
56
|
/**
|
|
48
57
|
* Set a deadline for any service requests executed in `fn`'s scope.
|
|
@@ -146,7 +155,7 @@ function normalizeGRPCConfig(options) {
|
|
|
146
155
|
interceptors: interceptors ?? [(0, client_1.makeGrpcRetryInterceptor)((0, client_1.defaultGrpcRetryOptions)())],
|
|
147
156
|
metadata: {},
|
|
148
157
|
connectTimeoutMs: (0, time_1.msOptionalToNumber)(connectTimeout) ?? 10_000,
|
|
149
|
-
...(0,
|
|
158
|
+
...(0, internal_workflow_1.filterNullAndUndefined)(rest),
|
|
150
159
|
};
|
|
151
160
|
}
|
|
152
161
|
/**
|
|
@@ -155,9 +164,33 @@ function normalizeGRPCConfig(options) {
|
|
|
155
164
|
* ⚠️ Connections are expensive to construct and should be reused.
|
|
156
165
|
* Make sure to {@link close} any unused connections to avoid leaking resources.
|
|
157
166
|
*
|
|
158
|
-
* @experimental
|
|
167
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
159
168
|
*/
|
|
160
169
|
class CloudOperationsConnection {
|
|
170
|
+
static Client = grpc.makeGenericClientConstructor({}, 'CloudService', {});
|
|
171
|
+
options;
|
|
172
|
+
client;
|
|
173
|
+
/**
|
|
174
|
+
* Used to ensure `ensureConnected` is called once.
|
|
175
|
+
*/
|
|
176
|
+
connectPromise;
|
|
177
|
+
/**
|
|
178
|
+
* Raw gRPC access to the
|
|
179
|
+
* {@link https://github.com/temporalio/api-cloud/blob/main/temporal/api/cloud/cloudservice/v1/service.proto | Temporal Cloud's Operator Service}.
|
|
180
|
+
*
|
|
181
|
+
* The Temporal Cloud Operator Service API defines how Temporal SDKs and other clients interact
|
|
182
|
+
* with the Temporal Cloud platform to perform administrative functions like registering a search
|
|
183
|
+
* attribute or a namespace.
|
|
184
|
+
*
|
|
185
|
+
* This Service API is NOT compatible with self-hosted Temporal deployments.
|
|
186
|
+
*/
|
|
187
|
+
cloudService;
|
|
188
|
+
/**
|
|
189
|
+
* Raw gRPC access to the standard gRPC {@link https://github.com/grpc/grpc/blob/92f58c18a8da2728f571138c37760a721c8915a2/doc/health-checking.md | health service}.
|
|
190
|
+
*/
|
|
191
|
+
healthService;
|
|
192
|
+
callContextStorage;
|
|
193
|
+
apiKeyFnRef;
|
|
161
194
|
static createCtorOptions(options) {
|
|
162
195
|
const normalizedOptions = normalizeGRPCConfig(options);
|
|
163
196
|
const apiKeyFnRef = {};
|
|
@@ -387,5 +420,4 @@ class CloudOperationsConnection {
|
|
|
387
420
|
}
|
|
388
421
|
}
|
|
389
422
|
exports.CloudOperationsConnection = CloudOperationsConnection;
|
|
390
|
-
CloudOperationsConnection.Client = grpc.makeGenericClientConstructor({}, 'CloudService', {});
|
|
391
423
|
//# sourceMappingURL=cloud-operations-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-operations-client.js","sourceRoot":"","sources":["../src/cloud-operations-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAqD;AACrD,oDAAsC;AAEtC,
|
|
1
|
+
{"version":3,"file":"cloud-operations-client.js","sourceRoot":"","sources":["../src/cloud-operations-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAqD;AACrD,oDAAsC;AAEtC,wFAIsD;AACtD,gFAAkF;AAClF,sDAA2E;AAC3E,+CAM4B;AAC5B,gDAAwB;AACxB,mCAAuC;AAkBvC;;;;GAIG;AACH,MAAa,qBAAqB;IAChC;;;;;OAKG;IACa,UAAU,CAA4B;IACtC,OAAO,CAAyC;IAEhE,YAAY,OAAqC;QAC/C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,IAAA,0CAAsB,EAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACI,KAAK,CAAC,YAAY,CAAI,QAAuB,EAAE,EAAoB;QACxE,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,eAAe,CAAI,WAAwB,EAAE,E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C;gBAClB,MAAM,IAAI,SAAS,CAAC,sCAAsC,CAAC,CAAC;YAC9D,CAAC;YACD,IAAI,CAAC,WAAW,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC;QACrC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,CAAC,EAAE,GAAG,MAAM,CAAC;QAC/B,CAAC;IACH,CAAC;IAED;;;;OAIG;IACO,KAAK,CAAC,UAAU,CAAC,QAAgB;QACzC,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC3C,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;gBACzC,IAAI,GAAG,EAAE,CAAC;oBACR,MAAM,CAAC,GAAG,CAAC,CAAC;gBACd,CAAC;qBAAM,CAAC;oBACN,OAAO,EAAE,CAAC;gBACZ,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACI,KAAK;QACV,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;;AAjTH,8DAkTC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
3
|
+
*/
|
|
2
4
|
export { CloudOperationsClient, CloudOperationsConnection, CloudOperationsConnectionOptions, CloudOperationsClientOptions, } from './cloud-operations-client';
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CloudOperationsConnection = exports.CloudOperationsClient = void 0;
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
6
|
+
*/
|
|
5
7
|
var cloud_operations_client_1 = require("./cloud-operations-client");
|
|
6
8
|
Object.defineProperty(exports, "CloudOperationsClient", { enumerable: true, get: function () { return cloud_operations_client_1.CloudOperationsClient; } });
|
|
7
9
|
Object.defineProperty(exports, "CloudOperationsConnection", { enumerable: true, get: function () { return cloud_operations_client_1.CloudOperationsConnection; } });
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,qEAKmC;AAJjC,gIAAA,qBAAqB,OAAA;AACrB,oIAAA,yBAAyB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/cloud",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Temporal.io SDK — Temporal Cloud Client",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -14,12 +14,15 @@
|
|
|
14
14
|
"author": "Temporal Technologies Inc. <sdk@temporal.io>",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@grpc/grpc-js": "^1.
|
|
18
|
-
"@temporalio/client": "1.
|
|
19
|
-
"@temporalio/common": "1.
|
|
20
|
-
"@temporalio/proto": "1.
|
|
17
|
+
"@grpc/grpc-js": "^1.12.4",
|
|
18
|
+
"@temporalio/client": "1.12.0",
|
|
19
|
+
"@temporalio/common": "1.12.0",
|
|
20
|
+
"@temporalio/proto": "1.12.0",
|
|
21
21
|
"abort-controller": "^3.0.0"
|
|
22
22
|
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"protobufjs": "^7.2.5"
|
|
25
|
+
},
|
|
23
26
|
"bugs": {
|
|
24
27
|
"url": "https://github.com/temporalio/sdk-typescript/issues"
|
|
25
28
|
},
|
|
@@ -29,6 +32,9 @@
|
|
|
29
32
|
"directory": "packages/cloud"
|
|
30
33
|
},
|
|
31
34
|
"homepage": "https://github.com/temporalio/sdk-typescript/tree/main/packages/cloud",
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">= 18.0.0"
|
|
37
|
+
},
|
|
32
38
|
"publishConfig": {
|
|
33
39
|
"access": "public"
|
|
34
40
|
},
|
|
@@ -36,5 +42,5 @@
|
|
|
36
42
|
"src",
|
|
37
43
|
"lib"
|
|
38
44
|
],
|
|
39
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "8757698f4d722f392e4d606a215e84c32420aa25"
|
|
40
46
|
}
|
|
@@ -2,11 +2,11 @@ import { AsyncLocalStorage } from 'node:async_hooks';
|
|
|
2
2
|
import * as grpc from '@grpc/grpc-js';
|
|
3
3
|
import type { RPCImpl } from 'protobufjs';
|
|
4
4
|
import {
|
|
5
|
-
filterNullAndUndefined,
|
|
6
5
|
normalizeTlsConfig,
|
|
7
6
|
TLSConfig,
|
|
8
7
|
normalizeGrpcEndpointAddress,
|
|
9
8
|
} from '@temporalio/common/lib/internal-non-workflow';
|
|
9
|
+
import { filterNullAndUndefined } from '@temporalio/common/lib/internal-workflow';
|
|
10
10
|
import { Duration, msOptionalToNumber } from '@temporalio/common/lib/time';
|
|
11
11
|
import {
|
|
12
12
|
CallContext,
|
|
@@ -19,7 +19,7 @@ import pkg from './pkg';
|
|
|
19
19
|
import { CloudService } from './types';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* @experimental
|
|
22
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
23
23
|
*/
|
|
24
24
|
export interface CloudOperationsClientOptions {
|
|
25
25
|
/**
|
|
@@ -37,7 +37,7 @@ export interface CloudOperationsClientOptions {
|
|
|
37
37
|
/**
|
|
38
38
|
* High level client for the Temporal Cloud API.
|
|
39
39
|
*
|
|
40
|
-
* @experimental
|
|
40
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
41
41
|
*/
|
|
42
42
|
export class CloudOperationsClient {
|
|
43
43
|
/**
|
|
@@ -131,7 +131,7 @@ export class CloudOperationsClient {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* @experimental
|
|
134
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
135
135
|
*/
|
|
136
136
|
export interface CloudOperationsConnectionOptions {
|
|
137
137
|
/**
|
|
@@ -288,7 +288,7 @@ interface CloudOperationsConnectionCtorOptions {
|
|
|
288
288
|
* ⚠️ Connections are expensive to construct and should be reused.
|
|
289
289
|
* Make sure to {@link close} any unused connections to avoid leaking resources.
|
|
290
290
|
*
|
|
291
|
-
* @experimental
|
|
291
|
+
* @experimental The Temporal Cloud Operations Client API is an experimental feature and may be subject to change.
|
|
292
292
|
*/
|
|
293
293
|
export class CloudOperationsConnection {
|
|
294
294
|
private static readonly Client = grpc.makeGenericClientConstructor({}, 'CloudService', {});
|