@hraness/suite-accounts 0.9.22 → 0.9.24
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/README.md +1 -1
- package/dist/auth-proxy.js +2 -16
- package/dist/bearer-verifier.js +6 -17
- package/dist/client-configuration.js +6 -17
- package/dist/convex-browser-auth-browser.js +6 -17
- package/dist/convex-browser-auth-server.js +6 -17
- package/dist/convex-browser-auth.js +6 -17
- package/dist/identity/index.js +2 -23
- package/dist/index.js +6 -17
- package/dist/oidc-rp.js +6 -17
- package/dist/oidc-surface-server.js +6 -17
- package/dist/profile-form.js +2 -16
- package/dist/public-config.js +2 -16
- package/dist/registry.js +2 -16
- package/dist/stylex-manifest.json +1 -1
- package/dist/urls.js +6 -17
- package/package.json +1 -1
- package/portfolio-inventory.json +1 -1
- package/src/identity/membership.ts +0 -7
- package/src/registry.ts +3 -17
- package/src/urls.ts +8 -1
package/README.md
CHANGED
package/dist/auth-proxy.js
CHANGED
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
package/dist/bearer-verifier.js
CHANGED
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -337,6 +323,9 @@ function suiteAccountsCurrentOidcClientRequiresEmailOtp(clientId) {
|
|
|
337
323
|
return SUITE_ACCOUNTS_CURRENT_EMAIL_OTP_REQUIRED_OIDC_CONSUMER_IDS.some((consumer) => suiteAccountsCurrentOidcClientRegistration(consumer, "production")?.clientId === clientId);
|
|
338
324
|
}
|
|
339
325
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
326
|
+
function formatDeviceClientId(id, environment) {
|
|
327
|
+
return `hraness:${id}:${environment}:v1`;
|
|
328
|
+
}
|
|
340
329
|
function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment) {
|
|
341
330
|
if (!isSuiteAccountsCurrentDeviceClientId(deviceClient))
|
|
342
331
|
return null;
|
|
@@ -345,7 +334,7 @@ function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment)
|
|
|
345
334
|
return null;
|
|
346
335
|
}
|
|
347
336
|
return deepFreeze({
|
|
348
|
-
clientId:
|
|
337
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
349
338
|
consumer: registration.consumer,
|
|
350
339
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
351
340
|
redirectUris: [],
|
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -337,6 +323,9 @@ function suiteAccountsCurrentOidcClientRequiresEmailOtp(clientId) {
|
|
|
337
323
|
return SUITE_ACCOUNTS_CURRENT_EMAIL_OTP_REQUIRED_OIDC_CONSUMER_IDS.some((consumer) => suiteAccountsCurrentOidcClientRegistration(consumer, "production")?.clientId === clientId);
|
|
338
324
|
}
|
|
339
325
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
326
|
+
function formatDeviceClientId(id, environment) {
|
|
327
|
+
return `hraness:${id}:${environment}:v1`;
|
|
328
|
+
}
|
|
340
329
|
function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment) {
|
|
341
330
|
if (!isSuiteAccountsCurrentDeviceClientId(deviceClient))
|
|
342
331
|
return null;
|
|
@@ -345,7 +334,7 @@ function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment)
|
|
|
345
334
|
return null;
|
|
346
335
|
}
|
|
347
336
|
return deepFreeze({
|
|
348
|
-
clientId:
|
|
337
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
349
338
|
consumer: registration.consumer,
|
|
350
339
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
351
340
|
redirectUris: [],
|
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -337,6 +323,9 @@ function suiteAccountsCurrentOidcClientRequiresEmailOtp(clientId) {
|
|
|
337
323
|
return SUITE_ACCOUNTS_CURRENT_EMAIL_OTP_REQUIRED_OIDC_CONSUMER_IDS.some((consumer) => suiteAccountsCurrentOidcClientRegistration(consumer, "production")?.clientId === clientId);
|
|
338
324
|
}
|
|
339
325
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
326
|
+
function formatDeviceClientId(id, environment) {
|
|
327
|
+
return `hraness:${id}:${environment}:v1`;
|
|
328
|
+
}
|
|
340
329
|
function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment) {
|
|
341
330
|
if (!isSuiteAccountsCurrentDeviceClientId(deviceClient))
|
|
342
331
|
return null;
|
|
@@ -345,7 +334,7 @@ function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment)
|
|
|
345
334
|
return null;
|
|
346
335
|
}
|
|
347
336
|
return deepFreeze({
|
|
348
|
-
clientId:
|
|
337
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
349
338
|
consumer: registration.consumer,
|
|
350
339
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
351
340
|
redirectUris: [],
|
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -337,6 +323,9 @@ function suiteAccountsCurrentOidcClientRequiresEmailOtp(clientId) {
|
|
|
337
323
|
return SUITE_ACCOUNTS_CURRENT_EMAIL_OTP_REQUIRED_OIDC_CONSUMER_IDS.some((consumer) => suiteAccountsCurrentOidcClientRegistration(consumer, "production")?.clientId === clientId);
|
|
338
324
|
}
|
|
339
325
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
326
|
+
function formatDeviceClientId(id, environment) {
|
|
327
|
+
return `hraness:${id}:${environment}:v1`;
|
|
328
|
+
}
|
|
340
329
|
function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment) {
|
|
341
330
|
if (!isSuiteAccountsCurrentDeviceClientId(deviceClient))
|
|
342
331
|
return null;
|
|
@@ -345,7 +334,7 @@ function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment)
|
|
|
345
334
|
return null;
|
|
346
335
|
}
|
|
347
336
|
return deepFreeze({
|
|
348
|
-
clientId:
|
|
337
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
349
338
|
consumer: registration.consumer,
|
|
350
339
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
351
340
|
redirectUris: [],
|
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -337,6 +323,9 @@ function suiteAccountsCurrentOidcClientRequiresEmailOtp(clientId) {
|
|
|
337
323
|
return SUITE_ACCOUNTS_CURRENT_EMAIL_OTP_REQUIRED_OIDC_CONSUMER_IDS.some((consumer) => suiteAccountsCurrentOidcClientRegistration(consumer, "production")?.clientId === clientId);
|
|
338
324
|
}
|
|
339
325
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
326
|
+
function formatDeviceClientId(id, environment) {
|
|
327
|
+
return `hraness:${id}:${environment}:v1`;
|
|
328
|
+
}
|
|
340
329
|
function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment) {
|
|
341
330
|
if (!isSuiteAccountsCurrentDeviceClientId(deviceClient))
|
|
342
331
|
return null;
|
|
@@ -345,7 +334,7 @@ function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment)
|
|
|
345
334
|
return null;
|
|
346
335
|
}
|
|
347
336
|
return deepFreeze({
|
|
348
|
-
clientId:
|
|
337
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
349
338
|
consumer: registration.consumer,
|
|
350
339
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
351
340
|
redirectUris: [],
|
package/dist/identity/index.js
CHANGED
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -805,13 +791,6 @@ var SUITE_MEMBERSHIP_PRODUCTS = deepFreeze([
|
|
|
805
791
|
id: "ghostget",
|
|
806
792
|
name: "GHOSTGET"
|
|
807
793
|
},
|
|
808
|
-
{
|
|
809
|
-
description: "free agent skill that writes dated dossiers on people, sources cited",
|
|
810
|
-
emoji: "\uD83E\uDDBE",
|
|
811
|
-
href: "https://soulscrape.com",
|
|
812
|
-
id: "soulscrape",
|
|
813
|
-
name: "SOULSCRAPE"
|
|
814
|
-
},
|
|
815
794
|
{
|
|
816
795
|
description: "media studio for agents: images, 3d, animation, and video to revise",
|
|
817
796
|
emoji: "\uD83D\uDCF8",
|
package/dist/index.js
CHANGED
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -337,6 +323,9 @@ function suiteAccountsCurrentOidcClientRequiresEmailOtp(clientId) {
|
|
|
337
323
|
return SUITE_ACCOUNTS_CURRENT_EMAIL_OTP_REQUIRED_OIDC_CONSUMER_IDS.some((consumer) => suiteAccountsCurrentOidcClientRegistration(consumer, "production")?.clientId === clientId);
|
|
338
324
|
}
|
|
339
325
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
326
|
+
function formatDeviceClientId(id, environment) {
|
|
327
|
+
return `hraness:${id}:${environment}:v1`;
|
|
328
|
+
}
|
|
340
329
|
function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment) {
|
|
341
330
|
if (!isSuiteAccountsCurrentDeviceClientId(deviceClient))
|
|
342
331
|
return null;
|
|
@@ -345,7 +334,7 @@ function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment)
|
|
|
345
334
|
return null;
|
|
346
335
|
}
|
|
347
336
|
return deepFreeze({
|
|
348
|
-
clientId:
|
|
337
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
349
338
|
consumer: registration.consumer,
|
|
350
339
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
351
340
|
redirectUris: [],
|
package/dist/oidc-rp.js
CHANGED
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -337,6 +323,9 @@ function suiteAccountsCurrentOidcClientRequiresEmailOtp(clientId) {
|
|
|
337
323
|
return SUITE_ACCOUNTS_CURRENT_EMAIL_OTP_REQUIRED_OIDC_CONSUMER_IDS.some((consumer) => suiteAccountsCurrentOidcClientRegistration(consumer, "production")?.clientId === clientId);
|
|
338
324
|
}
|
|
339
325
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
326
|
+
function formatDeviceClientId(id, environment) {
|
|
327
|
+
return `hraness:${id}:${environment}:v1`;
|
|
328
|
+
}
|
|
340
329
|
function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment) {
|
|
341
330
|
if (!isSuiteAccountsCurrentDeviceClientId(deviceClient))
|
|
342
331
|
return null;
|
|
@@ -345,7 +334,7 @@ function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment)
|
|
|
345
334
|
return null;
|
|
346
335
|
}
|
|
347
336
|
return deepFreeze({
|
|
348
|
-
clientId:
|
|
337
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
349
338
|
consumer: registration.consumer,
|
|
350
339
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
351
340
|
redirectUris: [],
|
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -337,6 +323,9 @@ function suiteAccountsCurrentOidcClientRequiresEmailOtp(clientId) {
|
|
|
337
323
|
return SUITE_ACCOUNTS_CURRENT_EMAIL_OTP_REQUIRED_OIDC_CONSUMER_IDS.some((consumer) => suiteAccountsCurrentOidcClientRegistration(consumer, "production")?.clientId === clientId);
|
|
338
324
|
}
|
|
339
325
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
326
|
+
function formatDeviceClientId(id, environment) {
|
|
327
|
+
return `hraness:${id}:${environment}:v1`;
|
|
328
|
+
}
|
|
340
329
|
function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment) {
|
|
341
330
|
if (!isSuiteAccountsCurrentDeviceClientId(deviceClient))
|
|
342
331
|
return null;
|
|
@@ -345,7 +334,7 @@ function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment)
|
|
|
345
334
|
return null;
|
|
346
335
|
}
|
|
347
336
|
return deepFreeze({
|
|
348
|
-
clientId:
|
|
337
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
349
338
|
consumer: registration.consumer,
|
|
350
339
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
351
340
|
redirectUris: [],
|
package/dist/profile-form.js
CHANGED
|
@@ -154,11 +154,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
154
154
|
"sponge",
|
|
155
155
|
"peopleblade",
|
|
156
156
|
"hraness",
|
|
157
|
-
"soulscrape",
|
|
158
157
|
"platonik",
|
|
159
158
|
"ghostget",
|
|
160
159
|
"alt",
|
|
161
|
-
"algal",
|
|
162
160
|
"textmock"
|
|
163
161
|
]);
|
|
164
162
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -179,11 +177,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
179
177
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
180
178
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
181
179
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
182
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
183
180
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
184
181
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
185
182
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
186
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
187
183
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
188
184
|
});
|
|
189
185
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -213,22 +209,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
213
209
|
"sponge",
|
|
214
210
|
"peopleblade",
|
|
215
211
|
"hraness",
|
|
216
|
-
"soulscrape",
|
|
217
212
|
"platonik",
|
|
218
213
|
"ghostget",
|
|
219
214
|
"alt"
|
|
220
215
|
]);
|
|
221
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
222
|
-
|
|
223
|
-
]);
|
|
224
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
225
|
-
"algal-cli": {
|
|
226
|
-
consumer: "algal",
|
|
227
|
-
displayName: "Algal CLI",
|
|
228
|
-
environments: ["production"],
|
|
229
|
-
id: "algal-cli"
|
|
230
|
-
}
|
|
231
|
-
});
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
217
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
232
218
|
function isSuiteAccountsConsumerId(value) {
|
|
233
219
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
234
220
|
}
|
package/dist/public-config.js
CHANGED
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
package/dist/registry.js
CHANGED
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"buildTools":[],"compiler":{"compilerContractVersion":"hraness-stylex-compiler-v1","css":{"filename":"stylex.css","layerPrelude":"complete-finite","targets":{"chrome":7143424,"firefox":7536640,"ios_saf":1049600,"safari":1049600},"topLevelLayers":["base","components"]},"schemaVersion":1,"serializer":{"enableLTRRTLComments":false,"useLayers":{"before":["components.hraness-ui.legacy.base","components.hraness-ui.legacy"],"prefix":"components.hraness-ui"}},"tools":{"babelCore":"7.29.7","lightningcss":"1.33.0","stylex":"0.19.0","stylexBabelCompatibility":{"entry":"lib/index.js","patchId":"stylex-0.19.0-token-parser-explicit-eof-v1","patchSha256":"4d17ac835421e037788f800035cfe91ee4fdce384ce97529d572015ea4318295","patchedSourceBytes":418119,"patchedSourceSha256":"32dfd685bf0ccc18c922ac6906cb911b05b081cc00c0fa6e100818d211abd1ba","sourceBytes":418079,"sourceSha256":"f880cd6733b91557647f1f894dbcbef7102199a112d1e8a6689fcf7b94f736c3"}},"transform":{"classNamePrefix":"x","dev":false,"enableMediaQueryOrder":true,"importSources":["@stylexjs/stylex"],"logicalRoot":"<graph-root>","moduleResolution":"commonJS","propertyValidationMode":"throw","sourceType":"unambiguous","styleResolution":"property-specificity","sxPropName":false,"treeshakeCompensation":true}},"compilerFoundation":"compiler-foundation.css","compilerSha256":"9ac2c8448ec8f198047e824ce27a97657e05025918c01c204aa0399f94641049","kind":"hraness-stylex-package-manifest","package":{"name":"@hraness/suite-accounts","version":"0.9.22"},"rules":[["x1aazh3f",{"ltr":".x1aazh3f{font-variant:inherit}","rtl":null},2000],["x1e6avla",{"ltr":".x1e6avla{border-radius:999px}","rtl":null},2000],["x1rcpt3j",{"ltr":".x1rcpt3j{gap:.45rem}","rtl":null},2000],["x1y0btm7",{"ltr":".x1y0btm7{border-style:solid}","rtl":null},2000],["x1y4qj14",{"ltr":".x1y4qj14{background-position:0% 0%}","rtl":null},2000],["x5goj4r",{"ltr":".x5goj4r{border-radius:.35rem}","rtl":null},2000],["x5m0csh",{"ltr":".x5m0csh{gap:.65rem}","rtl":null},2000],["x73f2yu",{"ltr":".x73f2yu{gap:.35rem}","rtl":null},2000],["x8fetqu",{"ltr":".x8fetqu{gap:1rem}","rtl":null},2000],["x9ox504",{"ltr":".x9ox504{border-color:var(--suite-profile-button-background,currentColor)}","rtl":null},2000],["xc342km",{"ltr":".xc342km{border-width:0}","rtl":null},2000],["xmkeg23",{"ltr":".xmkeg23{border-width:1px}","rtl":null},2000],["xxut2h2",{"ltr":".xxut2h2{border-color:var(--suite-profile-line,currentColor)}","rtl":null},2000],["x103pssi",{"ltr":".x103pssi{background-size:auto auto}","rtl":null},3000],["x10rt0pk",{"ltr":".x10rt0pk{font-feature-settings:inherit}","rtl":null},3000],["x12koezg",{"ltr":".x12koezg{background-origin:padding-box}","rtl":null},3000],["x15bjb6t",{"ltr":".x15bjb6t{line-height:inherit}","rtl":null},3000],["x182nak8",{"ltr":".x182nak8{background-repeat:repeat}","rtl":null},3000],["x18o3ruo",{"ltr":".x18o3ruo{background-image:none}","rtl":null},3000],["x18sabzy",{"ltr":".x18sabzy{border-image-source:none}","rtl":null},3000],["x1c7drp3",{"ltr":".x1c7drp3{accent-color:var(--suite-profile-focus,currentColor)}","rtl":null},3000],["x1e53mt7",{"ltr":".x1e53mt7{border-image-outset:0}","rtl":null},3000],["x1evy7pa",{"ltr":".x1evy7pa{line-height:1.5}","rtl":null},3000],["x1fdtg7e",{"ltr":".x1fdtg7e{background-attachment:scroll}","rtl":null},3000],["x1heor9g",{"ltr":".x1heor9g{color:inherit}","rtl":null},3000],["x1iyjqo2",{"ltr":".x1iyjqo2{flex-grow:1}","rtl":null},3000],["x1jfjhf8",{"ltr":".x1jfjhf8{background-color:var(--suite-profile-button-background,currentColor)}","rtl":null},3000],["x1jleocg",{"ltr":".x1jleocg{border-image-slice:100%}","rtl":null},3000],["x1lliihq",{"ltr":".x1lliihq{display:block}","rtl":null},3000],["x1lqcxt8",{"ltr":".x1lqcxt8{justify-self:start}","rtl":null},3000],["x1nrrp6k",{"ltr":".x1nrrp6k{font-size:.9rem}","rtl":null},3000],["x1pd3egz",{"ltr":".x1pd3egz{font-weight:inherit}","rtl":null},3000],["x1pjjote",{"ltr":".x1pjjote{border-image-width:1}","rtl":null},3000],["x1qlqyl8",{"ltr":".x1qlqyl8{font-size:inherit}","rtl":null},3000],["x1qzg9v8",{"ltr":".x1qzg9v8{font-size:.85rem}","rtl":null},3000],["x1rcybi7",{"ltr":".x1rcybi7{font-language-override:inherit}","rtl":null},3000],["x1t137rt",{"ltr":".x1t137rt{outline-style:none}","rtl":null},3000],["x1t35e8",{"ltr":".x1t35e8{font-style:inherit}","rtl":null},3000],["x1u7o2vf",{"ltr":".x1u7o2vf{background-clip:border-box}","rtl":null},3000],["x1w9dvvm",{"ltr":".x1w9dvvm{background-color:var(--suite-profile-input-background,transparent)}","rtl":null},3000],["x1xh6y1q",{"ltr":".x1xh6y1q{font-stretch:inherit}","rtl":null},3000],["x1xlr1w8",{"ltr":".x1xlr1w8{font-weight:700}","rtl":null},3000],["x1ypdohk",{"ltr":".x1ypdohk{cursor:pointer}","rtl":null},3000],["x288g5",{"ltr":".x288g5{resize:vertical}","rtl":null},3000],["x2lah0s",{"ltr":".x2lah0s{flex-shrink:0}","rtl":null},3000],["x37zpob",{"ltr":".x37zpob{line-height:1.4}","rtl":null},3000],["x5ee4ez",{"ltr":".x5ee4ez{color:var(--suite-profile-muted,currentColor)}","rtl":null},3000],["x61gc8y",{"ltr":".x61gc8y{font-optical-sizing:inherit}","rtl":null},3000],["x6s0dn4",{"ltr":".x6s0dn4{align-items:center}","rtl":null},3000],["x78zum5",{"ltr":".x78zum5{display:flex}","rtl":null},3000],["xd4aj15",{"ltr":".xd4aj15{font-size-adjust:inherit}","rtl":null},3000],["xd5ouml",{"ltr":".xd5ouml{color:var(--suite-profile-error,#a83232)}","rtl":null},3000],["xf9vgkq",{"ltr":".xf9vgkq{opacity:.72}","rtl":null},3000],["xgkqhyc",{"ltr":".xgkqhyc{border-image-repeat:stretch}","rtl":null},3000],["xj0a0fe",{"ltr":".xj0a0fe{overflow-wrap:anywhere}","rtl":null},3000],["xjb2p0i",{"ltr":".xjb2p0i{font-family:inherit}","rtl":null},3000],["xjbqb8w",{"ltr":".xjbqb8w{background-color:transparent}","rtl":null},3000],["xkyhvkk",{"ltr":".xkyhvkk{font-variation-settings:inherit}","rtl":null},3000],["xo1l8bm",{"ltr":".xo1l8bm{font-weight:400}","rtl":null},3000],["xrvj5dj",{"ltr":".xrvj5dj{display:grid}","rtl":null},3000],["xs83m0k",{"ltr":".xs83m0k{flex-shrink:1}","rtl":null},3000],["xt0e3qv",{"ltr":".xt0e3qv{cursor:default}","rtl":null},3000],["xuxw1ft",{"ltr":".xuxw1ft{white-space:nowrap}","rtl":null},3000],["xvmqkbn",{"ltr":".xvmqkbn{font-kerning:inherit}","rtl":null},3000],["xz46ci",{"ltr":".xz46ci{color:var(--suite-profile-button-foreground,Canvas)}","rtl":null},3000],["x14xc8xn",{"ltr":".x14xc8xn:focus-within{outline-style:solid}","rtl":null},3040],["x16gxa91",{"ltr":".x16gxa91:focus-within{outline-width:2px}","rtl":null},3040],["x1fanpfn",{"ltr":".x1fanpfn:focus-within{outline-offset:2px}","rtl":null},3040],["x1p4mulw",{"ltr":".x1p4mulw:focus-within{outline-color:var(--suite-profile-focus,currentColor)}","rtl":null},3040],["x784prv",{"ltr":".x784prv:focus-visible{outline-width:2px}","rtl":null},3040],["x7s97pk",{"ltr":".x7s97pk:focus-visible{outline-offset:2px}","rtl":null},3040],["x9v5kkp",{"ltr":".x9v5kkp:focus-visible{outline-style:solid}","rtl":null},3040],["xo8l03z",{"ltr":".xo8l03z:focus-visible{outline-color:var(--suite-profile-focus,currentColor)}","rtl":null},3040],["xc4xxb1",{"ltr":".xc4xxb1:has(:disabled){opacity:.6}","rtl":null},3045],["xfqoyci",{"ltr":".xfqoyci:disabled{opacity:.6}","rtl":null},3092],["xjb0foi",{"ltr":".xjb0foi:disabled{cursor:wait}","rtl":null},3092],["x13zjp5t",{"ltr":".x13zjp5t{margin-left:.5rem}","rtl":null},4000],["x15u6esi",{"ltr":".x15u6esi{padding-left:.5rem}","rtl":null},4000],["x15y8ph0",{"ltr":".x15y8ph0{padding-top:.7rem}","rtl":null},4000],["x178xt8z",{"ltr":".x178xt8z{border-top-width:1px}","rtl":null},4000],["x18d9i69",{"ltr":".x18d9i69{padding-bottom:0}","rtl":null},4000],["x19hwnzc",{"ltr":".x19hwnzc{min-width:2rem}","rtl":null},4000],["x1b58sdr",{"ltr":".x1b58sdr{padding-top:.5rem}","rtl":null},4000],["x1flg24d",{"ltr":".x1flg24d{padding-top:.65rem}","rtl":null},4000],["x1iul6r4",{"ltr":".x1iul6r4{padding-top:.25rem}","rtl":null},4000],["x1mjqqkp",{"ltr":".x1mjqqkp{margin-top:.5rem}","rtl":null},4000],["x1q57ora",{"ltr":".x1q57ora{padding-top:.75rem}","rtl":null},4000],["x1qhh985",{"ltr":".x1qhh985{border-bottom-width:0}","rtl":null},4000],["x1uhho1l",{"ltr":".x1uhho1l{padding-left:0}","rtl":null},4000],["x1xpa7k",{"ltr":".x1xpa7k{padding-right:0}","rtl":null},4000],["x1yf7rl7",{"ltr":".x1yf7rl7{margin-right:0}","rtl":null},4000],["x33uob6",{"ltr":".x33uob6{padding-right:.75rem}","rtl":null},4000],["x4odjur",{"ltr":".x4odjur{padding-bottom:.65rem}","rtl":null},4000],["x52dz5p",{"ltr":".x52dz5p{padding-right:1rem}","rtl":null},4000],["x79ra4s",{"ltr":".x79ra4s{padding-left:.75rem}","rtl":null},4000],["x9dzeaa",{"ltr":".x9dzeaa{padding-left:1rem}","rtl":null},4000],["xat24cr",{"ltr":".xat24cr{margin-bottom:0}","rtl":null},4000],["xdddoky",{"ltr":".xdddoky{height:1.05rem}","rtl":null},4000],["xdj266r",{"ltr":".xdj266r{margin-top:0}","rtl":null},4000],["xes99ow",{"ltr":".xes99ow{padding-bottom:.25rem}","rtl":null},4000],["xeuugli",{"ltr":".xeuugli{min-width:0}","rtl":null},4000],["xf6x3ch",{"ltr":".xf6x3ch{width:1.05rem}","rtl":null},4000],["xgbkey0",{"ltr":".xgbkey0{min-height:2.75rem}","rtl":null},4000],["xgfja2r",{"ltr":".xgfja2r{border-right-width:0}","rtl":null},4000],["xh8yej3",{"ltr":".xh8yej3{width:100%}","rtl":null},4000],["xhbfen4",{"ltr":".xhbfen4{margin-bottom:.5rem}","rtl":null},4000],["xhdxxi3",{"ltr":".xhdxxi3{height:1.1rem}","rtl":null},4000],["xj3b58b",{"ltr":".xj3b58b{margin-left:0}","rtl":null},4000],["xmh2cwo",{"ltr":".xmh2cwo{width:1.1rem}","rtl":null},4000],["xvgi8cs",{"ltr":".xvgi8cs{padding-bottom:.7rem}","rtl":null},4000],["xyj58a3",{"ltr":".xyj58a3{border-left-width:0}","rtl":null},4000]],"rulesSha256":"31d7dc6f52eff49071378eef338d3387292c4c85c462a6602bc4d5f421fc818a","runtime":[{"bytes":72013,"path":"dist/profile-form.js","sha256":"2ae54d2952af61a086318931776f1dbb02bab9067b8783401733e1f27b0e1d18"}],"schemaVersion":1,"standaloneCss":{"bytes":5493,"path":"dist/stylex.css","sha256":"e52f05b747b1bc28882df95109a7156d8b0517489de315f3cc5119ccc0d84104"},"standaloneSerializer":{"before":["components.hraness-suite-accounts.legacy"],"prefix":"components.hraness-suite-accounts"},"stylesheets":[{"bytes":83,"path":"compiler-foundation.css","sha256":"71172943d9ba5c6194bddf8a8f41c3bd35eb77919a20660019b12e9c2f8849e7"},{"bytes":30,"path":"src/profile-form.css","sha256":"4d4716e779cb53a65a4789db3b4c1340593a3d63d562bab16be8ec704157586c"}]}
|
|
1
|
+
{"buildTools":[],"compiler":{"compilerContractVersion":"hraness-stylex-compiler-v1","css":{"filename":"stylex.css","layerPrelude":"complete-finite","targets":{"chrome":7143424,"firefox":7536640,"ios_saf":1049600,"safari":1049600},"topLevelLayers":["base","components"]},"schemaVersion":1,"serializer":{"enableLTRRTLComments":false,"useLayers":{"before":["components.hraness-ui.legacy.base","components.hraness-ui.legacy"],"prefix":"components.hraness-ui"}},"tools":{"babelCore":"7.29.7","lightningcss":"1.33.0","stylex":"0.19.0","stylexBabelCompatibility":{"entry":"lib/index.js","patchId":"stylex-0.19.0-token-parser-explicit-eof-v1","patchSha256":"4d17ac835421e037788f800035cfe91ee4fdce384ce97529d572015ea4318295","patchedSourceBytes":418119,"patchedSourceSha256":"32dfd685bf0ccc18c922ac6906cb911b05b081cc00c0fa6e100818d211abd1ba","sourceBytes":418079,"sourceSha256":"f880cd6733b91557647f1f894dbcbef7102199a112d1e8a6689fcf7b94f736c3"}},"transform":{"classNamePrefix":"x","dev":false,"enableMediaQueryOrder":true,"importSources":["@stylexjs/stylex"],"logicalRoot":"<graph-root>","moduleResolution":"commonJS","propertyValidationMode":"throw","sourceType":"unambiguous","styleResolution":"property-specificity","sxPropName":false,"treeshakeCompensation":true}},"compilerFoundation":"compiler-foundation.css","compilerSha256":"9ac2c8448ec8f198047e824ce27a97657e05025918c01c204aa0399f94641049","kind":"hraness-stylex-package-manifest","package":{"name":"@hraness/suite-accounts","version":"0.9.24"},"rules":[["x1aazh3f",{"ltr":".x1aazh3f{font-variant:inherit}","rtl":null},2000],["x1e6avla",{"ltr":".x1e6avla{border-radius:999px}","rtl":null},2000],["x1rcpt3j",{"ltr":".x1rcpt3j{gap:.45rem}","rtl":null},2000],["x1y0btm7",{"ltr":".x1y0btm7{border-style:solid}","rtl":null},2000],["x1y4qj14",{"ltr":".x1y4qj14{background-position:0% 0%}","rtl":null},2000],["x5goj4r",{"ltr":".x5goj4r{border-radius:.35rem}","rtl":null},2000],["x5m0csh",{"ltr":".x5m0csh{gap:.65rem}","rtl":null},2000],["x73f2yu",{"ltr":".x73f2yu{gap:.35rem}","rtl":null},2000],["x8fetqu",{"ltr":".x8fetqu{gap:1rem}","rtl":null},2000],["x9ox504",{"ltr":".x9ox504{border-color:var(--suite-profile-button-background,currentColor)}","rtl":null},2000],["xc342km",{"ltr":".xc342km{border-width:0}","rtl":null},2000],["xmkeg23",{"ltr":".xmkeg23{border-width:1px}","rtl":null},2000],["xxut2h2",{"ltr":".xxut2h2{border-color:var(--suite-profile-line,currentColor)}","rtl":null},2000],["x103pssi",{"ltr":".x103pssi{background-size:auto auto}","rtl":null},3000],["x10rt0pk",{"ltr":".x10rt0pk{font-feature-settings:inherit}","rtl":null},3000],["x12koezg",{"ltr":".x12koezg{background-origin:padding-box}","rtl":null},3000],["x15bjb6t",{"ltr":".x15bjb6t{line-height:inherit}","rtl":null},3000],["x182nak8",{"ltr":".x182nak8{background-repeat:repeat}","rtl":null},3000],["x18o3ruo",{"ltr":".x18o3ruo{background-image:none}","rtl":null},3000],["x18sabzy",{"ltr":".x18sabzy{border-image-source:none}","rtl":null},3000],["x1c7drp3",{"ltr":".x1c7drp3{accent-color:var(--suite-profile-focus,currentColor)}","rtl":null},3000],["x1e53mt7",{"ltr":".x1e53mt7{border-image-outset:0}","rtl":null},3000],["x1evy7pa",{"ltr":".x1evy7pa{line-height:1.5}","rtl":null},3000],["x1fdtg7e",{"ltr":".x1fdtg7e{background-attachment:scroll}","rtl":null},3000],["x1heor9g",{"ltr":".x1heor9g{color:inherit}","rtl":null},3000],["x1iyjqo2",{"ltr":".x1iyjqo2{flex-grow:1}","rtl":null},3000],["x1jfjhf8",{"ltr":".x1jfjhf8{background-color:var(--suite-profile-button-background,currentColor)}","rtl":null},3000],["x1jleocg",{"ltr":".x1jleocg{border-image-slice:100%}","rtl":null},3000],["x1lliihq",{"ltr":".x1lliihq{display:block}","rtl":null},3000],["x1lqcxt8",{"ltr":".x1lqcxt8{justify-self:start}","rtl":null},3000],["x1nrrp6k",{"ltr":".x1nrrp6k{font-size:.9rem}","rtl":null},3000],["x1pd3egz",{"ltr":".x1pd3egz{font-weight:inherit}","rtl":null},3000],["x1pjjote",{"ltr":".x1pjjote{border-image-width:1}","rtl":null},3000],["x1qlqyl8",{"ltr":".x1qlqyl8{font-size:inherit}","rtl":null},3000],["x1qzg9v8",{"ltr":".x1qzg9v8{font-size:.85rem}","rtl":null},3000],["x1rcybi7",{"ltr":".x1rcybi7{font-language-override:inherit}","rtl":null},3000],["x1t137rt",{"ltr":".x1t137rt{outline-style:none}","rtl":null},3000],["x1t35e8",{"ltr":".x1t35e8{font-style:inherit}","rtl":null},3000],["x1u7o2vf",{"ltr":".x1u7o2vf{background-clip:border-box}","rtl":null},3000],["x1w9dvvm",{"ltr":".x1w9dvvm{background-color:var(--suite-profile-input-background,transparent)}","rtl":null},3000],["x1xh6y1q",{"ltr":".x1xh6y1q{font-stretch:inherit}","rtl":null},3000],["x1xlr1w8",{"ltr":".x1xlr1w8{font-weight:700}","rtl":null},3000],["x1ypdohk",{"ltr":".x1ypdohk{cursor:pointer}","rtl":null},3000],["x288g5",{"ltr":".x288g5{resize:vertical}","rtl":null},3000],["x2lah0s",{"ltr":".x2lah0s{flex-shrink:0}","rtl":null},3000],["x37zpob",{"ltr":".x37zpob{line-height:1.4}","rtl":null},3000],["x5ee4ez",{"ltr":".x5ee4ez{color:var(--suite-profile-muted,currentColor)}","rtl":null},3000],["x61gc8y",{"ltr":".x61gc8y{font-optical-sizing:inherit}","rtl":null},3000],["x6s0dn4",{"ltr":".x6s0dn4{align-items:center}","rtl":null},3000],["x78zum5",{"ltr":".x78zum5{display:flex}","rtl":null},3000],["xd4aj15",{"ltr":".xd4aj15{font-size-adjust:inherit}","rtl":null},3000],["xd5ouml",{"ltr":".xd5ouml{color:var(--suite-profile-error,#a83232)}","rtl":null},3000],["xf9vgkq",{"ltr":".xf9vgkq{opacity:.72}","rtl":null},3000],["xgkqhyc",{"ltr":".xgkqhyc{border-image-repeat:stretch}","rtl":null},3000],["xj0a0fe",{"ltr":".xj0a0fe{overflow-wrap:anywhere}","rtl":null},3000],["xjb2p0i",{"ltr":".xjb2p0i{font-family:inherit}","rtl":null},3000],["xjbqb8w",{"ltr":".xjbqb8w{background-color:transparent}","rtl":null},3000],["xkyhvkk",{"ltr":".xkyhvkk{font-variation-settings:inherit}","rtl":null},3000],["xo1l8bm",{"ltr":".xo1l8bm{font-weight:400}","rtl":null},3000],["xrvj5dj",{"ltr":".xrvj5dj{display:grid}","rtl":null},3000],["xs83m0k",{"ltr":".xs83m0k{flex-shrink:1}","rtl":null},3000],["xt0e3qv",{"ltr":".xt0e3qv{cursor:default}","rtl":null},3000],["xuxw1ft",{"ltr":".xuxw1ft{white-space:nowrap}","rtl":null},3000],["xvmqkbn",{"ltr":".xvmqkbn{font-kerning:inherit}","rtl":null},3000],["xz46ci",{"ltr":".xz46ci{color:var(--suite-profile-button-foreground,Canvas)}","rtl":null},3000],["x14xc8xn",{"ltr":".x14xc8xn:focus-within{outline-style:solid}","rtl":null},3040],["x16gxa91",{"ltr":".x16gxa91:focus-within{outline-width:2px}","rtl":null},3040],["x1fanpfn",{"ltr":".x1fanpfn:focus-within{outline-offset:2px}","rtl":null},3040],["x1p4mulw",{"ltr":".x1p4mulw:focus-within{outline-color:var(--suite-profile-focus,currentColor)}","rtl":null},3040],["x784prv",{"ltr":".x784prv:focus-visible{outline-width:2px}","rtl":null},3040],["x7s97pk",{"ltr":".x7s97pk:focus-visible{outline-offset:2px}","rtl":null},3040],["x9v5kkp",{"ltr":".x9v5kkp:focus-visible{outline-style:solid}","rtl":null},3040],["xo8l03z",{"ltr":".xo8l03z:focus-visible{outline-color:var(--suite-profile-focus,currentColor)}","rtl":null},3040],["xc4xxb1",{"ltr":".xc4xxb1:has(:disabled){opacity:.6}","rtl":null},3045],["xfqoyci",{"ltr":".xfqoyci:disabled{opacity:.6}","rtl":null},3092],["xjb0foi",{"ltr":".xjb0foi:disabled{cursor:wait}","rtl":null},3092],["x13zjp5t",{"ltr":".x13zjp5t{margin-left:.5rem}","rtl":null},4000],["x15u6esi",{"ltr":".x15u6esi{padding-left:.5rem}","rtl":null},4000],["x15y8ph0",{"ltr":".x15y8ph0{padding-top:.7rem}","rtl":null},4000],["x178xt8z",{"ltr":".x178xt8z{border-top-width:1px}","rtl":null},4000],["x18d9i69",{"ltr":".x18d9i69{padding-bottom:0}","rtl":null},4000],["x19hwnzc",{"ltr":".x19hwnzc{min-width:2rem}","rtl":null},4000],["x1b58sdr",{"ltr":".x1b58sdr{padding-top:.5rem}","rtl":null},4000],["x1flg24d",{"ltr":".x1flg24d{padding-top:.65rem}","rtl":null},4000],["x1iul6r4",{"ltr":".x1iul6r4{padding-top:.25rem}","rtl":null},4000],["x1mjqqkp",{"ltr":".x1mjqqkp{margin-top:.5rem}","rtl":null},4000],["x1q57ora",{"ltr":".x1q57ora{padding-top:.75rem}","rtl":null},4000],["x1qhh985",{"ltr":".x1qhh985{border-bottom-width:0}","rtl":null},4000],["x1uhho1l",{"ltr":".x1uhho1l{padding-left:0}","rtl":null},4000],["x1xpa7k",{"ltr":".x1xpa7k{padding-right:0}","rtl":null},4000],["x1yf7rl7",{"ltr":".x1yf7rl7{margin-right:0}","rtl":null},4000],["x33uob6",{"ltr":".x33uob6{padding-right:.75rem}","rtl":null},4000],["x4odjur",{"ltr":".x4odjur{padding-bottom:.65rem}","rtl":null},4000],["x52dz5p",{"ltr":".x52dz5p{padding-right:1rem}","rtl":null},4000],["x79ra4s",{"ltr":".x79ra4s{padding-left:.75rem}","rtl":null},4000],["x9dzeaa",{"ltr":".x9dzeaa{padding-left:1rem}","rtl":null},4000],["xat24cr",{"ltr":".xat24cr{margin-bottom:0}","rtl":null},4000],["xdddoky",{"ltr":".xdddoky{height:1.05rem}","rtl":null},4000],["xdj266r",{"ltr":".xdj266r{margin-top:0}","rtl":null},4000],["xes99ow",{"ltr":".xes99ow{padding-bottom:.25rem}","rtl":null},4000],["xeuugli",{"ltr":".xeuugli{min-width:0}","rtl":null},4000],["xf6x3ch",{"ltr":".xf6x3ch{width:1.05rem}","rtl":null},4000],["xgbkey0",{"ltr":".xgbkey0{min-height:2.75rem}","rtl":null},4000],["xgfja2r",{"ltr":".xgfja2r{border-right-width:0}","rtl":null},4000],["xh8yej3",{"ltr":".xh8yej3{width:100%}","rtl":null},4000],["xhbfen4",{"ltr":".xhbfen4{margin-bottom:.5rem}","rtl":null},4000],["xhdxxi3",{"ltr":".xhdxxi3{height:1.1rem}","rtl":null},4000],["xj3b58b",{"ltr":".xj3b58b{margin-left:0}","rtl":null},4000],["xmh2cwo",{"ltr":".xmh2cwo{width:1.1rem}","rtl":null},4000],["xvgi8cs",{"ltr":".xvgi8cs{padding-bottom:.7rem}","rtl":null},4000],["xyj58a3",{"ltr":".xyj58a3{border-left-width:0}","rtl":null},4000]],"rulesSha256":"31d7dc6f52eff49071378eef338d3387292c4c85c462a6602bc4d5f421fc818a","runtime":[{"bytes":71674,"path":"dist/profile-form.js","sha256":"188447ac3b6e66f5785da56d176538fdfe74aad275b9d87c10423c26e91916fd"}],"schemaVersion":1,"standaloneCss":{"bytes":5493,"path":"dist/stylex.css","sha256":"e52f05b747b1bc28882df95109a7156d8b0517489de315f3cc5119ccc0d84104"},"standaloneSerializer":{"before":["components.hraness-suite-accounts.legacy"],"prefix":"components.hraness-suite-accounts"},"stylesheets":[{"bytes":83,"path":"compiler-foundation.css","sha256":"71172943d9ba5c6194bddf8a8f41c3bd35eb77919a20660019b12e9c2f8849e7"},{"bytes":30,"path":"src/profile-form.css","sha256":"4d4716e779cb53a65a4789db3b4c1340593a3d63d562bab16be8ec704157586c"}]}
|
package/dist/urls.js
CHANGED
|
@@ -153,11 +153,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
153
153
|
"sponge",
|
|
154
154
|
"peopleblade",
|
|
155
155
|
"hraness",
|
|
156
|
-
"soulscrape",
|
|
157
156
|
"platonik",
|
|
158
157
|
"ghostget",
|
|
159
158
|
"alt",
|
|
160
|
-
"algal",
|
|
161
159
|
"textmock"
|
|
162
160
|
]);
|
|
163
161
|
function currentOidcSite(id, displayName, productionSiteUrl) {
|
|
@@ -178,11 +176,9 @@ var SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
178
176
|
sponge: currentOidcSite("sponge", "Sponge", SUITE_ACCOUNTS_CURRENT_ORIGIN_OVERRIDES.sponge.production.siteUrl),
|
|
179
177
|
peopleblade: currentOidcSite("peopleblade", "PeopleBlade", "https://peopleblade.com"),
|
|
180
178
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
181
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
182
179
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
183
180
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
184
181
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
185
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
186
182
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com")
|
|
187
183
|
});
|
|
188
184
|
var SUITE_ACCOUNTS_ACTIVE_CONSUMER_IDS = deepFreeze([
|
|
@@ -212,22 +208,12 @@ var SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS = deepFreeze([
|
|
|
212
208
|
"sponge",
|
|
213
209
|
"peopleblade",
|
|
214
210
|
"hraness",
|
|
215
|
-
"soulscrape",
|
|
216
211
|
"platonik",
|
|
217
212
|
"ghostget",
|
|
218
213
|
"alt"
|
|
219
214
|
]);
|
|
220
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
221
|
-
|
|
222
|
-
]);
|
|
223
|
-
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
224
|
-
"algal-cli": {
|
|
225
|
-
consumer: "algal",
|
|
226
|
-
displayName: "Algal CLI",
|
|
227
|
-
environments: ["production"],
|
|
228
|
-
id: "algal-cli"
|
|
229
|
-
}
|
|
230
|
-
});
|
|
215
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([]);
|
|
216
|
+
var SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({});
|
|
231
217
|
function isSuiteAccountsConsumerId(value) {
|
|
232
218
|
return typeof value === "string" && SUITE_CONSUMER_IDS.includes(value);
|
|
233
219
|
}
|
|
@@ -337,6 +323,9 @@ function suiteAccountsCurrentOidcClientRequiresEmailOtp(clientId) {
|
|
|
337
323
|
return SUITE_ACCOUNTS_CURRENT_EMAIL_OTP_REQUIRED_OIDC_CONSUMER_IDS.some((consumer) => suiteAccountsCurrentOidcClientRegistration(consumer, "production")?.clientId === clientId);
|
|
338
324
|
}
|
|
339
325
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
326
|
+
function formatDeviceClientId(id, environment) {
|
|
327
|
+
return `hraness:${id}:${environment}:v1`;
|
|
328
|
+
}
|
|
340
329
|
function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment) {
|
|
341
330
|
if (!isSuiteAccountsCurrentDeviceClientId(deviceClient))
|
|
342
331
|
return null;
|
|
@@ -345,7 +334,7 @@ function suiteAccountsCurrentDeviceClientRegistration(deviceClient, environment)
|
|
|
345
334
|
return null;
|
|
346
335
|
}
|
|
347
336
|
return deepFreeze({
|
|
348
|
-
clientId:
|
|
337
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
349
338
|
consumer: registration.consumer,
|
|
350
339
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
351
340
|
redirectUris: [],
|
package/package.json
CHANGED
package/portfolio-inventory.json
CHANGED
|
@@ -59,13 +59,6 @@ export const SUITE_MEMBERSHIP_PRODUCTS = deepFreeze([
|
|
|
59
59
|
id: "ghostget",
|
|
60
60
|
name: "GHOSTGET",
|
|
61
61
|
},
|
|
62
|
-
{
|
|
63
|
-
description: "free agent skill that writes dated dossiers on people, sources cited",
|
|
64
|
-
emoji: "🦾",
|
|
65
|
-
href: "https://soulscrape.com",
|
|
66
|
-
id: "soulscrape",
|
|
67
|
-
name: "SOULSCRAPE",
|
|
68
|
-
},
|
|
69
62
|
{
|
|
70
63
|
description: "media studio for agents: images, 3d, animation, and video to revise",
|
|
71
64
|
emoji: "📸",
|
package/src/registry.ts
CHANGED
|
@@ -221,11 +221,9 @@ export const SUITE_ACCOUNTS_CURRENT_CONSUMER_IDS = deepFreeze([
|
|
|
221
221
|
"sponge",
|
|
222
222
|
"peopleblade",
|
|
223
223
|
"hraness",
|
|
224
|
-
"soulscrape",
|
|
225
224
|
"platonik",
|
|
226
225
|
"ghostget",
|
|
227
226
|
"alt",
|
|
228
|
-
"algal",
|
|
229
227
|
"textmock",
|
|
230
228
|
] as const);
|
|
231
229
|
|
|
@@ -277,11 +275,9 @@ export const SUITE_ACCOUNTS_CURRENT_CONSUMERS = deepFreeze({
|
|
|
277
275
|
"https://peopleblade.com",
|
|
278
276
|
),
|
|
279
277
|
hraness: currentOidcSite("hraness", "Hraness", "https://hraness.com"),
|
|
280
|
-
soulscrape: currentOidcSite("soulscrape", "Soulscrape", "https://soulscrape.com"),
|
|
281
278
|
platonik: currentOidcSite("platonik", "Platonik", "https://platonik.space"),
|
|
282
279
|
ghostget: currentOidcSite("ghostget", "Ghostget", "https://ghostget.com"),
|
|
283
280
|
alt: currentOidcSite("alt", "Alt", "https://alt.dog"),
|
|
284
|
-
algal: currentOidcSite("algal", "Algal", "https://algal.cloud"),
|
|
285
281
|
textmock: currentOidcSite("textmock", "Textmock", "https://textmock.com"),
|
|
286
282
|
} as const satisfies Readonly<
|
|
287
283
|
Record<
|
|
@@ -388,7 +384,6 @@ export const SUITE_ACCOUNTS_CURRENT_BROWSER_DEVICE_CODE_CONSUMER_IDS =
|
|
|
388
384
|
"sponge",
|
|
389
385
|
"peopleblade",
|
|
390
386
|
"hraness",
|
|
391
|
-
"soulscrape",
|
|
392
387
|
"platonik",
|
|
393
388
|
"ghostget",
|
|
394
389
|
"alt",
|
|
@@ -400,11 +395,9 @@ export type SuiteAccountsCurrentBrowserDeviceCodeConsumerId =
|
|
|
400
395
|
/**
|
|
401
396
|
* Dedicated public device-authorization clients. Each one belongs to exactly
|
|
402
397
|
* one current browser product, has no redirect URI, and may use only the
|
|
403
|
-
* device-code grant.
|
|
398
|
+
* device-code grant. No dedicated clients are currently registered.
|
|
404
399
|
*/
|
|
405
|
-
export const SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([
|
|
406
|
-
"algal-cli",
|
|
407
|
-
] as const);
|
|
400
|
+
export const SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS = deepFreeze([] as const);
|
|
408
401
|
|
|
409
402
|
export type SuiteAccountsCurrentDeviceClientId =
|
|
410
403
|
(typeof SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENT_IDS)[number];
|
|
@@ -419,14 +412,7 @@ export type SuiteAccountsCurrentDeviceClient = Readonly<{
|
|
|
419
412
|
id: SuiteAccountsCurrentDeviceClientId;
|
|
420
413
|
}>;
|
|
421
414
|
|
|
422
|
-
export const SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({
|
|
423
|
-
"algal-cli": {
|
|
424
|
-
consumer: "algal",
|
|
425
|
-
displayName: "Algal CLI",
|
|
426
|
-
environments: ["production"],
|
|
427
|
-
id: "algal-cli",
|
|
428
|
-
},
|
|
429
|
-
} as const satisfies Readonly<
|
|
415
|
+
export const SUITE_ACCOUNTS_CURRENT_DEVICE_CLIENTS = deepFreeze({} as const satisfies Readonly<
|
|
430
416
|
Record<SuiteAccountsCurrentDeviceClientId, SuiteAccountsCurrentDeviceClient>
|
|
431
417
|
>);
|
|
432
418
|
|
package/src/urls.ts
CHANGED
|
@@ -159,6 +159,13 @@ export type SuiteAccountsCurrentDeviceClientRegistration = Readonly<{
|
|
|
159
159
|
tokenEndpointAuthMethod: "none";
|
|
160
160
|
}>;
|
|
161
161
|
|
|
162
|
+
function formatDeviceClientId<Id extends string>(
|
|
163
|
+
id: Id,
|
|
164
|
+
environment: SuiteAccountsRemoteEnvironment,
|
|
165
|
+
): `hraness:${Id}:${SuiteAccountsRemoteEnvironment}:v1` {
|
|
166
|
+
return `hraness:${id}:${environment}:v1`;
|
|
167
|
+
}
|
|
168
|
+
|
|
162
169
|
/**
|
|
163
170
|
* Registration for a dedicated public device-authorization client. It has no
|
|
164
171
|
* redirect URI, no client secret, and exactly one grant.
|
|
@@ -180,7 +187,7 @@ export function suiteAccountsCurrentDeviceClientRegistration(
|
|
|
180
187
|
return null;
|
|
181
188
|
}
|
|
182
189
|
return deepFreeze({
|
|
183
|
-
clientId:
|
|
190
|
+
clientId: formatDeviceClientId(deviceClient, environment),
|
|
184
191
|
consumer: registration.consumer,
|
|
185
192
|
grantTypes: [DEVICE_CODE_GRANT_TYPE],
|
|
186
193
|
redirectUris: [],
|