@blimu/backend 0.7.0 → 1.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 (122) hide show
  1. package/README.md +129 -134
  2. package/dist/client.d.mts +24 -0
  3. package/dist/client.d.ts +15 -57
  4. package/dist/client.js +67 -157
  5. package/dist/client.js.map +1 -1
  6. package/dist/client.mjs +48 -0
  7. package/dist/client.mjs.map +1 -0
  8. package/dist/index.d.mts +36 -0
  9. package/dist/index.d.ts +25 -26
  10. package/dist/index.js +1037 -83
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +1005 -0
  13. package/dist/index.mjs.map +1 -0
  14. package/dist/main.d.mts +19 -0
  15. package/dist/main.d.ts +19 -0
  16. package/dist/main.js +1273 -0
  17. package/dist/main.js.map +1 -0
  18. package/dist/main.mjs +1264 -0
  19. package/dist/main.mjs.map +1 -0
  20. package/dist/schema-B1usIXCr.d.mts +424 -0
  21. package/dist/schema-B1usIXCr.d.ts +424 -0
  22. package/dist/schema.d.mts +2 -0
  23. package/dist/schema.d.ts +2 -381
  24. package/dist/schema.js +17 -2
  25. package/dist/schema.js.map +1 -1
  26. package/dist/schema.mjs +1 -0
  27. package/dist/schema.mjs.map +1 -0
  28. package/dist/schema.zod-CRNAHxbc.d.mts +444 -0
  29. package/dist/schema.zod-CRNAHxbc.d.ts +444 -0
  30. package/dist/schema.zod.d.mts +2 -0
  31. package/dist/schema.zod.d.ts +2 -0
  32. package/dist/schema.zod.js +562 -0
  33. package/dist/schema.zod.js.map +1 -0
  34. package/dist/schema.zod.mjs +496 -0
  35. package/dist/schema.zod.mjs.map +1 -0
  36. package/dist/services/bulk_resources.d.mts +12 -0
  37. package/dist/services/bulk_resources.d.ts +9 -4
  38. package/dist/services/bulk_resources.js +45 -18
  39. package/dist/services/bulk_resources.js.map +1 -1
  40. package/dist/services/bulk_resources.mjs +22 -0
  41. package/dist/services/bulk_resources.mjs.map +1 -0
  42. package/dist/services/bulk_roles.d.mts +12 -0
  43. package/dist/services/bulk_roles.d.ts +9 -4
  44. package/dist/services/bulk_roles.js +45 -18
  45. package/dist/services/bulk_roles.js.map +1 -1
  46. package/dist/services/bulk_roles.mjs +22 -0
  47. package/dist/services/bulk_roles.mjs.map +1 -0
  48. package/dist/services/entitlements.d.mts +14 -0
  49. package/dist/services/entitlements.d.ts +11 -6
  50. package/dist/services/entitlements.js +69 -34
  51. package/dist/services/entitlements.js.map +1 -1
  52. package/dist/services/entitlements.mjs +46 -0
  53. package/dist/services/entitlements.mjs.map +1 -0
  54. package/dist/services/plans.d.mts +14 -0
  55. package/dist/services/plans.d.ts +11 -6
  56. package/dist/services/plans.js +67 -32
  57. package/dist/services/plans.js.map +1 -1
  58. package/dist/services/plans.mjs +44 -0
  59. package/dist/services/plans.mjs.map +1 -0
  60. package/dist/services/resource_members.d.mts +12 -0
  61. package/dist/services/resource_members.d.ts +9 -4
  62. package/dist/services/resource_members.js +45 -17
  63. package/dist/services/resource_members.js.map +1 -1
  64. package/dist/services/resource_members.mjs +22 -0
  65. package/dist/services/resource_members.mjs.map +1 -0
  66. package/dist/services/resources.d.mts +16 -0
  67. package/dist/services/resources.d.ts +13 -8
  68. package/dist/services/resources.js +91 -49
  69. package/dist/services/resources.js.map +1 -1
  70. package/dist/services/resources.mjs +68 -0
  71. package/dist/services/resources.mjs.map +1 -0
  72. package/dist/services/roles.d.mts +14 -0
  73. package/dist/services/roles.d.ts +11 -6
  74. package/dist/services/roles.js +68 -33
  75. package/dist/services/roles.js.map +1 -1
  76. package/dist/services/roles.mjs +45 -0
  77. package/dist/services/roles.mjs.map +1 -0
  78. package/dist/services/usage.d.mts +16 -0
  79. package/dist/services/usage.d.ts +13 -8
  80. package/dist/services/usage.js +93 -52
  81. package/dist/services/usage.js.map +1 -1
  82. package/dist/services/usage.mjs +70 -0
  83. package/dist/services/usage.mjs.map +1 -0
  84. package/dist/services/users.d.mts +17 -0
  85. package/dist/services/users.d.ts +13 -8
  86. package/dist/services/users.js +102 -56
  87. package/dist/services/users.js.map +1 -1
  88. package/dist/services/users.mjs +79 -0
  89. package/dist/services/users.mjs.map +1 -0
  90. package/dist/token-verifier.d.mts +35 -0
  91. package/dist/token-verifier.d.ts +8 -6
  92. package/dist/token-verifier.js +225 -172
  93. package/dist/token-verifier.js.map +1 -1
  94. package/dist/token-verifier.mjs +201 -0
  95. package/dist/token-verifier.mjs.map +1 -0
  96. package/dist/tsconfig.tsbuildinfo +1 -1
  97. package/dist/utils.d.mts +20 -0
  98. package/dist/utils.d.ts +7 -3
  99. package/dist/utils.js +50 -20
  100. package/dist/utils.js.map +1 -1
  101. package/dist/utils.mjs +29 -0
  102. package/dist/utils.mjs.map +1 -0
  103. package/package.json +37 -62
  104. package/src/client.ts +74 -0
  105. package/src/index.ts +55 -0
  106. package/src/main.ts +3 -0
  107. package/src/schema.ts +430 -0
  108. package/src/schema.zod.ts +558 -0
  109. package/src/services/bulk_resources.ts +24 -0
  110. package/src/services/bulk_roles.ts +22 -0
  111. package/src/services/entitlements.ts +58 -0
  112. package/src/services/plans.ts +57 -0
  113. package/src/services/resource_members.ts +25 -0
  114. package/src/services/resources.ts +91 -0
  115. package/src/services/roles.ts +58 -0
  116. package/src/services/usage.ts +93 -0
  117. package/src/services/users.ts +100 -0
  118. package/src/token-verifier.ts +280 -0
  119. package/src/utils.ts +56 -0
  120. package/bin/blimu +0 -0
  121. package/scripts/download-binary.js +0 -243
  122. package/scripts/postinstall.js +0 -24
@@ -0,0 +1,57 @@
1
+ import { CoreClient } from '../client';
2
+ import * as Schema from '../schema';
3
+ import type { ResourceType } from '@blimu/types';
4
+
5
+ export class PlansService {
6
+ constructor(private core: CoreClient) {}
7
+
8
+ /**
9
+ * DELETE /v1/resources/{resourceType}/{resourceId}/plan*
10
+ * @summary Remove plan assignment from a tenant resource*
11
+ * @description Removes the billing plan assignment from a tenant resource. After removal, the resource will have no plan and will be subject to default limits.*/
12
+ delete(
13
+ resourceType: ResourceType,
14
+ resourceId: string,
15
+ init?: Omit<RequestInit, 'method' | 'body'>
16
+ ): Promise<Schema.PlanDeleteResponse> {
17
+ return this.core.request({
18
+ method: 'DELETE',
19
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/plan`,
20
+ ...(init || {}),
21
+ });
22
+ }
23
+
24
+ /**
25
+ * GET /v1/resources/{resourceType}/{resourceId}/plan*
26
+ * @summary Get the plan assigned to a tenant resource*
27
+ * @description Retrieves the billing plan currently assigned to a tenant resource, if any.*/
28
+ read(
29
+ resourceType: ResourceType,
30
+ resourceId: string,
31
+ init?: Omit<RequestInit, 'method' | 'body'>
32
+ ): Promise<Schema.PlanResponse> {
33
+ return this.core.request({
34
+ method: 'GET',
35
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/plan`,
36
+ ...(init || {}),
37
+ });
38
+ }
39
+
40
+ /**
41
+ * POST /v1/resources/{resourceType}/{resourceId}/plan*
42
+ * @summary Assign a plan to a tenant resource*
43
+ * @description Assigns a billing plan to a tenant resource. Plans control feature access and usage limits based on your plan definitions. The resource must be marked as a tenant in your resource definitions.*/
44
+ assign(
45
+ resourceType: ResourceType,
46
+ resourceId: string,
47
+ body: Schema.PlanAssignBody,
48
+ init?: Omit<RequestInit, 'method' | 'body'>
49
+ ): Promise<unknown> {
50
+ return this.core.request({
51
+ method: 'POST',
52
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/plan`,
53
+ body: body as any,
54
+ ...(init || {}),
55
+ });
56
+ }
57
+ }
@@ -0,0 +1,25 @@
1
+ import { CoreClient } from '../client';
2
+ import * as Schema from '../schema';
3
+ import type { ResourceType } from '@blimu/types';
4
+
5
+ export class ResourceMembersService {
6
+ constructor(private core: CoreClient) {}
7
+
8
+ /**
9
+ * GET /v1/resources/{resourceType}/{resourceId}/members*
10
+ * @summary List members for a resource*
11
+ * @description Retrieves a paginated list of users who have roles (direct or inherited) on the specified resource. Supports search functionality to filter users by email or name.*/
12
+ list(
13
+ resourceType: ResourceType,
14
+ resourceId: string,
15
+ query?: Schema.ResourceMembersListQuery,
16
+ init?: Omit<RequestInit, 'method' | 'body'>
17
+ ): Promise<Schema.ResourceMemberList> {
18
+ return this.core.request({
19
+ method: 'GET',
20
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/members`,
21
+ query,
22
+ ...(init || {}),
23
+ });
24
+ }
25
+ }
@@ -0,0 +1,91 @@
1
+ import { CoreClient } from '../client';
2
+ import * as Schema from '../schema';
3
+ import type { ResourceType } from '@blimu/types';
4
+
5
+ export class ResourcesService {
6
+ constructor(private core: CoreClient) {}
7
+
8
+ /**
9
+ * GET /v1/resources/{resourceType}*
10
+ * @summary List resources*
11
+ * @description Retrieves a paginated list of resources of the specified type. Supports search and filtering. Resources are returned with their parent relationships and metadata.*/
12
+ list(
13
+ resourceType: ResourceType,
14
+ query?: Schema.ResourcesListQuery,
15
+ init?: Omit<RequestInit, 'method' | 'body'>
16
+ ): Promise<Schema.ResourceList> {
17
+ return this.core.request({
18
+ method: 'GET',
19
+ path: `/v1/resources/${encodeURIComponent(resourceType)}`,
20
+ query,
21
+ ...(init || {}),
22
+ });
23
+ }
24
+
25
+ /**
26
+ * POST /v1/resources/{resourceType}*
27
+ * @summary Create a resource*
28
+ * @description Creates a new resource of the specified type. Resources can have parent relationships to form hierarchies. You can optionally assign initial roles to users when creating the resource. Parent resources must already exist.*/
29
+ create(
30
+ resourceType: ResourceType,
31
+ body: Schema.ResourceCreateBody,
32
+ init?: Omit<RequestInit, 'method' | 'body'>
33
+ ): Promise<Schema.Resource> {
34
+ return this.core.request({
35
+ method: 'POST',
36
+ path: `/v1/resources/${encodeURIComponent(resourceType)}`,
37
+ body: body as any,
38
+ ...(init || {}),
39
+ });
40
+ }
41
+
42
+ /**
43
+ * DELETE /v1/resources/{resourceType}/{resourceId}*
44
+ * @summary Delete a resource*
45
+ * @description Deletes a resource by its type and ID. This operation is permanent and cannot be undone. Deleting a resource may affect child resources that depend on it.*/
46
+ delete(
47
+ resourceType: ResourceType,
48
+ resourceId: string,
49
+ init?: Omit<RequestInit, 'method' | 'body'>
50
+ ): Promise<unknown> {
51
+ return this.core.request({
52
+ method: 'DELETE',
53
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}`,
54
+ ...(init || {}),
55
+ });
56
+ }
57
+
58
+ /**
59
+ * GET /v1/resources/{resourceType}/{resourceId}*
60
+ * @summary Read a resource*
61
+ * @description Retrieves a single resource by its type and ID. Returns the resource with its parent relationships and metadata.*/
62
+ read(
63
+ resourceType: ResourceType,
64
+ resourceId: string,
65
+ init?: Omit<RequestInit, 'method' | 'body'>
66
+ ): Promise<Schema.Resource> {
67
+ return this.core.request({
68
+ method: 'GET',
69
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}`,
70
+ ...(init || {}),
71
+ });
72
+ }
73
+
74
+ /**
75
+ * PUT /v1/resources/{resourceType}/{resourceId}*
76
+ * @summary Update a resource*
77
+ * @description Updates an existing resource. You can update the resource name and modify parent relationships. Parent resources must already exist.*/
78
+ update(
79
+ resourceType: ResourceType,
80
+ resourceId: string,
81
+ body: Schema.ResourceUpdateBody,
82
+ init?: Omit<RequestInit, 'method' | 'body'>
83
+ ): Promise<unknown> {
84
+ return this.core.request({
85
+ method: 'PUT',
86
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}`,
87
+ body: body as any,
88
+ ...(init || {}),
89
+ });
90
+ }
91
+ }
@@ -0,0 +1,58 @@
1
+ import { CoreClient } from '../client';
2
+ import * as Schema from '../schema';
3
+ import type { ResourceType } from '@blimu/types';
4
+
5
+ export class RolesService {
6
+ constructor(private core: CoreClient) {}
7
+
8
+ /**
9
+ * GET /v1/users/{userId}/roles*
10
+ * @summary List user roles*
11
+ * @description Retrieves a paginated list of roles assigned to a user. Supports filtering by resource type, resource ID, and role name. Returns both directly assigned roles and inherited roles.*/
12
+ list(
13
+ userId: string,
14
+ query?: Schema.RolesListQuery,
15
+ init?: Omit<RequestInit, 'method' | 'body'>
16
+ ): Promise<Schema.RoleList> {
17
+ return this.core.request({
18
+ method: 'GET',
19
+ path: `/v1/users/${encodeURIComponent(userId)}/roles`,
20
+ query,
21
+ ...(init || {}),
22
+ });
23
+ }
24
+
25
+ /**
26
+ * POST /v1/users/{userId}/roles*
27
+ * @summary Create a role (assign role to user on resource)*
28
+ * @description Assigns a role to a user on a specific resource. The role must be defined in your resource definitions for the specified resource type. Roles can be inherited from parent resources based on your resource configuration.*/
29
+ create(
30
+ userId: string,
31
+ body: Schema.RoleCreateBody,
32
+ init?: Omit<RequestInit, 'method' | 'body'>
33
+ ): Promise<Schema.Role> {
34
+ return this.core.request({
35
+ method: 'POST',
36
+ path: `/v1/users/${encodeURIComponent(userId)}/roles`,
37
+ body: body as any,
38
+ ...(init || {}),
39
+ });
40
+ }
41
+
42
+ /**
43
+ * DELETE /v1/users/{userId}/roles/{resourceType}/{resourceId}*
44
+ * @summary Delete a role*
45
+ * @description Removes a role assignment from a user on a specific resource. This only removes the direct role assignment and does not affect inherited roles from parent resources.*/
46
+ delete(
47
+ userId: string,
48
+ resourceType: ResourceType,
49
+ resourceId: string,
50
+ init?: Omit<RequestInit, 'method' | 'body'>
51
+ ): Promise<unknown> {
52
+ return this.core.request({
53
+ method: 'DELETE',
54
+ path: `/v1/users/${encodeURIComponent(userId)}/roles/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}`,
55
+ ...(init || {}),
56
+ });
57
+ }
58
+ }
@@ -0,0 +1,93 @@
1
+ import { CoreClient } from '../client';
2
+ import * as Schema from '../schema';
3
+ import type { ResourceType, UsageLimitType } from '@blimu/types';
4
+
5
+ export class UsageService {
6
+ constructor(private core: CoreClient) {}
7
+
8
+ /**
9
+ * GET /v1/usage/balance/{resourceType}/{resourceId}/{limitType}*
10
+ * @summary Get wallet balance*
11
+ * @description Retrieves the current balance of a usage wallet for a specific resource and limit type within a given time period. The balance reflects all credits and consumption transactions.*/
12
+ getBalance(
13
+ resourceType: ResourceType,
14
+ resourceId: string,
15
+ limitType: UsageLimitType,
16
+ query?: Schema.UsageGetBalanceQuery,
17
+ init?: Omit<RequestInit, 'method' | 'body'>
18
+ ): Promise<Schema.BalanceResponse> {
19
+ return this.core.request({
20
+ method: 'GET',
21
+ path: `/v1/usage/balance/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/${encodeURIComponent(limitType)}`,
22
+ query,
23
+ ...(init || {}),
24
+ });
25
+ }
26
+
27
+ /**
28
+ * POST /v1/usage/check*
29
+ * @summary Check if consumption is allowed*
30
+ * @description Checks whether a specific amount of consumption is allowed for a resource and limit type within a given time period. Returns the current balance, requested amount, and remaining balance after the consumption.*/
31
+ checkLimit(
32
+ body: Schema.UsageCheckBody,
33
+ init?: Omit<RequestInit, 'method' | 'body'>
34
+ ): Promise<Schema.CheckLimitResponse> {
35
+ return this.core.request({
36
+ method: 'POST',
37
+ path: `/v1/usage/check`,
38
+ body: body as any,
39
+ ...(init || {}),
40
+ });
41
+ }
42
+
43
+ /**
44
+ * POST /v1/usage/consume*
45
+ * @summary Record consumption (inserts negative amount)*
46
+ * @description Records consumption from a usage wallet for a specific resource and limit type. This decreases the available balance. Consumption can be tagged for tracking purposes.*/
47
+ consume(
48
+ body: Schema.UsageConsumeBody,
49
+ init?: Omit<RequestInit, 'method' | 'body'>
50
+ ): Promise<Schema.UsageWalletResponse> {
51
+ return this.core.request({
52
+ method: 'POST',
53
+ path: `/v1/usage/consume`,
54
+ body: body as any,
55
+ ...(init || {}),
56
+ });
57
+ }
58
+
59
+ /**
60
+ * POST /v1/usage/credit*
61
+ * @summary Add credits to wallet (inserts positive amount)*
62
+ * @description Adds credits to a usage wallet for a specific resource and limit type. This increases the available balance for usage-based limits. Credits can be tagged for tracking purposes.*/
63
+ credit(
64
+ body: Schema.UsageCreditBody,
65
+ init?: Omit<RequestInit, 'method' | 'body'>
66
+ ): Promise<Schema.UsageWalletResponse> {
67
+ return this.core.request({
68
+ method: 'POST',
69
+ path: `/v1/usage/credit`,
70
+ body: body as any,
71
+ ...(init || {}),
72
+ });
73
+ }
74
+
75
+ /**
76
+ * GET /v1/usage/transactions/{resourceType}/{resourceId}/{limitType}*
77
+ * @summary Get transaction history*
78
+ * @description Retrieves the transaction history for a usage wallet, including all credits and consumption records. Supports filtering by time period and date range.*/
79
+ getTransactionHistory(
80
+ resourceType: ResourceType,
81
+ resourceId: string,
82
+ limitType: UsageLimitType,
83
+ query?: Schema.UsageGetTransactionHistoryQuery,
84
+ init?: Omit<RequestInit, 'method' | 'body'>
85
+ ): Promise<Schema.TransactionHistoryResponse> {
86
+ return this.core.request({
87
+ method: 'GET',
88
+ path: `/v1/usage/transactions/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/${encodeURIComponent(limitType)}`,
89
+ query,
90
+ ...(init || {}),
91
+ });
92
+ }
93
+ }
@@ -0,0 +1,100 @@
1
+ import { CoreClient } from '../client';
2
+ import * as Schema from '../schema';
3
+
4
+ export class UsersService {
5
+ constructor(private core: CoreClient) {}
6
+
7
+ /**
8
+ * GET /v1/users*
9
+ * @summary List users*
10
+ * @description Retrieves a paginated list of users in your environment. Supports search functionality to filter users by email, name, or lookup key.*/
11
+ list(
12
+ query?: Schema.UsersListQuery,
13
+ init?: Omit<RequestInit, 'method' | 'body'>
14
+ ): Promise<Schema.UserList> {
15
+ return this.core.request({
16
+ method: 'GET',
17
+ path: `/v1/users`,
18
+ query,
19
+ ...(init || {}),
20
+ });
21
+ }
22
+
23
+ /**
24
+ * POST /v1/users*
25
+ * @summary Create a user*
26
+ * @description Creates a new user in your environment. The lookupKey is a unique identifier that you can use to reference the user in your system. It should be stable and not change over time.*/
27
+ create(
28
+ body: Schema.UserCreateBody,
29
+ init?: Omit<RequestInit, 'method' | 'body'>
30
+ ): Promise<Schema.User> {
31
+ return this.core.request({
32
+ method: 'POST',
33
+ path: `/v1/users`,
34
+ body: body as any,
35
+ ...(init || {}),
36
+ });
37
+ }
38
+
39
+ /**
40
+ * DELETE /v1/users/{userId}*
41
+ * @summary Delete a user*
42
+ * @description Deletes a user by their ID or lookup key. This operation is permanent and cannot be undone. Deleting a user will also remove all role assignments for that user.*/
43
+ delete(
44
+ userId: string,
45
+ init?: Omit<RequestInit, 'method' | 'body'>
46
+ ): Promise<unknown> {
47
+ return this.core.request({
48
+ method: 'DELETE',
49
+ path: `/v1/users/${encodeURIComponent(userId)}`,
50
+ ...(init || {}),
51
+ });
52
+ }
53
+
54
+ /**
55
+ * GET /v1/users/{userId}*
56
+ * @summary Get a user by ID*
57
+ * @description Retrieves a single user by their ID or lookup key. Returns user information including email, name, and metadata.*/
58
+ read(
59
+ userId: string,
60
+ init?: Omit<RequestInit, 'method' | 'body'>
61
+ ): Promise<Schema.User> {
62
+ return this.core.request({
63
+ method: 'GET',
64
+ path: `/v1/users/${encodeURIComponent(userId)}`,
65
+ ...(init || {}),
66
+ });
67
+ }
68
+
69
+ /**
70
+ * PUT /v1/users/{userId}*
71
+ * @summary Update a user*
72
+ * @description Updates an existing user. You can modify email, name, and other user properties. The lookupKey can be updated but should remain stable.*/
73
+ update(
74
+ userId: string,
75
+ body: Schema.UserUpdateBody,
76
+ init?: Omit<RequestInit, 'method' | 'body'>
77
+ ): Promise<Schema.User> {
78
+ return this.core.request({
79
+ method: 'PUT',
80
+ path: `/v1/users/${encodeURIComponent(userId)}`,
81
+ body: body as any,
82
+ ...(init || {}),
83
+ });
84
+ }
85
+
86
+ /**
87
+ * GET /v1/users/{userId}/effective-user-resources-roles*
88
+ * @summary List effective user resources roles*
89
+ * @description Retrieves all resources and roles for a user, including inherited roles from parent resources. The response indicates whether each role is directly assigned or inherited through resource hierarchies.*/
90
+ listEffectiveUserResourcesRoles(
91
+ userId: string,
92
+ init?: Omit<RequestInit, 'method' | 'body'>
93
+ ): Promise<Schema.UserResourceList> {
94
+ return this.core.request({
95
+ method: 'GET',
96
+ path: `/v1/users/${encodeURIComponent(userId)}/effective-user-resources-roles`,
97
+ ...(init || {}),
98
+ });
99
+ }
100
+ }