@mochabug/adaptkit 0.9.15 → 0.10.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.
|
@@ -386,6 +386,12 @@ export interface OAuth2Service {
|
|
|
386
386
|
* @generated from protobuf field: mochabugapis.adapt.plugins.v1.OAuth2Service.GrantType grant_type = 2;
|
|
387
387
|
*/
|
|
388
388
|
grantType: OAuth2Service_GrantType;
|
|
389
|
+
/**
|
|
390
|
+
* 'auth_type' specifies the authentication type to be used.
|
|
391
|
+
*
|
|
392
|
+
* @generated from protobuf field: mochabugapis.adapt.plugins.v1.OAuth2Service.AuthType auth_type = 3;
|
|
393
|
+
*/
|
|
394
|
+
authType: OAuth2Service_AuthType;
|
|
389
395
|
/**
|
|
390
396
|
* 'label' is an optional short label describing the purpose of the OAuth2
|
|
391
397
|
* service.
|
|
@@ -395,7 +401,7 @@ export interface OAuth2Service {
|
|
|
395
401
|
* Security implications:
|
|
396
402
|
* - Should not contain sensitive information.
|
|
397
403
|
*
|
|
398
|
-
* @generated from protobuf field: optional string label =
|
|
404
|
+
* @generated from protobuf field: optional string label = 4;
|
|
399
405
|
*/
|
|
400
406
|
label?: string;
|
|
401
407
|
/**
|
|
@@ -406,7 +412,7 @@ export interface OAuth2Service {
|
|
|
406
412
|
* Security implications:
|
|
407
413
|
* - Should not contain sensitive information.
|
|
408
414
|
*
|
|
409
|
-
* @generated from protobuf field: optional string description =
|
|
415
|
+
* @generated from protobuf field: optional string description = 5;
|
|
410
416
|
*/
|
|
411
417
|
description?: string;
|
|
412
418
|
}
|
|
@@ -437,6 +443,44 @@ export declare enum OAuth2Service_GrantType {
|
|
|
437
443
|
*/
|
|
438
444
|
CLIENT_CREDENTIALS = 2
|
|
439
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* The oauth2 auth type. It has to be specified in the manifest
|
|
448
|
+
* since user defined client credentials will not support changing the auth type on the fly
|
|
449
|
+
*
|
|
450
|
+
* @generated from protobuf enum mochabugapis.adapt.plugins.v1.OAuth2Service.AuthType
|
|
451
|
+
*/
|
|
452
|
+
export declare enum OAuth2Service_AuthType {
|
|
453
|
+
/**
|
|
454
|
+
* Not specified
|
|
455
|
+
*
|
|
456
|
+
* @generated from protobuf enum value: AUTH_TYPE_UNSPECIFIED = 0;
|
|
457
|
+
*/
|
|
458
|
+
UNSPECIFIED = 0,
|
|
459
|
+
/**
|
|
460
|
+
* Use basic authentication
|
|
461
|
+
*
|
|
462
|
+
* @generated from protobuf enum value: AUTH_TYPE_BASIC = 1;
|
|
463
|
+
*/
|
|
464
|
+
BASIC = 1,
|
|
465
|
+
/**
|
|
466
|
+
* Use form authentication
|
|
467
|
+
*
|
|
468
|
+
* @generated from protobuf enum value: AUTH_TYPE_FORM = 2;
|
|
469
|
+
*/
|
|
470
|
+
FORM = 2,
|
|
471
|
+
/**
|
|
472
|
+
* The private key
|
|
473
|
+
*
|
|
474
|
+
* @generated from protobuf enum value: AUTH_TYPE_PRIVATE_KEY = 3;
|
|
475
|
+
*/
|
|
476
|
+
PRIVATE_KEY = 3,
|
|
477
|
+
/**
|
|
478
|
+
* The mtls auth
|
|
479
|
+
*
|
|
480
|
+
* @generated from protobuf enum value: AUTH_TYPE_MTLS = 4;
|
|
481
|
+
*/
|
|
482
|
+
MTLS = 4
|
|
483
|
+
}
|
|
440
484
|
/**
|
|
441
485
|
* A representation of an environmental variable.
|
|
442
486
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/plugins.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAs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EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,cAAc;IAsB9H,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAYlH;AACD;;GAEG;AACH,eAAO,MAAM,cAAc,qBAA4B,CAAC;AAExD,cAAM,WAAY,SAAQ,WAAW,CAAC,MAAM,CAAC;;IAezC,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,GAAG,MAAM;IAc9C,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IA8C9G,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAoC1G;AACD;;GAEG;AACH,eAAO,MAAM,MAAM,aAAoB,CAAC;AACxC;;GAEG;AACH,eAAO,MAAM,aAAa,aAEsK,CAAC"}
|
package/bin/index.js
CHANGED
|
@@ -9,9 +9,9 @@ import { MessageType, reflectionMergePartial, UnknownFieldHandler, WireType } fr
|
|
|
9
9
|
import { mkdirp } from 'mkdirp';
|
|
10
10
|
import path from 'path';
|
|
11
11
|
import * as readline$1 from 'node:readline';
|
|
12
|
+
import { AsyncLocalStorage, AsyncResource } from 'node:async_hooks';
|
|
12
13
|
import require$$1 from 'stream';
|
|
13
14
|
import require$$0$2 from 'tty';
|
|
14
|
-
import { AsyncLocalStorage, AsyncResource } from 'node:async_hooks';
|
|
15
15
|
import require$$0$1 from 'node:tty';
|
|
16
16
|
import process$2 from 'node:process';
|
|
17
17
|
import { execSync } from 'child_process';
|
|
@@ -45,13 +45,17 @@ const isNumberKey = (key) => '123456789'.includes(key.name);
|
|
|
45
45
|
const isEnterKey = (key) => key.name === 'enter' || key.name === 'return';
|
|
46
46
|
|
|
47
47
|
class CancelPromptError extends Error {
|
|
48
|
+
name = 'CancelPromptError';
|
|
48
49
|
message = 'Prompt was canceled';
|
|
49
50
|
}
|
|
50
51
|
class ExitPromptError extends Error {
|
|
52
|
+
name = 'ExitPromptError';
|
|
51
53
|
}
|
|
52
54
|
class HookError extends Error {
|
|
55
|
+
name = 'HookError';
|
|
53
56
|
}
|
|
54
57
|
class ValidationError extends Error {
|
|
58
|
+
name = 'ValidationError';
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
/* eslint @typescript-eslint/no-explicit-any: ["off"] */
|
|
@@ -71,7 +75,14 @@ function createStore(rl) {
|
|
|
71
75
|
function withHooks(rl, cb) {
|
|
72
76
|
const store = createStore(rl);
|
|
73
77
|
return hookStorage.run(store, () => {
|
|
74
|
-
|
|
78
|
+
function cycle(render) {
|
|
79
|
+
store.handleChange = () => {
|
|
80
|
+
store.index = 0;
|
|
81
|
+
render();
|
|
82
|
+
};
|
|
83
|
+
store.handleChange();
|
|
84
|
+
}
|
|
85
|
+
cb(cycle);
|
|
75
86
|
});
|
|
76
87
|
}
|
|
77
88
|
// Safe getStore utility that'll return the store or throw if undefined.
|
|
@@ -146,6 +157,14 @@ const effectScheduler = {
|
|
|
146
157
|
store.hooksEffect.length = 0;
|
|
147
158
|
})();
|
|
148
159
|
},
|
|
160
|
+
clearAll() {
|
|
161
|
+
const store = getStore();
|
|
162
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
|
163
|
+
cleanFn?.();
|
|
164
|
+
});
|
|
165
|
+
store.hooksEffect.length = 0;
|
|
166
|
+
store.hooksCleanup.length = 0;
|
|
167
|
+
},
|
|
149
168
|
};
|
|
150
169
|
|
|
151
170
|
function useState(defaultValue) {
|
|
@@ -2103,11 +2122,15 @@ function useKeypress(userHandler) {
|
|
|
2103
2122
|
const signal = useRef(userHandler);
|
|
2104
2123
|
signal.current = userHandler;
|
|
2105
2124
|
useEffect((rl) => {
|
|
2125
|
+
let ignore = false;
|
|
2106
2126
|
const handler = withUpdates((_input, event) => {
|
|
2107
|
-
|
|
2127
|
+
if (ignore)
|
|
2128
|
+
return;
|
|
2129
|
+
void signal.current(event, rl);
|
|
2108
2130
|
});
|
|
2109
2131
|
rl.input.on('keypress', handler);
|
|
2110
2132
|
return () => {
|
|
2133
|
+
ignore = true;
|
|
2111
2134
|
rl.input.removeListener('keypress', handler);
|
|
2112
2135
|
};
|
|
2113
2136
|
}, []);
|
|
@@ -4615,6 +4638,9 @@ var ansiEscapes = /*@__PURE__*/getDefaultExportFromCjs(ansiEscapesExports);
|
|
|
4615
4638
|
|
|
4616
4639
|
const height = (content) => content.split('\n').length;
|
|
4617
4640
|
const lastLine = (content) => content.split('\n').pop() ?? '';
|
|
4641
|
+
function cursorDown(n) {
|
|
4642
|
+
return n > 0 ? ansiEscapes.cursorDown(n) : '';
|
|
4643
|
+
}
|
|
4618
4644
|
class ScreenManager {
|
|
4619
4645
|
rl;
|
|
4620
4646
|
// These variables are keeping information to allow correct prompt re-rendering
|
|
@@ -4626,10 +4652,13 @@ class ScreenManager {
|
|
|
4626
4652
|
this.rl = rl;
|
|
4627
4653
|
this.cursorPos = rl.getCursorPos();
|
|
4628
4654
|
}
|
|
4655
|
+
write(content) {
|
|
4656
|
+
this.rl.output.unmute();
|
|
4657
|
+
this.rl.output.write(content);
|
|
4658
|
+
this.rl.output.mute();
|
|
4659
|
+
}
|
|
4629
4660
|
render(content, bottomContent = '') {
|
|
4630
|
-
|
|
4631
|
-
* Write message to screen and setPrompt to control backspace
|
|
4632
|
-
*/
|
|
4661
|
+
// Write message to screen and setPrompt to control backspace
|
|
4633
4662
|
const promptLine = lastLine(content);
|
|
4634
4663
|
const rawPromptLine = stripAnsi$3(promptLine);
|
|
4635
4664
|
// Remove the rl.line from our prompt. We can't rely on the content of
|
|
@@ -4664,52 +4693,28 @@ class ScreenManager {
|
|
|
4664
4693
|
output += ansiEscapes.cursorUp(bottomContentHeight);
|
|
4665
4694
|
// Return cursor to the initial left offset.
|
|
4666
4695
|
output += ansiEscapes.cursorTo(this.cursorPos.cols);
|
|
4667
|
-
this.clean();
|
|
4668
|
-
this.rl.output.unmute();
|
|
4669
4696
|
/**
|
|
4670
|
-
*
|
|
4697
|
+
* Render and store state for future re-rendering
|
|
4671
4698
|
*/
|
|
4699
|
+
this.write(cursorDown(this.extraLinesUnderPrompt) +
|
|
4700
|
+
ansiEscapes.eraseLines(this.height) +
|
|
4701
|
+
output);
|
|
4672
4702
|
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
4673
4703
|
this.height = height(output);
|
|
4674
|
-
this.rl.output.write(output);
|
|
4675
|
-
this.rl.output.mute();
|
|
4676
4704
|
}
|
|
4677
4705
|
checkCursorPos() {
|
|
4678
4706
|
const cursorPos = this.rl.getCursorPos();
|
|
4679
4707
|
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
4680
|
-
this.
|
|
4681
|
-
this.rl.output.write(ansiEscapes.cursorTo(cursorPos.cols));
|
|
4682
|
-
this.rl.output.mute();
|
|
4708
|
+
this.write(ansiEscapes.cursorTo(cursorPos.cols));
|
|
4683
4709
|
this.cursorPos = cursorPos;
|
|
4684
4710
|
}
|
|
4685
4711
|
}
|
|
4686
|
-
|
|
4687
|
-
this.rl.output.unmute();
|
|
4688
|
-
this.rl.output.write([
|
|
4689
|
-
this.extraLinesUnderPrompt > 0
|
|
4690
|
-
? ansiEscapes.cursorDown(this.extraLinesUnderPrompt)
|
|
4691
|
-
: '',
|
|
4692
|
-
ansiEscapes.eraseLines(this.height),
|
|
4693
|
-
].join(''));
|
|
4694
|
-
this.extraLinesUnderPrompt = 0;
|
|
4695
|
-
this.rl.output.mute();
|
|
4696
|
-
}
|
|
4697
|
-
clearContent() {
|
|
4698
|
-
this.rl.output.unmute();
|
|
4699
|
-
// Reset the cursor at the end of the previously displayed content
|
|
4700
|
-
this.rl.output.write([
|
|
4701
|
-
this.extraLinesUnderPrompt > 0
|
|
4702
|
-
? ansiEscapes.cursorDown(this.extraLinesUnderPrompt)
|
|
4703
|
-
: '',
|
|
4704
|
-
'\n',
|
|
4705
|
-
].join(''));
|
|
4706
|
-
this.rl.output.mute();
|
|
4707
|
-
}
|
|
4708
|
-
done() {
|
|
4712
|
+
done({ clearContent }) {
|
|
4709
4713
|
this.rl.setPrompt('');
|
|
4710
|
-
this.
|
|
4711
|
-
|
|
4712
|
-
|
|
4714
|
+
let output = cursorDown(this.extraLinesUnderPrompt);
|
|
4715
|
+
output += clearContent ? ansiEscapes.eraseLines(this.height) : '\n';
|
|
4716
|
+
output += ansiEscapes.cursorShow;
|
|
4717
|
+
this.write(output);
|
|
4713
4718
|
this.rl.close();
|
|
4714
4719
|
}
|
|
4715
4720
|
}
|
|
@@ -4729,7 +4734,7 @@ function createPrompt(view) {
|
|
|
4729
4734
|
const screen = new ScreenManager(rl);
|
|
4730
4735
|
let cancel = () => { };
|
|
4731
4736
|
const answer = new CancelablePromise((resolve, reject) => {
|
|
4732
|
-
withHooks(rl, (
|
|
4737
|
+
withHooks(rl, (cycle) => {
|
|
4733
4738
|
function checkCursorPos() {
|
|
4734
4739
|
screen.checkCursorPos();
|
|
4735
4740
|
}
|
|
@@ -4737,24 +4742,21 @@ function createPrompt(view) {
|
|
|
4737
4742
|
onExit$1();
|
|
4738
4743
|
reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal}`));
|
|
4739
4744
|
});
|
|
4740
|
-
|
|
4745
|
+
const hooksCleanup = AsyncResource.bind(() => {
|
|
4741
4746
|
try {
|
|
4742
|
-
|
|
4743
|
-
cleanFn?.();
|
|
4744
|
-
});
|
|
4747
|
+
effectScheduler.clearAll();
|
|
4745
4748
|
}
|
|
4746
4749
|
catch (error) {
|
|
4747
4750
|
reject(error);
|
|
4748
4751
|
}
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
screen.clearContent();
|
|
4754
|
-
}
|
|
4755
|
-
screen.done();
|
|
4752
|
+
});
|
|
4753
|
+
function onExit$1() {
|
|
4754
|
+
hooksCleanup();
|
|
4755
|
+
screen.done({ clearContent: Boolean(context?.clearPromptOnDone) });
|
|
4756
4756
|
removeExitListener();
|
|
4757
|
-
|
|
4757
|
+
rl.input.removeListener('keypress', checkCursorPos);
|
|
4758
|
+
rl.removeListener('close', hooksCleanup);
|
|
4759
|
+
output.end();
|
|
4758
4760
|
}
|
|
4759
4761
|
cancel = () => {
|
|
4760
4762
|
onExit$1();
|
|
@@ -4768,8 +4770,7 @@ function createPrompt(view) {
|
|
|
4768
4770
|
resolve(value);
|
|
4769
4771
|
});
|
|
4770
4772
|
}
|
|
4771
|
-
|
|
4772
|
-
store.index = 0;
|
|
4773
|
+
cycle(() => {
|
|
4773
4774
|
try {
|
|
4774
4775
|
const nextView = view(config, done);
|
|
4775
4776
|
const [content, bottomContent] = typeof nextView === 'string' ? [nextView] : nextView;
|
|
@@ -4780,14 +4781,16 @@ function createPrompt(view) {
|
|
|
4780
4781
|
onExit$1();
|
|
4781
4782
|
reject(error);
|
|
4782
4783
|
}
|
|
4783
|
-
}
|
|
4784
|
-
store.handleChange = () => workLoop();
|
|
4785
|
-
workLoop();
|
|
4784
|
+
});
|
|
4786
4785
|
// Re-renders only happen when the state change; but the readline cursor could change position
|
|
4787
4786
|
// and that also requires a re-render (and a manual one because we mute the streams).
|
|
4788
4787
|
// We set the listener after the initial workLoop to avoid a double render if render triggered
|
|
4789
4788
|
// by a state change sets the cursor to the right position.
|
|
4790
|
-
|
|
4789
|
+
rl.input.on('keypress', checkCursorPos);
|
|
4790
|
+
// The close event triggers immediately when the user press ctrl+c. SignalExit on the other hand
|
|
4791
|
+
// triggers after the process is done (which happens after timeouts are done triggering.)
|
|
4792
|
+
// We triggers the hooks cleanup phase on rl `close` so active timeouts can be cleared.
|
|
4793
|
+
rl.on('close', hooksCleanup);
|
|
4791
4794
|
});
|
|
4792
4795
|
});
|
|
4793
4796
|
answer.cancel = cancel;
|
|
@@ -5291,6 +5294,9 @@ var select = createPrompt((config, done) => {
|
|
|
5291
5294
|
}, 700);
|
|
5292
5295
|
}
|
|
5293
5296
|
});
|
|
5297
|
+
useEffect(() => () => {
|
|
5298
|
+
clearTimeout(searchTimeoutRef.current);
|
|
5299
|
+
}, []);
|
|
5294
5300
|
const message = theme.style.message(config.message);
|
|
5295
5301
|
let helpTipTop = '';
|
|
5296
5302
|
let helpTipBottom = '';
|
|
@@ -5311,7 +5317,7 @@ var select = createPrompt((config, done) => {
|
|
|
5311
5317
|
if (Separator.isSeparator(item)) {
|
|
5312
5318
|
return ` ${item.separator}`;
|
|
5313
5319
|
}
|
|
5314
|
-
const line = item.name || item.value;
|
|
5320
|
+
const line = String(item.name || item.value);
|
|
5315
5321
|
if (item.disabled) {
|
|
5316
5322
|
const disabledLabel = typeof item.disabled === 'string' ? item.disabled : '(disabled)';
|
|
5317
5323
|
return theme.style.disabled(`${line} ${disabledLabel}`);
|
|
@@ -5382,6 +5388,45 @@ var OAuth2Service_GrantType;
|
|
|
5382
5388
|
*/
|
|
5383
5389
|
OAuth2Service_GrantType[OAuth2Service_GrantType["CLIENT_CREDENTIALS"] = 2] = "CLIENT_CREDENTIALS";
|
|
5384
5390
|
})(OAuth2Service_GrantType || (OAuth2Service_GrantType = {}));
|
|
5391
|
+
/**
|
|
5392
|
+
* The oauth2 auth type. It has to be specified in the manifest
|
|
5393
|
+
* since user defined client credentials will not support changing the auth type on the fly
|
|
5394
|
+
*
|
|
5395
|
+
* @generated from protobuf enum mochabugapis.adapt.plugins.v1.OAuth2Service.AuthType
|
|
5396
|
+
*/
|
|
5397
|
+
var OAuth2Service_AuthType;
|
|
5398
|
+
(function (OAuth2Service_AuthType) {
|
|
5399
|
+
/**
|
|
5400
|
+
* Not specified
|
|
5401
|
+
*
|
|
5402
|
+
* @generated from protobuf enum value: AUTH_TYPE_UNSPECIFIED = 0;
|
|
5403
|
+
*/
|
|
5404
|
+
OAuth2Service_AuthType[OAuth2Service_AuthType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
5405
|
+
/**
|
|
5406
|
+
* Use basic authentication
|
|
5407
|
+
*
|
|
5408
|
+
* @generated from protobuf enum value: AUTH_TYPE_BASIC = 1;
|
|
5409
|
+
*/
|
|
5410
|
+
OAuth2Service_AuthType[OAuth2Service_AuthType["BASIC"] = 1] = "BASIC";
|
|
5411
|
+
/**
|
|
5412
|
+
* Use form authentication
|
|
5413
|
+
*
|
|
5414
|
+
* @generated from protobuf enum value: AUTH_TYPE_FORM = 2;
|
|
5415
|
+
*/
|
|
5416
|
+
OAuth2Service_AuthType[OAuth2Service_AuthType["FORM"] = 2] = "FORM";
|
|
5417
|
+
/**
|
|
5418
|
+
* The private key
|
|
5419
|
+
*
|
|
5420
|
+
* @generated from protobuf enum value: AUTH_TYPE_PRIVATE_KEY = 3;
|
|
5421
|
+
*/
|
|
5422
|
+
OAuth2Service_AuthType[OAuth2Service_AuthType["PRIVATE_KEY"] = 3] = "PRIVATE_KEY";
|
|
5423
|
+
/**
|
|
5424
|
+
* The mtls auth
|
|
5425
|
+
*
|
|
5426
|
+
* @generated from protobuf enum value: AUTH_TYPE_MTLS = 4;
|
|
5427
|
+
*/
|
|
5428
|
+
OAuth2Service_AuthType[OAuth2Service_AuthType["MTLS"] = 4] = "MTLS";
|
|
5429
|
+
})(OAuth2Service_AuthType || (OAuth2Service_AuthType = {}));
|
|
5385
5430
|
/**
|
|
5386
5431
|
* The type of variable
|
|
5387
5432
|
*
|
|
@@ -5849,14 +5894,16 @@ class OAuth2Service$Type extends MessageType {
|
|
|
5849
5894
|
super("mochabugapis.adapt.plugins.v1.OAuth2Service", [
|
|
5850
5895
|
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5851
5896
|
{ no: 2, name: "grant_type", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.OAuth2Service.GrantType", OAuth2Service_GrantType, "GRANT_TYPE_"] },
|
|
5852
|
-
{ no: 3, name: "
|
|
5853
|
-
{ no: 4, name: "
|
|
5897
|
+
{ no: 3, name: "auth_type", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.OAuth2Service.AuthType", OAuth2Service_AuthType, "AUTH_TYPE_"] },
|
|
5898
|
+
{ no: 4, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
5899
|
+
{ no: 5, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
5854
5900
|
]);
|
|
5855
5901
|
}
|
|
5856
5902
|
create(value) {
|
|
5857
5903
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
5858
5904
|
message.name = "";
|
|
5859
5905
|
message.grantType = 0;
|
|
5906
|
+
message.authType = 0;
|
|
5860
5907
|
if (value !== undefined)
|
|
5861
5908
|
reflectionMergePartial(this, message, value);
|
|
5862
5909
|
return message;
|
|
@@ -5872,10 +5919,13 @@ class OAuth2Service$Type extends MessageType {
|
|
|
5872
5919
|
case /* mochabugapis.adapt.plugins.v1.OAuth2Service.GrantType grant_type */ 2:
|
|
5873
5920
|
message.grantType = reader.int32();
|
|
5874
5921
|
break;
|
|
5875
|
-
case /*
|
|
5922
|
+
case /* mochabugapis.adapt.plugins.v1.OAuth2Service.AuthType auth_type */ 3:
|
|
5923
|
+
message.authType = reader.int32();
|
|
5924
|
+
break;
|
|
5925
|
+
case /* optional string label */ 4:
|
|
5876
5926
|
message.label = reader.string();
|
|
5877
5927
|
break;
|
|
5878
|
-
case /* optional string description */
|
|
5928
|
+
case /* optional string description */ 5:
|
|
5879
5929
|
message.description = reader.string();
|
|
5880
5930
|
break;
|
|
5881
5931
|
default:
|
|
@@ -5896,12 +5946,15 @@ class OAuth2Service$Type extends MessageType {
|
|
|
5896
5946
|
/* mochabugapis.adapt.plugins.v1.OAuth2Service.GrantType grant_type = 2; */
|
|
5897
5947
|
if (message.grantType !== 0)
|
|
5898
5948
|
writer.tag(2, WireType.Varint).int32(message.grantType);
|
|
5899
|
-
/*
|
|
5949
|
+
/* mochabugapis.adapt.plugins.v1.OAuth2Service.AuthType auth_type = 3; */
|
|
5950
|
+
if (message.authType !== 0)
|
|
5951
|
+
writer.tag(3, WireType.Varint).int32(message.authType);
|
|
5952
|
+
/* optional string label = 4; */
|
|
5900
5953
|
if (message.label !== undefined)
|
|
5901
|
-
writer.tag(
|
|
5902
|
-
/* optional string description =
|
|
5954
|
+
writer.tag(4, WireType.LengthDelimited).string(message.label);
|
|
5955
|
+
/* optional string description = 5; */
|
|
5903
5956
|
if (message.description !== undefined)
|
|
5904
|
-
writer.tag(
|
|
5957
|
+
writer.tag(5, WireType.LengthDelimited).string(message.description);
|
|
5905
5958
|
let u = options.writeUnknownFields;
|
|
5906
5959
|
if (u !== false)
|
|
5907
5960
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -6999,7 +7052,7 @@ function printRpcError(error) {
|
|
|
6999
7052
|
}
|
|
7000
7053
|
|
|
7001
7054
|
var name = "@mochabug/adaptkit";
|
|
7002
|
-
var version = "0.
|
|
7055
|
+
var version = "0.10.1";
|
|
7003
7056
|
var description = "A cmd to create, emulate and publish Mochabug Adapt plugins";
|
|
7004
7057
|
var main$1 = "bin/index.js";
|
|
7005
7058
|
var type = "module";
|
|
@@ -7044,22 +7097,20 @@ var devDependencies = {
|
|
|
7044
7097
|
"@types/express": "^4.17.21",
|
|
7045
7098
|
"@types/figlet": "^1.5.8",
|
|
7046
7099
|
"@types/jest": "^29.5.12",
|
|
7047
|
-
"@types/mkdirp": "^1.0.2",
|
|
7048
7100
|
"@types/mustache": "^4.2.5",
|
|
7049
|
-
"@types/node": "^
|
|
7050
|
-
"@types/sharp": "^0.31.1",
|
|
7101
|
+
"@types/node": "^22.2.0",
|
|
7051
7102
|
"@types/update-notifier": "^6.0.8",
|
|
7052
7103
|
jest: "^29.7.0",
|
|
7053
|
-
rollup: "^4.
|
|
7104
|
+
rollup: "^4.20.0",
|
|
7054
7105
|
"rollup-plugin-string": "^3.0.0",
|
|
7055
|
-
"ts-jest": "^29.2.
|
|
7106
|
+
"ts-jest": "^29.2.4",
|
|
7056
7107
|
"ts-node": "^10.9.2",
|
|
7057
7108
|
tslib: "^2.6.3",
|
|
7058
7109
|
typescript: "^5.5.4"
|
|
7059
7110
|
};
|
|
7060
7111
|
var dependencies = {
|
|
7061
7112
|
"@grpc/grpc-js": "^1.11.1",
|
|
7062
|
-
"@inquirer/prompts": "^5.3.
|
|
7113
|
+
"@inquirer/prompts": "^5.3.8",
|
|
7063
7114
|
"@protobuf-ts/grpc-transport": "^2.9.4",
|
|
7064
7115
|
"@protobuf-ts/runtime": "^2.9.4",
|
|
7065
7116
|
"@protobuf-ts/runtime-rpc": "^2.9.4",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mochabug/adaptkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "A cmd to create, emulate and publish Mochabug Adapt plugins",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -45,22 +45,20 @@
|
|
|
45
45
|
"@types/express": "^4.17.21",
|
|
46
46
|
"@types/figlet": "^1.5.8",
|
|
47
47
|
"@types/jest": "^29.5.12",
|
|
48
|
-
"@types/mkdirp": "^1.0.2",
|
|
49
48
|
"@types/mustache": "^4.2.5",
|
|
50
|
-
"@types/node": "^
|
|
51
|
-
"@types/sharp": "^0.31.1",
|
|
49
|
+
"@types/node": "^22.2.0",
|
|
52
50
|
"@types/update-notifier": "^6.0.8",
|
|
53
51
|
"jest": "^29.7.0",
|
|
54
|
-
"rollup": "^4.
|
|
52
|
+
"rollup": "^4.20.0",
|
|
55
53
|
"rollup-plugin-string": "^3.0.0",
|
|
56
|
-
"ts-jest": "^29.2.
|
|
54
|
+
"ts-jest": "^29.2.4",
|
|
57
55
|
"ts-node": "^10.9.2",
|
|
58
56
|
"tslib": "^2.6.3",
|
|
59
57
|
"typescript": "^5.5.4"
|
|
60
58
|
},
|
|
61
59
|
"dependencies": {
|
|
62
60
|
"@grpc/grpc-js": "^1.11.1",
|
|
63
|
-
"@inquirer/prompts": "^5.3.
|
|
61
|
+
"@inquirer/prompts": "^5.3.8",
|
|
64
62
|
"@protobuf-ts/grpc-transport": "^2.9.4",
|
|
65
63
|
"@protobuf-ts/runtime": "^2.9.4",
|
|
66
64
|
"@protobuf-ts/runtime-rpc": "^2.9.4",
|
|
@@ -78,4 +76,4 @@
|
|
|
78
76
|
"sharp": "^0.33.4",
|
|
79
77
|
"update-notifier": "^7.2.0"
|
|
80
78
|
}
|
|
81
|
-
}
|
|
79
|
+
}
|