@luxuryescapes/contract-svc-lab-v2 0.1.42 → 0.1.43

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/server.d.ts +52 -0
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -21,6 +21,10 @@ export interface paths {
21
21
  /** Count unexpired members for an ordinary audience */
22
22
  get: operations["countAudienceMembers"];
23
23
  };
24
+ "/api/lab/v2/admin/audiences/{id}/membership": {
25
+ /** Whether a subject has an unexpired membership in an ordinary audience. subject_id is opaque; the service resolves it to user ids. */
26
+ get: operations["checkAudienceMembership"];
27
+ };
24
28
  "/api/lab/v2/admin/audiences/{id}/members": {
25
29
  /** Preview unexpired members with cursor pagination */
26
30
  get: operations["listAudienceMembers"];
@@ -422,6 +426,54 @@ export interface operations {
422
426
  };
423
427
  };
424
428
  };
429
+ /** Whether a subject has an unexpired membership in an ordinary audience. subject_id is opaque; the service resolves it to user ids. */
430
+ checkAudienceMembership: {
431
+ parameters: {
432
+ path: {
433
+ id: number;
434
+ };
435
+ query: {
436
+ subject_id: string;
437
+ };
438
+ };
439
+ responses: {
440
+ /** 200 response */
441
+ 200: {
442
+ content: {
443
+ "application/json": {
444
+ status: 200;
445
+ message: string;
446
+ result: {
447
+ audience_id: number;
448
+ is_member: boolean;
449
+ };
450
+ };
451
+ };
452
+ };
453
+ /** 400 response */
454
+ 400: {
455
+ content: {
456
+ "application/json": {
457
+ status: 400;
458
+ message: string;
459
+ errors?: {
460
+ message: string;
461
+ path?: string;
462
+ }[];
463
+ };
464
+ };
465
+ };
466
+ /** 404 response */
467
+ 404: {
468
+ content: {
469
+ "application/json": {
470
+ status: 404;
471
+ message: string;
472
+ };
473
+ };
474
+ };
475
+ };
476
+ };
425
477
  /** Preview unexpired members with cursor pagination */
426
478
  listAudienceMembers: {
427
479
  parameters: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [