@schemavaults/auth-common 0.38.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { MAX_API_SCOPE_VALUE_LENGTH, MAX_API_SCOPE_DESCRIPTION_LENGTH, MAX_API_SCOPES_PER_API_SERVER, API_SCOPE_VALUE_REGEX, apiScopeValueSchema, apiScopeDescriptionSchema, resourceIndicatorSchema, apiServerScopeSchema, createApiServerScopeRequestSchema, updateApiServerScopeRequestSchema, } from "./api-server-scope";
|
|
2
2
|
export type { ApiScopeValue, ApiServerScope, CreateApiServerScopeRequest, UpdateApiServerScopeRequest, } from "./api-server-scope";
|
|
3
|
-
export { API_SCOPE_GRANTEES, apiScopeGranteeSchema, appApiScopePolicySchema, updateAppApiScopePolicyRequestSchema, } from "./scope-grants";
|
|
4
|
-
export type { ApiScopeGrantee, AppApiScopePolicy, UpdateAppApiScopePolicyRequest, } from "./scope-grants";
|
|
3
|
+
export { API_SCOPE_GRANTEES, apiScopeGranteeSchema, appApiScopePolicySchema, updateAppApiScopePolicyRequestSchema, appApiConnectionFirstPartySchema, updateAppApiConnectionFirstPartyRequestSchema, } from "./scope-grants";
|
|
4
|
+
export type { ApiScopeGrantee, AppApiScopePolicy, UpdateAppApiScopePolicyRequest, AppApiConnectionFirstParty, UpdateAppApiConnectionFirstPartyRequest, } from "./scope-grants";
|
|
5
5
|
export { consentScopeSchema, appConsentStatusSchema, approvedApiScopesSchema, connectedAppScopeSchema, connectedAppSchema, listConnectedAppsResponseSchema, } from "./consent";
|
|
6
6
|
export type { ConsentScope, AppConsentStatus, ConnectedAppScope, ConnectedApp, ListConnectedAppsResponse, } from "./consent";
|
|
7
7
|
export { API_SERVER_SCOPES_JSON_SCHEMA_PATH, apiScopeManifestEntrySchema, syncApiServerScopesRequestSchema, apiScopeManifestEntries, syncedApiScopeSchema, updatedApiScopeSchema, apiServerScopeSyncResultSchema, syncApiServerScopesResponseSchema, hasApiScopeSyncDrift, } from "./scope-sync";
|
package/dist/api-scopes/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { MAX_API_SCOPE_VALUE_LENGTH, MAX_API_SCOPE_DESCRIPTION_LENGTH, MAX_API_SCOPES_PER_API_SERVER, API_SCOPE_VALUE_REGEX, apiScopeValueSchema, apiScopeDescriptionSchema, resourceIndicatorSchema, apiServerScopeSchema, createApiServerScopeRequestSchema, updateApiServerScopeRequestSchema, } from "./api-server-scope";
|
|
2
|
-
export { API_SCOPE_GRANTEES, apiScopeGranteeSchema, appApiScopePolicySchema, updateAppApiScopePolicyRequestSchema, } from "./scope-grants";
|
|
2
|
+
export { API_SCOPE_GRANTEES, apiScopeGranteeSchema, appApiScopePolicySchema, updateAppApiScopePolicyRequestSchema, appApiConnectionFirstPartySchema, updateAppApiConnectionFirstPartyRequestSchema, } from "./scope-grants";
|
|
3
3
|
export { consentScopeSchema, appConsentStatusSchema, approvedApiScopesSchema, connectedAppScopeSchema, connectedAppSchema, listConnectedAppsResponseSchema, } from "./consent";
|
|
4
4
|
export { API_SERVER_SCOPES_JSON_SCHEMA_PATH, apiScopeManifestEntrySchema, syncApiServerScopesRequestSchema, apiScopeManifestEntries, syncedApiScopeSchema, updatedApiScopeSchema, apiServerScopeSyncResultSchema, syncApiServerScopesResponseSchema, hasApiScopeSyncDrift, } from "./scope-sync";
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api-scopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,6BAA6B,EAC7B,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,iCAAiC,EACjC,iCAAiC,GAClC,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,oCAAoC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api-scopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,6BAA6B,EAC7B,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,iCAAiC,EACjC,iCAAiC,GAClC,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,oCAAoC,EACpC,gCAAgC,EAChC,6CAA6C,GAC9C,MAAM,gBAAgB,CAAC;AASxB,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,+BAA+B,GAChC,MAAM,WAAW,CAAC;AASnB,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,8BAA8B,EAC9B,iCAAiC,EACjC,oBAAoB,GACrB,MAAM,cAAc,CAAC"}
|
|
@@ -35,3 +35,22 @@ export declare const updateAppApiScopePolicyRequestSchema: z.ZodObject<{
|
|
|
35
35
|
service_account_scopes: z.ZodArray<z.ZodString>;
|
|
36
36
|
}, z.core.$strict>;
|
|
37
37
|
export type UpdateAppApiScopePolicyRequest = z.infer<typeof updateAppApiScopePolicyRequestSchema>;
|
|
38
|
+
/**
|
|
39
|
+
* Whether an app-to-API connection is FIRST-PARTY: the app and the API
|
|
40
|
+
* server belong to the same party, so users signing in to the app for the
|
|
41
|
+
* API server (the authorization request's RFC 8707 `resource`) consent
|
|
42
|
+
* implicitly. Such requests get the API scopes they ask for, among those
|
|
43
|
+
* the app may be granted (`restrict_user_scopes` still applies), without
|
|
44
|
+
* the consent screen; the app authorization and the scope consents are
|
|
45
|
+
* recorded as the user signs in. Off by default; only platform
|
|
46
|
+
* administrators may turn it on.
|
|
47
|
+
*/
|
|
48
|
+
export declare const appApiConnectionFirstPartySchema: z.ZodObject<{
|
|
49
|
+
first_party: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strict>;
|
|
51
|
+
export type AppApiConnectionFirstParty = z.infer<typeof appApiConnectionFirstPartySchema>;
|
|
52
|
+
/** Body marking an app-to-API connection first-party, or not. */
|
|
53
|
+
export declare const updateAppApiConnectionFirstPartyRequestSchema: z.ZodObject<{
|
|
54
|
+
first_party: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export type UpdateAppApiConnectionFirstPartyRequest = z.infer<typeof updateAppApiConnectionFirstPartyRequestSchema>;
|
|
@@ -46,4 +46,21 @@ export const updateAppApiScopePolicyRequestSchema = z
|
|
|
46
46
|
service_account_scopes: scopeValueListSchema,
|
|
47
47
|
})
|
|
48
48
|
.strict();
|
|
49
|
+
/**
|
|
50
|
+
* Whether an app-to-API connection is FIRST-PARTY: the app and the API
|
|
51
|
+
* server belong to the same party, so users signing in to the app for the
|
|
52
|
+
* API server (the authorization request's RFC 8707 `resource`) consent
|
|
53
|
+
* implicitly. Such requests get the API scopes they ask for, among those
|
|
54
|
+
* the app may be granted (`restrict_user_scopes` still applies), without
|
|
55
|
+
* the consent screen; the app authorization and the scope consents are
|
|
56
|
+
* recorded as the user signs in. Off by default; only platform
|
|
57
|
+
* administrators may turn it on.
|
|
58
|
+
*/
|
|
59
|
+
export const appApiConnectionFirstPartySchema = z
|
|
60
|
+
.object({
|
|
61
|
+
first_party: z.boolean(),
|
|
62
|
+
})
|
|
63
|
+
.strict();
|
|
64
|
+
/** Body marking an app-to-API connection first-party, or not. */
|
|
65
|
+
export const updateAppApiConnectionFirstPartyRequestSchema = appApiConnectionFirstPartySchema;
|
|
49
66
|
//# sourceMappingURL=scope-grants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope-grants.js","sourceRoot":"","sources":["../../src/api-scopes/scope-grants.ts"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