@treeseed/sdk 0.13.0-rc.22 → 0.13.0-rc.23

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.
@@ -28,7 +28,7 @@ function providerPath(operationId, method, path, pathShape, options = {}) {
28
28
  rest: { method, path },
29
29
  parameters: `treeseed.${operationId}.parameters/v1`,
30
30
  capability: "providers.execute",
31
- authentication: "provider",
31
+ authentication: options.authentication ?? "provider",
32
32
  oauthScopes: [],
33
33
  kind,
34
34
  riskClass: "ordinary",
@@ -44,7 +44,7 @@ const noPathProvider = (operationId, method, path, options = {}) => define({
44
44
  description: `${options.read ? "Read" : "Apply"} ${operationId}.`,
45
45
  rest: { method, path },
46
46
  capability: "providers.execute",
47
- authentication: "provider",
47
+ authentication: options.authentication ?? "provider",
48
48
  oauthScopes: [],
49
49
  kind: options.read ? "read" : "mutation",
50
50
  riskClass: "ordinary",
@@ -461,10 +461,10 @@ const CONTROL_PLANE_OPERATIONS = {
461
461
  rotate: resource("providers.credentials.rotate", "POST", "/v1/teams/{teamId}/capacity-provider-connections/{connectionId}/credentials/rotate", { teamId: z.string().min(1), connectionId: z.string().min(1) }, { capability: "providers.write", scopes: ["treeseed:admin"], surfaces: ["rest", "cli"], risk: "credential" }),
462
462
  revoke: resource("providers.credentials.revoke", "POST", "/v1/teams/{teamId}/capacity-provider-connections/{connectionId}/credentials/revoke", { teamId: z.string().min(1), connectionId: z.string().min(1) }, { capability: "providers.write", scopes: ["treeseed:admin"], surfaces: ["rest", "cli"], risk: "irreversible" })
463
463
  },
464
- register: noPathProvider("providers.register", "POST", "/v1/provider-registrations", { redactedPaths: ["body.registrationKey"] }),
465
- registration: providerPath("providers.registration.show", "GET", "/v1/provider-registrations/{requestId}", { requestId: z.string().min(1) }, { read: true }),
466
- exchangeCredential: providerPath("providers.registration.credential", "POST", "/v1/provider-registrations/{requestId}/credential", { requestId: z.string().min(1) }, { redactedPaths: ["body.proof"] }),
467
- issueAccessToken: noPathProvider("providers.token.issue", "POST", "/v1/provider/access-tokens", { redactedPaths: ["body.credential", "body.proof"] }),
464
+ register: noPathProvider("providers.register", "POST", "/v1/provider-registrations", { authentication: "signed_request", redactedPaths: ["body.registrationKey"] }),
465
+ registration: providerPath("providers.registration.show", "GET", "/v1/provider-registrations/{requestId}", { requestId: z.string().min(1) }, { authentication: "signed_request", read: true }),
466
+ exchangeCredential: providerPath("providers.registration.credential", "POST", "/v1/provider-registrations/{requestId}/credential", { requestId: z.string().min(1) }, { authentication: "signed_request", redactedPaths: ["body.proof"] }),
467
+ issueAccessToken: noPathProvider("providers.token.issue", "POST", "/v1/provider/access-tokens", { authentication: "signed_request", redactedPaths: ["body.credential", "body.proof"] }),
468
468
  leaveMembership: noPathProvider("providers.membership.leave", "POST", "/v1/provider/membership/leave"),
469
469
  rotateIdentity: noPathProvider("providers.identity.rotate", "POST", "/v1/provider/identity/rotate", { redactedPaths: ["body.oldProof", "body.newProof"] }),
470
470
  rotateCredential: noPathProvider("providers.credential.rotate", "POST", "/v1/provider/credential-rotation"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.13.0-rc.22",
3
+ "version": "0.13.0-rc.23",
4
4
  "description": "Portable TreeSeed contracts, standards, and typed remote control-plane clients.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {