@seamapi/types 1.383.0 → 1.384.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 (32) hide show
  1. package/dist/connect.cjs +92 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +159 -2
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/model-types.d.ts +1 -1
  8. package/lib/seam/connect/models/index.d.ts +1 -0
  9. package/lib/seam/connect/models/index.js +1 -0
  10. package/lib/seam/connect/models/index.js.map +1 -1
  11. package/lib/seam/connect/models/instant-keys/index.d.ts +1 -0
  12. package/lib/seam/connect/models/instant-keys/index.js +2 -0
  13. package/lib/seam/connect/models/instant-keys/index.js.map +1 -0
  14. package/lib/seam/connect/models/instant-keys/instant-key.d.ts +27 -0
  15. package/lib/seam/connect/models/instant-keys/instant-key.js +16 -0
  16. package/lib/seam/connect/models/instant-keys/instant-key.js.map +1 -0
  17. package/lib/seam/connect/openapi.d.ts +106 -0
  18. package/lib/seam/connect/openapi.js +77 -0
  19. package/lib/seam/connect/openapi.js.map +1 -1
  20. package/lib/seam/connect/route-types.d.ts +23 -0
  21. package/lib/seam/connect/schemas.d.ts +1 -1
  22. package/lib/seam/connect/schemas.js +1 -1
  23. package/lib/seam/connect/schemas.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  26. package/src/lib/seam/connect/model-types.ts +1 -0
  27. package/src/lib/seam/connect/models/index.ts +1 -0
  28. package/src/lib/seam/connect/models/instant-keys/index.ts +1 -0
  29. package/src/lib/seam/connect/models/instant-keys/instant-key.ts +18 -0
  30. package/src/lib/seam/connect/openapi.ts +79 -0
  31. package/src/lib/seam/connect/route-types.ts +23 -0
  32. package/src/lib/seam/connect/schemas.ts +1 -0
package/dist/connect.cjs CHANGED
@@ -30,6 +30,7 @@ __export(schemas_exports, {
30
30
  custom_metadata: () => custom_metadata,
31
31
  device: () => device,
32
32
  device_provider: () => device_provider,
33
+ instant_key: () => instant_key,
33
34
  noise_threshold: () => noise_threshold,
34
35
  pagination: () => pagination,
35
36
  seam_event: () => seam_event,
@@ -4170,6 +4171,20 @@ var event_types = seam_event.options.map(
4170
4171
  zod.z.enum(
4171
4172
  event_types
4172
4173
  );
4174
+ var instant_key = zod.z.object({
4175
+ instant_key_id: zod.z.string().uuid(),
4176
+ workspace_id: zod.z.string().uuid(),
4177
+ created_at: zod.z.string().datetime(),
4178
+ instant_key_url: zod.z.string().url(),
4179
+ client_session_id: zod.z.string().uuid(),
4180
+ user_identity_id: zod.z.string().uuid(),
4181
+ expires_at: zod.z.string().datetime()
4182
+ }).describe(`
4183
+ ---
4184
+ route_path: /user_identities
4185
+ undocumented: Unreleased.
4186
+ ---
4187
+ `);
4173
4188
  var noise_threshold = zod.z.object({
4174
4189
  noise_threshold_id: zod.z.string().uuid(),
4175
4190
  device_id: zod.z.string().uuid(),
@@ -16747,6 +16762,29 @@ var openapi_default = {
16747
16762
  ],
16748
16763
  "x-route-path": "/events"
16749
16764
  },
16765
+ instant_key: {
16766
+ properties: {
16767
+ client_session_id: { format: "uuid", type: "string" },
16768
+ created_at: { format: "date-time", type: "string" },
16769
+ expires_at: { format: "date-time", type: "string" },
16770
+ instant_key_id: { format: "uuid", type: "string" },
16771
+ instant_key_url: { format: "uri", type: "string" },
16772
+ user_identity_id: { format: "uuid", type: "string" },
16773
+ workspace_id: { format: "uuid", type: "string" }
16774
+ },
16775
+ required: [
16776
+ "instant_key_id",
16777
+ "workspace_id",
16778
+ "created_at",
16779
+ "instant_key_url",
16780
+ "client_session_id",
16781
+ "user_identity_id",
16782
+ "expires_at"
16783
+ ],
16784
+ type: "object",
16785
+ "x-route-path": "/user_identities",
16786
+ "x-undocumented": "Unreleased."
16787
+ },
16750
16788
  network: {
16751
16789
  properties: {
16752
16790
  created_at: { format: "date-time", type: "string" },
@@ -34482,6 +34520,60 @@ var openapi_default = {
34482
34520
  "x-title": "List Enrollment Automations"
34483
34521
  }
34484
34522
  },
34523
+ "/user_identities/generate_instant_key": {
34524
+ post: {
34525
+ description: "Generates a new [instant key](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/instant-keys) for a specified [user identity](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).",
34526
+ operationId: "userIdentitiesGenerateInstantKeyPost",
34527
+ requestBody: {
34528
+ content: {
34529
+ "application/json": {
34530
+ schema: {
34531
+ properties: {
34532
+ user_identity_id: {
34533
+ description: "ID of the user identity for which you want to generate an instant key.",
34534
+ format: "uuid",
34535
+ type: "string"
34536
+ }
34537
+ },
34538
+ required: ["user_identity_id"],
34539
+ type: "object"
34540
+ }
34541
+ }
34542
+ }
34543
+ },
34544
+ responses: {
34545
+ 200: {
34546
+ content: {
34547
+ "application/json": {
34548
+ schema: {
34549
+ properties: {
34550
+ instant_key: { $ref: "#/components/schemas/instant_key" },
34551
+ ok: { type: "boolean" }
34552
+ },
34553
+ required: ["instant_key", "ok"],
34554
+ type: "object"
34555
+ }
34556
+ }
34557
+ },
34558
+ description: "OK"
34559
+ },
34560
+ 400: { description: "Bad Request" },
34561
+ 401: { description: "Unauthorized" }
34562
+ },
34563
+ security: [
34564
+ { api_key: [] },
34565
+ { pat_with_workspace: [] },
34566
+ { console_session_with_workspace: [] }
34567
+ ],
34568
+ summary: "/user_identities/generate_instant_key",
34569
+ tags: ["/user_identities"],
34570
+ "x-fern-sdk-group-name": ["user_identities"],
34571
+ "x-fern-sdk-method-name": "generate_instant_key",
34572
+ "x-fern-sdk-return-value": "instant_key",
34573
+ "x-response-key": "instant_key",
34574
+ "x-title": "Generate an Instant Key"
34575
+ }
34576
+ },
34485
34577
  "/user_identities/get": {
34486
34578
  post: {
34487
34579
  description: "Returns a specified [user identity](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).",