@ionite/valibot 0.0.23-beta.20260809.2 → 0.0.23-beta.20260812.3

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +26 -6
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ApplicationValidators, AuthzEntityBase as AuthzEntityBaseType, Group as AuthzGroupType, BaseCustomer as BaseCustomerType, BaseTenant as BaseTenantType, BaseUser as BaseUserType, CreateTenantRequest, GroupResource, IAMAppValidators, IdTokenClaims, JWTAssertionClaims, OidcCallbackParams, Permission as PermissionType, RegisterIAMAppPayload, RegisterSSOAppPayload, Resource as ResourceType, Role as RoleType, ScimUser, SSOAppValidators, TenantResponse, TokenResponse, UpdateTenantRequest, WorkloadTokenResponse } from "@ionite/core";
1
+ import { ApplicationValidators, AuthzEntityBase as AuthzEntityBaseType, Group as AuthzGroupType, BaseCustomer as BaseCustomerType, BaseTenant as BaseTenantType, BaseUser as BaseUserType, CreateTenantRequest, GroupResource, IAMAppValidators, IdTokenClaims, JWTAssertionClaims, OidcCallbackParams, Permission as PermissionType, RegisterIAMAppPayload, RegisterSSOAppPayload, Resource as ResourceType, Role as RoleType, ScimUser, SSOAppValidators, TenantConfigLocator, TenantResponse, TokenResponse, UpdateTenantRequest, WorkloadTokenResponse } from "@ionite/core";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
  import * as v from "valibot";
4
4
  /**
@@ -21,18 +21,38 @@ declare const BaseCustomer: StandardSchemaV1<unknown, BaseCustomerType>;
21
21
  * a pointer that resolves against secrets sources declared on the root Ionite; it carries no connection
22
22
  * details or credentials.
23
23
  */
24
- declare const TenantConfigLocatorSchema: unknown;
24
+ declare const TenantConfigLocatorSchema: v.GenericSchema<TenantConfigLocator>;
25
25
  declare const BaseTenant: StandardSchemaV1<unknown, BaseTenantType>;
26
+ type BaseTenantCreateRequestEntries = {
27
+ id: v.GenericSchema<string>;
28
+ companyId: v.GenericSchema<string>;
29
+ companyName: v.GenericSchema<string>;
30
+ environmentType: v.GenericSchema<CreateTenantRequest["environmentType"]>;
31
+ configLocator: v.GenericSchema<TenantConfigLocator>;
32
+ email: v.OptionalSchema<v.GenericSchema<string>, undefined>;
33
+ webhookUrl: v.OptionalSchema<v.GenericSchema<string>, undefined>;
34
+ callbackUrl: v.OptionalSchema<v.GenericSchema<string>, undefined>;
35
+ };
26
36
  /**
27
- * Base tenant create-request shape (`POST`). Kept as a `v.object` (not cast) so `createTenantRequest`
28
- * can read its `.entries` to build an extended schema.
37
+ * Base tenant create-request shape (`POST`). Kept as a `v.object` (not cast to StandardSchema) so
38
+ * `createTenantRequest` can read its `.entries` to build an extended schema.
29
39
  */
30
- declare const BaseTenantCreateRequestSchema: unknown;
40
+ declare const BaseTenantCreateRequestSchema: v.ObjectSchema<BaseTenantCreateRequestEntries, undefined>;
41
+ type BaseTenantUpdateRequestEntries = {
42
+ id: v.OptionalSchema<v.GenericSchema<string>, undefined>;
43
+ companyId: v.OptionalSchema<v.GenericSchema<string>, undefined>;
44
+ companyName: v.OptionalSchema<v.GenericSchema<string>, undefined>;
45
+ environmentType: v.OptionalSchema<v.GenericSchema<UpdateTenantRequest["environmentType"]>, undefined>;
46
+ configLocator: v.OptionalSchema<v.GenericSchema<TenantConfigLocator>, undefined>;
47
+ email: v.OptionalSchema<v.GenericSchema<string>, undefined>;
48
+ webhookUrl: v.OptionalSchema<v.GenericSchema<string>, undefined>;
49
+ callbackUrl: v.OptionalSchema<v.GenericSchema<string>, undefined>;
50
+ };
31
51
  /**
32
52
  * Base tenant update-request shape (`PUT`). Every field is optional; omitted fields are preserved
33
53
  * from the stored record.
34
54
  */
35
- declare const BaseTenantUpdateRequestSchema: unknown;
55
+ declare const BaseTenantUpdateRequestSchema: v.ObjectSchema<BaseTenantUpdateRequestEntries, undefined>;
36
56
  /**
37
57
  * Individual Valibot schema factories for custom usage
38
58
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionite/valibot",
3
- "version": "0.0.23-beta.20260809.2",
3
+ "version": "0.0.23-beta.20260812.3",
4
4
  "description": "Valibot validators for ionite (SSO, IAM, workload, tenant, CIAM)",
5
5
  "type": "module",
6
6
  "engines": {
@@ -9,7 +9,7 @@
9
9
  "author": "ionite",
10
10
  "license": "Proprietary",
11
11
  "dependencies": {
12
- "@ionite/core": "0.0.23-beta.20260809.2",
12
+ "@ionite/core": "0.0.23-beta.20260812.3",
13
13
  "@standard-schema/spec": "^1.1.0",
14
14
  "valibot": "^1.4.2"
15
15
  },