@autobe/agent 0.14.4 → 0.14.6

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 (47) hide show
  1. package/lib/constants/AutoBeSystemPromptConstant.d.ts +2 -2
  2. package/lib/index.mjs +662 -182
  3. package/lib/index.mjs.map +1 -1
  4. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +12 -10
  5. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  6. package/lib/orchestrate/realize/orchestrateRealize.js +2 -2
  7. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  8. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +77 -82
  9. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
  10. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +4 -0
  11. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +513 -0
  12. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
  13. package/lib/orchestrate/realize/structures/{IAutoBeRealizeDecoratorApplication.d.ts → IAutoBeRealizeAuthorizationApplication.d.ts} +9 -9
  14. package/lib/orchestrate/realize/structures/{IAutoBeRealizeDecoratorApplication.js → IAutoBeRealizeAuthorizationApplication.js} +1 -1
  15. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
  16. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +33 -0
  17. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +3 -0
  18. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
  19. package/lib/orchestrate/realize/transformRealizeAuthorization.d.ts +4 -0
  20. package/lib/orchestrate/realize/transformRealizeAuthorization.js +43 -0
  21. package/lib/orchestrate/realize/transformRealizeAuthorization.js.map +1 -0
  22. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
  23. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js +71 -0
  24. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
  25. package/lib/orchestrate/test/orchestrateTestCorrect.js +2 -0
  26. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  27. package/lib/orchestrate/test/orchestrateTestWrite.js +2 -0
  28. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  29. package/package.json +6 -5
  30. package/src/constants/AutoBeSystemPromptConstant.ts +2 -2
  31. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +11 -9
  32. package/src/orchestrate/realize/orchestrateRealize.ts +7 -2
  33. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +40 -36
  34. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +179 -0
  35. package/src/orchestrate/realize/structures/{IAutoBeRealizeDecoratorApplication.ts → IAutoBeRealizeAuthorizationApplication.ts} +11 -9
  36. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +40 -0
  37. package/src/orchestrate/realize/{transformRealizeDecorator.ts → transformRealizeAuthorization.ts} +13 -2
  38. package/src/orchestrate/realize/{transformRealizeDecoratorCorrectHistories.ts → transformRealizeAuthorizationCorrectHistories.ts} +15 -7
  39. package/src/orchestrate/test/orchestrateTestCorrect.ts +3 -0
  40. package/src/orchestrate/test/orchestrateTestWrite.ts +8 -1
  41. package/lib/orchestrate/realize/structures/IAutoBeRealizeDecoratorApplication.js.map +0 -1
  42. package/lib/orchestrate/realize/transformRealizeDecorator.d.ts +0 -4
  43. package/lib/orchestrate/realize/transformRealizeDecorator.js +0 -32
  44. package/lib/orchestrate/realize/transformRealizeDecorator.js.map +0 -1
  45. package/lib/orchestrate/realize/transformRealizeDecoratorCorrectHistories.d.ts +0 -5
  46. package/lib/orchestrate/realize/transformRealizeDecoratorCorrectHistories.js +0 -62
  47. package/lib/orchestrate/realize/transformRealizeDecoratorCorrectHistories.js.map +0 -1
@@ -53,8 +53,9 @@ const path_1 = __importDefault(require("path"));
53
53
  const typia_1 = __importDefault(require("typia"));
54
54
  const assertSchemaModel_1 = require("../../context/assertSchemaModel");
55
55
  const enforceToolCall_1 = require("../../utils/enforceToolCall");
56
- const transformRealizeDecorator_1 = require("./transformRealizeDecorator");
57
- const transformRealizeDecoratorCorrectHistories_1 = require("./transformRealizeDecoratorCorrectHistories");
56
+ const orchestrateRealizeAuthorizationCorrect_1 = require("./orchestrateRealizeAuthorizationCorrect");
57
+ const transformRealizeAuthorization_1 = require("./transformRealizeAuthorization");
58
+ const transformRealizeAuthorizationCorrectHistories_1 = require("./transformRealizeAuthorizationCorrectHistories");
58
59
  const AuthorizationFileSystem_1 = require("./utils/AuthorizationFileSystem");
59
60
  /**
60
61
  * 1. Create decorator and its parameters. and design the Authorization Provider.
@@ -71,7 +72,7 @@ function orchestrateRealizeAuthorization(ctx) {
71
72
  let completed = 0;
72
73
  const templateFiles = {
73
74
  "src/MyGlobal.ts": yield promises_1.default.readFile(path_1.default.join(__dirname, "../../../../../internals/template/realize/src/MyGlobal.ts"), "utf-8"),
74
- "src/authentications/jwtAuthorize.ts": yield promises_1.default.readFile(path_1.default.join(__dirname, "../../../../../internals/template/realize/src/providers/jwtAuthorize.ts"), "utf-8"),
75
+ [AuthorizationFileSystem_1.AuthorizationFileSystem.providerPath("jwtAuthorize")]: yield promises_1.default.readFile(path_1.default.join(__dirname, "../../../../../internals/template/realize/src/providers/jwtAuthorize.ts"), "utf-8"),
75
76
  };
76
77
  ctx.dispatch({
77
78
  type: "realizeAuthorizationStart",
@@ -111,7 +112,7 @@ function process(ctx, role, templateFiles) {
111
112
  config: Object.assign(Object.assign({}, ((_a = ctx.config) !== null && _a !== void 0 ? _a : {})), { executor: {
112
113
  describe: null,
113
114
  } }),
114
- histories: (0, transformRealizeDecorator_1.transformRealizeDecoratorHistories)(ctx, role),
115
+ histories: (0, transformRealizeAuthorization_1.transformRealizeAuthorizationHistories)(ctx, role),
115
116
  controllers: [
116
117
  createApplication({
117
118
  model: ctx.model,
@@ -135,17 +136,17 @@ function process(ctx, role, templateFiles) {
135
136
  decorator: {
136
137
  location: AuthorizationFileSystem_1.AuthorizationFileSystem.decoratorPath(pointer.value.decorator.name),
137
138
  name: pointer.value.decorator.name,
138
- content: pointer.value.decorator.code,
139
+ content: pointer.value.decorator.content,
139
140
  },
140
141
  payload: {
141
142
  location: AuthorizationFileSystem_1.AuthorizationFileSystem.payloadPath(pointer.value.payload.name),
142
143
  name: pointer.value.payload.name,
143
- content: pointer.value.payload.code,
144
+ content: pointer.value.payload.content,
144
145
  },
145
146
  provider: {
146
147
  location: AuthorizationFileSystem_1.AuthorizationFileSystem.providerPath(pointer.value.provider.name),
147
148
  name: pointer.value.provider.name,
148
- content: pointer.value.provider.code,
149
+ content: pointer.value.provider.content,
149
150
  },
150
151
  };
151
152
  const compiled = (_b = ctx.state().prisma) === null || _b === void 0 ? void 0 : _b.compiled;
@@ -155,7 +156,7 @@ function process(ctx, role, templateFiles) {
155
156
  }
156
157
  function correctDecorator(ctx_1, auth_1, prismaClients_1, templateFiles_1) {
157
158
  return __awaiter(this, arguments, void 0, function* (ctx, auth, prismaClients, templateFiles, life = 4) {
158
- var _a, _b, _c, _d, _e;
159
+ var _a, _b, _c;
159
160
  // Check Compile
160
161
  const files = Object.assign(Object.assign(Object.assign({}, templateFiles), prismaClients), { [auth.decorator.location]: auth.decorator.content, [auth.payload.location]: auth.payload.content, [auth.provider.location]: auth.provider.content });
161
162
  const compiler = yield ctx.compiler();
@@ -184,7 +185,7 @@ function correctDecorator(ctx_1, auth_1, prismaClients_1, templateFiles_1) {
184
185
  config: Object.assign(Object.assign({}, ((_c = ctx.config) !== null && _c !== void 0 ? _c : {})), { executor: {
185
186
  describe: null,
186
187
  } }),
187
- histories: (0, transformRealizeDecoratorCorrectHistories_1.transformRealizeDecoratorCorrectHistories)(ctx, auth, templateFiles, result.diagnostics),
188
+ histories: (0, transformRealizeAuthorizationCorrectHistories_1.transformRealizeAuthorizationCorrectHistories)(ctx, auth, templateFiles, result.diagnostics),
188
189
  controllers: [
189
190
  createApplication({
190
191
  model: ctx.model,
@@ -208,27 +209,21 @@ function correctDecorator(ctx_1, auth_1, prismaClients_1, templateFiles_1) {
208
209
  decorator: {
209
210
  location: auth.decorator.location,
210
211
  name: pointer.value.decorator.name,
211
- content: pointer.value.decorator.code,
212
+ content: pointer.value.decorator.content,
212
213
  },
213
214
  payload: {
214
215
  location: auth.payload.location,
215
216
  name: pointer.value.payload.name,
216
- content: pointer.value.payload.code,
217
+ content: pointer.value.payload.content,
217
218
  },
218
219
  provider: {
219
220
  location: auth.provider.location,
220
221
  name: pointer.value.provider.name,
221
- content: pointer.value.provider.code,
222
+ content: pointer.value.provider.content,
222
223
  },
223
224
  };
224
- ctx.dispatch({
225
- type: "realizeAuthorizationCorrect",
226
- created_at: new Date().toISOString(),
227
- authorization: corrected,
228
- result: result,
229
- step: (_e = (_d = ctx.state().test) === null || _d === void 0 ? void 0 : _d.step) !== null && _e !== void 0 ? _e : 0,
230
- });
231
- return yield correctDecorator(ctx, corrected, prismaClients, templateFiles, life - 1);
225
+ const res = yield (0, orchestrateRealizeAuthorizationCorrect_1.orchestrateRealizeAuthorizationCorrect)(ctx, corrected, prismaClients, templateFiles, life - 1);
226
+ return Object.assign(Object.assign({}, res), { role: auth.role });
232
227
  });
233
228
  }
234
229
  function createApplication(props) {
@@ -255,20 +250,20 @@ const claude = {
255
250
  {
256
251
  name: "createDecorator",
257
252
  parameters: {
258
- description: "Current Type: {@link IAutoBeRealizeDecoratorApplication.IProps}",
253
+ description: "Current Type: {@link IAutoBeRealizeAuthorizationApplication.IProps}",
259
254
  type: "object",
260
255
  properties: {
261
256
  provider: {
262
257
  description: "Authentication Provider function configuration containing the function\nname and implementation code. The Provider handles JWT token\nverification, role validation, and database queries to authenticate\nusers.",
263
- $ref: "#/$defs/IAutoBeRealizeDecoratorApplication.IProvider"
258
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
264
259
  },
265
260
  decorator: {
266
261
  description: "Authentication Decorator configuration containing the decorator name and\nimplementation code. The Decorator integrates with NestJS parameter\ndecorators to automatically inject authenticated user data into\nController methods.",
267
- $ref: "#/$defs/IAutoBeRealizeDecoratorApplication.IDecorator"
262
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
268
263
  },
269
264
  payload: {
270
265
  description: "Authentication Payload Type configuration containing the payload type\nname and implementation code. The Payload Type is used to define the\nstructure of the authenticated user data that will be injected into\nController methods when using the decorator. It serves as the TypeScript\ntype for the parameter in Controller method signatures.",
271
- $ref: "#/$defs/IAutoBeRealizeDecoratorApplication.IPayloadType"
266
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
272
267
  }
273
268
  },
274
269
  required: [
@@ -278,118 +273,118 @@ const claude = {
278
273
  ],
279
274
  additionalProperties: false,
280
275
  $defs: {
281
- "IAutoBeRealizeDecoratorApplication.IProvider": {
276
+ "IAutoBeRealizeAuthorizationApplication.IProvider": {
282
277
  type: "object",
283
278
  properties: {
284
279
  name: {
285
280
  description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.",
286
281
  type: "string"
287
282
  },
288
- code: {
283
+ content: {
289
284
  description: "Complete TypeScript code for the authentication Provider function and its\ncorresponding Payload interface. Must include: JWT token verification\nusing jwtAuthorize function, role type checking against payload.type,\ndatabase query using MyGlobal.prisma.{tableName} pattern to verify user\nexistence, proper error handling with ForbiddenException and\nUnauthorizedException, and the Payload interface definition with id (UUID\nformat) and type (role discriminator) fields using typia tags.",
290
285
  type: "string"
291
286
  }
292
287
  },
293
288
  required: [
294
289
  "name",
295
- "code"
290
+ "content"
296
291
  ]
297
292
  },
298
- "IAutoBeRealizeDecoratorApplication.IDecorator": {
293
+ "IAutoBeRealizeAuthorizationApplication.IDecorator": {
299
294
  type: "object",
300
295
  properties: {
301
296
  name: {
302
297
  description: "The name of the Decorator to be generated in {Role}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.",
303
298
  type: "string"
304
299
  },
305
- code: {
300
+ content: {
306
301
  description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
307
302
  type: "string"
308
303
  }
309
304
  },
310
305
  required: [
311
306
  "name",
312
- "code"
307
+ "content"
313
308
  ]
314
309
  },
315
- "IAutoBeRealizeDecoratorApplication.IPayloadType": {
310
+ "IAutoBeRealizeAuthorizationApplication.IPayloadType": {
316
311
  type: "object",
317
312
  properties: {
318
313
  name: {
319
314
  description: "The name of the Decorator to be generated in {Role}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.",
320
315
  type: "string"
321
316
  },
322
- code: {
317
+ content: {
323
318
  description: "The TypeScript code for the Payload type in {Role}Payload format (e.g.,\nAdminPayload, UserPayload). This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator. It serves as the TypeScript type for the\nparameter in Controller method signatures.",
324
319
  type: "string"
325
320
  }
326
321
  },
327
322
  required: [
328
323
  "name",
329
- "code"
324
+ "content"
330
325
  ]
331
326
  }
332
327
  }
333
328
  },
334
- validate: (() => { const _io0 = input => "object" === typeof input.provider && null !== input.provider && _io1(input.provider) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && "string" === typeof input.code; const _io2 = input => "string" === typeof input.name && "string" === typeof input.code; const _io3 = input => "string" === typeof input.name && "string" === typeof input.code; const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
329
+ validate: (() => { const _io0 = input => "object" === typeof input.provider && null !== input.provider && _io1(input.provider) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
335
330
  path: _path + ".provider",
336
- expected: "IAutoBeRealizeDecoratorApplication.IProvider",
331
+ expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
337
332
  value: input.provider
338
333
  })) && _vo1(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
339
334
  path: _path + ".provider",
340
- expected: "IAutoBeRealizeDecoratorApplication.IProvider",
335
+ expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
341
336
  value: input.provider
342
337
  }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
343
338
  path: _path + ".decorator",
344
- expected: "IAutoBeRealizeDecoratorApplication.IDecorator",
339
+ expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
345
340
  value: input.decorator
346
341
  })) && _vo2(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
347
342
  path: _path + ".decorator",
348
- expected: "IAutoBeRealizeDecoratorApplication.IDecorator",
343
+ expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
349
344
  value: input.decorator
350
345
  }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
351
346
  path: _path + ".payload",
352
- expected: "IAutoBeRealizeDecoratorApplication.IPayloadType",
347
+ expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
353
348
  value: input.payload
354
349
  })) && _vo3(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
355
350
  path: _path + ".payload",
356
- expected: "IAutoBeRealizeDecoratorApplication.IPayloadType",
351
+ expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
357
352
  value: input.payload
358
353
  })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
359
354
  path: _path + ".name",
360
355
  expected: "string",
361
356
  value: input.name
362
- }), "string" === typeof input.code || _report(_exceptionable, {
363
- path: _path + ".code",
357
+ }), "string" === typeof input.content || _report(_exceptionable, {
358
+ path: _path + ".content",
364
359
  expected: "string",
365
- value: input.code
360
+ value: input.content
366
361
  })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
367
362
  path: _path + ".name",
368
363
  expected: "string",
369
364
  value: input.name
370
- }), "string" === typeof input.code || _report(_exceptionable, {
371
- path: _path + ".code",
365
+ }), "string" === typeof input.content || _report(_exceptionable, {
366
+ path: _path + ".content",
372
367
  expected: "string",
373
- value: input.code
368
+ value: input.content
374
369
  })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
375
370
  path: _path + ".name",
376
371
  expected: "string",
377
372
  value: input.name
378
- }), "string" === typeof input.code || _report(_exceptionable, {
379
- path: _path + ".code",
373
+ }), "string" === typeof input.content || _report(_exceptionable, {
374
+ path: _path + ".content",
380
375
  expected: "string",
381
- value: input.code
376
+ value: input.content
382
377
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
383
378
  if (false === __is(input)) {
384
379
  errors = [];
385
380
  _report = __typia_transform__validateReport._validateReport(errors);
386
381
  ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
387
382
  path: _path + "",
388
- expected: "IAutoBeRealizeDecoratorApplication.IProps",
383
+ expected: "IAutoBeRealizeAuthorizationApplication.IProps",
389
384
  value: input
390
385
  })) && _vo0(input, _path + "", true) || _report(true, {
391
386
  path: _path + "",
392
- expected: "IAutoBeRealizeDecoratorApplication.IProps",
387
+ expected: "IAutoBeRealizeAuthorizationApplication.IProps",
393
388
  value: input
394
389
  }))(input, "$input", true);
395
390
  const success = 0 === errors.length;
@@ -422,17 +417,17 @@ const collection = {
422
417
  {
423
418
  name: "createDecorator",
424
419
  parameters: {
425
- description: "Current Type: {@link IAutoBeRealizeDecoratorApplication.IProps}\n\n### Description of {@link provider} property:\n\n> Authentication Provider function configuration containing the function\n> name and implementation code. The Provider handles JWT token\n> verification, role validation, and database queries to authenticate\n> users.\n\n### Description of {@link decorator} property:\n\n> Authentication Decorator configuration containing the decorator name and\n> implementation code. The Decorator integrates with NestJS parameter\n> decorators to automatically inject authenticated user data into\n> Controller methods.\n\n### Description of {@link payload} property:\n\n> Authentication Payload Type configuration containing the payload type\n> name and implementation code. The Payload Type is used to define the\n> structure of the authenticated user data that will be injected into\n> Controller methods when using the decorator. It serves as the TypeScript\n> type for the parameter in Controller method signatures.",
420
+ description: "Current Type: {@link IAutoBeRealizeAuthorizationApplication.IProps}\n\n### Description of {@link provider} property:\n\n> Authentication Provider function configuration containing the function\n> name and implementation code. The Provider handles JWT token\n> verification, role validation, and database queries to authenticate\n> users.\n\n### Description of {@link decorator} property:\n\n> Authentication Decorator configuration containing the decorator name and\n> implementation code. The Decorator integrates with NestJS parameter\n> decorators to automatically inject authenticated user data into\n> Controller methods.\n\n### Description of {@link payload} property:\n\n> Authentication Payload Type configuration containing the payload type\n> name and implementation code. The Payload Type is used to define the\n> structure of the authenticated user data that will be injected into\n> Controller methods when using the decorator. It serves as the TypeScript\n> type for the parameter in Controller method signatures.",
426
421
  type: "object",
427
422
  properties: {
428
423
  provider: {
429
- $ref: "#/$defs/IAutoBeRealizeDecoratorApplication.IProvider"
424
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IProvider"
430
425
  },
431
426
  decorator: {
432
- $ref: "#/$defs/IAutoBeRealizeDecoratorApplication.IDecorator"
427
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IDecorator"
433
428
  },
434
429
  payload: {
435
- $ref: "#/$defs/IAutoBeRealizeDecoratorApplication.IPayloadType"
430
+ $ref: "#/$defs/IAutoBeRealizeAuthorizationApplication.IPayloadType"
436
431
  }
437
432
  },
438
433
  required: [
@@ -442,118 +437,118 @@ const collection = {
442
437
  ],
443
438
  additionalProperties: false,
444
439
  $defs: {
445
- "IAutoBeRealizeDecoratorApplication.IProvider": {
440
+ "IAutoBeRealizeAuthorizationApplication.IProvider": {
446
441
  type: "object",
447
442
  properties: {
448
443
  name: {
449
444
  description: "The name of the authentication Provider function in {role}Authorize\nformat (e.g., adminAuthorize, userAuthorize). This function will be\ncalled by the decorator to verify JWT tokens and return authenticated\nuser information for the specified role.",
450
445
  type: "string"
451
446
  },
452
- code: {
447
+ content: {
453
448
  description: "Complete TypeScript code for the authentication Provider function and its\ncorresponding Payload interface. Must include: JWT token verification\nusing jwtAuthorize function, role type checking against payload.type,\ndatabase query using MyGlobal.prisma.{tableName} pattern to verify user\nexistence, proper error handling with ForbiddenException and\nUnauthorizedException, and the Payload interface definition with id (UUID\nformat) and type (role discriminator) fields using typia tags.",
454
449
  type: "string"
455
450
  }
456
451
  },
457
452
  required: [
458
453
  "name",
459
- "code"
454
+ "content"
460
455
  ]
461
456
  },
462
- "IAutoBeRealizeDecoratorApplication.IDecorator": {
457
+ "IAutoBeRealizeAuthorizationApplication.IDecorator": {
463
458
  type: "object",
464
459
  properties: {
465
460
  name: {
466
461
  description: "The name of the Decorator to be generated in {Role}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.",
467
462
  type: "string"
468
463
  },
469
- code: {
464
+ content: {
470
465
  description: "Complete TypeScript code for the authentication Decorator implementation.\nMust include: SwaggerCustomizer integration to add bearer token security\nschema to API documentation, createParamDecorator implementation that\ncalls the corresponding Provider function for authentication, Singleton\npattern using tstl library for efficient decorator instance management,\nand proper TypeScript typing for the ParameterDecorator interface.",
471
466
  type: "string"
472
467
  }
473
468
  },
474
469
  required: [
475
470
  "name",
476
- "code"
471
+ "content"
477
472
  ]
478
473
  },
479
- "IAutoBeRealizeDecoratorApplication.IPayloadType": {
474
+ "IAutoBeRealizeAuthorizationApplication.IPayloadType": {
480
475
  type: "object",
481
476
  properties: {
482
477
  name: {
483
478
  description: "The name of the Decorator to be generated in {Role}Auth format (e.g.,\nAdminAuth, UserAuth). This decorator will be used as a parameter\ndecorator in Controller methods to automatically authenticate and\nauthorize users for the specific role, injecting the authenticated user\npayload as a method parameter.",
484
479
  type: "string"
485
480
  },
486
- code: {
481
+ content: {
487
482
  description: "The TypeScript code for the Payload type in {Role}Payload format (e.g.,\nAdminPayload, UserPayload). This interface defines the structure of the\nauthenticated user data that will be injected into Controller methods\nwhen using the decorator. It serves as the TypeScript type for the\nparameter in Controller method signatures.",
488
483
  type: "string"
489
484
  }
490
485
  },
491
486
  required: [
492
487
  "name",
493
- "code"
488
+ "content"
494
489
  ]
495
490
  }
496
491
  }
497
492
  },
498
- validate: (() => { const _io0 = input => "object" === typeof input.provider && null !== input.provider && _io1(input.provider) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && "string" === typeof input.code; const _io2 = input => "string" === typeof input.name && "string" === typeof input.code; const _io3 = input => "string" === typeof input.name && "string" === typeof input.code; const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
493
+ validate: (() => { const _io0 = input => "object" === typeof input.provider && null !== input.provider && _io1(input.provider) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)); const _io1 = input => "string" === typeof input.name && "string" === typeof input.content; const _io2 = input => "string" === typeof input.name && "string" === typeof input.content; const _io3 = input => "string" === typeof input.name && "string" === typeof input.content; const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.provider && null !== input.provider || _report(_exceptionable, {
499
494
  path: _path + ".provider",
500
- expected: "IAutoBeRealizeDecoratorApplication.IProvider",
495
+ expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
501
496
  value: input.provider
502
497
  })) && _vo1(input.provider, _path + ".provider", true && _exceptionable) || _report(_exceptionable, {
503
498
  path: _path + ".provider",
504
- expected: "IAutoBeRealizeDecoratorApplication.IProvider",
499
+ expected: "IAutoBeRealizeAuthorizationApplication.IProvider",
505
500
  value: input.provider
506
501
  }), ("object" === typeof input.decorator && null !== input.decorator || _report(_exceptionable, {
507
502
  path: _path + ".decorator",
508
- expected: "IAutoBeRealizeDecoratorApplication.IDecorator",
503
+ expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
509
504
  value: input.decorator
510
505
  })) && _vo2(input.decorator, _path + ".decorator", true && _exceptionable) || _report(_exceptionable, {
511
506
  path: _path + ".decorator",
512
- expected: "IAutoBeRealizeDecoratorApplication.IDecorator",
507
+ expected: "IAutoBeRealizeAuthorizationApplication.IDecorator",
513
508
  value: input.decorator
514
509
  }), ("object" === typeof input.payload && null !== input.payload || _report(_exceptionable, {
515
510
  path: _path + ".payload",
516
- expected: "IAutoBeRealizeDecoratorApplication.IPayloadType",
511
+ expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
517
512
  value: input.payload
518
513
  })) && _vo3(input.payload, _path + ".payload", true && _exceptionable) || _report(_exceptionable, {
519
514
  path: _path + ".payload",
520
- expected: "IAutoBeRealizeDecoratorApplication.IPayloadType",
515
+ expected: "IAutoBeRealizeAuthorizationApplication.IPayloadType",
521
516
  value: input.payload
522
517
  })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
523
518
  path: _path + ".name",
524
519
  expected: "string",
525
520
  value: input.name
526
- }), "string" === typeof input.code || _report(_exceptionable, {
527
- path: _path + ".code",
521
+ }), "string" === typeof input.content || _report(_exceptionable, {
522
+ path: _path + ".content",
528
523
  expected: "string",
529
- value: input.code
524
+ value: input.content
530
525
  })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
531
526
  path: _path + ".name",
532
527
  expected: "string",
533
528
  value: input.name
534
- }), "string" === typeof input.code || _report(_exceptionable, {
535
- path: _path + ".code",
529
+ }), "string" === typeof input.content || _report(_exceptionable, {
530
+ path: _path + ".content",
536
531
  expected: "string",
537
- value: input.code
532
+ value: input.content
538
533
  })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
539
534
  path: _path + ".name",
540
535
  expected: "string",
541
536
  value: input.name
542
- }), "string" === typeof input.code || _report(_exceptionable, {
543
- path: _path + ".code",
537
+ }), "string" === typeof input.content || _report(_exceptionable, {
538
+ path: _path + ".content",
544
539
  expected: "string",
545
- value: input.code
540
+ value: input.content
546
541
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
547
542
  if (false === __is(input)) {
548
543
  errors = [];
549
544
  _report = __typia_transform__validateReport._validateReport(errors);
550
545
  ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
551
546
  path: _path + "",
552
- expected: "IAutoBeRealizeDecoratorApplication.IProps",
547
+ expected: "IAutoBeRealizeAuthorizationApplication.IProps",
553
548
  value: input
554
549
  })) && _vo0(input, _path + "", true) || _report(true, {
555
550
  path: _path + "",
556
- expected: "IAutoBeRealizeDecoratorApplication.IProps",
551
+ expected: "IAutoBeRealizeAuthorizationApplication.IProps",
557
552
  value: input
558
553
  }))(input, "$input", true);
559
554
  const success = 0 === errors.length;
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrateRealizeAuthorization.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestr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C,KAAK,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;SAC2C;KAC/C,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMT,CAAC;AACJ,MAAM,UAAU,GAAG;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIJ;IACH,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CACd,CAAC"}
1
+ {"version":3,"file":"orchestrateRealizeAuthorization.js","sourceRoot":"","sources":["../../../src/orchestrate/realize/orchestrateRealizeAuthorization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,0EAyDC;;AApFD,yCAAoE;AAOpE,2DAA6B;AAC7B,gDAAwB;AAExB,kDAA0B;AAG1B,uEAAoE;AACpE,iEAA8D;AAC9D,qGAAkG;AAElG,mFAAyF;AACzF,mHAAgH;AAChH,6EAA0E;AAE1E;;;;;GAKG;AACH,SAAsB,+BAA+B,CAEnD,GAAyB;;;QACzB,MAAM,KAAK,GACT,MAAA,MAAA,MAAA,GAAG;aACA,KAAK,EAAE;aACP,SAAS,0CAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,0CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,mCACzE,EAAE,CAAC;QAEL,IAA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eRealizeAuthorization } from "@autobe/interface";
2
+ import { ILlmSchema } from "@samchon/openapi";
3
+ import { AutoBeContext } from "../../context/AutoBeContext";
4
+ export declare function orchestrateRealizeAuthorizationCorrect<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, authorization: AutoBeRealizeAuthorization, prismaClients: Record<string, string>, templateFiles: Record<string, string>, life?: number): Promise<AutoBeRealizeAuthorization>;