@origincloud/iam 0.26.0 → 0.27.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.
- package/dist/v1beta1/audit_log.d.ts +11 -4
- package/dist/v1beta1/audit_log.d.ts.map +1 -1
- package/dist/v1beta1/audit_log.js +6 -0
- package/dist/v1beta1/audit_log.js.map +1 -1
- package/dist/v1beta1/role_binding.d.ts +15 -5
- package/dist/v1beta1/role_binding.d.ts.map +1 -1
- package/dist/v1beta1/role_binding.js +10 -1
- package/dist/v1beta1/role_binding.js.map +1 -1
- package/package.json +3 -3
- package/src/v1beta1/audit_log.ts +11 -4
- package/src/v1beta1/role_binding.ts +15 -5
|
@@ -50,8 +50,9 @@ export interface AuditLogEntry {
|
|
|
50
50
|
* Who made the change, as it was when the change was made:
|
|
51
51
|
* `user:{email}` with the verified address the account had then,
|
|
52
52
|
* `userId:{user}` when none was recorded, `serviceAccount:{service_account}`,
|
|
53
|
-
*
|
|
54
|
-
*
|
|
53
|
+
* `serviceAgent:{service_agent}` for a platform service agent acting in
|
|
54
|
+
* the organization, or `platform` for a change the platform made itself.
|
|
55
|
+
* A later change of address doesn't change it.
|
|
55
56
|
*/
|
|
56
57
|
actor?: string;
|
|
57
58
|
/**
|
|
@@ -82,6 +83,12 @@ export declare const AuditLogEntry_Outcome: {
|
|
|
82
83
|
readonly SUCCEEDED: "SUCCEEDED";
|
|
83
84
|
/** It was refused for lack of a permission. */
|
|
84
85
|
readonly DENIED: "DENIED";
|
|
86
|
+
/**
|
|
87
|
+
* It was attempted and refused for another reason, which `details`
|
|
88
|
+
* names in `reason`, such as a key asked to decrypt under the wrong
|
|
89
|
+
* encryption context.
|
|
90
|
+
*/
|
|
91
|
+
readonly FAILED: "FAILED";
|
|
85
92
|
};
|
|
86
93
|
/** Whether the change was made. */
|
|
87
94
|
export type AuditLogEntry_Outcome = (typeof AuditLogEntry_Outcome)[keyof typeof AuditLogEntry_Outcome];
|
|
@@ -104,8 +111,8 @@ export interface ListAuditLogEntriesRequest {
|
|
|
104
111
|
project?: string;
|
|
105
112
|
/**
|
|
106
113
|
* Only the entries of changes made by this member's account,
|
|
107
|
-
* `user:{email}
|
|
108
|
-
* when empty.
|
|
114
|
+
* `user:{email}`, `serviceAccount:{service_account}` or
|
|
115
|
+
* `serviceAgent:{service_agent}`. Every actor's when empty.
|
|
109
116
|
*/
|
|
110
117
|
actor?: string;
|
|
111
118
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit_log.d.ts","sourceRoot":"","sources":["../../src/v1beta1/audit_log.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAoB,MAAM,mBAAmB,CAAC;AAElG;;;;;;;;;;;GAWG;AACH,qBAAa,cAAc;IACzB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,yEAAyE;gBAC7D,MAAM,EAAE,MAAM;IAI1B;;;OAGG;IACG,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAavG;;;;OAIG;IACG,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAa3H;;;;OAIG;IACI,kBAAkB,CAAC,OAAO,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC,aAAa,EAAE,IAAI,EAAE,SAAS,CAAC;CAQtI;AAED,2BAA2B;AAC3B,MAAM,WAAW,aAAa;IAC5B,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB
|
|
1
|
+
{"version":3,"file":"audit_log.d.ts","sourceRoot":"","sources":["../../src/v1beta1/audit_log.ts"],"names":[],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AACnC,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEvG,wCAAwC;AACxC,MAAM,WAAW,uBAAuB;IACtC,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,2CAA2C;AAC3C,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,4CAA4C;AAC5C,MAAM,WAAW,2BAA2B;IAC1C,mDAAmD;IACnD,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -73,5 +73,11 @@ export const AuditLogEntry_Outcome = {
|
|
|
73
73
|
SUCCEEDED: "SUCCEEDED",
|
|
74
74
|
/** It was refused for lack of a permission. */
|
|
75
75
|
DENIED: "DENIED",
|
|
76
|
+
/**
|
|
77
|
+
* It was attempted and refused for another reason, which `details`
|
|
78
|
+
* names in `reason`, such as a key asked to decrypt under the wrong
|
|
79
|
+
* encryption context.
|
|
80
|
+
*/
|
|
81
|
+
FAILED: "FAILED",
|
|
76
82
|
};
|
|
77
83
|
//# sourceMappingURL=audit_log.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit_log.js","sourceRoot":"","sources":["../../src/v1beta1/audit_log.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,kDAAkD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I,CAAC,OAAO,CAAC,IAAI,CACtB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,YAAY,EAAE,kBAAkB;YACtC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC;YACjC,UAAU,EAAE,IAAI;SACjB,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,CAAC,kBAAkB,CAAC,OAAmC,EAAE,OAAqB;QAClF,KAAK,IAAI,IAAI,GAAG,OAAO,IAAM,CAAC;YAC5B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAC/D,KAAK,CAAC,CAAC,QAAQ,CAAC,eAAe,IAAI,EAAE,CAAC;YACtC,IAAI,CAAC,QAAQ,CAAC,aAAa;gBAAE,OAAO;YACpC,IAAI,GAAG,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC;QACxD,CAAC;IACH,CAAC;CACF;AAyCD,mCAAmC;AACnC,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,eAAe;IACf,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB;IACnB,SAAS,EAAE,WAAW;IACtB,+CAA+C;IAC/C,MAAM,EAAE,QAAQ;IAChB;;;;OAIG;IACH,MAAM,EAAE,QAAQ;CACR,CAAC"}
|
|
@@ -14,6 +14,14 @@ import { type CallOptions, type Client, type Empty, type Service } from "@origin
|
|
|
14
14
|
* account's current one.
|
|
15
15
|
* - `serviceAccount:{service_account}`: a service account of the same
|
|
16
16
|
* organization, by its id.
|
|
17
|
+
* - `serviceAgent:{service_agent}`: a platform service agent, by its name,
|
|
18
|
+
* such as `serviceAgent:compute`. A service agent is the identity one of
|
|
19
|
+
* the platform's services acts as in an organization. Any organization
|
|
20
|
+
* can bind one, but only to a role its service needs; nobody outside the
|
|
21
|
+
* platform can act as one or get a credential for it. Every organization
|
|
22
|
+
* is created with `serviceAgent:compute` bound to
|
|
23
|
+
* `roles/kms.grant-delegate`; delete that binding and compute makes no
|
|
24
|
+
* new grants on the organization's keys.
|
|
17
25
|
*
|
|
18
26
|
* and shown, never accepted, as:
|
|
19
27
|
* - `userId:{user}`: a user by the id of their account, when no verified
|
|
@@ -54,7 +62,8 @@ export declare class RoleBindingClient {
|
|
|
54
62
|
* verified email: nothing is held for an address until its account
|
|
55
63
|
* exists. Refused with `CONFLICT` when the member already holds the role
|
|
56
64
|
* at that scope, and with `BAD_REQUEST` when the member is a deleted
|
|
57
|
-
* service account
|
|
65
|
+
* service account, names no service agent the platform has, or is a
|
|
66
|
+
* service agent and the role isn't one its service needs.
|
|
58
67
|
*/
|
|
59
68
|
createRoleBinding(request: CreateRoleBindingRequest, options?: CallOptions): Promise<RoleBinding>;
|
|
60
69
|
/**
|
|
@@ -79,8 +88,8 @@ export interface RoleBinding {
|
|
|
79
88
|
*/
|
|
80
89
|
urn?: string;
|
|
81
90
|
/**
|
|
82
|
-
* Who holds the role: `user:{email}`
|
|
83
|
-
* `
|
|
91
|
+
* Who holds the role: `user:{email}`, `serviceAccount:{service_account}`
|
|
92
|
+
* or `serviceAgent:{service_agent}`. A user is shown with their
|
|
84
93
|
* account's current verified address, as `userId:{user}` when it has
|
|
85
94
|
* none, or as `deleted:user:{user}` once the account is gone.
|
|
86
95
|
*/
|
|
@@ -116,8 +125,9 @@ export interface ListRoleBindingsRequest {
|
|
|
116
125
|
*/
|
|
117
126
|
parent?: string;
|
|
118
127
|
/**
|
|
119
|
-
* Only the bindings of this member, `user:{email}
|
|
120
|
-
* `serviceAccount:{service_account}
|
|
128
|
+
* Only the bindings of this member, `user:{email}`,
|
|
129
|
+
* `serviceAccount:{service_account}` or `serviceAgent:{service_agent}`.
|
|
130
|
+
* Every member's when empty.
|
|
121
131
|
*/
|
|
122
132
|
member?: string;
|
|
123
133
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role_binding.d.ts","sourceRoot":"","sources":["../../src/v1beta1/role_binding.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,OAAO,EAIb,MAAM,mBAAmB,CAAC;AAE3B
|
|
1
|
+
{"version":3,"file":"role_binding.d.ts","sourceRoot":"","sources":["../../src/v1beta1/role_binding.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,OAAO,EAIb,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,iBAAiB;IAC5B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,4EAA4E;gBAChE,MAAM,EAAE,MAAM;IAI1B,2EAA2E;IACrE,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAajG;;;;;;OAMG;IACG,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAalH;;;;OAIG;IACI,eAAe,CAAC,OAAO,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC,WAAW,EAAE,IAAI,EAAE,SAAS,CAAC;IAS7H;;;;;;;;;;;OAWG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAevG;;;;;;OAMG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC;CAalG;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,mCAAmC;IACnC,IAAI,CAAC,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16,14 @@ import { newRequestId, pathValue, query, } from "@origincloud/core";
|
|
|
16
16
|
* account's current one.
|
|
17
17
|
* - `serviceAccount:{service_account}`: a service account of the same
|
|
18
18
|
* organization, by its id.
|
|
19
|
+
* - `serviceAgent:{service_agent}`: a platform service agent, by its name,
|
|
20
|
+
* such as `serviceAgent:compute`. A service agent is the identity one of
|
|
21
|
+
* the platform's services acts as in an organization. Any organization
|
|
22
|
+
* can bind one, but only to a role its service needs; nobody outside the
|
|
23
|
+
* platform can act as one or get a credential for it. Every organization
|
|
24
|
+
* is created with `serviceAgent:compute` bound to
|
|
25
|
+
* `roles/kms.grant-delegate`; delete that binding and compute makes no
|
|
26
|
+
* new grants on the organization's keys.
|
|
19
27
|
*
|
|
20
28
|
* and shown, never accepted, as:
|
|
21
29
|
* - `userId:{user}`: a user by the id of their account, when no verified
|
|
@@ -82,7 +90,8 @@ export class RoleBindingClient {
|
|
|
82
90
|
* verified email: nothing is held for an address until its account
|
|
83
91
|
* exists. Refused with `CONFLICT` when the member already holds the role
|
|
84
92
|
* at that scope, and with `BAD_REQUEST` when the member is a deleted
|
|
85
|
-
* service account
|
|
93
|
+
* service account, names no service agent the platform has, or is a
|
|
94
|
+
* service agent and the role isn't one its service needs.
|
|
86
95
|
*/
|
|
87
96
|
async createRoleBinding(request, options) {
|
|
88
97
|
if (!request.requestId)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role_binding.js","sourceRoot":"","sources":["../../src/v1beta1/role_binding.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,qDAAqD;AAErD,OAAO,EAKL,YAAY,EACZ,SAAS,EACT,KAAK,GACN,MAAM,mBAAmB,CAAC;AAE3B
|
|
1
|
+
{"version":3,"file":"role_binding.js","sourceRoot":"","sources":["../../src/v1beta1/role_binding.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,qDAAqD;AAErD,OAAO,EAKL,YAAY,EACZ,SAAS,EACT,KAAK,GACN,MAAM,mBAAmB,CA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AE,CAAC,MAAM,CAAC,CAAC;YAC/B,UAAU,EAAE,IAAI;SACjB,EACD,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origincloud/iam",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Origin Cloud's IAM service: users, service accounts, roles, role bindings, permissions and the audit log.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/origincloudhq/sdk-typescript#readme",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"!dist/**/*.tsbuildinfo"
|
|
35
35
|
],
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@origincloud/core": "^0.
|
|
37
|
+
"@origincloud/core": "^0.27.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@origincloud/core": "^0.
|
|
40
|
+
"@origincloud/core": "^0.27.0"
|
|
41
41
|
}
|
|
42
42
|
}
|
package/src/v1beta1/audit_log.ts
CHANGED
|
@@ -90,8 +90,9 @@ export interface AuditLogEntry {
|
|
|
90
90
|
* Who made the change, as it was when the change was made:
|
|
91
91
|
* `user:{email}` with the verified address the account had then,
|
|
92
92
|
* `userId:{user}` when none was recorded, `serviceAccount:{service_account}`,
|
|
93
|
-
*
|
|
94
|
-
*
|
|
93
|
+
* `serviceAgent:{service_agent}` for a platform service agent acting in
|
|
94
|
+
* the organization, or `platform` for a change the platform made itself.
|
|
95
|
+
* A later change of address doesn't change it.
|
|
95
96
|
*/
|
|
96
97
|
actor?: string;
|
|
97
98
|
/**
|
|
@@ -123,6 +124,12 @@ export const AuditLogEntry_Outcome = {
|
|
|
123
124
|
SUCCEEDED: "SUCCEEDED",
|
|
124
125
|
/** It was refused for lack of a permission. */
|
|
125
126
|
DENIED: "DENIED",
|
|
127
|
+
/**
|
|
128
|
+
* It was attempted and refused for another reason, which `details`
|
|
129
|
+
* names in `reason`, such as a key asked to decrypt under the wrong
|
|
130
|
+
* encryption context.
|
|
131
|
+
*/
|
|
132
|
+
FAILED: "FAILED",
|
|
126
133
|
} as const;
|
|
127
134
|
|
|
128
135
|
/** Whether the change was made. */
|
|
@@ -148,8 +155,8 @@ export interface ListAuditLogEntriesRequest {
|
|
|
148
155
|
project?: string;
|
|
149
156
|
/**
|
|
150
157
|
* Only the entries of changes made by this member's account,
|
|
151
|
-
* `user:{email}
|
|
152
|
-
* when empty.
|
|
158
|
+
* `user:{email}`, `serviceAccount:{service_account}` or
|
|
159
|
+
* `serviceAgent:{service_agent}`. Every actor's when empty.
|
|
153
160
|
*/
|
|
154
161
|
actor?: string;
|
|
155
162
|
/**
|
|
@@ -26,6 +26,14 @@ import {
|
|
|
26
26
|
* account's current one.
|
|
27
27
|
* - `serviceAccount:{service_account}`: a service account of the same
|
|
28
28
|
* organization, by its id.
|
|
29
|
+
* - `serviceAgent:{service_agent}`: a platform service agent, by its name,
|
|
30
|
+
* such as `serviceAgent:compute`. A service agent is the identity one of
|
|
31
|
+
* the platform's services acts as in an organization. Any organization
|
|
32
|
+
* can bind one, but only to a role its service needs; nobody outside the
|
|
33
|
+
* platform can act as one or get a credential for it. Every organization
|
|
34
|
+
* is created with `serviceAgent:compute` bound to
|
|
35
|
+
* `roles/kms.grant-delegate`; delete that binding and compute makes no
|
|
36
|
+
* new grants on the organization's keys.
|
|
29
37
|
*
|
|
30
38
|
* and shown, never accepted, as:
|
|
31
39
|
* - `userId:{user}`: a user by the id of their account, when no verified
|
|
@@ -102,7 +110,8 @@ export class RoleBindingClient {
|
|
|
102
110
|
* verified email: nothing is held for an address until its account
|
|
103
111
|
* exists. Refused with `CONFLICT` when the member already holds the role
|
|
104
112
|
* at that scope, and with `BAD_REQUEST` when the member is a deleted
|
|
105
|
-
* service account
|
|
113
|
+
* service account, names no service agent the platform has, or is a
|
|
114
|
+
* service agent and the role isn't one its service needs.
|
|
106
115
|
*/
|
|
107
116
|
async createRoleBinding(request: CreateRoleBindingRequest, options?: CallOptions): Promise<RoleBinding> {
|
|
108
117
|
if (!request.requestId) request = { ...request, requestId: newRequestId() };
|
|
@@ -154,8 +163,8 @@ export interface RoleBinding {
|
|
|
154
163
|
*/
|
|
155
164
|
urn?: string;
|
|
156
165
|
/**
|
|
157
|
-
* Who holds the role: `user:{email}`
|
|
158
|
-
* `
|
|
166
|
+
* Who holds the role: `user:{email}`, `serviceAccount:{service_account}`
|
|
167
|
+
* or `serviceAgent:{service_agent}`. A user is shown with their
|
|
159
168
|
* account's current verified address, as `userId:{user}` when it has
|
|
160
169
|
* none, or as `deleted:user:{user}` once the account is gone.
|
|
161
170
|
*/
|
|
@@ -193,8 +202,9 @@ export interface ListRoleBindingsRequest {
|
|
|
193
202
|
*/
|
|
194
203
|
parent?: string;
|
|
195
204
|
/**
|
|
196
|
-
* Only the bindings of this member, `user:{email}
|
|
197
|
-
* `serviceAccount:{service_account}
|
|
205
|
+
* Only the bindings of this member, `user:{email}`,
|
|
206
|
+
* `serviceAccount:{service_account}` or `serviceAgent:{service_agent}`.
|
|
207
|
+
* Every member's when empty.
|
|
198
208
|
*/
|
|
199
209
|
member?: string;
|
|
200
210
|
/**
|