@leaflow/sdk 0.178.0 → 0.179.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.
- package/dist/iam/v1/generated/models.d.ts +6 -0
- package/dist/iam/v1/generated/schemas.zod.d.ts +2 -0
- package/dist/iam/v1/generated/validators/applicationResource.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/applicationResource.zod.js +3 -0
- package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.js +4 -0
- package/dist/iam/v1/generated/validators/createApplicationResponseBody.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/lengthAwarePageApplicationResource.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/updateApplicationRequestBody.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/updateApplicationRequestBody.zod.js +4 -0
- package/package.json +1 -1
|
@@ -562,6 +562,8 @@ export interface ApplicationResource {
|
|
|
562
562
|
type: ApplicationResourceType;
|
|
563
563
|
client_id: string;
|
|
564
564
|
redirect_uris: string[];
|
|
565
|
+
/** The scopes this application may request. The list is the boundary — a scope not here cannot be obtained, and the platform's own scopes are never offered */
|
|
566
|
+
scopes: string[];
|
|
565
567
|
status: ApplicationResourceStatus;
|
|
566
568
|
/** @nullable */
|
|
567
569
|
created_by: string | null;
|
|
@@ -590,6 +592,8 @@ export interface CreateApplicationRequestBody {
|
|
|
590
592
|
* @items.maxLength 2048
|
|
591
593
|
*/
|
|
592
594
|
redirect_uris: string[];
|
|
595
|
+
/** The scopes the application may request. Omitted means the defaults, `profile` and `email`; a scope not in the platform's list is refused */
|
|
596
|
+
scopes?: string[];
|
|
593
597
|
}
|
|
594
598
|
export interface CreateApplicationResponseBody {
|
|
595
599
|
application: ApplicationResource;
|
|
@@ -612,6 +616,8 @@ export interface UpdateApplicationRequestBody {
|
|
|
612
616
|
* @items.maxLength 2048
|
|
613
617
|
*/
|
|
614
618
|
redirect_uris?: string[];
|
|
619
|
+
/** The scopes the application may request. Omitted leaves them unchanged */
|
|
620
|
+
scopes?: string[];
|
|
615
621
|
}
|
|
616
622
|
export interface RotateApplicationSecretResponseBody {
|
|
617
623
|
secret: string;
|
|
@@ -312,6 +312,7 @@ export declare const CreateApplicationBody: zod.ZodObject<{
|
|
|
312
312
|
CONFIDENTIAL: "CONFIDENTIAL";
|
|
313
313
|
}>;
|
|
314
314
|
redirect_uris: zod.ZodArray<zod.ZodString>;
|
|
315
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
315
316
|
}, zod.z.core.$strict>;
|
|
316
317
|
/**
|
|
317
318
|
* An application that has been deleted is still returned, with `status` `ARCHIVED`.
|
|
@@ -332,6 +333,7 @@ export declare const UpdateApplicationParams: zod.ZodObject<{
|
|
|
332
333
|
export declare const UpdateApplicationBody: zod.ZodObject<{
|
|
333
334
|
name: zod.ZodOptional<zod.ZodString>;
|
|
334
335
|
redirect_uris: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
336
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
335
337
|
}, zod.z.core.$strict>;
|
|
336
338
|
/**
|
|
337
339
|
* The application is removed from the identity provider and its row is retained with
|
|
@@ -19,6 +19,9 @@ export const ApplicationResource = zod.strictObject({
|
|
|
19
19
|
type: zod.enum(["PUBLIC", "CONFIDENTIAL"]),
|
|
20
20
|
client_id: zod.string(),
|
|
21
21
|
redirect_uris: zod.array(zod.string()),
|
|
22
|
+
scopes: zod
|
|
23
|
+
.array(zod.string())
|
|
24
|
+
.describe("The scopes this application may request. The list is the boundary — a scope not here cannot be obtained, and the platform's own scopes are never offered"),
|
|
22
25
|
status: zod.enum(["ACTIVE", "DISABLED", "ARCHIVED"]),
|
|
23
26
|
created_by: zod.string().nullable(),
|
|
24
27
|
created_at: zod.iso.datetime({ offset: true }),
|
|
@@ -23,6 +23,7 @@ export declare const CreateApplicationRequestBody: zod.ZodObject<{
|
|
|
23
23
|
CONFIDENTIAL: "CONFIDENTIAL";
|
|
24
24
|
}>;
|
|
25
25
|
redirect_uris: zod.ZodArray<zod.ZodString>;
|
|
26
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
26
27
|
}, zod.z.core.$strict>;
|
|
27
28
|
export type CreateApplicationRequestBody = zod.input<typeof CreateApplicationRequestBody>;
|
|
28
29
|
export type CreateApplicationRequestBodyOutput = zod.output<typeof CreateApplicationRequestBody>;
|
|
@@ -23,4 +23,8 @@ export const CreateApplicationRequestBody = zod.strictObject({
|
|
|
23
23
|
.array(zod.string().min(1).max(createApplicationRequestBodyRedirectUrisItemMax))
|
|
24
24
|
.min(1)
|
|
25
25
|
.max(createApplicationRequestBodyRedirectUrisMax),
|
|
26
|
+
scopes: zod
|
|
27
|
+
.array(zod.string())
|
|
28
|
+
.optional()
|
|
29
|
+
.describe("The scopes the application may request. Omitted means the defaults, `profile` and `email`; a scope not in the platform's list is refused"),
|
|
26
30
|
});
|
|
@@ -23,6 +23,7 @@ export declare const LengthAwarePageApplicationResource: zod.ZodObject<{
|
|
|
23
23
|
}>;
|
|
24
24
|
client_id: zod.ZodString;
|
|
25
25
|
redirect_uris: zod.ZodArray<zod.ZodString>;
|
|
26
|
+
scopes: zod.ZodArray<zod.ZodString>;
|
|
26
27
|
status: zod.ZodEnum<{
|
|
27
28
|
ACTIVE: "ACTIVE";
|
|
28
29
|
DISABLED: "DISABLED";
|
|
@@ -19,6 +19,7 @@ export declare const updateApplicationRequestBodyRedirectUrisMax = 10;
|
|
|
19
19
|
export declare const UpdateApplicationRequestBody: zod.ZodObject<{
|
|
20
20
|
name: zod.ZodOptional<zod.ZodString>;
|
|
21
21
|
redirect_uris: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
22
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
22
23
|
}, zod.z.core.$strict>;
|
|
23
24
|
export type UpdateApplicationRequestBody = zod.input<typeof UpdateApplicationRequestBody>;
|
|
24
25
|
export type UpdateApplicationRequestBodyOutput = zod.output<typeof UpdateApplicationRequestBody>;
|
|
@@ -23,4 +23,8 @@ export const UpdateApplicationRequestBody = zod.strictObject({
|
|
|
23
23
|
.min(1)
|
|
24
24
|
.max(updateApplicationRequestBodyRedirectUrisMax)
|
|
25
25
|
.optional(),
|
|
26
|
+
scopes: zod
|
|
27
|
+
.array(zod.string())
|
|
28
|
+
.optional()
|
|
29
|
+
.describe("The scopes the application may request. Omitted leaves them unchanged"),
|
|
26
30
|
});
|