@krak-stack/auth 0.2.11 → 0.2.13

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.
@@ -101,6 +101,17 @@ export declare const ExtraProjectPublicConfig: Schema.Struct<{
101
101
  readonly google: Schema.Boolean;
102
102
  }>;
103
103
  }>;
104
+ export declare const ExtraAssociatedProjectsQuery: Schema.Struct<{
105
+ readonly organizationId: Schema.optional<Schema.String>;
106
+ }>;
107
+ export declare const ExtraAssociatedProject: Schema.Struct<{
108
+ readonly id: Schema.String;
109
+ readonly name: Schema.String;
110
+ }>;
111
+ export declare const ExtraAssociatedProjects: Schema.$Array<Schema.Struct<{
112
+ readonly id: Schema.String;
113
+ readonly name: Schema.String;
114
+ }>>;
104
115
  export declare const ExtraOrganizationPublicProfileQuery: Schema.Struct<{
105
116
  readonly organizationId: Schema.String;
106
117
  readonly locale: Schema.optional<Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>>;
@@ -178,6 +189,7 @@ export type ExtraVerifyApiKeyPayload = typeof ExtraVerifyApiKeyPayload.Type;
178
189
  export type ExtraVerifyApiKeyResponse = typeof ExtraVerifyApiKeyResponse.Type;
179
190
  export type ExtraProjectPublicConfigQuery = typeof ExtraProjectPublicConfigQuery.Type;
180
191
  export type ExtraProjectPublicConfig = typeof ExtraProjectPublicConfig.Type;
192
+ export type ExtraAssociatedProject = typeof ExtraAssociatedProject.Type;
181
193
  export type ExtraOrganizationPublicProfileQuery = typeof ExtraOrganizationPublicProfileQuery.Type;
182
194
  export type ExtraOrganizationPublicProfile = typeof ExtraOrganizationPublicProfile.Type;
183
195
  export type ExtraOkResponse = typeof ExtraOkResponse.Type;
@@ -220,6 +220,24 @@ export const ExtraProjectPublicConfig = Schema.Struct({
220
220
  },
221
221
  ],
222
222
  });
223
+ export const ExtraAssociatedProjectsQuery = Schema.Struct({
224
+ organizationId: Schema.optional(Schema.String),
225
+ }).annotate({
226
+ identifier: "ExtraAssociatedProjectsQuery",
227
+ title: "Associated projects query",
228
+ description: "Optionally scopes associated projects to an organization the current user belongs to.",
229
+ });
230
+ export const ExtraAssociatedProject = Schema.Struct({
231
+ id: Schema.String,
232
+ name: Schema.String,
233
+ }).annotate({
234
+ identifier: "ExtraAssociatedProject",
235
+ title: "Associated project",
236
+ });
237
+ export const ExtraAssociatedProjects = Schema.Array(ExtraAssociatedProject).annotate({
238
+ identifier: "ExtraAssociatedProjects",
239
+ title: "Associated projects",
240
+ });
223
241
  export const ExtraOrganizationPublicProfileQuery = Schema.Struct({
224
242
  organizationId: Schema.String,
225
243
  locale: Schema.optional(OrganizationLocale),
@@ -60,7 +60,7 @@ export type ActorConstraint = {
60
60
  };
61
61
  export declare function ActorRequired(): typeof AnyActorRequired;
62
62
  export declare namespace ActorRequired {
63
- var layer: <Project extends string, Action extends string>(access: ProjectAccessDefinition<Project, Action>) => Layer.Layer<AnyActorRequired | ApiKeyActorRequired | OrganizationApiKeyActorRequired | UserActorRequired | UserApiKeyActorRequired, never, never>;
63
+ export { actorRequiredLayer as layer };
64
64
  }
65
65
  export declare function ActorRequired(constraint: {
66
66
  readonly type: "user";
@@ -76,4 +76,5 @@ export declare function ActorRequired(constraint: {
76
76
  export declare function ActorRequired(constraint: {
77
77
  readonly type: "apiKey";
78
78
  }): typeof ApiKeyActorRequired;
79
+ declare const actorRequiredLayer: <Project extends string, Action extends string>(access: ProjectAccessDefinition<Project, Action>) => Layer.Layer<AnyActorRequired | ApiKeyActorRequired | OrganizationApiKeyActorRequired | UserActorRequired | UserApiKeyActorRequired, never, never>;
79
80
  export {};