@abyss-project/main 44.5.0 → 45.1.0

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 (201) hide show
  1. package/dist/api/content-share.admin.api.d.ts +2 -4
  2. package/dist/api/content-share.admin.api.js +1 -6
  3. package/dist/api/content-share.admin.api.js.map +1 -1
  4. package/dist/api/index.d.ts +0 -3
  5. package/dist/api/index.js +0 -3
  6. package/dist/api/index.js.map +1 -1
  7. package/dist/api/oauth-authorization-request.api.d.ts +2 -6
  8. package/dist/api/oauth-authorization-request.api.js +1 -9
  9. package/dist/api/oauth-authorization-request.api.js.map +1 -1
  10. package/dist/api/organization-member.admin.api.d.ts +1 -2
  11. package/dist/api/organization-member.admin.api.js +1 -5
  12. package/dist/api/organization-member.admin.api.js.map +1 -1
  13. package/dist/api/project-access.admin.api.d.ts +1 -2
  14. package/dist/api/project-access.admin.api.js +1 -5
  15. package/dist/api/project-access.admin.api.js.map +1 -1
  16. package/dist/api/project.admin.api.d.ts +1 -2
  17. package/dist/api/project.admin.api.js +1 -5
  18. package/dist/api/project.admin.api.js.map +1 -1
  19. package/dist/billing-metric-label/billing-metric-label.labels.d.ts +2 -0
  20. package/dist/billing-metric-label/billing-metric-label.labels.js +2 -0
  21. package/dist/billing-metric-label/billing-metric-label.labels.js.map +1 -1
  22. package/dist/constants/billing-catalog.constants.js +3 -1
  23. package/dist/constants/billing-catalog.constants.js.map +1 -1
  24. package/dist/constants/catalog-plan-quotas.constants.js +22 -11
  25. package/dist/constants/catalog-plan-quotas.constants.js.map +1 -1
  26. package/dist/constants/enforcement-registry.constants.js +6 -0
  27. package/dist/constants/enforcement-registry.constants.js.map +1 -1
  28. package/dist/constants/index.d.ts +1 -2
  29. package/dist/constants/index.js +1 -2
  30. package/dist/constants/index.js.map +1 -1
  31. package/dist/constants/metric-price-scale.constants.js +0 -5
  32. package/dist/constants/metric-price-scale.constants.js.map +1 -1
  33. package/dist/constants/module-catalog.constants.d.ts +0 -2
  34. package/dist/constants/module-catalog.constants.js +0 -22
  35. package/dist/constants/module-catalog.constants.js.map +1 -1
  36. package/dist/constants/overage-base-rates.constants.js +1 -1
  37. package/dist/constants/overage-base-rates.constants.js.map +1 -1
  38. package/dist/constants/pack-catalog.constants.js +0 -1
  39. package/dist/constants/pack-catalog.constants.js.map +1 -1
  40. package/dist/constants/public-plans.constants.js +115 -59
  41. package/dist/constants/public-plans.constants.js.map +1 -1
  42. package/dist/constants/quota-metric-kind.constants.js +2 -0
  43. package/dist/constants/quota-metric-kind.constants.js.map +1 -1
  44. package/dist/constants/shared-allowance.constants.js +4 -0
  45. package/dist/constants/shared-allowance.constants.js.map +1 -1
  46. package/dist/constants/storage-reserve.constants.d.ts +1 -0
  47. package/dist/constants/storage-reserve.constants.js +5 -0
  48. package/dist/constants/storage-reserve.constants.js.map +1 -0
  49. package/dist/constants/tests/billing-catalog.constants.spec.js +52 -1
  50. package/dist/constants/tests/billing-catalog.constants.spec.js.map +1 -1
  51. package/dist/constants/tests/module-catalog.constants.spec.js +14 -2
  52. package/dist/constants/tests/module-catalog.constants.spec.js.map +1 -1
  53. package/dist/constants/tests/pack-catalog.constants.spec.js +1 -1
  54. package/dist/constants/tests/pack-catalog.constants.spec.js.map +1 -1
  55. package/dist/index.d.ts +0 -29
  56. package/dist/index.js +0 -29
  57. package/dist/index.js.map +1 -1
  58. package/dist/permissions/ability.d.ts +1 -1
  59. package/dist/permissions/ability.js +0 -2
  60. package/dist/permissions/ability.js.map +1 -1
  61. package/dist/permissions/tests/ability.spec.js +0 -17
  62. package/dist/permissions/tests/ability.spec.js.map +1 -1
  63. package/dist/server/api-cors.util.d.ts +0 -8
  64. package/dist/server/api-cors.util.js +1 -83
  65. package/dist/server/api-cors.util.js.map +1 -1
  66. package/dist/server/index.d.ts +0 -6
  67. package/dist/server/index.js +0 -6
  68. package/dist/server/index.js.map +1 -1
  69. package/dist/types/enum/api-error.enum.d.ts +0 -5
  70. package/dist/types/enum/api-error.enum.js +0 -5
  71. package/dist/types/enum/api-error.enum.js.map +1 -1
  72. package/dist/types/enum/index.d.ts +0 -2
  73. package/dist/types/enum/index.js +0 -2
  74. package/dist/types/enum/index.js.map +1 -1
  75. package/dist/types/enum/organization-billing.enum.d.ts +1 -0
  76. package/dist/types/enum/organization-billing.enum.js +1 -0
  77. package/dist/types/enum/organization-billing.enum.js.map +1 -1
  78. package/dist/types/enum/project-access-permission.enum.d.ts +1 -2
  79. package/dist/types/enum/project-access-permission.enum.js +0 -1
  80. package/dist/types/enum/project-access-permission.enum.js.map +1 -1
  81. package/dist/types/interface/api/index.d.ts +0 -7
  82. package/dist/types/interface/api/index.js +0 -7
  83. package/dist/types/interface/api/index.js.map +1 -1
  84. package/dist/types/interface/api/requests/content-share.request.d.ts +0 -10
  85. package/dist/types/interface/api/requests/index.d.ts +0 -3
  86. package/dist/types/interface/api/requests/index.js +0 -3
  87. package/dist/types/interface/api/requests/index.js.map +1 -1
  88. package/dist/types/interface/api/requests/oauth-authorization-request.request.d.ts +0 -7
  89. package/dist/types/interface/api/requests/organization-billing.request.d.ts +1 -0
  90. package/dist/types/interface/api/requests/organization-member.request.d.ts +0 -3
  91. package/dist/types/interface/api/requests/project-access.admin.request.d.ts +0 -8
  92. package/dist/types/interface/api/requests/project-access.admin.request.js +0 -2
  93. package/dist/types/interface/api/requests/project-access.admin.request.js.map +1 -1
  94. package/dist/types/interface/api/requests/project.admin.request.d.ts +0 -3
  95. package/dist/types/interface/api/requests/user-billing.request.d.ts +1 -0
  96. package/dist/types/interface/api/responses/content-share.response.d.ts +0 -4
  97. package/dist/types/interface/api/responses/index.d.ts +0 -4
  98. package/dist/types/interface/api/responses/index.js +0 -4
  99. package/dist/types/interface/api/responses/index.js.map +1 -1
  100. package/dist/types/interface/api/responses/oauth-authorization-request.response.d.ts +2 -28
  101. package/dist/types/interface/api/responses/organization-billing.response.d.ts +1 -0
  102. package/dist/types/interface/api/responses/organization-member.response.d.ts +0 -8
  103. package/dist/types/interface/api/responses/project-access.admin.response.d.ts +0 -9
  104. package/dist/types/interface/api/responses/project.admin.response.d.ts +0 -5
  105. package/dist/types/interface/api/responses/user-billing.response.d.ts +1 -0
  106. package/dist/types/interface/mcp/mcp-oauth.d.ts +0 -2
  107. package/dist/utils/abyss.utils.d.ts +1 -1
  108. package/package.json +10 -17
  109. package/dist/api/oauth-application.admin.api.d.ts +0 -4
  110. package/dist/api/oauth-application.admin.api.js +0 -13
  111. package/dist/api/oauth-application.admin.api.js.map +0 -1
  112. package/dist/api/oauth-application.api.d.ts +0 -9
  113. package/dist/api/oauth-application.api.js +0 -36
  114. package/dist/api/oauth-application.api.js.map +0 -1
  115. package/dist/api/oauth-grant.api.d.ts +0 -7
  116. package/dist/api/oauth-grant.api.js +0 -27
  117. package/dist/api/oauth-grant.api.js.map +0 -1
  118. package/dist/api/tests/sdk-compute-applications.spec.d.ts +0 -1
  119. package/dist/api/tests/sdk-compute-applications.spec.js +0 -31
  120. package/dist/api/tests/sdk-compute-applications.spec.js.map +0 -1
  121. package/dist/api/tests/sdk-organization-member-admin.spec.d.ts +0 -1
  122. package/dist/api/tests/sdk-organization-member-admin.spec.js +0 -15
  123. package/dist/api/tests/sdk-organization-member-admin.spec.js.map +0 -1
  124. package/dist/constants/oauth-app.constants.d.ts +0 -28
  125. package/dist/constants/oauth-app.constants.js +0 -48
  126. package/dist/constants/oauth-app.constants.js.map +0 -1
  127. package/dist/constants/oauth-scope-catalogue.d.ts +0 -238
  128. package/dist/constants/oauth-scope-catalogue.js +0 -3504
  129. package/dist/constants/oauth-scope-catalogue.js.map +0 -1
  130. package/dist/constants/tests/oauth-app.constants.spec.d.ts +0 -1
  131. package/dist/constants/tests/oauth-app.constants.spec.js +0 -90
  132. package/dist/constants/tests/oauth-app.constants.spec.js.map +0 -1
  133. package/dist/constants/tests/oauth-scope-catalogue.spec.d.ts +0 -1
  134. package/dist/constants/tests/oauth-scope-catalogue.spec.js +0 -278
  135. package/dist/constants/tests/oauth-scope-catalogue.spec.js.map +0 -1
  136. package/dist/constants/tests/oauth-scope-positions.snapshot.d.ts +0 -39
  137. package/dist/constants/tests/oauth-scope-positions.snapshot.js +0 -243
  138. package/dist/constants/tests/oauth-scope-positions.snapshot.js.map +0 -1
  139. package/dist/server/oauth-access-token.util.d.ts +0 -30
  140. package/dist/server/oauth-access-token.util.js +0 -116
  141. package/dist/server/oauth-access-token.util.js.map +0 -1
  142. package/dist/server/oauth-claim-format.error.d.ts +0 -4
  143. package/dist/server/oauth-claim-format.error.js +0 -19
  144. package/dist/server/oauth-claim-format.error.js.map +0 -1
  145. package/dist/server/oauth-perimeter-claim.util.d.ts +0 -15
  146. package/dist/server/oauth-perimeter-claim.util.js +0 -145
  147. package/dist/server/oauth-perimeter-claim.util.js.map +0 -1
  148. package/dist/server/oauth-perimeter.util.d.ts +0 -36
  149. package/dist/server/oauth-perimeter.util.js +0 -115
  150. package/dist/server/oauth-perimeter.util.js.map +0 -1
  151. package/dist/server/oauth-route-access.util.d.ts +0 -58
  152. package/dist/server/oauth-route-access.util.js +0 -68
  153. package/dist/server/oauth-route-access.util.js.map +0 -1
  154. package/dist/server/oauth-scope-bits.util.d.ts +0 -9
  155. package/dist/server/oauth-scope-bits.util.js +0 -82
  156. package/dist/server/oauth-scope-bits.util.js.map +0 -1
  157. package/dist/server/tests/api-cors-dynamic.util.spec.d.ts +0 -1
  158. package/dist/server/tests/api-cors-dynamic.util.spec.js +0 -220
  159. package/dist/server/tests/api-cors-dynamic.util.spec.js.map +0 -1
  160. package/dist/server/tests/oauth-access-token.util.spec.d.ts +0 -1
  161. package/dist/server/tests/oauth-access-token.util.spec.js +0 -166
  162. package/dist/server/tests/oauth-access-token.util.spec.js.map +0 -1
  163. package/dist/server/tests/oauth-perimeter-claim.util.spec.d.ts +0 -1
  164. package/dist/server/tests/oauth-perimeter-claim.util.spec.js +0 -244
  165. package/dist/server/tests/oauth-perimeter-claim.util.spec.js.map +0 -1
  166. package/dist/server/tests/oauth-perimeter.util.spec.d.ts +0 -1
  167. package/dist/server/tests/oauth-perimeter.util.spec.js +0 -410
  168. package/dist/server/tests/oauth-perimeter.util.spec.js.map +0 -1
  169. package/dist/server/tests/oauth-route-access.util.spec.d.ts +0 -1
  170. package/dist/server/tests/oauth-route-access.util.spec.js +0 -149
  171. package/dist/server/tests/oauth-route-access.util.spec.js.map +0 -1
  172. package/dist/server/tests/oauth-scope-bits.util.spec.d.ts +0 -1
  173. package/dist/server/tests/oauth-scope-bits.util.spec.js +0 -72
  174. package/dist/server/tests/oauth-scope-bits.util.spec.js.map +0 -1
  175. package/dist/types/enum/oauth-app.enum.d.ts +0 -39
  176. package/dist/types/enum/oauth-app.enum.js +0 -48
  177. package/dist/types/enum/oauth-app.enum.js.map +0 -1
  178. package/dist/types/enum/oauth-scope.enum.d.ts +0 -89
  179. package/dist/types/enum/oauth-scope.enum.js +0 -103
  180. package/dist/types/enum/oauth-scope.enum.js.map +0 -1
  181. package/dist/types/interface/api/requests/oauth-application.request.d.ts +0 -41
  182. package/dist/types/interface/api/requests/oauth-application.request.js +0 -3
  183. package/dist/types/interface/api/requests/oauth-application.request.js.map +0 -1
  184. package/dist/types/interface/api/requests/oauth-grant.request.d.ts +0 -14
  185. package/dist/types/interface/api/requests/oauth-grant.request.js +0 -3
  186. package/dist/types/interface/api/requests/oauth-grant.request.js.map +0 -1
  187. package/dist/types/interface/api/requests/oauth-perimeter.request.d.ts +0 -33
  188. package/dist/types/interface/api/requests/oauth-perimeter.request.js +0 -5
  189. package/dist/types/interface/api/requests/oauth-perimeter.request.js.map +0 -1
  190. package/dist/types/interface/api/responses/oauth-application.response.d.ts +0 -56
  191. package/dist/types/interface/api/responses/oauth-application.response.js +0 -3
  192. package/dist/types/interface/api/responses/oauth-application.response.js.map +0 -1
  193. package/dist/types/interface/api/responses/oauth-grant.response.d.ts +0 -44
  194. package/dist/types/interface/api/responses/oauth-grant.response.js +0 -3
  195. package/dist/types/interface/api/responses/oauth-grant.response.js.map +0 -1
  196. package/dist/types/interface/api/responses/oauth-perimeter.response.d.ts +0 -50
  197. package/dist/types/interface/api/responses/oauth-perimeter.response.js +0 -3
  198. package/dist/types/interface/api/responses/oauth-perimeter.response.js.map +0 -1
  199. package/dist/types/interface/api/responses/oauth-userinfo.response.d.ts +0 -8
  200. package/dist/types/interface/api/responses/oauth-userinfo.response.js +0 -3
  201. package/dist/types/interface/api/responses/oauth-userinfo.response.js.map +0 -1
@@ -79,16 +79,6 @@ export interface IResolveAccessAdminBody {
79
79
  organizationId?: string | null;
80
80
  adminView?: boolean;
81
81
  }
82
- export interface IResolveAccessBatchAdminBody {
83
- userId: string;
84
- adminView?: boolean;
85
- items: IResolveAccessBatchAdminItem[];
86
- }
87
- export interface IResolveAccessBatchAdminItem {
88
- contentType: ShareableContentType;
89
- contentId: string;
90
- organizationId?: string | null;
91
- }
92
82
  export interface ICheckCreatePermissionAdminBody {
93
83
  userId: string;
94
84
  organizationId: string;
@@ -53,9 +53,6 @@ export * from './session.request';
53
53
  export * from './trusted-device.request';
54
54
  export * from './mcp-connection.request';
55
55
  export * from './oauth-authorization-request.request';
56
- export * from './oauth-application.request';
57
- export * from './oauth-grant.request';
58
- export * from './oauth-perimeter.request';
59
56
  export * from './activity.admin.request';
60
57
  export * from './referred-traffic.admin.request';
61
58
  export * from './short-link-protection.admin.request';
@@ -69,9 +69,6 @@ __exportStar(require("./session.request"), exports);
69
69
  __exportStar(require("./trusted-device.request"), exports);
70
70
  __exportStar(require("./mcp-connection.request"), exports);
71
71
  __exportStar(require("./oauth-authorization-request.request"), exports);
72
- __exportStar(require("./oauth-application.request"), exports);
73
- __exportStar(require("./oauth-grant.request"), exports);
74
- __exportStar(require("./oauth-perimeter.request"), exports);
75
72
  __exportStar(require("./activity.admin.request"), exports);
76
73
  __exportStar(require("./referred-traffic.admin.request"), exports);
77
74
  __exportStar(require("./short-link-protection.admin.request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,8DAA4C;AAC5C,wDAAsC;AACtC,oEAAkD;AAClD,gEAA8C;AAC9C,sEAAoD;AACpD,kDAAgC;AAChC,iDAA+B;AAC/B,4DAA0C;AAC1C,kEAAgD;AAChD,yDAAuC;AACvC,uEAAqD;AACrD,gEAA8C;AAC9C,0DAAwC;AACxC,oDAAkC;AAClC,0DAAwC;AACxC,gEAA8C;AAC9C,8DAA4C;AAC5C,4DAA0C;AAC1C,sDAAoC;AACpC,uDAAqC;AACrC,0DAAwC;AACxC,gDAA8B;AAC9B,6DAA2C;AAC3C,oDAAkC;AAClC,iEAA+C;AAC/C,6EAA2D;AAC3D,iFAA+D;AAC/D,gEAA8C;AAC9C,+DAA6C;AAC7C,yDAAuC;AACvC,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0DAAwC;AACxC,oDAAkC;AAClC,iEAA+C;AAC/C,+DAA6C;AAC7C,2DAAyC;AACzC,iDAA+B;AAC/B,gEAA8C;AAC9C,yDAAuC;AACvC,oEAAkD;AAClD,8DAA4C;AAC5C,uDAAqC;AACrC,iDAA+B;AAC/B,6DAA2C;AAC3C,gEAA8C;AAC9C,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,wEAAsD;AACtD,8DAA4C;AAC5C,wDAAsC;AACtC,4DAA0C;AAC1C,2DAAyC;AACzC,mEAAiD;AACjD,wEAAsD;AACtD,8DAA4C;AAC5C,0DAAwC;AACxC,gEAA8C;AAC9C,oDAAkC;AAClC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,8DAA4C;AAC5C,wDAAsC;AACtC,oEAAkD;AAClD,gEAA8C;AAC9C,sEAAoD;AACpD,kDAAgC;AAChC,iDAA+B;AAC/B,4DAA0C;AAC1C,kEAAgD;AAChD,yDAAuC;AACvC,uEAAqD;AACrD,gEAA8C;AAC9C,0DAAwC;AACxC,oDAAkC;AAClC,0DAAwC;AACxC,gEAA8C;AAC9C,8DAA4C;AAC5C,4DAA0C;AAC1C,sDAAoC;AACpC,uDAAqC;AACrC,0DAAwC;AACxC,gDAA8B;AAC9B,6DAA2C;AAC3C,oDAAkC;AAClC,iEAA+C;AAC/C,6EAA2D;AAC3D,iFAA+D;AAC/D,gEAA8C;AAC9C,+DAA6C;AAC7C,yDAAuC;AACvC,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,2DAAyC;AACzC,4DAA0C;AAC1C,6DAA2C;AAC3C,0DAAwC;AACxC,oDAAkC;AAClC,iEAA+C;AAC/C,+DAA6C;AAC7C,2DAAyC;AACzC,iDAA+B;AAC/B,gEAA8C;AAC9C,yDAAuC;AACvC,oEAAkD;AAClD,8DAA4C;AAC5C,uDAAqC;AACrC,iDAA+B;AAC/B,6DAA2C;AAC3C,gEAA8C;AAC9C,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,wEAAsD;AACtD,2DAAyC;AACzC,mEAAiD;AACjD,wEAAsD;AACtD,8DAA4C;AAC5C,0DAAwC;AACxC,gEAA8C;AAC9C,oDAAkC;AAClC,0DAAwC"}
@@ -1,13 +1,8 @@
1
1
  import type { McpScopeType } from '../../../enum/mcp.enum';
2
2
  import type { McpOAuthDecision } from '../../../enum/mcp-oauth.enum';
3
- import type { OAuthScopeName } from '../../../../constants/oauth-scope-catalogue';
4
- import type { IOAuthPerimeterEntryInput } from './oauth-perimeter.request';
5
3
  export interface IGetOAuthAuthorizationRequestParams {
6
4
  requestId: string;
7
5
  }
8
- export interface ILoginRequiredOAuthAuthorizationRequestParams {
9
- requestId: string;
10
- }
11
6
  export interface IDecideMcpOAuthAuthorizationRequestParams {
12
7
  requestId: string;
13
8
  }
@@ -16,6 +11,4 @@ export interface IDecideMcpOAuthAuthorizationRequestBody {
16
11
  scopeType?: McpScopeType;
17
12
  scopeId?: string | null;
18
13
  name?: string;
19
- scopes?: OAuthScopeName[];
20
- perimeter?: IOAuthPerimeterEntryInput[];
21
14
  }
@@ -127,6 +127,7 @@ export interface ISetStorageSubtotalOrganizationBody {
127
127
  export interface IReserveStorageBytesOrganizationBody {
128
128
  source: StorageSubtotalSource;
129
129
  deltaBytes: number;
130
+ overageToleranceBytes?: number;
130
131
  }
131
132
  export interface IReserveArchiveBytesOrganizationBody {
132
133
  source: StorageSubtotalSource;
@@ -42,9 +42,6 @@ export interface IResolvePermissionsOrganizationMemberAdminBody {
42
42
  export type IResolveOrgPermissionsAdminParams = {
43
43
  organizationMemberId: string;
44
44
  };
45
- export interface IListUserOrganizationsOrganizationMemberAdminParams {
46
- userId: string;
47
- }
48
45
  export interface IListUserIdsByPermissionOrganizationMemberAdminParams {
49
46
  organizationId: string;
50
47
  }
@@ -70,14 +70,6 @@ export type IComputeUsersWithPermissionsProjectAccessAdminBody = {
70
70
  })[];
71
71
  };
72
72
  };
73
- export declare const COMPUTE_APPLICATIONS_MAX_IDS = 500;
74
- export interface IComputeApplicationsProjectAccessAdminParams {
75
- projectId: string;
76
- }
77
- export interface IComputeApplicationsProjectAccessAdminBody {
78
- userId: string;
79
- applicationIds?: string[];
80
- }
81
73
  export interface IComputeProjectAccessAdminParams {
82
74
  projectId: string;
83
75
  }
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COMPUTE_APPLICATIONS_MAX_IDS = void 0;
4
- exports.COMPUTE_APPLICATIONS_MAX_IDS = 500;
5
3
  //# sourceMappingURL=project-access.admin.request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project-access.admin.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/project-access.admin.request.ts"],"names":[],"mappings":";;;AA8Fa,QAAA,4BAA4B,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"project-access.admin.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/project-access.admin.request.ts"],"names":[],"mappings":""}
@@ -9,9 +9,6 @@ export interface IActivateServiceProjectAdminQuery {
9
9
  export interface IGetProjectAdminParams {
10
10
  projectId: string;
11
11
  }
12
- export interface IListOpenableProjectAdminParams {
13
- userId: string;
14
- }
15
12
  export interface IListProjectAdminParams {
16
13
  userId: string;
17
14
  }
@@ -15,6 +15,7 @@ export interface ISetStorageSubtotalUserBody {
15
15
  export interface IReserveStorageBytesUserBody {
16
16
  source: StorageSubtotalSource;
17
17
  deltaBytes: number;
18
+ overageToleranceBytes?: number;
18
19
  }
19
20
  export interface IReserveArchiveBytesUserBody {
20
21
  source: StorageSubtotalSource;
@@ -8,10 +8,6 @@ export interface IResolveAccessAdminData {
8
8
  excluded: boolean;
9
9
  }
10
10
  export type IResolveAccessAdminResponse = IResponse<IResolveAccessAdminData>;
11
- export interface IResolveAccessBatchAdminData {
12
- access: Record<string, IResolveAccessAdminData>;
13
- }
14
- export type IResolveAccessBatchAdminResponse = IResponse<IResolveAccessBatchAdminData>;
15
11
  export interface IResolvePublicAccessAdminData {
16
12
  permission: SharePermission | null;
17
13
  contentType: ShareableContentType;
@@ -55,10 +55,6 @@ export * from './session.response';
55
55
  export * from './trusted-device.response';
56
56
  export * from './mcp-connection.response';
57
57
  export * from './oauth-authorization-request.response';
58
- export * from './oauth-application.response';
59
- export * from './oauth-grant.response';
60
- export * from './oauth-perimeter.response';
61
- export * from './oauth-userinfo.response';
62
58
  export * from './activity.admin.response';
63
59
  export * from './referred-traffic.admin.response';
64
60
  export * from './short-link-protection.admin.response';
@@ -71,10 +71,6 @@ __exportStar(require("./session.response"), exports);
71
71
  __exportStar(require("./trusted-device.response"), exports);
72
72
  __exportStar(require("./mcp-connection.response"), exports);
73
73
  __exportStar(require("./oauth-authorization-request.response"), exports);
74
- __exportStar(require("./oauth-application.response"), exports);
75
- __exportStar(require("./oauth-grant.response"), exports);
76
- __exportStar(require("./oauth-perimeter.response"), exports);
77
- __exportStar(require("./oauth-userinfo.response"), exports);
78
74
  __exportStar(require("./activity.admin.response"), exports);
79
75
  __exportStar(require("./referred-traffic.admin.response"), exports);
80
76
  __exportStar(require("./short-link-protection.admin.response"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,+DAA6C;AAC7C,yDAAuC;AACvC,qEAAmD;AACnD,iEAA+C;AAC/C,uEAAqD;AACrD,mDAAiC;AACjC,kDAAgC;AAChC,6DAA2C;AAC3C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,wEAAsD;AACtD,iEAA+C;AAC/C,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,iEAA+C;AAC/C,+DAA6C;AAC7C,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,2DAAyC;AACzC,2DAAyC;AACzC,iDAA+B;AAC/B,qDAAmC;AACnC,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD;AAChD,kFAAgE;AAChE,4EAA0D;AAC1D,iEAA+C;AAC/C,gEAA8C;AAC9C,0DAAwC;AACxC,kEAAgD;AAChD,mEAAiD;AACjD,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,6DAA2C;AAC3C,8DAA4C;AAC5C,2DAAyC;AACzC,qDAAmC;AACnC,4DAA0C;AAC1C,kDAAgC;AAChC,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,qEAAmD;AACnD,+DAA6C;AAC7C,wDAAsC;AACtC,kDAAgC;AAChC,8DAA4C;AAC5C,qDAAmC;AACnC,4DAA0C;AAC1C,4DAA0C;AAC1C,yEAAuD;AACvD,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,4DAA0C;AAC1C,oEAAkD;AAClD,yEAAuD;AACvD,+DAA6C;AAC7C,2DAAyC;AACzC,iEAA+C;AAC/C,qDAAmC;AACnC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,+DAA6C;AAC7C,yDAAuC;AACvC,qEAAmD;AACnD,iEAA+C;AAC/C,uEAAqD;AACrD,mDAAiC;AACjC,kDAAgC;AAChC,6DAA2C;AAC3C,mEAAiD;AACjD,6DAA2C;AAC3C,0DAAwC;AACxC,wEAAsD;AACtD,iEAA+C;AAC/C,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,iEAA+C;AAC/C,+DAA6C;AAC7C,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,2DAAyC;AACzC,2DAAyC;AACzC,iDAA+B;AAC/B,qDAAmC;AACnC,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD;AAChD,kFAAgE;AAChE,4EAA0D;AAC1D,iEAA+C;AAC/C,gEAA8C;AAC9C,0DAAwC;AACxC,kEAAgD;AAChD,mEAAiD;AACjD,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,6DAA2C;AAC3C,8DAA4C;AAC5C,2DAAyC;AACzC,qDAAmC;AACnC,4DAA0C;AAC1C,kDAAgC;AAChC,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,qEAAmD;AACnD,+DAA6C;AAC7C,wDAAsC;AACtC,kDAAgC;AAChC,8DAA4C;AAC5C,qDAAmC;AACnC,4DAA0C;AAC1C,4DAA0C;AAC1C,yEAAuD;AACvD,4DAA0C;AAC1C,oEAAkD;AAClD,yEAAuD;AACvD,+DAA6C;AAC7C,2DAAyC;AACzC,iEAA+C;AAC/C,qDAAmC;AACnC,2DAAyC"}
@@ -1,36 +1,10 @@
1
- import type { OAuthAuthorizationPrompt, OAuthAuthorizationRequestKind, OAuthClientType } from '../../../enum/oauth-app.enum';
2
- import type { IMcpOAuthAuthorizationRequestView, McpOAuthAuthorizationRequestStatus } from '../../mcp/mcp-oauth';
3
- import type { OAuthScopeName } from '../../../../constants/oauth-scope-catalogue';
4
- import type { IOAuthGrantResource } from './oauth-grant.response';
1
+ import type { IMcpOAuthAuthorizationRequestView } from '../../mcp/mcp-oauth';
5
2
  import type { IResponse } from '../type-message/response';
6
- export interface IOAuthAppAuthorizationRequestView {
7
- kind: OAuthAuthorizationRequestKind.APP;
8
- id: string;
9
- status: McpOAuthAuthorizationRequestStatus;
10
- application: {
11
- name: string;
12
- ownerName: string;
13
- organizationName: string;
14
- homepageUrl: string | null;
15
- clientType: OAuthClientType;
16
- };
17
- redirectHost: string;
18
- redirectWarning: boolean;
19
- scopes: string[];
20
- missingScopes: string[];
21
- grantedScopes: OAuthScopeName[];
22
- perimeter: IOAuthGrantResource[];
23
- prompt: OAuthAuthorizationPrompt | null;
24
- }
25
3
  export interface IGetOAuthAuthorizationRequestData {
26
- request: IMcpOAuthAuthorizationRequestView | IOAuthAppAuthorizationRequestView;
4
+ request: IMcpOAuthAuthorizationRequestView;
27
5
  }
28
6
  export type IGetOAuthAuthorizationRequestResponse = IResponse<IGetOAuthAuthorizationRequestData>;
29
7
  export interface IDecideMcpOAuthAuthorizationRequestData {
30
8
  redirectTo: string;
31
9
  }
32
10
  export type IDecideMcpOAuthAuthorizationRequestResponse = IResponse<IDecideMcpOAuthAuthorizationRequestData>;
33
- export interface ILoginRequiredOAuthAuthorizationRequestData {
34
- redirectTo: string;
35
- }
36
- export type ILoginRequiredOAuthAuthorizationRequestResponse = IResponse<ILoginRequiredOAuthAuthorizationRequestData>;
@@ -141,6 +141,7 @@ export interface IReserveStorageBytesOrganizationData {
141
141
  poolBytes: number;
142
142
  limitBytes: number;
143
143
  reason?: StorageReserveRefusalReason;
144
+ overBytes: number;
144
145
  }
145
146
  export type IReserveStorageBytesOrganizationResponse = IResponse<IReserveStorageBytesOrganizationData>;
146
147
  export type IReleaseStorageBytesOrganizationResponse = IResponse<void>;
@@ -51,11 +51,3 @@ export interface IListMembersOrganizationMemberAdminData {
51
51
  members: IOrganizationMemberAdminSummary[];
52
52
  }
53
53
  export type IListMembersOrganizationMemberAdminResponse = IResponse<IListMembersOrganizationMemberAdminData>;
54
- export interface IOrganizationMemberAdminOrganization {
55
- id: string;
56
- name: string;
57
- }
58
- export interface IListUserOrganizationsOrganizationMemberAdminData {
59
- organizations: IOrganizationMemberAdminOrganization[];
60
- }
61
- export type IListUserOrganizationsOrganizationMemberAdminResponse = IResponse<IListUserOrganizationsOrganizationMemberAdminData>;
@@ -34,15 +34,6 @@ export interface IComputeApplicationProjectAccessAdminData {
34
34
  isDemo: boolean;
35
35
  }
36
36
  export type IComputeApplicationProjectAccessAdminResponse = IResponse<IComputeApplicationProjectAccessAdminData>;
37
- export interface IComputedApplicationAccess {
38
- applicationId: string;
39
- permission: ProjectApplicationAccessPermission[];
40
- }
41
- export interface IComputeApplicationsProjectAccessAdminData {
42
- applications: IComputedApplicationAccess[];
43
- isDemo: boolean;
44
- }
45
- export type IComputeApplicationsProjectAccessAdminResponse = IResponse<IComputeApplicationsProjectAccessAdminData>;
46
37
  export interface IComputeNotificationAccessProjectAccessAdminData {
47
38
  user: IUser[];
48
39
  }
@@ -11,11 +11,6 @@ export interface IListProjectAdminData {
11
11
  sharedProjects: ProjectWithoutApplication[];
12
12
  }
13
13
  export type IListProjectAdminResponse = IResponse<IListProjectAdminData>;
14
- export type OpenableProjectAdmin = Pick<IProject, 'id' | 'name' | 'organizationId'>;
15
- export interface IListOpenableProjectAdminData {
16
- projects: OpenableProjectAdmin[];
17
- }
18
- export type IListOpenableProjectAdminResponse = IResponse<IListOpenableProjectAdminData>;
19
14
  export type IPaginateProjectAdminResponse = IResponse<BasePaginate<IProject>>;
20
15
  export interface IDeleteProjectAdminData {
21
16
  }
@@ -86,6 +86,7 @@ export interface IReserveStorageBytesUserData {
86
86
  poolBytes: number;
87
87
  limitBytes: number;
88
88
  reason?: StorageReserveRefusalReason;
89
+ overBytes: number;
89
90
  }
90
91
  export type IReserveStorageBytesUserResponse = IResponse<IReserveStorageBytesUserData>;
91
92
  export type IReleaseStorageBytesUserResponse = IResponse<void>;
@@ -1,13 +1,11 @@
1
1
  import type { McpFunctionalScope, McpScopeType } from '../../enum/mcp.enum';
2
2
  import type { McpOAuthClientSource } from '../../enum/mcp-oauth.enum';
3
- import type { OAuthAuthorizationRequestKind } from '../../enum/oauth-app.enum';
4
3
  export type McpOAuthAuthorizationRequestStatus = 'OPEN' | 'EXPIRED' | 'CONSUMED';
5
4
  export interface IMcpOAuthApprovedScope {
6
5
  scopeType: McpScopeType;
7
6
  scopeId: string | null;
8
7
  }
9
8
  export interface IMcpOAuthAuthorizationRequestView {
10
- kind: OAuthAuthorizationRequestKind.MCP;
11
9
  id: string;
12
10
  client: {
13
11
  name: string;
@@ -1,2 +1,2 @@
1
1
  import { ActivatableService } from '../types';
2
- export declare const getServiceName: (service: ActivatableService) => "Form" | "Abyss" | "Cloud" | "Crypt" | "Storage" | "Monitor" | "Memories" | "Banking" | "Odyssey" | "Spotlight" | "Training" | "Console" | "Workspace" | "Extract" | "Beam" | "Link" | "Flow" | "Reflex" | undefined;
2
+ export declare const getServiceName: (service: ActivatableService) => "Abyss" | "Cloud" | "Crypt" | "Storage" | "Monitor" | "Memories" | "Banking" | "Odyssey" | "Spotlight" | "Form" | "Training" | "Console" | "Workspace" | "Extract" | "Beam" | "Link" | "Flow" | "Reflex" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "44.5.0",
3
+ "version": "45.1.0",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -42,19 +42,6 @@
42
42
  ]
43
43
  }
44
44
  },
45
- "publishConfig": {
46
- "main": "dist/index.js",
47
- "types": "dist/index.d.ts"
48
- },
49
- "scripts": {
50
- "lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
51
- "lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
52
- "tsc": "tsc",
53
- "build": "tsc -p tsconfig.build.json",
54
- "dev": "tsc --watch",
55
- "test": "jest",
56
- "prepublishOnly": "tsc && node ../../scripts/check-sdk-surface.cjs"
57
- },
58
45
  "repository": {
59
46
  "type": "git",
60
47
  "url": "https://gitlab.com/abyss-group"
@@ -74,7 +61,6 @@
74
61
  "byte-size": "^8.1.0",
75
62
  "date-fns": "^2.29.3",
76
63
  "dayjs": "^1.10.7",
77
- "jsonwebtoken": "^9.0.0",
78
64
  "lodash": "^4.17.21",
79
65
  "lz-string": "^1.5.0",
80
66
  "reflect-metadata": "^0.1.13",
@@ -86,7 +72,6 @@
86
72
  "@types/express": "^4.17.21",
87
73
  "@types/express-serve-static-core": "^4.17.28",
88
74
  "@types/jest": "^29.5.5",
89
- "@types/jsonwebtoken": "^9.0.1",
90
75
  "@types/lodash": "^4.14.177",
91
76
  "@types/node": "^20.11.0",
92
77
  "@types/uuid": "^9.0.0",
@@ -105,5 +90,13 @@
105
90
  "sequelize-cli": "^6.2.0",
106
91
  "ts-jest": "^29.1.1",
107
92
  "typescript": "5.9.3"
93
+ },
94
+ "scripts": {
95
+ "lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
96
+ "lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
97
+ "tsc": "tsc",
98
+ "build": "tsc -p tsconfig.build.json",
99
+ "dev": "tsc --watch",
100
+ "test": "jest"
108
101
  }
109
- }
102
+ }
@@ -1,4 +0,0 @@
1
- import type { IListNamesOAuthApplicationAdminQuery } from '../types/interface/api/requests/oauth-application.request';
2
- import type { IListAllowedOriginsOAuthApplicationAdminResponse, IListNamesOAuthApplicationAdminResponse } from '../types/interface/api/responses/oauth-application.response';
3
- export declare const listAllowedOriginsOAuthApplicationAdmin: () => Promise<IListAllowedOriginsOAuthApplicationAdminResponse>;
4
- export declare const listNamesOAuthApplicationAdmin: (query: IListNamesOAuthApplicationAdminQuery) => Promise<IListNamesOAuthApplicationAdminResponse>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listNamesOAuthApplicationAdmin = exports.listAllowedOriginsOAuthApplicationAdmin = void 0;
4
- const __1 = require("..");
5
- const listAllowedOriginsOAuthApplicationAdmin = async () => {
6
- return (await __1.AbyssCore.axios.get('oauth-application/admin/allowed-origins')).data;
7
- };
8
- exports.listAllowedOriginsOAuthApplicationAdmin = listAllowedOriginsOAuthApplicationAdmin;
9
- const listNamesOAuthApplicationAdmin = async (query) => {
10
- return (await __1.AbyssCore.axios.get('oauth-application/admin/names', { params: query })).data;
11
- };
12
- exports.listNamesOAuthApplicationAdmin = listNamesOAuthApplicationAdmin;
13
- //# sourceMappingURL=oauth-application.admin.api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth-application.admin.api.js","sourceRoot":"","sources":["../../src/api/oauth-application.admin.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAQxB,MAAM,uCAAuC,GAClD,KAAK,IAA+D,EAAE;IACpE,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CACvB,yCAAyC,CAC1C,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAPS,QAAA,uCAAuC,2CAOhD;AAMG,MAAM,8BAA8B,GAAG,KAAK,EACjD,KAA2C,EACO,EAAE;IACpD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CACvB,+BAA+B,EAC/B,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AATW,QAAA,8BAA8B,kCASzC"}
@@ -1,9 +0,0 @@
1
- import type { ICreateOAuthApplicationBody, ICreateOAuthApplicationProjectParams, IDeleteOAuthApplicationParams, IGetOAuthApplicationParams, IListNamesOAuthApplicationQuery, IListOAuthApplicationProjectParams, IRegenerateSecretOAuthApplicationParams, IUpdateOAuthApplicationBody, IUpdateOAuthApplicationParams } from '../types/interface/api/requests/oauth-application.request';
2
- import type { ICreateOAuthApplicationProjectResponse, IDeleteOAuthApplicationResponse, IGetOAuthApplicationResponse, IListNamesOAuthApplicationResponse, IListOAuthApplicationProjectResponse, IRegenerateSecretOAuthApplicationResponse, IUpdateOAuthApplicationResponse } from '../types/interface/api/responses/oauth-application.response';
3
- export declare const listOAuthApplicationProject: (params: IListOAuthApplicationProjectParams) => Promise<IListOAuthApplicationProjectResponse>;
4
- export declare const createOAuthApplicationProject: (params: ICreateOAuthApplicationProjectParams, body: ICreateOAuthApplicationBody) => Promise<ICreateOAuthApplicationProjectResponse>;
5
- export declare const getOAuthApplication: (params: IGetOAuthApplicationParams) => Promise<IGetOAuthApplicationResponse>;
6
- export declare const updateOAuthApplication: (params: IUpdateOAuthApplicationParams, body: IUpdateOAuthApplicationBody) => Promise<IUpdateOAuthApplicationResponse>;
7
- export declare const deleteOAuthApplication: (params: IDeleteOAuthApplicationParams) => Promise<IDeleteOAuthApplicationResponse>;
8
- export declare const regenerateSecretOAuthApplication: (params: IRegenerateSecretOAuthApplicationParams) => Promise<IRegenerateSecretOAuthApplicationResponse>;
9
- export declare const listNamesOAuthApplication: (query: IListNamesOAuthApplicationQuery) => Promise<IListNamesOAuthApplicationResponse>;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listNamesOAuthApplication = exports.regenerateSecretOAuthApplication = exports.deleteOAuthApplication = exports.updateOAuthApplication = exports.getOAuthApplication = exports.createOAuthApplicationProject = exports.listOAuthApplicationProject = void 0;
4
- const __1 = require("..");
5
- const base = 'oauth-application';
6
- const listOAuthApplicationProject = async (params) => {
7
- return (await __1.AbyssCore.axios.get(`project/${params.projectId}/${base}`)).data;
8
- };
9
- exports.listOAuthApplicationProject = listOAuthApplicationProject;
10
- const createOAuthApplicationProject = async (params, body) => {
11
- return (await __1.AbyssCore.axios.post(`project/${params.projectId}/${base}`, body)).data;
12
- };
13
- exports.createOAuthApplicationProject = createOAuthApplicationProject;
14
- const getOAuthApplication = async (params) => {
15
- return (await __1.AbyssCore.axios.get(`${base}/${params.applicationId}`)).data;
16
- };
17
- exports.getOAuthApplication = getOAuthApplication;
18
- const updateOAuthApplication = async (params, body) => {
19
- return (await __1.AbyssCore.axios.patch(`${base}/${params.applicationId}`, body)).data;
20
- };
21
- exports.updateOAuthApplication = updateOAuthApplication;
22
- const deleteOAuthApplication = async (params) => {
23
- return (await __1.AbyssCore.axios.delete(`${base}/${params.applicationId}`)).data;
24
- };
25
- exports.deleteOAuthApplication = deleteOAuthApplication;
26
- const regenerateSecretOAuthApplication = async (params) => {
27
- return (await __1.AbyssCore.axios.post(`${base}/${params.applicationId}/secret`)).data;
28
- };
29
- exports.regenerateSecretOAuthApplication = regenerateSecretOAuthApplication;
30
- const listNamesOAuthApplication = async (query) => {
31
- return (await __1.AbyssCore.axios.get(`${base}/names`, {
32
- params: query,
33
- })).data;
34
- };
35
- exports.listNamesOAuthApplication = listNamesOAuthApplication;
36
- //# sourceMappingURL=oauth-application.api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth-application.api.js","sourceRoot":"","sources":["../../src/api/oauth-application.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAsB/B,MAAM,IAAI,GAAG,mBAAmB,CAAC;AAE1B,MAAM,2BAA2B,GAAG,KAAK,EAC9C,MAA0C,EACK,EAAE;IACjD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CACvB,WAAW,MAAM,CAAC,SAAS,IAAI,IAAI,EAAE,CACtC,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,2BAA2B,+BAQtC;AAEK,MAAM,6BAA6B,GAAG,KAAK,EAChD,MAA4C,EAC5C,IAAiC,EACgB,EAAE;IACnD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,IAAI,CACxB,WAAW,MAAM,CAAC,SAAS,IAAI,IAAI,EAAE,EACrC,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,6BAA6B,iCAUxC;AAEK,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAkC,EACK,EAAE;IACzC,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CAA+B,GAAG,IAAI,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC,CAC3F,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AANW,QAAA,mBAAmB,uBAM9B;AAEK,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAqC,EACrC,IAAiC,EACS,EAAE;IAC5C,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,KAAK,CACzB,GAAG,IAAI,IAAI,MAAM,CAAC,aAAa,EAAE,EACjC,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,sBAAsB,0BAUjC;AAEK,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAqC,EACK,EAAE;IAC5C,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,MAAM,CAAkC,GAAG,IAAI,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC,CACjG,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AANW,QAAA,sBAAsB,0BAMjC;AAEK,MAAM,gCAAgC,GAAG,KAAK,EACnD,MAA+C,EACK,EAAE;IACtD,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,IAAI,CACxB,GAAG,IAAI,IAAI,MAAM,CAAC,aAAa,SAAS,CACzC,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,gCAAgC,oCAQ3C;AAGK,MAAM,yBAAyB,GAAG,KAAK,EAC5C,KAAsC,EACO,EAAE;IAC/C,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CAAqC,GAAG,IAAI,QAAQ,EAAE;QAC7E,MAAM,EAAE,KAAK;KACd,CAAC,CACH,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,yBAAyB,6BAQpC"}
@@ -1,7 +0,0 @@
1
- import type { IGetOAuthGrantParams, IRemoveResourceOAuthGrantParams, IRemoveScopeOAuthGrantParams, IRevokeOAuthGrantParams } from '../types/interface/api/requests/oauth-grant.request';
2
- import type { IGetOAuthGrantResponse, IListOAuthGrantUserResponse, IRemoveResourceOAuthGrantResponse, IRemoveScopeOAuthGrantResponse, IRevokeOAuthGrantResponse } from '../types/interface/api/responses/oauth-grant.response';
3
- export declare const listOAuthGrantUser: () => Promise<IListOAuthGrantUserResponse>;
4
- export declare const getOAuthGrant: (params: IGetOAuthGrantParams) => Promise<IGetOAuthGrantResponse>;
5
- export declare const revokeOAuthGrant: (params: IRevokeOAuthGrantParams) => Promise<IRevokeOAuthGrantResponse>;
6
- export declare const removeScopeOAuthGrant: (params: IRemoveScopeOAuthGrantParams) => Promise<IRemoveScopeOAuthGrantResponse>;
7
- export declare const removeResourceOAuthGrant: (params: IRemoveResourceOAuthGrantParams) => Promise<IRemoveResourceOAuthGrantResponse>;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeResourceOAuthGrant = exports.removeScopeOAuthGrant = exports.revokeOAuthGrant = exports.getOAuthGrant = exports.listOAuthGrantUser = void 0;
4
- const __1 = require("..");
5
- const base = 'oauth-grant';
6
- const listOAuthGrantUser = async () => {
7
- return (await __1.AbyssCore.axios.get(`${base}/user/me`)).data;
8
- };
9
- exports.listOAuthGrantUser = listOAuthGrantUser;
10
- const getOAuthGrant = async (params) => {
11
- return (await __1.AbyssCore.axios.get(`${base}/${params.grantId}`)).data;
12
- };
13
- exports.getOAuthGrant = getOAuthGrant;
14
- const revokeOAuthGrant = async (params) => {
15
- return (await __1.AbyssCore.axios.delete(`${base}/${params.grantId}`))
16
- .data;
17
- };
18
- exports.revokeOAuthGrant = revokeOAuthGrant;
19
- const removeScopeOAuthGrant = async (params) => {
20
- return (await __1.AbyssCore.axios.delete(`${base}/${params.grantId}/scope/${encodeURIComponent(params.scope)}`)).data;
21
- };
22
- exports.removeScopeOAuthGrant = removeScopeOAuthGrant;
23
- const removeResourceOAuthGrant = async (params) => {
24
- return (await __1.AbyssCore.axios.delete(`${base}/${params.grantId}/resource/${params.resourceId}`)).data;
25
- };
26
- exports.removeResourceOAuthGrant = removeResourceOAuthGrant;
27
- //# sourceMappingURL=oauth-grant.api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth-grant.api.js","sourceRoot":"","sources":["../../src/api/oauth-grant.api.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAe/B,MAAM,IAAI,GAAG,aAAa,CAAC;AAEpB,MAAM,kBAAkB,GAAG,KAAK,IAA0C,EAAE;IACjF,OAAO,CAAC,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CAA8B,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1F,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B;AAEK,MAAM,aAAa,GAAG,KAAK,EAChC,MAA4B,EACK,EAAE;IACnC,OAAO,CAAC,MAAM,aAAS,CAAC,KAAK,CAAC,GAAG,CAAyB,GAAG,IAAI,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/F,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB;AAEK,MAAM,gBAAgB,GAAG,KAAK,EACnC,MAA+B,EACK,EAAE;IACtC,OAAO,CAAC,MAAM,aAAS,CAAC,KAAK,CAAC,MAAM,CAA4B,GAAG,IAAI,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;SAC1F,IAAI,CAAC;AACV,CAAC,CAAC;AALW,QAAA,gBAAgB,oBAK3B;AAEK,MAAM,qBAAqB,GAAG,KAAK,EACxC,MAAoC,EACK,EAAE;IAC3C,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,MAAM,CAC1B,GAAG,IAAI,IAAI,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CACtE,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,qBAAqB,yBAQhC;AAEK,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAuC,EACK,EAAE;IAC9C,OAAO,CACL,MAAM,aAAS,CAAC,KAAK,CAAC,MAAM,CAC1B,GAAG,IAAI,IAAI,MAAM,CAAC,OAAO,aAAa,MAAM,CAAC,UAAU,EAAE,CAC1D,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,wBAAwB,4BAQnC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const __1 = require("../..");
4
- describe('SDK — access to the applications of a project in one call (#882)', () => {
5
- afterEach(() => {
6
- jest.restoreAllMocks();
7
- });
8
- it('posts the user, and the applications asked, to the project route', async () => {
9
- const data = {
10
- applications: [
11
- {
12
- applicationId: 'app-1',
13
- permission: [__1.ProjectApplicationAccessPermission.FULL_ACCESS],
14
- },
15
- ],
16
- isDemo: false,
17
- };
18
- const post = jest.spyOn(__1.AbyssCore.axios, 'post').mockResolvedValue({ data: { data } });
19
- const body = {
20
- userId: 'user-1',
21
- applicationIds: ['app-1'],
22
- };
23
- const res = await __1.AbyssCore.sdk.projectAccess.admin.computeApplications({ projectId: 'project-1' }, body);
24
- expect(post).toHaveBeenCalledWith('project-access/admin/compute-permission/project/project-1/applications', body);
25
- expect(res.data).toEqual(data);
26
- });
27
- it('caps a batch at 500 applications', () => {
28
- expect(__1.COMPUTE_APPLICATIONS_MAX_IDS).toBe(500);
29
- });
30
- });
31
- //# sourceMappingURL=sdk-compute-applications.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdk-compute-applications.spec.js","sourceRoot":"","sources":["../../../src/api/tests/sdk-compute-applications.spec.ts"],"names":[],"mappings":";;AAAA,6BAKe;AAEf,QAAQ,CAAC,kEAAkE,EAAE,GAAG,EAAE;IAChF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kEAAkE,EAAE,KAAK,IAAI,EAAE;QAChF,MAAM,IAAI,GAAG;YACX,YAAY,EAAE;gBACZ;oBACE,aAAa,EAAE,OAAO;oBACtB,UAAU,EAAE,CAAC,sCAAkC,CAAC,WAAW,CAAC;iBAC7D;aACF;YACD,MAAM,EAAE,KAAK;SACd,CAAC;QACF,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,aAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACvF,MAAM,IAAI,GAA+C;YACvD,MAAM,EAAE,QAAQ;YAChB,cAAc,EAAE,CAAC,OAAO,CAAC;SAC1B,CAAC;QAEF,MAAM,GAAG,GAAG,MAAM,aAAS,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,mBAAmB,CACrE,EAAE,SAAS,EAAE,WAAW,EAAE,EAC1B,IAAI,CACL,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAC/B,wEAAwE,EACxE,IAAI,CACL,CAAC;QACF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,gCAA4B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const __1 = require("../..");
4
- describe('SDK — organizationMember.admin.listUserOrganizations (#882)', () => {
5
- afterEach(() => {
6
- jest.restoreAllMocks();
7
- });
8
- it('reads the organisations of a user through the admin route', async () => {
9
- const body = { data: { organizations: [{ id: 'org-1', name: 'Atelier' }] } };
10
- jest.spyOn(__1.AbyssCore.axios, 'get').mockResolvedValue({ status: 200, data: body });
11
- await expect(__1.AbyssCore.sdk.organizationMember.admin.listUserOrganizations({ userId: 'user-1' })).resolves.toEqual(body);
12
- expect(__1.AbyssCore.axios.get).toHaveBeenCalledWith('organization-member/admin/user/user-1/organizations');
13
- });
14
- });
15
- //# sourceMappingURL=sdk-organization-member-admin.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdk-organization-member-admin.spec.js","sourceRoot":"","sources":["../../../src/api/tests/sdk-organization-member-admin.spec.ts"],"names":[],"mappings":";;AAAA,6BAAkC;AAElC,QAAQ,CAAC,6DAA6D,EAAE,GAAG,EAAE;IAC3E,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;QACzE,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7E,IAAI,CAAC,KAAK,CAAC,aAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAElF,MAAM,MAAM,CACV,aAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CACnF,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzB,MAAM,CAAC,aAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,oBAAoB,CAC9C,qDAAqD,CACtD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,28 +0,0 @@
1
- import { OAuthAudience } from '../types/enum/oauth-app.enum';
2
- import { OAuthScopeName } from './oauth-scope-catalogue';
3
- export declare const OAUTH_APP_CLIENT_ID_PREFIX = "abys_app_";
4
- export declare const OAUTH_APP_CLIENT_SECRET_PREFIX = "abys_apsec_";
5
- export declare const OAUTH_APP_REFRESH_TOKEN_PREFIX = "abys_aprt_";
6
- export declare const OAUTH_APP_ACCESS_TOKEN_TYPE = "at+jwt";
7
- export declare const OAUTH_APP_ACCESS_TOKEN_TTL_SECONDS = 900;
8
- export declare const OAUTH_APP_REFRESH_TOKEN_TTL_SECONDS: number;
9
- export declare const OAUTH_APP_CODE_TTL_SECONDS = 60;
10
- export declare const OAUTH_APP_REQUEST_TTL_SECONDS = 600;
11
- export declare const OAUTH_APP_MAX_PER_PROJECT = 25;
12
- export declare const OAUTH_APP_MAX_REDIRECT_URIS = 10;
13
- export declare const OAUTH_APP_MAX_ORIGINS = 10;
14
- export declare const OAUTH_APP_NAME_MAX_LENGTH = 100;
15
- export declare const OAUTH_APP_DESCRIPTION_MAX_LENGTH = 500;
16
- export declare const OAUTH_APP_OPENID_SCOPE = "openid";
17
- export declare const OAUTH_APP_IDENTITY_SCOPES: readonly ["openid", "profile", "email"];
18
- export declare const OAUTH_ID_TOKEN_TTL_SECONDS = 900;
19
- export declare const OAUTH_PERIMETER_MAX_RESOURCES = 50;
20
- export declare const OAUTH_PERIMETER_CANDIDATES_PAGE_SIZE = 50;
21
- export declare const OAUTH_PERIMETER_SEARCH_MIN_LENGTH = 2;
22
- export declare const OAUTH_PERIMETER_CANDIDATES_PATH = "/oauth-perimeter/admin/candidates";
23
- export declare const OAUTH_PERIMETER_RESOLVE_PATH = "/oauth-perimeter/admin/resolve";
24
- export declare const OAUTH_APP_NAMES_MAX_CLIENT_IDS = 50;
25
- export declare const OAUTH_NONCE_MAX_LENGTH = 512;
26
- export declare const isOAuthScopeName: (scope: string) => scope is OAuthScopeName;
27
- export declare const OAUTH_APP_SCOPES_SUPPORTED: ReadonlyArray<string>;
28
- export declare const audiencesOfScopes: (scopes: readonly string[]) => OAuthAudience[];