@dyrected/core 2.5.42 → 2.5.44

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/server.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as hono_types from 'hono/types';
2
2
  import * as hono from 'hono';
3
3
  import { Hono, Context } from 'hono';
4
- import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-config-BLMX-9MN.cjs';
4
+ import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-config-3XBnu9Xz.cjs';
5
5
  import * as hono_utils_http_status from 'hono/utils/http-status';
6
6
  import * as hono_utils_types from 'hono/utils/types';
7
7
  import 'lucide-react';
@@ -155,9 +155,26 @@ declare class AuthController {
155
155
  declare class CollectionController {
156
156
  private collection;
157
157
  constructor(collection: CollectionConfig);
158
+ private getDelegatedProvider;
158
159
  find(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
159
160
  message: string;
160
161
  }, 500, "json">) | (Response & hono.TypedResponse<{
162
+ docs: {
163
+ id: string;
164
+ externalSubject: string;
165
+ email: string;
166
+ name?: string | undefined;
167
+ roles: string[];
168
+ siteAccess?: string[] | undefined;
169
+ status?: "active" | "pending" | undefined;
170
+ }[];
171
+ totalDocs: number;
172
+ limit: number;
173
+ page: number;
174
+ totalPages: number;
175
+ hasNextPage: boolean;
176
+ hasPrevPage: boolean;
177
+ }, hono_utils_http_status.ContentfulStatusCode, "json">) | (Response & hono.TypedResponse<{
161
178
  docs: {
162
179
  [x: string]: any;
163
180
  }[];
@@ -175,6 +192,14 @@ declare class CollectionController {
175
192
  message: string;
176
193
  }, 400, "json">) | (Response & hono.TypedResponse<{
177
194
  [x: string]: hono_utils_types.JSONValue;
195
+ }, 201, "json">) | (Response & hono.TypedResponse<{
196
+ id: string;
197
+ externalSubject: string;
198
+ email: string;
199
+ name?: string | undefined;
200
+ roles: string[];
201
+ siteAccess?: string[] | undefined;
202
+ status?: "active" | "pending" | undefined;
178
203
  }, 201, "json">)>;
179
204
  upload(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
180
205
  message: string;
@@ -190,6 +215,14 @@ declare class CollectionController {
190
215
  }, 500, "json">) | (Response & hono.TypedResponse<{
191
216
  message: string;
192
217
  }, 400, "json">) | (Response & hono.TypedResponse<{
218
+ id: string;
219
+ externalSubject: string;
220
+ email: string;
221
+ name?: string | undefined;
222
+ roles: string[];
223
+ siteAccess?: string[] | undefined;
224
+ status?: "active" | "pending" | undefined;
225
+ }, hono_utils_http_status.ContentfulStatusCode, "json">) | (Response & hono.TypedResponse<{
193
226
  message: string;
194
227
  }, 404, "json">)>;
195
228
  transition(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
package/dist/server.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as hono_types from 'hono/types';
2
2
  import * as hono from 'hono';
3
3
  import { Hono, Context } from 'hono';
4
- import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-config-BLMX-9MN.js';
4
+ import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-config-3XBnu9Xz.js';
5
5
  import * as hono_utils_http_status from 'hono/utils/http-status';
6
6
  import * as hono_utils_types from 'hono/utils/types';
7
7
  import 'lucide-react';
@@ -155,9 +155,26 @@ declare class AuthController {
155
155
  declare class CollectionController {
156
156
  private collection;
157
157
  constructor(collection: CollectionConfig);
158
+ private getDelegatedProvider;
158
159
  find(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
159
160
  message: string;
160
161
  }, 500, "json">) | (Response & hono.TypedResponse<{
162
+ docs: {
163
+ id: string;
164
+ externalSubject: string;
165
+ email: string;
166
+ name?: string | undefined;
167
+ roles: string[];
168
+ siteAccess?: string[] | undefined;
169
+ status?: "active" | "pending" | undefined;
170
+ }[];
171
+ totalDocs: number;
172
+ limit: number;
173
+ page: number;
174
+ totalPages: number;
175
+ hasNextPage: boolean;
176
+ hasPrevPage: boolean;
177
+ }, hono_utils_http_status.ContentfulStatusCode, "json">) | (Response & hono.TypedResponse<{
161
178
  docs: {
162
179
  [x: string]: any;
163
180
  }[];
@@ -175,6 +192,14 @@ declare class CollectionController {
175
192
  message: string;
176
193
  }, 400, "json">) | (Response & hono.TypedResponse<{
177
194
  [x: string]: hono_utils_types.JSONValue;
195
+ }, 201, "json">) | (Response & hono.TypedResponse<{
196
+ id: string;
197
+ externalSubject: string;
198
+ email: string;
199
+ name?: string | undefined;
200
+ roles: string[];
201
+ siteAccess?: string[] | undefined;
202
+ status?: "active" | "pending" | undefined;
178
203
  }, 201, "json">)>;
179
204
  upload(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
180
205
  message: string;
@@ -190,6 +215,14 @@ declare class CollectionController {
190
215
  }, 500, "json">) | (Response & hono.TypedResponse<{
191
216
  message: string;
192
217
  }, 400, "json">) | (Response & hono.TypedResponse<{
218
+ id: string;
219
+ externalSubject: string;
220
+ email: string;
221
+ name?: string | undefined;
222
+ roles: string[];
223
+ siteAccess?: string[] | undefined;
224
+ status?: "active" | "pending" | undefined;
225
+ }, hono_utils_http_status.ContentfulStatusCode, "json">) | (Response & hono.TypedResponse<{
193
226
  message: string;
194
227
  }, 404, "json">)>;
195
228
  transition(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{