@serviceme/devtools-protocol 0.3.2 → 0.3.4
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/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -178,12 +178,25 @@ interface AuthAccountMeta {
|
|
|
178
178
|
*/
|
|
179
179
|
interface AuthLoginResult {
|
|
180
180
|
provider: AuthProvider;
|
|
181
|
+
/**
|
|
182
|
+
* Provider-issued opaque device code used only for token polling.
|
|
183
|
+
* Keep this internal to runtime logic; UI should display `userCode` instead.
|
|
184
|
+
*/
|
|
185
|
+
deviceCode?: string;
|
|
181
186
|
/** GitHub device-flow user code shown to the user (e.g. "ABCD-1234"). */
|
|
182
187
|
userCode?: string;
|
|
183
188
|
/** Verification URL the user must open (e.g. https://github.com/login/device). */
|
|
184
189
|
verificationUrl?: string;
|
|
185
190
|
/** Unix-ms expiry of the device-flow code itself (NOT the token). */
|
|
186
191
|
expiresAt?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Provider-declared minimum polling interval (ms) for the token endpoint,
|
|
194
|
+
* per the OAuth Device Flow spec's `interval` field. `completeDeviceFlow()`
|
|
195
|
+
* MUST NOT poll faster than this — polling too fast repeatedly can put
|
|
196
|
+
* GitHub's device_code into a persistent `slow_down` state that never
|
|
197
|
+
* clears, even after the user authorizes.
|
|
198
|
+
*/
|
|
199
|
+
pollIntervalMs?: number;
|
|
187
200
|
/** Optional human-readable copy for the UI. */
|
|
188
201
|
message?: string;
|
|
189
202
|
}
|
|
@@ -1571,7 +1584,7 @@ interface LocalPublishableAgent {
|
|
|
1571
1584
|
}
|
|
1572
1585
|
|
|
1573
1586
|
declare const SERVICEME_CLI_NAME = "serviceme";
|
|
1574
|
-
declare const SERVICEME_CLI_VERSION = "0.3.
|
|
1587
|
+
declare const SERVICEME_CLI_VERSION = "0.3.4";
|
|
1575
1588
|
declare const SERVICEME_CLI_CAPABILITIES: {
|
|
1576
1589
|
readonly bridge: true;
|
|
1577
1590
|
readonly tasks: 1;
|
package/dist/index.d.ts
CHANGED
|
@@ -178,12 +178,25 @@ interface AuthAccountMeta {
|
|
|
178
178
|
*/
|
|
179
179
|
interface AuthLoginResult {
|
|
180
180
|
provider: AuthProvider;
|
|
181
|
+
/**
|
|
182
|
+
* Provider-issued opaque device code used only for token polling.
|
|
183
|
+
* Keep this internal to runtime logic; UI should display `userCode` instead.
|
|
184
|
+
*/
|
|
185
|
+
deviceCode?: string;
|
|
181
186
|
/** GitHub device-flow user code shown to the user (e.g. "ABCD-1234"). */
|
|
182
187
|
userCode?: string;
|
|
183
188
|
/** Verification URL the user must open (e.g. https://github.com/login/device). */
|
|
184
189
|
verificationUrl?: string;
|
|
185
190
|
/** Unix-ms expiry of the device-flow code itself (NOT the token). */
|
|
186
191
|
expiresAt?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Provider-declared minimum polling interval (ms) for the token endpoint,
|
|
194
|
+
* per the OAuth Device Flow spec's `interval` field. `completeDeviceFlow()`
|
|
195
|
+
* MUST NOT poll faster than this — polling too fast repeatedly can put
|
|
196
|
+
* GitHub's device_code into a persistent `slow_down` state that never
|
|
197
|
+
* clears, even after the user authorizes.
|
|
198
|
+
*/
|
|
199
|
+
pollIntervalMs?: number;
|
|
187
200
|
/** Optional human-readable copy for the UI. */
|
|
188
201
|
message?: string;
|
|
189
202
|
}
|
|
@@ -1571,7 +1584,7 @@ interface LocalPublishableAgent {
|
|
|
1571
1584
|
}
|
|
1572
1585
|
|
|
1573
1586
|
declare const SERVICEME_CLI_NAME = "serviceme";
|
|
1574
|
-
declare const SERVICEME_CLI_VERSION = "0.3.
|
|
1587
|
+
declare const SERVICEME_CLI_VERSION = "0.3.4";
|
|
1575
1588
|
declare const SERVICEME_CLI_CAPABILITIES: {
|
|
1576
1589
|
readonly bridge: true;
|
|
1577
1590
|
readonly tasks: 1;
|
package/dist/index.js
CHANGED
|
@@ -278,6 +278,9 @@ function isAuthAccountMeta(value) {
|
|
|
278
278
|
function isAuthLoginResult(value) {
|
|
279
279
|
if (!isRecord2(value)) return false;
|
|
280
280
|
if (!isAuthProvider(value.provider)) return false;
|
|
281
|
+
if (value.deviceCode !== void 0 && typeof value.deviceCode !== "string") {
|
|
282
|
+
return false;
|
|
283
|
+
}
|
|
281
284
|
if (value.userCode !== void 0 && typeof value.userCode !== "string") {
|
|
282
285
|
return false;
|
|
283
286
|
}
|
|
@@ -287,6 +290,9 @@ function isAuthLoginResult(value) {
|
|
|
287
290
|
if (value.expiresAt !== void 0 && (typeof value.expiresAt !== "number" || !Number.isFinite(value.expiresAt))) {
|
|
288
291
|
return false;
|
|
289
292
|
}
|
|
293
|
+
if (value.pollIntervalMs !== void 0 && (typeof value.pollIntervalMs !== "number" || !Number.isFinite(value.pollIntervalMs))) {
|
|
294
|
+
return false;
|
|
295
|
+
}
|
|
290
296
|
if (!isStringOrUndefined(value.message)) return false;
|
|
291
297
|
return true;
|
|
292
298
|
}
|
|
@@ -1269,7 +1275,7 @@ function isJsonOutputResult(value) {
|
|
|
1269
1275
|
|
|
1270
1276
|
// src/metadata.ts
|
|
1271
1277
|
var SERVICEME_CLI_NAME = "serviceme";
|
|
1272
|
-
var SERVICEME_CLI_VERSION = "0.3.
|
|
1278
|
+
var SERVICEME_CLI_VERSION = "0.3.4";
|
|
1273
1279
|
var SERVICEME_CLI_CAPABILITIES = {
|
|
1274
1280
|
bridge: true,
|
|
1275
1281
|
tasks: 1,
|
package/dist/index.mjs
CHANGED
|
@@ -107,6 +107,9 @@ function isAuthAccountMeta(value) {
|
|
|
107
107
|
function isAuthLoginResult(value) {
|
|
108
108
|
if (!isRecord2(value)) return false;
|
|
109
109
|
if (!isAuthProvider(value.provider)) return false;
|
|
110
|
+
if (value.deviceCode !== void 0 && typeof value.deviceCode !== "string") {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
110
113
|
if (value.userCode !== void 0 && typeof value.userCode !== "string") {
|
|
111
114
|
return false;
|
|
112
115
|
}
|
|
@@ -116,6 +119,9 @@ function isAuthLoginResult(value) {
|
|
|
116
119
|
if (value.expiresAt !== void 0 && (typeof value.expiresAt !== "number" || !Number.isFinite(value.expiresAt))) {
|
|
117
120
|
return false;
|
|
118
121
|
}
|
|
122
|
+
if (value.pollIntervalMs !== void 0 && (typeof value.pollIntervalMs !== "number" || !Number.isFinite(value.pollIntervalMs))) {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
119
125
|
if (!isStringOrUndefined(value.message)) return false;
|
|
120
126
|
return true;
|
|
121
127
|
}
|
|
@@ -1098,7 +1104,7 @@ function isJsonOutputResult(value) {
|
|
|
1098
1104
|
|
|
1099
1105
|
// src/metadata.ts
|
|
1100
1106
|
var SERVICEME_CLI_NAME = "serviceme";
|
|
1101
|
-
var SERVICEME_CLI_VERSION = "0.3.
|
|
1107
|
+
var SERVICEME_CLI_VERSION = "0.3.4";
|
|
1102
1108
|
var SERVICEME_CLI_CAPABILITIES = {
|
|
1103
1109
|
bridge: true,
|
|
1104
1110
|
tasks: 1,
|
package/package.json
CHANGED