p2-inc / phasetwo-js Goto Github PK
View Code? Open in Web Editor NEWPhase Two API JavaScript SDK
Home Page: https://www.npmjs.com/package/@p2-inc/js-sdk
License: Apache License 2.0
Phase Two API JavaScript SDK
Home Page: https://www.npmjs.com/package/@p2-inc/js-sdk
License: Apache License 2.0
Currently this package is distributed only as Typescript which makes it somewhat impossible to use:
https://www.npmjs.com/package/@p2-inc/js-sdk?activeTab=explore
I can see build scripts but it seems that the dist/
folder is not included in the package on npm.
Is it possible to add this also?
The api docs talk about the field redirectUri
for POST /:realm/orgs/:orgId/invitations
but it's currently not supported by this package.
Perhaps you could rerun the Openapi codegen?
I get a 400 error, when trying to create a new webhook with the sdk.
i guess this is because the property eventTypes gets casted to event_types, when sending the request. (confirmed: i just created an entry with postman while using the right parameter-name)
kcEventsClient.createWebhook({
realm: auth.config.realmName,
webhookRepresentation: {
url: 'https://webhook.site/xxxxxxxxx',
enabled: true,
eventTypes: ['*'],
},
})
{"error":"Unrecognized field "event_types" (class io.phasetwo.keycloak.representation.WebhookRepresentation), not marked as ignorable (9 known properties: "secret", "enabled", "id", "url", "createdAt", "algorithm", "createdBy", "realm", "eventTypes"])\n at [Source: (io.quarkus.vertx.http.runtime.VertxInputStream); line: 1, column: 98] (through reference chain: io.phasetwo.keycloak.representation.WebhookRepresentation["event_types"])"}
https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
just a suggestion, no requirement <3
you can close this if you like.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.