@alienplatform/sdk 1.11.2 → 1.13.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/.turbo/turbo-build.log +18 -44
- package/dist/bearerTokenAuthenticationPolicy.js +40 -40
- package/dist/{serde.js → checksum.js} +1103 -469
- package/dist/dist-cjs.js +15256 -1
- package/dist/dist.js +37 -23
- package/dist/es5.js +107 -11
- package/dist/esm.js +4803 -4946
- package/dist/esm2.js +298 -236
- package/dist/event-streams.js +571 -4
- package/dist/generated/artifact_registry.d.ts +14 -14
- package/dist/generated/artifact_registry.d.ts.map +1 -1
- package/dist/generated/build.d.ts +6 -6
- package/dist/generated/build.d.ts.map +1 -1
- package/dist/generated/container.d.ts +6 -6
- package/dist/generated/container.d.ts.map +1 -1
- package/dist/generated/control.d.ts +8 -8
- package/dist/generated/control.d.ts.map +1 -1
- package/dist/generated/kv.d.ts +10 -10
- package/dist/generated/kv.d.ts.map +1 -1
- package/dist/generated/queue.d.ts +6 -6
- package/dist/generated/queue.d.ts.map +1 -1
- package/dist/generated/service_account.d.ts +4 -4
- package/dist/generated/service_account.d.ts.map +1 -1
- package/dist/generated/storage.d.ts +28 -28
- package/dist/generated/storage.d.ts.map +1 -1
- package/dist/generated/vault.d.ts +6 -6
- package/dist/generated/vault.d.ts.map +1 -1
- package/dist/generated/wait_until.d.ts +8 -8
- package/dist/generated/wait_until.d.ts.map +1 -1
- package/dist/generated/worker.d.ts +4 -4
- package/dist/generated/worker.d.ts.map +1 -1
- package/dist/index.js +311 -278
- package/dist/open.js +2 -1
- package/dist/rolldown-runtime.js +9 -2
- package/dist/src.js +10240 -10043
- package/dist/src2.js +15 -13
- package/package.json +4 -4
- package/src/generated/artifact_registry.ts +125 -35
- package/src/generated/build.ts +67 -19
- package/src/generated/container.ts +28 -10
- package/src/generated/control.ts +130 -34
- package/src/generated/google/protobuf/duration.ts +1 -1
- package/src/generated/google/protobuf/timestamp.ts +1 -1
- package/src/generated/kv.ts +53 -21
- package/src/generated/queue.ts +37 -13
- package/src/generated/service_account.ts +64 -16
- package/src/generated/storage.ts +189 -61
- package/src/generated/vault.ts +37 -13
- package/src/generated/wait_until.ts +68 -20
- package/src/generated/worker.ts +29 -11
- package/dist/client.js +0 -2376
- package/dist/dist-cjs2.js +0 -718
- package/dist/dist-cjs3.js +0 -2486
- package/dist/dist-cjs4.js +0 -171
- package/dist/dist-cjs5.js +0 -429
- package/dist/dist-cjs6.js +0 -60
- package/dist/dist-cjs7.js +0 -978
- package/dist/dist-cjs8.js +0 -86
- package/dist/dist-cjs9.js +0 -319
- package/dist/package.js +0 -4
- package/dist/protocols.js +0 -954
- package/dist/protocols2.js +0 -5565
- package/dist/signin.js +0 -723
- package/dist/sso-oidc.js +0 -940
- package/dist/sts.js +0 -1329
- package/dist/tslib.es6.js +0 -543
package/src/generated/vault.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.12.0
|
|
4
4
|
// protoc v7.34.1
|
|
5
5
|
// source: vault.proto
|
|
6
6
|
|
|
@@ -98,8 +98,16 @@ export const GetSecretRequest: MessageFns<GetSecretRequest> = {
|
|
|
98
98
|
|
|
99
99
|
fromJSON(object: any): GetSecretRequest {
|
|
100
100
|
return {
|
|
101
|
-
bindingName: isSet(object.bindingName)
|
|
102
|
-
|
|
101
|
+
bindingName: isSet(object.bindingName)
|
|
102
|
+
? globalThis.String(object.bindingName)
|
|
103
|
+
: isSet(object.binding_name)
|
|
104
|
+
? globalThis.String(object.binding_name)
|
|
105
|
+
: "",
|
|
106
|
+
secretName: isSet(object.secretName)
|
|
107
|
+
? globalThis.String(object.secretName)
|
|
108
|
+
: isSet(object.secret_name)
|
|
109
|
+
? globalThis.String(object.secret_name)
|
|
110
|
+
: "",
|
|
103
111
|
};
|
|
104
112
|
},
|
|
105
113
|
|
|
@@ -243,8 +251,16 @@ export const SetSecretRequest: MessageFns<SetSecretRequest> = {
|
|
|
243
251
|
|
|
244
252
|
fromJSON(object: any): SetSecretRequest {
|
|
245
253
|
return {
|
|
246
|
-
bindingName: isSet(object.bindingName)
|
|
247
|
-
|
|
254
|
+
bindingName: isSet(object.bindingName)
|
|
255
|
+
? globalThis.String(object.bindingName)
|
|
256
|
+
: isSet(object.binding_name)
|
|
257
|
+
? globalThis.String(object.binding_name)
|
|
258
|
+
: "",
|
|
259
|
+
secretName: isSet(object.secretName)
|
|
260
|
+
? globalThis.String(object.secretName)
|
|
261
|
+
: isSet(object.secret_name)
|
|
262
|
+
? globalThis.String(object.secret_name)
|
|
263
|
+
: "",
|
|
248
264
|
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
249
265
|
};
|
|
250
266
|
},
|
|
@@ -367,8 +383,16 @@ export const DeleteSecretRequest: MessageFns<DeleteSecretRequest> = {
|
|
|
367
383
|
|
|
368
384
|
fromJSON(object: any): DeleteSecretRequest {
|
|
369
385
|
return {
|
|
370
|
-
bindingName: isSet(object.bindingName)
|
|
371
|
-
|
|
386
|
+
bindingName: isSet(object.bindingName)
|
|
387
|
+
? globalThis.String(object.bindingName)
|
|
388
|
+
: isSet(object.binding_name)
|
|
389
|
+
? globalThis.String(object.binding_name)
|
|
390
|
+
: "",
|
|
391
|
+
secretName: isSet(object.secretName)
|
|
392
|
+
? globalThis.String(object.secretName)
|
|
393
|
+
: isSet(object.secret_name)
|
|
394
|
+
? globalThis.String(object.secret_name)
|
|
395
|
+
: "",
|
|
372
396
|
};
|
|
373
397
|
},
|
|
374
398
|
|
|
@@ -446,27 +470,27 @@ export const VaultServiceDefinition = {
|
|
|
446
470
|
/** Get a secret value by name */
|
|
447
471
|
getSecret: {
|
|
448
472
|
name: "GetSecret",
|
|
449
|
-
requestType: GetSecretRequest,
|
|
473
|
+
requestType: GetSecretRequest as typeof GetSecretRequest,
|
|
450
474
|
requestStream: false,
|
|
451
|
-
responseType: GetSecretResponse,
|
|
475
|
+
responseType: GetSecretResponse as typeof GetSecretResponse,
|
|
452
476
|
responseStream: false,
|
|
453
477
|
options: {},
|
|
454
478
|
},
|
|
455
479
|
/** Set a secret value, creating it if it doesn't exist or updating it if it does */
|
|
456
480
|
setSecret: {
|
|
457
481
|
name: "SetSecret",
|
|
458
|
-
requestType: SetSecretRequest,
|
|
482
|
+
requestType: SetSecretRequest as typeof SetSecretRequest,
|
|
459
483
|
requestStream: false,
|
|
460
|
-
responseType: SetSecretResponse,
|
|
484
|
+
responseType: SetSecretResponse as typeof SetSecretResponse,
|
|
461
485
|
responseStream: false,
|
|
462
486
|
options: {},
|
|
463
487
|
},
|
|
464
488
|
/** Delete a secret by name */
|
|
465
489
|
deleteSecret: {
|
|
466
490
|
name: "DeleteSecret",
|
|
467
|
-
requestType: DeleteSecretRequest,
|
|
491
|
+
requestType: DeleteSecretRequest as typeof DeleteSecretRequest,
|
|
468
492
|
requestStream: false,
|
|
469
|
-
responseType: DeleteSecretResponse,
|
|
493
|
+
responseType: DeleteSecretResponse as typeof DeleteSecretResponse,
|
|
470
494
|
responseStream: false,
|
|
471
495
|
options: {},
|
|
472
496
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.12.0
|
|
4
4
|
// protoc v7.34.1
|
|
5
5
|
// source: wait_until.proto
|
|
6
6
|
|
|
@@ -120,8 +120,16 @@ export const NotifyTaskRegisteredRequest: MessageFns<NotifyTaskRegisteredRequest
|
|
|
120
120
|
|
|
121
121
|
fromJSON(object: any): NotifyTaskRegisteredRequest {
|
|
122
122
|
return {
|
|
123
|
-
applicationId: isSet(object.applicationId)
|
|
124
|
-
|
|
123
|
+
applicationId: isSet(object.applicationId)
|
|
124
|
+
? globalThis.String(object.applicationId)
|
|
125
|
+
: isSet(object.application_id)
|
|
126
|
+
? globalThis.String(object.application_id)
|
|
127
|
+
: "",
|
|
128
|
+
taskDescription: isSet(object.taskDescription)
|
|
129
|
+
? globalThis.String(object.taskDescription)
|
|
130
|
+
: isSet(object.task_description)
|
|
131
|
+
? globalThis.String(object.task_description)
|
|
132
|
+
: undefined,
|
|
125
133
|
};
|
|
126
134
|
},
|
|
127
135
|
|
|
@@ -254,7 +262,11 @@ export const WaitForDrainSignalRequest: MessageFns<WaitForDrainSignalRequest> =
|
|
|
254
262
|
|
|
255
263
|
fromJSON(object: any): WaitForDrainSignalRequest {
|
|
256
264
|
return {
|
|
257
|
-
applicationId: isSet(object.applicationId)
|
|
265
|
+
applicationId: isSet(object.applicationId)
|
|
266
|
+
? globalThis.String(object.applicationId)
|
|
267
|
+
: isSet(object.application_id)
|
|
268
|
+
? globalThis.String(object.application_id)
|
|
269
|
+
: "",
|
|
258
270
|
timeout: isSet(object.timeout) ? Duration.fromJSON(object.timeout) : undefined,
|
|
259
271
|
};
|
|
260
272
|
},
|
|
@@ -343,9 +355,21 @@ export const WaitForDrainSignalResponse: MessageFns<WaitForDrainSignalResponse>
|
|
|
343
355
|
|
|
344
356
|
fromJSON(object: any): WaitForDrainSignalResponse {
|
|
345
357
|
return {
|
|
346
|
-
shouldDrain: isSet(object.shouldDrain)
|
|
347
|
-
|
|
348
|
-
|
|
358
|
+
shouldDrain: isSet(object.shouldDrain)
|
|
359
|
+
? globalThis.Boolean(object.shouldDrain)
|
|
360
|
+
: isSet(object.should_drain)
|
|
361
|
+
? globalThis.Boolean(object.should_drain)
|
|
362
|
+
: false,
|
|
363
|
+
drainTimeout: isSet(object.drainTimeout)
|
|
364
|
+
? Duration.fromJSON(object.drainTimeout)
|
|
365
|
+
: isSet(object.drain_timeout)
|
|
366
|
+
? Duration.fromJSON(object.drain_timeout)
|
|
367
|
+
: undefined,
|
|
368
|
+
drainReason: isSet(object.drainReason)
|
|
369
|
+
? globalThis.String(object.drainReason)
|
|
370
|
+
: isSet(object.drain_reason)
|
|
371
|
+
? globalThis.String(object.drain_reason)
|
|
372
|
+
: "",
|
|
349
373
|
};
|
|
350
374
|
},
|
|
351
375
|
|
|
@@ -448,10 +472,22 @@ export const NotifyDrainCompleteRequest: MessageFns<NotifyDrainCompleteRequest>
|
|
|
448
472
|
|
|
449
473
|
fromJSON(object: any): NotifyDrainCompleteRequest {
|
|
450
474
|
return {
|
|
451
|
-
applicationId: isSet(object.applicationId)
|
|
452
|
-
|
|
475
|
+
applicationId: isSet(object.applicationId)
|
|
476
|
+
? globalThis.String(object.applicationId)
|
|
477
|
+
: isSet(object.application_id)
|
|
478
|
+
? globalThis.String(object.application_id)
|
|
479
|
+
: "",
|
|
480
|
+
tasksDrained: isSet(object.tasksDrained)
|
|
481
|
+
? globalThis.Number(object.tasksDrained)
|
|
482
|
+
: isSet(object.tasks_drained)
|
|
483
|
+
? globalThis.Number(object.tasks_drained)
|
|
484
|
+
: 0,
|
|
453
485
|
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
454
|
-
errorMessage: isSet(object.errorMessage)
|
|
486
|
+
errorMessage: isSet(object.errorMessage)
|
|
487
|
+
? globalThis.String(object.errorMessage)
|
|
488
|
+
: isSet(object.error_message)
|
|
489
|
+
? globalThis.String(object.error_message)
|
|
490
|
+
: undefined,
|
|
455
491
|
};
|
|
456
492
|
},
|
|
457
493
|
|
|
@@ -580,7 +616,13 @@ export const GetTaskCountRequest: MessageFns<GetTaskCountRequest> = {
|
|
|
580
616
|
},
|
|
581
617
|
|
|
582
618
|
fromJSON(object: any): GetTaskCountRequest {
|
|
583
|
-
return {
|
|
619
|
+
return {
|
|
620
|
+
applicationId: isSet(object.applicationId)
|
|
621
|
+
? globalThis.String(object.applicationId)
|
|
622
|
+
: isSet(object.application_id)
|
|
623
|
+
? globalThis.String(object.application_id)
|
|
624
|
+
: "",
|
|
625
|
+
};
|
|
584
626
|
},
|
|
585
627
|
|
|
586
628
|
toJSON(message: GetTaskCountRequest): unknown {
|
|
@@ -638,7 +680,13 @@ export const GetTaskCountResponse: MessageFns<GetTaskCountResponse> = {
|
|
|
638
680
|
},
|
|
639
681
|
|
|
640
682
|
fromJSON(object: any): GetTaskCountResponse {
|
|
641
|
-
return {
|
|
683
|
+
return {
|
|
684
|
+
taskCount: isSet(object.taskCount)
|
|
685
|
+
? globalThis.Number(object.taskCount)
|
|
686
|
+
: isSet(object.task_count)
|
|
687
|
+
? globalThis.Number(object.task_count)
|
|
688
|
+
: 0,
|
|
689
|
+
};
|
|
642
690
|
},
|
|
643
691
|
|
|
644
692
|
toJSON(message: GetTaskCountResponse): unknown {
|
|
@@ -668,9 +716,9 @@ export const WaitUntilServiceDefinition = {
|
|
|
668
716
|
/** Application notifies runtime that it has registered a new task. */
|
|
669
717
|
notifyTaskRegistered: {
|
|
670
718
|
name: "NotifyTaskRegistered",
|
|
671
|
-
requestType: NotifyTaskRegisteredRequest,
|
|
719
|
+
requestType: NotifyTaskRegisteredRequest as typeof NotifyTaskRegisteredRequest,
|
|
672
720
|
requestStream: false,
|
|
673
|
-
responseType: NotifyTaskRegisteredResponse,
|
|
721
|
+
responseType: NotifyTaskRegisteredResponse as typeof NotifyTaskRegisteredResponse,
|
|
674
722
|
responseStream: false,
|
|
675
723
|
options: {},
|
|
676
724
|
},
|
|
@@ -680,27 +728,27 @@ export const WaitUntilServiceDefinition = {
|
|
|
680
728
|
*/
|
|
681
729
|
waitForDrainSignal: {
|
|
682
730
|
name: "WaitForDrainSignal",
|
|
683
|
-
requestType: WaitForDrainSignalRequest,
|
|
731
|
+
requestType: WaitForDrainSignalRequest as typeof WaitForDrainSignalRequest,
|
|
684
732
|
requestStream: false,
|
|
685
|
-
responseType: WaitForDrainSignalResponse,
|
|
733
|
+
responseType: WaitForDrainSignalResponse as typeof WaitForDrainSignalResponse,
|
|
686
734
|
responseStream: false,
|
|
687
735
|
options: {},
|
|
688
736
|
},
|
|
689
737
|
/** Application notifies runtime that it has completed draining all tasks. */
|
|
690
738
|
notifyDrainComplete: {
|
|
691
739
|
name: "NotifyDrainComplete",
|
|
692
|
-
requestType: NotifyDrainCompleteRequest,
|
|
740
|
+
requestType: NotifyDrainCompleteRequest as typeof NotifyDrainCompleteRequest,
|
|
693
741
|
requestStream: false,
|
|
694
|
-
responseType: NotifyDrainCompleteResponse,
|
|
742
|
+
responseType: NotifyDrainCompleteResponse as typeof NotifyDrainCompleteResponse,
|
|
695
743
|
responseStream: false,
|
|
696
744
|
options: {},
|
|
697
745
|
},
|
|
698
746
|
/** Runtime can query how many tasks are currently registered (for monitoring). */
|
|
699
747
|
getTaskCount: {
|
|
700
748
|
name: "GetTaskCount",
|
|
701
|
-
requestType: GetTaskCountRequest,
|
|
749
|
+
requestType: GetTaskCountRequest as typeof GetTaskCountRequest,
|
|
702
750
|
requestStream: false,
|
|
703
|
-
responseType: GetTaskCountResponse,
|
|
751
|
+
responseType: GetTaskCountResponse as typeof GetTaskCountResponse,
|
|
704
752
|
responseStream: false,
|
|
705
753
|
options: {},
|
|
706
754
|
},
|
package/src/generated/worker.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.12.0
|
|
4
4
|
// protoc v7.34.1
|
|
5
5
|
// source: worker.proto
|
|
6
6
|
|
|
@@ -173,8 +173,16 @@ export const InvokeRequest: MessageFns<InvokeRequest> = {
|
|
|
173
173
|
|
|
174
174
|
fromJSON(object: any): InvokeRequest {
|
|
175
175
|
return {
|
|
176
|
-
bindingName: isSet(object.bindingName)
|
|
177
|
-
|
|
176
|
+
bindingName: isSet(object.bindingName)
|
|
177
|
+
? globalThis.String(object.bindingName)
|
|
178
|
+
: isSet(object.binding_name)
|
|
179
|
+
? globalThis.String(object.binding_name)
|
|
180
|
+
: "",
|
|
181
|
+
targetWorker: isSet(object.targetWorker)
|
|
182
|
+
? globalThis.String(object.targetWorker)
|
|
183
|
+
: isSet(object.target_worker)
|
|
184
|
+
? globalThis.String(object.target_worker)
|
|
185
|
+
: "",
|
|
178
186
|
method: isSet(object.method) ? globalThis.String(object.method) : "",
|
|
179
187
|
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
180
188
|
headers: isObject(object.headers)
|
|
@@ -187,7 +195,11 @@ export const InvokeRequest: MessageFns<InvokeRequest> = {
|
|
|
187
195
|
)
|
|
188
196
|
: {},
|
|
189
197
|
body: isSet(object.body) ? bytesFromBase64(object.body) : new Uint8Array(0),
|
|
190
|
-
timeoutSeconds: isSet(object.timeoutSeconds)
|
|
198
|
+
timeoutSeconds: isSet(object.timeoutSeconds)
|
|
199
|
+
? globalThis.Number(object.timeoutSeconds)
|
|
200
|
+
: isSet(object.timeout_seconds)
|
|
201
|
+
? globalThis.Number(object.timeout_seconds)
|
|
202
|
+
: undefined,
|
|
191
203
|
};
|
|
192
204
|
},
|
|
193
205
|
|
|
@@ -553,7 +565,13 @@ export const GetWorkerUrlRequest: MessageFns<GetWorkerUrlRequest> = {
|
|
|
553
565
|
},
|
|
554
566
|
|
|
555
567
|
fromJSON(object: any): GetWorkerUrlRequest {
|
|
556
|
-
return {
|
|
568
|
+
return {
|
|
569
|
+
bindingName: isSet(object.bindingName)
|
|
570
|
+
? globalThis.String(object.bindingName)
|
|
571
|
+
: isSet(object.binding_name)
|
|
572
|
+
? globalThis.String(object.binding_name)
|
|
573
|
+
: "",
|
|
574
|
+
};
|
|
557
575
|
},
|
|
558
576
|
|
|
559
577
|
toJSON(message: GetWorkerUrlRequest): unknown {
|
|
@@ -641,18 +659,18 @@ export const WorkerServiceDefinition = {
|
|
|
641
659
|
/** Invoke a worker with HTTP request data */
|
|
642
660
|
invoke: {
|
|
643
661
|
name: "Invoke",
|
|
644
|
-
requestType: InvokeRequest,
|
|
662
|
+
requestType: InvokeRequest as typeof InvokeRequest,
|
|
645
663
|
requestStream: false,
|
|
646
|
-
responseType: InvokeResponse,
|
|
664
|
+
responseType: InvokeResponse as typeof InvokeResponse,
|
|
647
665
|
responseStream: false,
|
|
648
666
|
options: {},
|
|
649
667
|
},
|
|
650
668
|
/** Get the public URL of the worker, if available */
|
|
651
669
|
getWorkerUrl: {
|
|
652
670
|
name: "GetWorkerUrl",
|
|
653
|
-
requestType: GetWorkerUrlRequest,
|
|
671
|
+
requestType: GetWorkerUrlRequest as typeof GetWorkerUrlRequest,
|
|
654
672
|
requestStream: false,
|
|
655
|
-
responseType: GetWorkerUrlResponse,
|
|
673
|
+
responseType: GetWorkerUrlResponse as typeof GetWorkerUrlResponse,
|
|
656
674
|
responseStream: false,
|
|
657
675
|
options: {},
|
|
658
676
|
},
|
|
@@ -681,7 +699,7 @@ export interface WorkerServiceClient<CallOptionsExt = {}> {
|
|
|
681
699
|
|
|
682
700
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
683
701
|
if ((globalThis as any).Buffer) {
|
|
684
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
702
|
+
return Uint8Array.from((globalThis as any).Buffer.from(b64, "base64"));
|
|
685
703
|
} else {
|
|
686
704
|
const bin = globalThis.atob(b64);
|
|
687
705
|
const arr = new Uint8Array(bin.length);
|
|
@@ -694,7 +712,7 @@ function bytesFromBase64(b64: string): Uint8Array {
|
|
|
694
712
|
|
|
695
713
|
function base64FromBytes(arr: Uint8Array): string {
|
|
696
714
|
if ((globalThis as any).Buffer) {
|
|
697
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
715
|
+
return (globalThis as any).Buffer.from(arr).toString("base64");
|
|
698
716
|
} else {
|
|
699
717
|
const bin: string[] = [];
|
|
700
718
|
arr.forEach((byte) => {
|