@eva_solutions/auth-sdk 0.0.0-stage → 3.0.0-dev-20261107051125
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/CHANGELOG.md +290 -0
- package/LICENSE +21 -0
- package/README.md +481 -2
- package/dist/admin/index.cjs +4 -0
- package/dist/admin/index.d.cts +2 -0
- package/dist/admin/index.d.ts +2 -0
- package/dist/admin/index.js +1 -0
- package/dist/admin-DjvuvuI8.js +408 -0
- package/dist/admin-DjvuvuI8.js.map +1 -0
- package/dist/admin-Q6lbWqLM.cjs +419 -0
- package/dist/admin-Q6lbWqLM.cjs.map +1 -0
- package/dist/api-path-2Ulruz7R.cjs +34 -0
- package/dist/api-path-2Ulruz7R.cjs.map +1 -0
- package/dist/api-path-B-vSkL2H.js +29 -0
- package/dist/api-path-B-vSkL2H.js.map +1 -0
- package/dist/auth-19r-Q6X2.js +84 -0
- package/dist/auth-19r-Q6X2.js.map +1 -0
- package/dist/auth-DX1N5JA4.cjs +131 -0
- package/dist/auth-DX1N5JA4.cjs.map +1 -0
- package/dist/auth-handlers-B3iJaPln.js +343 -0
- package/dist/auth-handlers-B3iJaPln.js.map +1 -0
- package/dist/auth-handlers-BTbXKJms.d.ts +15 -0
- package/dist/auth-handlers-BTbXKJms.d.ts.map +1 -0
- package/dist/auth-handlers-CDzGFDTu.cjs +404 -0
- package/dist/auth-handlers-CDzGFDTu.cjs.map +1 -0
- package/dist/auth-handlers-DRUUTEtW.d.cts +15 -0
- package/dist/auth-handlers-DRUUTEtW.d.cts.map +1 -0
- package/dist/catalog-CHPqldcj.cjs +172 -0
- package/dist/catalog-CHPqldcj.cjs.map +1 -0
- package/dist/catalog-CIqpzgsM.d.cts +75 -0
- package/dist/catalog-CIqpzgsM.d.cts.map +1 -0
- package/dist/catalog-CIqpzgsM.d.ts +75 -0
- package/dist/catalog-CIqpzgsM.d.ts.map +1 -0
- package/dist/catalog-DqPhtCKZ.js +95 -0
- package/dist/catalog-DqPhtCKZ.js.map +1 -0
- package/dist/config-D6Tr7ev6.d.cts +95 -0
- package/dist/config-D6Tr7ev6.d.cts.map +1 -0
- package/dist/config-rl4_-VAq.d.ts +95 -0
- package/dist/config-rl4_-VAq.d.ts.map +1 -0
- package/dist/constants-BE1_9Tod.cjs +52 -0
- package/dist/constants-BE1_9Tod.cjs.map +1 -0
- package/dist/constants-BY7QZokc.js +29 -0
- package/dist/constants-BY7QZokc.js.map +1 -0
- package/dist/constants-CcbhOaAP.cjs +153 -0
- package/dist/constants-CcbhOaAP.cjs.map +1 -0
- package/dist/constants-rNuD5qJn.js +94 -0
- package/dist/constants-rNuD5qJn.js.map +1 -0
- package/dist/contracts/index.cjs +1006 -0
- package/dist/contracts/index.cjs.map +1 -0
- package/dist/contracts/index.d.cts +488 -0
- package/dist/contracts/index.d.cts.map +1 -0
- package/dist/contracts/index.d.ts +488 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +817 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/cookies-DCIcr7uy.cjs +94 -0
- package/dist/cookies-DCIcr7uy.cjs.map +1 -0
- package/dist/cookies-DKEC7AWv.js +71 -0
- package/dist/cookies-DKEC7AWv.js.map +1 -0
- package/dist/delegated-token-CVNbMNfy.js +426 -0
- package/dist/delegated-token-CVNbMNfy.js.map +1 -0
- package/dist/delegated-token-DHSK4rHI.cjs +461 -0
- package/dist/delegated-token-DHSK4rHI.cjs.map +1 -0
- package/dist/error-helpers-BenWu-_u.d.ts +105 -0
- package/dist/error-helpers-BenWu-_u.d.ts.map +1 -0
- package/dist/error-helpers-KBHUbkOM.d.cts +105 -0
- package/dist/error-helpers-KBHUbkOM.d.cts.map +1 -0
- package/dist/error-helpers-XCh4ZJ-g.cjs +282 -0
- package/dist/error-helpers-XCh4ZJ-g.cjs.map +1 -0
- package/dist/error-helpers-lnwgNOw9.js +145 -0
- package/dist/error-helpers-lnwgNOw9.js.map +1 -0
- package/dist/error-messages-CGpW1fsg.d.cts +48 -0
- package/dist/error-messages-CGpW1fsg.d.cts.map +1 -0
- package/dist/error-messages-CGpW1fsg.d.ts +48 -0
- package/dist/error-messages-CGpW1fsg.d.ts.map +1 -0
- package/dist/event-codes-BBJHon-I.cjs +48 -0
- package/dist/event-codes-BBJHon-I.cjs.map +1 -0
- package/dist/event-codes-BgcJWsov.d.cts +42 -0
- package/dist/event-codes-BgcJWsov.d.cts.map +1 -0
- package/dist/event-codes-BgcJWsov.d.ts +42 -0
- package/dist/event-codes-BgcJWsov.d.ts.map +1 -0
- package/dist/event-codes-DR5_VlaR.js +43 -0
- package/dist/event-codes-DR5_VlaR.js.map +1 -0
- package/dist/generic/index.cjs +91 -0
- package/dist/generic/index.cjs.map +1 -0
- package/dist/generic/index.d.cts +27 -0
- package/dist/generic/index.d.cts.map +1 -0
- package/dist/generic/index.d.ts +27 -0
- package/dist/generic/index.d.ts.map +1 -0
- package/dist/generic/index.js +80 -0
- package/dist/generic/index.js.map +1 -0
- package/dist/hono/index.cjs +309 -0
- package/dist/hono/index.cjs.map +1 -0
- package/dist/hono/index.d.cts +272 -0
- package/dist/hono/index.d.cts.map +1 -0
- package/dist/hono/index.d.ts +272 -0
- package/dist/hono/index.d.ts.map +1 -0
- package/dist/hono/index.js +290 -0
- package/dist/hono/index.js.map +1 -0
- package/dist/hono-openapi/index.cjs +326 -0
- package/dist/hono-openapi/index.cjs.map +1 -0
- package/dist/hono-openapi/index.d.cts +14 -0
- package/dist/hono-openapi/index.d.cts.map +1 -0
- package/dist/hono-openapi/index.d.ts +14 -0
- package/dist/hono-openapi/index.d.ts.map +1 -0
- package/dist/hono-openapi/index.js +307 -0
- package/dist/hono-openapi/index.js.map +1 -0
- package/dist/http-client-BVF3iktR.cjs +211 -0
- package/dist/http-client-BVF3iktR.cjs.map +1 -0
- package/dist/http-client-Da0-OMfc.js +206 -0
- package/dist/http-client-Da0-OMfc.js.map +1 -0
- package/dist/index-BYzDaMR9.d.ts +312 -0
- package/dist/index-BYzDaMR9.d.ts.map +1 -0
- package/dist/index-CNNMCrdl.d.ts +66 -0
- package/dist/index-CNNMCrdl.d.ts.map +1 -0
- package/dist/index-DBZoLU4E.d.ts +240 -0
- package/dist/index-DBZoLU4E.d.ts.map +1 -0
- package/dist/index-DcvQWByo.d.cts +66 -0
- package/dist/index-DcvQWByo.d.cts.map +1 -0
- package/dist/index-Dold-Ycb.d.cts +1711 -0
- package/dist/index-Dold-Ycb.d.cts.map +1 -0
- package/dist/index-Dold-Ycb.d.ts +1711 -0
- package/dist/index-Dold-Ycb.d.ts.map +1 -0
- package/dist/index-jAO62-OD.d.cts +240 -0
- package/dist/index-jAO62-OD.d.cts.map +1 -0
- package/dist/index-o7nXcl7z.d.cts +312 -0
- package/dist/index-o7nXcl7z.d.cts.map +1 -0
- package/dist/index.cjs +89 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +114 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +114 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/jwt-BBNqk0TV.cjs +155 -0
- package/dist/jwt-BBNqk0TV.cjs.map +1 -0
- package/dist/jwt-DhqgH94B.js +150 -0
- package/dist/jwt-DhqgH94B.js.map +1 -0
- package/dist/key-resolver-CESqj4-P.cjs +45 -0
- package/dist/key-resolver-CESqj4-P.cjs.map +1 -0
- package/dist/key-resolver-D56I2Zpz.js +34 -0
- package/dist/key-resolver-D56I2Zpz.js.map +1 -0
- package/dist/parse-error-response-6qOQS5y9.cjs +316 -0
- package/dist/parse-error-response-6qOQS5y9.cjs.map +1 -0
- package/dist/parse-error-response-BM9-kjs0.js +239 -0
- package/dist/parse-error-response-BM9-kjs0.js.map +1 -0
- package/dist/path-segment-C25i6aaH.cjs +29 -0
- package/dist/path-segment-C25i6aaH.cjs.map +1 -0
- package/dist/path-segment-CyqnaFrP.js +24 -0
- package/dist/path-segment-CyqnaFrP.js.map +1 -0
- package/dist/react/index.cjs +336 -0
- package/dist/react/index.cjs.map +1 -0
- package/dist/react/index.d.cts +151 -0
- package/dist/react/index.d.cts.map +1 -0
- package/dist/react/index.d.ts +151 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +300 -0
- package/dist/react/index.js.map +1 -0
- package/dist/refresh-dedup-CKaHHe7m.js +14 -0
- package/dist/refresh-dedup-CKaHHe7m.js.map +1 -0
- package/dist/refresh-dedup-CLdACQXR.cjs +19 -0
- package/dist/refresh-dedup-CLdACQXR.cjs.map +1 -0
- package/dist/rolldown-runtime-CmQyd0Gu.cjs +27 -0
- package/dist/routes-DpAzgY1V.cjs +424 -0
- package/dist/routes-DpAzgY1V.cjs.map +1 -0
- package/dist/routes-F1g5aVqP.js +347 -0
- package/dist/routes-F1g5aVqP.js.map +1 -0
- package/dist/s2s/index.cjs +24 -0
- package/dist/s2s/index.d.cts +5 -0
- package/dist/s2s/index.d.ts +5 -0
- package/dist/s2s/index.js +5 -0
- package/dist/s2s-6wbotr78.cjs +926 -0
- package/dist/s2s-6wbotr78.cjs.map +1 -0
- package/dist/s2s-B_0SIQzn.js +897 -0
- package/dist/s2s-B_0SIQzn.js.map +1 -0
- package/dist/sign-C7y6xdvT.cjs +324 -0
- package/dist/sign-C7y6xdvT.cjs.map +1 -0
- package/dist/sign-HFtcYwa-.js +259 -0
- package/dist/sign-HFtcYwa-.js.map +1 -0
- package/dist/tokens-C1nzkn21.cjs +232 -0
- package/dist/tokens-C1nzkn21.cjs.map +1 -0
- package/dist/tokens-C3Z40qd7.js +107 -0
- package/dist/tokens-C3Z40qd7.js.map +1 -0
- package/dist/types-B5sf7kKE.d.cts +52 -0
- package/dist/types-B5sf7kKE.d.cts.map +1 -0
- package/dist/types-CLOIHzRu.d.ts +96 -0
- package/dist/types-CLOIHzRu.d.ts.map +1 -0
- package/dist/types-CQTZdZIF.d.ts +52 -0
- package/dist/types-CQTZdZIF.d.ts.map +1 -0
- package/dist/types-DGeQ8j4k.d.cts +538 -0
- package/dist/types-DGeQ8j4k.d.cts.map +1 -0
- package/dist/types-DIUWza9-.d.ts +538 -0
- package/dist/types-DIUWza9-.d.ts.map +1 -0
- package/dist/types-qh6ANBCV.d.cts +96 -0
- package/dist/types-qh6ANBCV.d.cts.map +1 -0
- package/dist/webhooks/index.cjs +8 -0
- package/dist/webhooks/index.d.cts +5 -0
- package/dist/webhooks/index.d.ts +5 -0
- package/dist/webhooks/index.js +4 -0
- package/dist/webhooks-B5sAWC9W.js +74 -0
- package/dist/webhooks-B5sAWC9W.js.map +1 -0
- package/dist/webhooks-Cx11psg1.cjs +79 -0
- package/dist/webhooks-Cx11psg1.cjs.map +1 -0
- package/package.json +192 -3
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
// ../auth-contracts/dist/routes.js
|
|
2
|
+
/**
|
|
3
|
+
* PURE module: it must never reference `zod` or any schema module of this package (see
|
|
4
|
+
* `constants.ts`). Routes are plain data.
|
|
5
|
+
*/
|
|
6
|
+
/** Version prefix of every Auth route except the root ones (JWKS, health, docs UI). */
|
|
7
|
+
const API_PREFIX = "/api/v1";
|
|
8
|
+
/** Routes of the authenticated user profile. Relative to {@link API_PREFIX}. */
|
|
9
|
+
const USER_ROUTES = {
|
|
10
|
+
get: {
|
|
11
|
+
method: "get",
|
|
12
|
+
path: "/user"
|
|
13
|
+
},
|
|
14
|
+
update: {
|
|
15
|
+
method: "patch",
|
|
16
|
+
path: "/user"
|
|
17
|
+
},
|
|
18
|
+
deactivate: {
|
|
19
|
+
method: "delete",
|
|
20
|
+
path: "/user"
|
|
21
|
+
},
|
|
22
|
+
listCompanies: {
|
|
23
|
+
method: "get",
|
|
24
|
+
path: "/user/empresas"
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
/** Routes of the authenticated user sessions. Relative to {@link API_PREFIX}. */
|
|
28
|
+
const SESSION_ROUTES = {
|
|
29
|
+
list: {
|
|
30
|
+
method: "get",
|
|
31
|
+
path: "/sessions"
|
|
32
|
+
},
|
|
33
|
+
deleteOne: {
|
|
34
|
+
method: "delete",
|
|
35
|
+
path: "/sessions/{id}"
|
|
36
|
+
},
|
|
37
|
+
deleteAll: {
|
|
38
|
+
method: "delete",
|
|
39
|
+
path: "/sessions"
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
/** Service-to-service user lookups. Relative to {@link API_PREFIX}. */
|
|
43
|
+
const INTERNAL_USER_ROUTES = {
|
|
44
|
+
get: {
|
|
45
|
+
method: "get",
|
|
46
|
+
path: "/internal/users/{id}"
|
|
47
|
+
},
|
|
48
|
+
batch: {
|
|
49
|
+
method: "post",
|
|
50
|
+
path: "/internal/users/batch"
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Service token endpoint. The only service-to-service route that authenticates with the signed
|
|
55
|
+
* request of the service client. Relative to {@link API_PREFIX}.
|
|
56
|
+
*/
|
|
57
|
+
const INTERNAL_TOKEN_ROUTES = { issue: {
|
|
58
|
+
method: "post",
|
|
59
|
+
path: "/internal/token"
|
|
60
|
+
} };
|
|
61
|
+
/**
|
|
62
|
+
* Token exchange (RFC 8693). Authenticated with the Bearer service token of the actor
|
|
63
|
+
* (`aud: auth-api`, permission `tokens:exchange`), not with the signed request. Relative to
|
|
64
|
+
* {@link API_PREFIX}.
|
|
65
|
+
*/
|
|
66
|
+
const INTERNAL_TOKEN_EXCHANGE_ROUTES = { exchange: {
|
|
67
|
+
method: "post",
|
|
68
|
+
path: "/internal/token-exchange"
|
|
69
|
+
} };
|
|
70
|
+
/**
|
|
71
|
+
* Companies, branches, members, contracts and authorizations, service-to-service (Bearer service
|
|
72
|
+
* token plus, where a person acts, the `subjectToken`). Relative to {@link API_PREFIX}.
|
|
73
|
+
*/
|
|
74
|
+
const INTERNAL_EMPRESA_ROUTES = {
|
|
75
|
+
create: {
|
|
76
|
+
method: "post",
|
|
77
|
+
path: "/internal/empresas"
|
|
78
|
+
},
|
|
79
|
+
list: {
|
|
80
|
+
method: "get",
|
|
81
|
+
path: "/internal/empresas"
|
|
82
|
+
},
|
|
83
|
+
get: {
|
|
84
|
+
method: "get",
|
|
85
|
+
path: "/internal/empresas/{id}"
|
|
86
|
+
},
|
|
87
|
+
update: {
|
|
88
|
+
method: "patch",
|
|
89
|
+
path: "/internal/empresas/{id}"
|
|
90
|
+
},
|
|
91
|
+
baja: {
|
|
92
|
+
method: "post",
|
|
93
|
+
path: "/internal/empresas/{id}/baja"
|
|
94
|
+
},
|
|
95
|
+
reactivar: {
|
|
96
|
+
method: "post",
|
|
97
|
+
path: "/internal/empresas/{id}/reactivar"
|
|
98
|
+
},
|
|
99
|
+
addMember: {
|
|
100
|
+
method: "post",
|
|
101
|
+
path: "/internal/empresas/{id}/miembros"
|
|
102
|
+
},
|
|
103
|
+
updateMember: {
|
|
104
|
+
method: "patch",
|
|
105
|
+
path: "/internal/empresas/{id}/miembros/{userId}"
|
|
106
|
+
},
|
|
107
|
+
removeMember: {
|
|
108
|
+
method: "delete",
|
|
109
|
+
path: "/internal/empresas/{id}/miembros/{userId}"
|
|
110
|
+
},
|
|
111
|
+
createBranch: {
|
|
112
|
+
method: "post",
|
|
113
|
+
path: "/internal/empresas/{id}/sucursales"
|
|
114
|
+
},
|
|
115
|
+
updateBranch: {
|
|
116
|
+
method: "patch",
|
|
117
|
+
path: "/internal/empresas/{id}/sucursales/{sucursalId}"
|
|
118
|
+
},
|
|
119
|
+
deactivateBranch: {
|
|
120
|
+
method: "delete",
|
|
121
|
+
path: "/internal/empresas/{id}/sucursales/{sucursalId}"
|
|
122
|
+
},
|
|
123
|
+
requestContratacion: {
|
|
124
|
+
method: "post",
|
|
125
|
+
path: "/internal/empresas/{id}/productos"
|
|
126
|
+
},
|
|
127
|
+
cancelContratacion: {
|
|
128
|
+
method: "delete",
|
|
129
|
+
path: "/internal/empresas/{id}/productos"
|
|
130
|
+
},
|
|
131
|
+
getContratacion: {
|
|
132
|
+
method: "get",
|
|
133
|
+
path: "/internal/empresas/{id}/productos/{producto}"
|
|
134
|
+
},
|
|
135
|
+
setContratacion: {
|
|
136
|
+
method: "put",
|
|
137
|
+
path: "/internal/empresas/{id}/productos/{producto}"
|
|
138
|
+
},
|
|
139
|
+
createAutorizacion: {
|
|
140
|
+
method: "post",
|
|
141
|
+
path: "/internal/empresas/{id}/autorizaciones"
|
|
142
|
+
},
|
|
143
|
+
listAutorizaciones: {
|
|
144
|
+
method: "get",
|
|
145
|
+
path: "/internal/empresas/{id}/autorizaciones"
|
|
146
|
+
},
|
|
147
|
+
deleteAutorizacion: {
|
|
148
|
+
method: "delete",
|
|
149
|
+
path: "/internal/empresas/{id}/autorizaciones/{autorizacionId}"
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
/** Groups of companies, service-to-service. Relative to {@link API_PREFIX}. */
|
|
153
|
+
const INTERNAL_GRUPO_ROUTES = {
|
|
154
|
+
create: {
|
|
155
|
+
method: "post",
|
|
156
|
+
path: "/internal/grupos"
|
|
157
|
+
},
|
|
158
|
+
rename: {
|
|
159
|
+
method: "patch",
|
|
160
|
+
path: "/internal/grupos/{id}"
|
|
161
|
+
},
|
|
162
|
+
addEmpresa: {
|
|
163
|
+
method: "post",
|
|
164
|
+
path: "/internal/grupos/{id}/empresas"
|
|
165
|
+
},
|
|
166
|
+
removeEmpresa: {
|
|
167
|
+
method: "delete",
|
|
168
|
+
path: "/internal/grupos/{id}/empresas/{empresaId}"
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Authorization check, service-to-service: only for actors whose audience owns the permission
|
|
173
|
+
* (the actor may also have a product). Relative to {@link API_PREFIX}.
|
|
174
|
+
*/
|
|
175
|
+
const INTERNAL_AUTORIZACION_ROUTES = { verificar: {
|
|
176
|
+
method: "get",
|
|
177
|
+
path: "/internal/autorizaciones/verificar"
|
|
178
|
+
} };
|
|
179
|
+
/**
|
|
180
|
+
* Directory of companies: users with the access token of any enabled product, and services with
|
|
181
|
+
* `directorio:leer`. Relative to {@link API_PREFIX}.
|
|
182
|
+
*/
|
|
183
|
+
const DIRECTORIO_ROUTES = { search: {
|
|
184
|
+
method: "get",
|
|
185
|
+
path: "/directorio"
|
|
186
|
+
} };
|
|
187
|
+
/**
|
|
188
|
+
* Webhook subscription and delivery routes of the service-to-service surface. Relative to
|
|
189
|
+
* {@link API_PREFIX}.
|
|
190
|
+
*/
|
|
191
|
+
const WEBHOOK_ROUTES = {
|
|
192
|
+
createSubscription: {
|
|
193
|
+
method: "post",
|
|
194
|
+
path: "/internal/webhooks/subscriptions"
|
|
195
|
+
},
|
|
196
|
+
listSubscriptions: {
|
|
197
|
+
method: "get",
|
|
198
|
+
path: "/internal/webhooks/subscriptions"
|
|
199
|
+
},
|
|
200
|
+
getSubscription: {
|
|
201
|
+
method: "get",
|
|
202
|
+
path: "/internal/webhooks/subscriptions/{id}"
|
|
203
|
+
},
|
|
204
|
+
updateSubscription: {
|
|
205
|
+
method: "patch",
|
|
206
|
+
path: "/internal/webhooks/subscriptions/{id}"
|
|
207
|
+
},
|
|
208
|
+
deleteSubscription: {
|
|
209
|
+
method: "delete",
|
|
210
|
+
path: "/internal/webhooks/subscriptions/{id}"
|
|
211
|
+
},
|
|
212
|
+
rotateSubscriptionSecret: {
|
|
213
|
+
method: "post",
|
|
214
|
+
path: "/internal/webhooks/subscriptions/{id}/rotate-secret"
|
|
215
|
+
},
|
|
216
|
+
listDeliveries: {
|
|
217
|
+
method: "get",
|
|
218
|
+
path: "/internal/webhooks/deliveries"
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Admin routes: service client provisioning (grants, delegations), products, company holder/baja/contract operations, user restore, webhook delivery republish and maintenance cleanup. Relative to {@link API_PREFIX}.
|
|
223
|
+
*/
|
|
224
|
+
const ADMIN_ROUTES = {
|
|
225
|
+
createServiceClient: {
|
|
226
|
+
method: "post",
|
|
227
|
+
path: "/admin/service-clients"
|
|
228
|
+
},
|
|
229
|
+
listServiceClients: {
|
|
230
|
+
method: "get",
|
|
231
|
+
path: "/admin/service-clients"
|
|
232
|
+
},
|
|
233
|
+
getServiceClient: {
|
|
234
|
+
method: "get",
|
|
235
|
+
path: "/admin/service-clients/{slug}"
|
|
236
|
+
},
|
|
237
|
+
updateServiceClient: {
|
|
238
|
+
method: "patch",
|
|
239
|
+
path: "/admin/service-clients/{slug}"
|
|
240
|
+
},
|
|
241
|
+
deleteServiceClient: {
|
|
242
|
+
method: "delete",
|
|
243
|
+
path: "/admin/service-clients/{slug}"
|
|
244
|
+
},
|
|
245
|
+
rotateServiceClientSecret: {
|
|
246
|
+
method: "post",
|
|
247
|
+
path: "/admin/service-clients/{slug}/rotate-secret"
|
|
248
|
+
},
|
|
249
|
+
listServiceClientGrants: {
|
|
250
|
+
method: "get",
|
|
251
|
+
path: "/admin/service-clients/{slug}/grants"
|
|
252
|
+
},
|
|
253
|
+
setServiceClientGrant: {
|
|
254
|
+
method: "put",
|
|
255
|
+
path: "/admin/service-clients/{slug}/grants"
|
|
256
|
+
},
|
|
257
|
+
deleteServiceClientGrant: {
|
|
258
|
+
method: "delete",
|
|
259
|
+
path: "/admin/service-clients/{slug}/grants/{audience}"
|
|
260
|
+
},
|
|
261
|
+
listServiceClientDelegations: {
|
|
262
|
+
method: "get",
|
|
263
|
+
path: "/admin/service-clients/{slug}/delegations"
|
|
264
|
+
},
|
|
265
|
+
setServiceClientDelegation: {
|
|
266
|
+
method: "put",
|
|
267
|
+
path: "/admin/service-clients/{slug}/delegations"
|
|
268
|
+
},
|
|
269
|
+
deleteServiceClientDelegation: {
|
|
270
|
+
method: "delete",
|
|
271
|
+
path: "/admin/service-clients/{slug}/delegations/{audience}"
|
|
272
|
+
},
|
|
273
|
+
listProductos: {
|
|
274
|
+
method: "get",
|
|
275
|
+
path: "/admin/productos"
|
|
276
|
+
},
|
|
277
|
+
createProducto: {
|
|
278
|
+
method: "post",
|
|
279
|
+
path: "/admin/productos"
|
|
280
|
+
},
|
|
281
|
+
updateProducto: {
|
|
282
|
+
method: "patch",
|
|
283
|
+
path: "/admin/productos/{slug}"
|
|
284
|
+
},
|
|
285
|
+
getProductoPermisosAutorizables: {
|
|
286
|
+
method: "get",
|
|
287
|
+
path: "/admin/productos/{slug}/permisos-autorizables"
|
|
288
|
+
},
|
|
289
|
+
setProductoPermisosAutorizables: {
|
|
290
|
+
method: "put",
|
|
291
|
+
path: "/admin/productos/{slug}/permisos-autorizables"
|
|
292
|
+
},
|
|
293
|
+
reassignEmpresaTitular: {
|
|
294
|
+
method: "post",
|
|
295
|
+
path: "/admin/empresas/{id}/titular"
|
|
296
|
+
},
|
|
297
|
+
bajaEmpresa: {
|
|
298
|
+
method: "post",
|
|
299
|
+
path: "/admin/empresas/{id}/baja"
|
|
300
|
+
},
|
|
301
|
+
reactivarEmpresa: {
|
|
302
|
+
method: "post",
|
|
303
|
+
path: "/admin/empresas/{id}/reactivar"
|
|
304
|
+
},
|
|
305
|
+
setContratacion: {
|
|
306
|
+
method: "put",
|
|
307
|
+
path: "/admin/empresas/{id}/productos/{producto}"
|
|
308
|
+
},
|
|
309
|
+
restoreUser: {
|
|
310
|
+
method: "post",
|
|
311
|
+
path: "/admin/users/{id}/restore"
|
|
312
|
+
},
|
|
313
|
+
republishPendingWebhooks: {
|
|
314
|
+
method: "post",
|
|
315
|
+
path: "/admin/webhooks/republish-pending"
|
|
316
|
+
},
|
|
317
|
+
maintenanceCleanup: {
|
|
318
|
+
method: "post",
|
|
319
|
+
path: "/admin/maintenance/cleanup"
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
/** Login, refresh, logout and active company routes. Relative to {@link API_PREFIX}. */
|
|
323
|
+
const AUTH_ROUTES = {
|
|
324
|
+
getCode: {
|
|
325
|
+
method: "post",
|
|
326
|
+
path: "/login/get-code"
|
|
327
|
+
},
|
|
328
|
+
login: {
|
|
329
|
+
method: "post",
|
|
330
|
+
path: "/login"
|
|
331
|
+
},
|
|
332
|
+
refresh: {
|
|
333
|
+
method: "post",
|
|
334
|
+
path: "/login/refresh"
|
|
335
|
+
},
|
|
336
|
+
logout: {
|
|
337
|
+
method: "post",
|
|
338
|
+
path: "/login/logout"
|
|
339
|
+
},
|
|
340
|
+
setActiveEmpresa: {
|
|
341
|
+
method: "post",
|
|
342
|
+
path: "/auth/empresa-activa"
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
export { INTERNAL_AUTORIZACION_ROUTES as a, INTERNAL_TOKEN_EXCHANGE_ROUTES as c, SESSION_ROUTES as d, USER_ROUTES as f, DIRECTORIO_ROUTES as i, INTERNAL_TOKEN_ROUTES as l, API_PREFIX as n, INTERNAL_EMPRESA_ROUTES as o, WEBHOOK_ROUTES as p, AUTH_ROUTES as r, INTERNAL_GRUPO_ROUTES as s, ADMIN_ROUTES as t, INTERNAL_USER_ROUTES as u };
|
|
346
|
+
|
|
347
|
+
//# sourceMappingURL=routes-F1g5aVqP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes-F1g5aVqP.js","names":[],"sources":["../../auth-contracts/dist/routes.js"],"sourcesContent":["// src/routes.ts\n/**\n* PURE module: it must never reference `zod` or any schema module of this package (see\n* `constants.ts`). Routes are plain data.\n*/\n/** Version prefix of every Auth route except the root ones (JWKS, health, docs UI). */\nconst API_PREFIX = \"/api/v1\";\n/** Routes of the authenticated user profile. Relative to {@link API_PREFIX}. */\nconst USER_ROUTES = {\n\tget: {\n\t\tmethod: \"get\",\n\t\tpath: \"/user\"\n\t},\n\tupdate: {\n\t\tmethod: \"patch\",\n\t\tpath: \"/user\"\n\t},\n\tdeactivate: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/user\"\n\t},\n\tlistCompanies: {\n\t\tmethod: \"get\",\n\t\tpath: \"/user/empresas\"\n\t}\n};\n/** Routes of the authenticated user sessions. Relative to {@link API_PREFIX}. */\nconst SESSION_ROUTES = {\n\tlist: {\n\t\tmethod: \"get\",\n\t\tpath: \"/sessions\"\n\t},\n\tdeleteOne: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/sessions/{id}\"\n\t},\n\tdeleteAll: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/sessions\"\n\t}\n};\n/** Service-to-service user lookups. Relative to {@link API_PREFIX}. */\nconst INTERNAL_USER_ROUTES = {\n\tget: {\n\t\tmethod: \"get\",\n\t\tpath: \"/internal/users/{id}\"\n\t},\n\tbatch: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/users/batch\"\n\t}\n};\n/**\n* Service token endpoint. The only service-to-service route that authenticates with the signed\n* request of the service client. Relative to {@link API_PREFIX}.\n*/\nconst INTERNAL_TOKEN_ROUTES = { issue: {\n\tmethod: \"post\",\n\tpath: \"/internal/token\"\n} };\n/**\n* Token exchange (RFC 8693). Authenticated with the Bearer service token of the actor\n* (`aud: auth-api`, permission `tokens:exchange`), not with the signed request. Relative to\n* {@link API_PREFIX}.\n*/\nconst INTERNAL_TOKEN_EXCHANGE_ROUTES = { exchange: {\n\tmethod: \"post\",\n\tpath: \"/internal/token-exchange\"\n} };\n/**\n* Companies, branches, members, contracts and authorizations, service-to-service (Bearer service\n* token plus, where a person acts, the `subjectToken`). Relative to {@link API_PREFIX}.\n*/\nconst INTERNAL_EMPRESA_ROUTES = {\n\tcreate: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/empresas\"\n\t},\n\tlist: {\n\t\tmethod: \"get\",\n\t\tpath: \"/internal/empresas\"\n\t},\n\tget: {\n\t\tmethod: \"get\",\n\t\tpath: \"/internal/empresas/{id}\"\n\t},\n\tupdate: {\n\t\tmethod: \"patch\",\n\t\tpath: \"/internal/empresas/{id}\"\n\t},\n\tbaja: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/empresas/{id}/baja\"\n\t},\n\treactivar: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/empresas/{id}/reactivar\"\n\t},\n\taddMember: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/empresas/{id}/miembros\"\n\t},\n\tupdateMember: {\n\t\tmethod: \"patch\",\n\t\tpath: \"/internal/empresas/{id}/miembros/{userId}\"\n\t},\n\tremoveMember: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/internal/empresas/{id}/miembros/{userId}\"\n\t},\n\tcreateBranch: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/empresas/{id}/sucursales\"\n\t},\n\tupdateBranch: {\n\t\tmethod: \"patch\",\n\t\tpath: \"/internal/empresas/{id}/sucursales/{sucursalId}\"\n\t},\n\tdeactivateBranch: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/internal/empresas/{id}/sucursales/{sucursalId}\"\n\t},\n\trequestContratacion: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/empresas/{id}/productos\"\n\t},\n\tcancelContratacion: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/internal/empresas/{id}/productos\"\n\t},\n\tgetContratacion: {\n\t\tmethod: \"get\",\n\t\tpath: \"/internal/empresas/{id}/productos/{producto}\"\n\t},\n\tsetContratacion: {\n\t\tmethod: \"put\",\n\t\tpath: \"/internal/empresas/{id}/productos/{producto}\"\n\t},\n\tcreateAutorizacion: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/empresas/{id}/autorizaciones\"\n\t},\n\tlistAutorizaciones: {\n\t\tmethod: \"get\",\n\t\tpath: \"/internal/empresas/{id}/autorizaciones\"\n\t},\n\tdeleteAutorizacion: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/internal/empresas/{id}/autorizaciones/{autorizacionId}\"\n\t}\n};\n/** Groups of companies, service-to-service. Relative to {@link API_PREFIX}. */\nconst INTERNAL_GRUPO_ROUTES = {\n\tcreate: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/grupos\"\n\t},\n\trename: {\n\t\tmethod: \"patch\",\n\t\tpath: \"/internal/grupos/{id}\"\n\t},\n\taddEmpresa: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/grupos/{id}/empresas\"\n\t},\n\tremoveEmpresa: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/internal/grupos/{id}/empresas/{empresaId}\"\n\t}\n};\n/**\n* Authorization check, service-to-service: only for actors whose audience owns the permission\n* (the actor may also have a product). Relative to {@link API_PREFIX}.\n*/\nconst INTERNAL_AUTORIZACION_ROUTES = { verificar: {\n\tmethod: \"get\",\n\tpath: \"/internal/autorizaciones/verificar\"\n} };\n/**\n* Directory of companies: users with the access token of any enabled product, and services with\n* `directorio:leer`. Relative to {@link API_PREFIX}.\n*/\nconst DIRECTORIO_ROUTES = { search: {\n\tmethod: \"get\",\n\tpath: \"/directorio\"\n} };\n/**\n* Webhook subscription and delivery routes of the service-to-service surface. Relative to\n* {@link API_PREFIX}.\n*/\nconst WEBHOOK_ROUTES = {\n\tcreateSubscription: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/webhooks/subscriptions\"\n\t},\n\tlistSubscriptions: {\n\t\tmethod: \"get\",\n\t\tpath: \"/internal/webhooks/subscriptions\"\n\t},\n\tgetSubscription: {\n\t\tmethod: \"get\",\n\t\tpath: \"/internal/webhooks/subscriptions/{id}\"\n\t},\n\tupdateSubscription: {\n\t\tmethod: \"patch\",\n\t\tpath: \"/internal/webhooks/subscriptions/{id}\"\n\t},\n\tdeleteSubscription: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/internal/webhooks/subscriptions/{id}\"\n\t},\n\trotateSubscriptionSecret: {\n\t\tmethod: \"post\",\n\t\tpath: \"/internal/webhooks/subscriptions/{id}/rotate-secret\"\n\t},\n\tlistDeliveries: {\n\t\tmethod: \"get\",\n\t\tpath: \"/internal/webhooks/deliveries\"\n\t}\n};\n/**\n* Admin routes: service client provisioning (grants, delegations), products, company holder/baja/contract operations, user restore, webhook delivery republish and maintenance cleanup. Relative to {@link API_PREFIX}.\n*/\nconst ADMIN_ROUTES = {\n\tcreateServiceClient: {\n\t\tmethod: \"post\",\n\t\tpath: \"/admin/service-clients\"\n\t},\n\tlistServiceClients: {\n\t\tmethod: \"get\",\n\t\tpath: \"/admin/service-clients\"\n\t},\n\tgetServiceClient: {\n\t\tmethod: \"get\",\n\t\tpath: \"/admin/service-clients/{slug}\"\n\t},\n\tupdateServiceClient: {\n\t\tmethod: \"patch\",\n\t\tpath: \"/admin/service-clients/{slug}\"\n\t},\n\tdeleteServiceClient: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/admin/service-clients/{slug}\"\n\t},\n\trotateServiceClientSecret: {\n\t\tmethod: \"post\",\n\t\tpath: \"/admin/service-clients/{slug}/rotate-secret\"\n\t},\n\tlistServiceClientGrants: {\n\t\tmethod: \"get\",\n\t\tpath: \"/admin/service-clients/{slug}/grants\"\n\t},\n\tsetServiceClientGrant: {\n\t\tmethod: \"put\",\n\t\tpath: \"/admin/service-clients/{slug}/grants\"\n\t},\n\tdeleteServiceClientGrant: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/admin/service-clients/{slug}/grants/{audience}\"\n\t},\n\tlistServiceClientDelegations: {\n\t\tmethod: \"get\",\n\t\tpath: \"/admin/service-clients/{slug}/delegations\"\n\t},\n\tsetServiceClientDelegation: {\n\t\tmethod: \"put\",\n\t\tpath: \"/admin/service-clients/{slug}/delegations\"\n\t},\n\tdeleteServiceClientDelegation: {\n\t\tmethod: \"delete\",\n\t\tpath: \"/admin/service-clients/{slug}/delegations/{audience}\"\n\t},\n\tlistProductos: {\n\t\tmethod: \"get\",\n\t\tpath: \"/admin/productos\"\n\t},\n\tcreateProducto: {\n\t\tmethod: \"post\",\n\t\tpath: \"/admin/productos\"\n\t},\n\tupdateProducto: {\n\t\tmethod: \"patch\",\n\t\tpath: \"/admin/productos/{slug}\"\n\t},\n\tgetProductoPermisosAutorizables: {\n\t\tmethod: \"get\",\n\t\tpath: \"/admin/productos/{slug}/permisos-autorizables\"\n\t},\n\tsetProductoPermisosAutorizables: {\n\t\tmethod: \"put\",\n\t\tpath: \"/admin/productos/{slug}/permisos-autorizables\"\n\t},\n\treassignEmpresaTitular: {\n\t\tmethod: \"post\",\n\t\tpath: \"/admin/empresas/{id}/titular\"\n\t},\n\tbajaEmpresa: {\n\t\tmethod: \"post\",\n\t\tpath: \"/admin/empresas/{id}/baja\"\n\t},\n\treactivarEmpresa: {\n\t\tmethod: \"post\",\n\t\tpath: \"/admin/empresas/{id}/reactivar\"\n\t},\n\tsetContratacion: {\n\t\tmethod: \"put\",\n\t\tpath: \"/admin/empresas/{id}/productos/{producto}\"\n\t},\n\trestoreUser: {\n\t\tmethod: \"post\",\n\t\tpath: \"/admin/users/{id}/restore\"\n\t},\n\trepublishPendingWebhooks: {\n\t\tmethod: \"post\",\n\t\tpath: \"/admin/webhooks/republish-pending\"\n\t},\n\tmaintenanceCleanup: {\n\t\tmethod: \"post\",\n\t\tpath: \"/admin/maintenance/cleanup\"\n\t}\n};\n/** Login, refresh, logout and active company routes. Relative to {@link API_PREFIX}. */\nconst AUTH_ROUTES = {\n\tgetCode: {\n\t\tmethod: \"post\",\n\t\tpath: \"/login/get-code\"\n\t},\n\tlogin: {\n\t\tmethod: \"post\",\n\t\tpath: \"/login\"\n\t},\n\trefresh: {\n\t\tmethod: \"post\",\n\t\tpath: \"/login/refresh\"\n\t},\n\tlogout: {\n\t\tmethod: \"post\",\n\t\tpath: \"/login/logout\"\n\t},\n\tsetActiveEmpresa: {\n\t\tmethod: \"post\",\n\t\tpath: \"/auth/empresa-activa\"\n\t}\n};\nexport { ADMIN_ROUTES, API_PREFIX, AUTH_ROUTES, DIRECTORIO_ROUTES, INTERNAL_AUTORIZACION_ROUTES, INTERNAL_EMPRESA_ROUTES, INTERNAL_GRUPO_ROUTES, INTERNAL_TOKEN_EXCHANGE_ROUTES, INTERNAL_TOKEN_ROUTES, INTERNAL_USER_ROUTES, SESSION_ROUTES, USER_ROUTES, WEBHOOK_ROUTES };\n\n//# sourceMappingURL=routes.js.map"],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_constants = require("../constants-CcbhOaAP.cjs");
|
|
3
|
+
const require_sign = require("../sign-C7y6xdvT.cjs");
|
|
4
|
+
const require_s2s = require("../s2s-6wbotr78.cjs");
|
|
5
|
+
const require_delegated_token = require("../delegated-token-DHSK4rHI.cjs");
|
|
6
|
+
exports.AUTORIZACION_CACHE_TTL_MS = require_sign.AUTORIZACION_CACHE_TTL_MS;
|
|
7
|
+
exports.EMPTY_BODY_SHA256_HEX = require_sign.EMPTY_BODY_SHA256_HEX;
|
|
8
|
+
exports.S2S_ERROR_CODES = require_s2s.S2S_ERROR_CODES;
|
|
9
|
+
exports.S2S_RESPONSE_HEADERS = require_sign.S2S_RESPONSE_HEADERS;
|
|
10
|
+
exports.S2S_SCOPES = require_sign.S2S_SCOPES;
|
|
11
|
+
exports.S2S_TIMESTAMP_WINDOW_SECONDS = require_sign.S2S_TIMESTAMP_WINDOW_SECONDS;
|
|
12
|
+
exports.SERVICE_TOKEN_CLOCK_TOLERANCE_SECONDS = require_delegated_token.SERVICE_TOKEN_CLOCK_TOLERANCE_SECONDS;
|
|
13
|
+
exports.SERVICE_TOKEN_RENEW_MARGIN_MS = require_s2s.SERVICE_TOKEN_RENEW_MARGIN_MS;
|
|
14
|
+
exports.ServiceTokenRequestError = require_s2s.ServiceTokenRequestError;
|
|
15
|
+
exports.USERS_BATCH_MAX_IDS = require_constants.USERS_BATCH_MAX_IDS;
|
|
16
|
+
exports.buildS2SCanonicalString = require_sign.buildS2SCanonicalString;
|
|
17
|
+
exports.createS2SClient = require_s2s.createS2SClient;
|
|
18
|
+
exports.createServiceTokenProvider = require_s2s.createServiceTokenProvider;
|
|
19
|
+
exports.generateS2SNonce = require_sign.generateS2SNonce;
|
|
20
|
+
exports.signS2SHeaders = require_sign.signS2SHeaders;
|
|
21
|
+
exports.signS2SRequest = require_sign.signS2SRequest;
|
|
22
|
+
exports.verifyDelegatedToken = require_delegated_token.verifyDelegatedToken;
|
|
23
|
+
exports.verifyS2SRequest = require_delegated_token.verifyS2SRequest;
|
|
24
|
+
exports.verifyServiceToken = require_delegated_token.verifyServiceToken;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { wi as USERS_BATCH_MAX_IDS } from "../index-Dold-Ycb.cjs";
|
|
2
|
+
import { $ as ServiceTokenRequestError, A as RenameGrupoInput, B as SearchDirectorioInput, C as ListAutorizacionesInput, D as ListWebhookDeliveriesQuery, E as ListEmpresasResult, F as S2SGetUserResult, G as UpdateEmpresaMemberInput, H as SubjectTokenInput, I as S2SVerifyError, J as DelegatedTokenGrant, K as UpdateSucursalInput, L as S2SVerifyOptions, M as S2SBatchUsersResult, N as S2SCanonicalParts, O as RemoveEmpresaMemberInput, P as S2SClientConfig, Q as ServiceTokenProviderConfig, R as S2SVerifyReason, S as GrupoResult, T as ListEmpresasInput, U as SucursalResult, V as SetContratacionInput, W as UpdateEmpresaInput, X as SERVICE_TOKEN_RENEW_MARGIN_MS, Y as ExchangeTokenInput, Z as ServiceTokenProvider, _ as EmpresaEstadoResult, a as CheckAutorizacionResult, at as DelegatedTokenVerifyOptions, b as EmpresaResult, c as CreateAutorizacionInput, ct as verifyDelegatedToken, d as CreateSucursalInput, dt as ServiceTokenScopeRequirement, et as ServiceTokenSource, f as CreateWebhookSubscriptionInput, ft as ServiceTokenVerifyError, g as EmpresaDetailResult, gt as verifyServiceToken, h as DirectorioResult, ht as ServiceTokenVerifyResult, i as CheckAutorizacionInput, it as DelegatedTokenVerifyError, j as S2SBatchUsersInput, k as RemoveGrupoEmpresaInput, l as CreateEmpresaInput, lt as SERVICE_TOKEN_CLOCK_TOLERANCE_SECONDS, m as DeleteAutorizacionInput, mt as ServiceTokenVerifyReason, n as AddGrupoEmpresaInput, nt as DelegatedActor, o as ContratacionResult, ot as DelegatedTokenVerifyReason, p as DeactivateSucursalInput, pt as ServiceTokenVerifyOptions, q as UpdateWebhookSubscriptionInput, r as AutorizacionResult, rt as DelegatedTokenClaims, s as ContratadoResult, st as DelegatedTokenVerifyResult, t as AddEmpresaMemberInput, tt as createServiceTokenProvider, u as CreateGrupoInput, ut as ServiceTokenClaims, v as EmpresaMemberResult, w as ListAutorizacionesResult, x as GetEmpresaResult, y as EmpresaRecortadaResult, z as S2SVerifyResult } from "../types-DGeQ8j4k.cjs";
|
|
3
|
+
import { a as WebhookSubscriptionWithSecret, i as WebhookSubscription, n as WebhookDelivery, t as RotateWebhookSecretResult } from "../types-B5sf7kKE.cjs";
|
|
4
|
+
import { a as S2SScope, c as S2S_TIMESTAMP_WINDOW_SECONDS, d as generateS2SNonce, f as signS2SHeaders, h as createS2SClient, i as AUTORIZACION_CACHE_TTL_MS, l as EMPTY_BODY_SHA256_HEX, m as S2SClient, n as S2SErrorCode, o as S2S_RESPONSE_HEADERS, p as signS2SRequest, r as S2S_ERROR_CODES, s as S2S_SCOPES, t as verifyS2SRequest, u as buildS2SCanonicalString } from "../index-o7nXcl7z.cjs";
|
|
5
|
+
export { AUTORIZACION_CACHE_TTL_MS, type AddEmpresaMemberInput, type AddGrupoEmpresaInput, type AutorizacionResult, type CheckAutorizacionInput, type CheckAutorizacionResult, type ContratacionResult, type ContratadoResult, type CreateAutorizacionInput, type CreateEmpresaInput, type CreateGrupoInput, type CreateSucursalInput, type CreateWebhookSubscriptionInput, type DeactivateSucursalInput, type DelegatedActor, type DelegatedTokenClaims, type DelegatedTokenGrant, type DelegatedTokenVerifyError, type DelegatedTokenVerifyOptions, type DelegatedTokenVerifyReason, type DelegatedTokenVerifyResult, type DeleteAutorizacionInput, type DirectorioResult, EMPTY_BODY_SHA256_HEX, type EmpresaDetailResult, type EmpresaEstadoResult, type EmpresaMemberResult, type EmpresaRecortadaResult, type EmpresaResult, type ExchangeTokenInput, type GetEmpresaResult, type GrupoResult, type ListAutorizacionesInput, type ListAutorizacionesResult, type ListEmpresasInput, type ListEmpresasResult, type ListWebhookDeliveriesQuery, type RemoveEmpresaMemberInput, type RemoveGrupoEmpresaInput, type RenameGrupoInput, type RotateWebhookSecretResult, type S2SBatchUsersInput, type S2SBatchUsersResult, type S2SCanonicalParts, type S2SClient, type S2SClientConfig, type S2SErrorCode, type S2SGetUserResult, type S2SScope, type S2SVerifyError, type S2SVerifyOptions, type S2SVerifyReason, type S2SVerifyResult, S2S_ERROR_CODES, S2S_RESPONSE_HEADERS, S2S_SCOPES, S2S_TIMESTAMP_WINDOW_SECONDS, SERVICE_TOKEN_CLOCK_TOLERANCE_SECONDS, SERVICE_TOKEN_RENEW_MARGIN_MS, type SearchDirectorioInput, type ServiceTokenClaims, type ServiceTokenProvider, type ServiceTokenProviderConfig, ServiceTokenRequestError, type ServiceTokenScopeRequirement, type ServiceTokenSource, type ServiceTokenVerifyError, type ServiceTokenVerifyOptions, type ServiceTokenVerifyReason, type ServiceTokenVerifyResult, type SetContratacionInput, type SubjectTokenInput, type SucursalResult, USERS_BATCH_MAX_IDS, type UpdateEmpresaInput, type UpdateEmpresaMemberInput, type UpdateSucursalInput, type UpdateWebhookSubscriptionInput, type WebhookDelivery, type WebhookSubscription, type WebhookSubscriptionWithSecret, buildS2SCanonicalString, createS2SClient, createServiceTokenProvider, generateS2SNonce, signS2SHeaders, signS2SRequest, verifyDelegatedToken, verifyS2SRequest, verifyServiceToken };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { wi as USERS_BATCH_MAX_IDS } from "../index-Dold-Ycb.js";
|
|
2
|
+
import { $ as ServiceTokenRequestError, A as RenameGrupoInput, B as SearchDirectorioInput, C as ListAutorizacionesInput, D as ListWebhookDeliveriesQuery, E as ListEmpresasResult, F as S2SGetUserResult, G as UpdateEmpresaMemberInput, H as SubjectTokenInput, I as S2SVerifyError, J as DelegatedTokenGrant, K as UpdateSucursalInput, L as S2SVerifyOptions, M as S2SBatchUsersResult, N as S2SCanonicalParts, O as RemoveEmpresaMemberInput, P as S2SClientConfig, Q as ServiceTokenProviderConfig, R as S2SVerifyReason, S as GrupoResult, T as ListEmpresasInput, U as SucursalResult, V as SetContratacionInput, W as UpdateEmpresaInput, X as SERVICE_TOKEN_RENEW_MARGIN_MS, Y as ExchangeTokenInput, Z as ServiceTokenProvider, _ as EmpresaEstadoResult, a as CheckAutorizacionResult, at as DelegatedTokenVerifyOptions, b as EmpresaResult, c as CreateAutorizacionInput, ct as verifyDelegatedToken, d as CreateSucursalInput, dt as ServiceTokenScopeRequirement, et as ServiceTokenSource, f as CreateWebhookSubscriptionInput, ft as ServiceTokenVerifyError, g as EmpresaDetailResult, gt as verifyServiceToken, h as DirectorioResult, ht as ServiceTokenVerifyResult, i as CheckAutorizacionInput, it as DelegatedTokenVerifyError, j as S2SBatchUsersInput, k as RemoveGrupoEmpresaInput, l as CreateEmpresaInput, lt as SERVICE_TOKEN_CLOCK_TOLERANCE_SECONDS, m as DeleteAutorizacionInput, mt as ServiceTokenVerifyReason, n as AddGrupoEmpresaInput, nt as DelegatedActor, o as ContratacionResult, ot as DelegatedTokenVerifyReason, p as DeactivateSucursalInput, pt as ServiceTokenVerifyOptions, q as UpdateWebhookSubscriptionInput, r as AutorizacionResult, rt as DelegatedTokenClaims, s as ContratadoResult, st as DelegatedTokenVerifyResult, t as AddEmpresaMemberInput, tt as createServiceTokenProvider, u as CreateGrupoInput, ut as ServiceTokenClaims, v as EmpresaMemberResult, w as ListAutorizacionesResult, x as GetEmpresaResult, y as EmpresaRecortadaResult, z as S2SVerifyResult } from "../types-DIUWza9-.js";
|
|
3
|
+
import { a as WebhookSubscriptionWithSecret, i as WebhookSubscription, n as WebhookDelivery, t as RotateWebhookSecretResult } from "../types-CQTZdZIF.js";
|
|
4
|
+
import { a as S2SScope, c as S2S_TIMESTAMP_WINDOW_SECONDS, d as generateS2SNonce, f as signS2SHeaders, h as createS2SClient, i as AUTORIZACION_CACHE_TTL_MS, l as EMPTY_BODY_SHA256_HEX, m as S2SClient, n as S2SErrorCode, o as S2S_RESPONSE_HEADERS, p as signS2SRequest, r as S2S_ERROR_CODES, s as S2S_SCOPES, t as verifyS2SRequest, u as buildS2SCanonicalString } from "../index-BYzDaMR9.js";
|
|
5
|
+
export { AUTORIZACION_CACHE_TTL_MS, type AddEmpresaMemberInput, type AddGrupoEmpresaInput, type AutorizacionResult, type CheckAutorizacionInput, type CheckAutorizacionResult, type ContratacionResult, type ContratadoResult, type CreateAutorizacionInput, type CreateEmpresaInput, type CreateGrupoInput, type CreateSucursalInput, type CreateWebhookSubscriptionInput, type DeactivateSucursalInput, type DelegatedActor, type DelegatedTokenClaims, type DelegatedTokenGrant, type DelegatedTokenVerifyError, type DelegatedTokenVerifyOptions, type DelegatedTokenVerifyReason, type DelegatedTokenVerifyResult, type DeleteAutorizacionInput, type DirectorioResult, EMPTY_BODY_SHA256_HEX, type EmpresaDetailResult, type EmpresaEstadoResult, type EmpresaMemberResult, type EmpresaRecortadaResult, type EmpresaResult, type ExchangeTokenInput, type GetEmpresaResult, type GrupoResult, type ListAutorizacionesInput, type ListAutorizacionesResult, type ListEmpresasInput, type ListEmpresasResult, type ListWebhookDeliveriesQuery, type RemoveEmpresaMemberInput, type RemoveGrupoEmpresaInput, type RenameGrupoInput, type RotateWebhookSecretResult, type S2SBatchUsersInput, type S2SBatchUsersResult, type S2SCanonicalParts, type S2SClient, type S2SClientConfig, type S2SErrorCode, type S2SGetUserResult, type S2SScope, type S2SVerifyError, type S2SVerifyOptions, type S2SVerifyReason, type S2SVerifyResult, S2S_ERROR_CODES, S2S_RESPONSE_HEADERS, S2S_SCOPES, S2S_TIMESTAMP_WINDOW_SECONDS, SERVICE_TOKEN_CLOCK_TOLERANCE_SECONDS, SERVICE_TOKEN_RENEW_MARGIN_MS, type SearchDirectorioInput, type ServiceTokenClaims, type ServiceTokenProvider, type ServiceTokenProviderConfig, ServiceTokenRequestError, type ServiceTokenScopeRequirement, type ServiceTokenSource, type ServiceTokenVerifyError, type ServiceTokenVerifyOptions, type ServiceTokenVerifyReason, type ServiceTokenVerifyResult, type SetContratacionInput, type SubjectTokenInput, type SucursalResult, USERS_BATCH_MAX_IDS, type UpdateEmpresaInput, type UpdateEmpresaMemberInput, type UpdateSucursalInput, type UpdateWebhookSubscriptionInput, type WebhookDelivery, type WebhookSubscription, type WebhookSubscriptionWithSecret, buildS2SCanonicalString, createS2SClient, createServiceTokenProvider, generateS2SNonce, signS2SHeaders, signS2SRequest, verifyDelegatedToken, verifyS2SRequest, verifyServiceToken };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { c as USERS_BATCH_MAX_IDS } from "../constants-rNuD5qJn.js";
|
|
2
|
+
import { a as signS2SRequest, d as S2S_TIMESTAMP_WINDOW_SECONDS, i as signS2SHeaders, l as S2S_RESPONSE_HEADERS, n as buildS2SCanonicalString, r as generateS2SNonce, s as AUTORIZACION_CACHE_TTL_MS, t as EMPTY_BODY_SHA256_HEX, u as S2S_SCOPES } from "../sign-HFtcYwa-.js";
|
|
3
|
+
import { a as createServiceTokenProvider, i as ServiceTokenRequestError, n as createS2SClient, r as SERVICE_TOKEN_RENEW_MARGIN_MS, t as S2S_ERROR_CODES } from "../s2s-B_0SIQzn.js";
|
|
4
|
+
import { a as verifyServiceToken, n as verifyDelegatedToken, o as verifyS2SRequest, r as SERVICE_TOKEN_CLOCK_TOLERANCE_SECONDS } from "../delegated-token-CVNbMNfy.js";
|
|
5
|
+
export { AUTORIZACION_CACHE_TTL_MS, EMPTY_BODY_SHA256_HEX, S2S_ERROR_CODES, S2S_RESPONSE_HEADERS, S2S_SCOPES, S2S_TIMESTAMP_WINDOW_SECONDS, SERVICE_TOKEN_CLOCK_TOLERANCE_SECONDS, SERVICE_TOKEN_RENEW_MARGIN_MS, ServiceTokenRequestError, USERS_BATCH_MAX_IDS, buildS2SCanonicalString, createS2SClient, createServiceTokenProvider, generateS2SNonce, signS2SHeaders, signS2SRequest, verifyDelegatedToken, verifyS2SRequest, verifyServiceToken };
|