@productcraft/platform-auth 1.0.1 → 1.0.3

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/manifest.json CHANGED
@@ -133,7 +133,7 @@
133
133
  "resource": "me.hiddenGuides",
134
134
  "scope": null,
135
135
  "signature": "platform.me.hiddenGuides.hide(key, options?): PlatformAuth.HiddenGuide",
136
- "snippet": "const hiddenGuide = await platform.me.hiddenGuides.hide(\"key\");"
136
+ "snippet": "const hiddenGuide = await platform.me.hiddenGuides.hide(\"dashboard\");"
137
137
  },
138
138
  "HiddenGuidesController_list": {
139
139
  "actor": null,
@@ -163,7 +163,7 @@
163
163
  "resource": "me.hiddenGuides",
164
164
  "scope": null,
165
165
  "signature": "platform.me.hiddenGuides.unhide(key, options?): void",
166
- "snippet": "await platform.me.hiddenGuides.unhide(\"key\");"
166
+ "snippet": "await platform.me.hiddenGuides.unhide(\"dashboard\");"
167
167
  },
168
168
  "HiddenGuidesController_showAll": {
169
169
  "actor": null,
@@ -223,7 +223,7 @@
223
223
  "resource": "introspect.workspaces",
224
224
  "scope": null,
225
225
  "signature": "platform.introspect.workspaces.retrieve(workspaceId, options?): PlatformAuth.IntrospectWorkspace",
226
- "snippet": "const introspectWorkspace = await platform.introspect.workspaces.retrieve(\"workspace\");"
226
+ "snippet": "const introspectWorkspace = await platform.introspect.workspaces.retrieve(\"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
227
227
  },
228
228
  "JwksController_jwks": {
229
229
  "actor": null,
@@ -328,7 +328,7 @@
328
328
  "resource": "oauth.connections",
329
329
  "scope": null,
330
330
  "signature": "platform.oauth.connections.delete(grantId, options?): void",
331
- "snippet": "await platform.oauth.connections.delete(\"3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b\");"
331
+ "snippet": "await platform.oauth.connections.delete(\"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
332
332
  },
333
333
  "OAuthAuthorizeController_disconnectWorkspaceConnection": {
334
334
  "actor": null,
@@ -343,7 +343,7 @@
343
343
  "resource": "oauth.workspaces.connections",
344
344
  "scope": null,
345
345
  "signature": "platform.oauth.workspaces.connections.delete(workspaceId, grantId, options?): void",
346
- "snippet": "await platform.oauth.workspaces.connections.delete(\"3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\");"
346
+ "snippet": "await platform.oauth.workspaces.connections.delete(\"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
347
347
  },
348
348
  "OAuthAuthorizeController_restoreWorkspaceConnection": {
349
349
  "actor": null,
@@ -358,7 +358,7 @@
358
358
  "resource": "oauth.workspaces.connections",
359
359
  "scope": null,
360
360
  "signature": "platform.oauth.workspaces.connections.restore(workspaceId, grantId, options?): void",
361
- "snippet": "await platform.oauth.workspaces.connections.restore(\"3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\");"
361
+ "snippet": "await platform.oauth.workspaces.connections.restore(\"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
362
362
  },
363
363
  "OAuthAuthorizeController_workspaceConnections": {
364
364
  "actor": null,
@@ -373,7 +373,7 @@
373
373
  "resource": "oauth.workspaces.connections",
374
374
  "scope": null,
375
375
  "signature": "platform.oauth.workspaces.connections.list(workspaceId, params?, options?): PagePromise<PlatformAuth.ConnectedClient>",
376
- "snippet": "for await (const connection of platform.oauth.workspaces.connections.list(\"3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b\")) {\n console.log(connection);\n}\nconst page = await platform.oauth.workspaces.connections.list(\"3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b\", {}, { timeout: 5_000 });"
376
+ "snippet": "for await (const connection of platform.oauth.workspaces.connections.list(\"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\")) {\n console.log(connection);\n}\nconst page = await platform.oauth.workspaces.connections.list(\"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\", {}, { timeout: 5_000 });"
377
377
  },
378
378
  "PasswordController_requestPasswordReset": {
379
379
  "actor": null,
@@ -418,7 +418,7 @@
418
418
  "resource": "workspaces.apiKeys",
419
419
  "scope": null,
420
420
  "signature": "platform.workspaces.apiKeys.create(workspaceSlug, params, options?): PlatformAuth.MintPak",
421
- "snippet": "const mintPak = await platform.workspaces.apiKeys.create(\"workspace\", { name: \"Production social client\" });"
421
+ "snippet": "const mintPak = await platform.workspaces.apiKeys.create(\"acme\", { name: \"Production social client\" });"
422
422
  },
423
423
  "PlatformApiKeyController_get": {
424
424
  "actor": null,
@@ -433,7 +433,7 @@
433
433
  "resource": "workspaces.apiKeys",
434
434
  "scope": null,
435
435
  "signature": "platform.workspaces.apiKeys.retrieve(workspaceSlug, id, options?): PlatformAuth.PublicApiKey",
436
- "snippet": "const publicApiKey = await platform.workspaces.apiKeys.retrieve(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\");"
436
+ "snippet": "const publicApiKey = await platform.workspaces.apiKeys.retrieve(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
437
437
  },
438
438
  "PlatformApiKeyController_list": {
439
439
  "actor": null,
@@ -448,7 +448,7 @@
448
448
  "resource": "workspaces.apiKeys",
449
449
  "scope": null,
450
450
  "signature": "platform.workspaces.apiKeys.list(workspaceSlug, params?, options?): PagePromise<PlatformAuth.PublicApiKey>",
451
- "snippet": "for await (const apiKey of platform.workspaces.apiKeys.list(\"workspace\")) {\n console.log(apiKey);\n}\nconst page = await platform.workspaces.apiKeys.list(\"workspace\", {}, { timeout: 5_000 });"
451
+ "snippet": "for await (const apiKey of platform.workspaces.apiKeys.list(\"acme\")) {\n console.log(apiKey);\n}\nconst page = await platform.workspaces.apiKeys.list(\"acme\", {}, { timeout: 5_000 });"
452
452
  },
453
453
  "PlatformApiKeyController_presets": {
454
454
  "actor": null,
@@ -463,7 +463,7 @@
463
463
  "resource": "workspaces.apiKeys.presets",
464
464
  "scope": null,
465
465
  "signature": "platform.workspaces.apiKeys.presets.list(workspaceSlug, options?): PagePromise<PlatformAuth.PakPreset>",
466
- "snippet": "for await (const preset of platform.workspaces.apiKeys.presets.list(\"workspace\")) {\n console.log(preset);\n}"
466
+ "snippet": "for await (const preset of platform.workspaces.apiKeys.presets.list(\"acme\")) {\n console.log(preset);\n}"
467
467
  },
468
468
  "PlatformApiKeyController_preview": {
469
469
  "actor": null,
@@ -478,7 +478,7 @@
478
478
  "resource": "workspaces.apiKeys",
479
479
  "scope": null,
480
480
  "signature": "platform.workspaces.apiKeys.preview(workspaceSlug, params?, options?): PlatformAuth.PakGrantPreview",
481
- "snippet": "const pakGrantPreview = await platform.workspaces.apiKeys.preview(\"workspace\", { policy_ids: [\"11111111-1111-1111-1111-111111111111\"] });"
481
+ "snippet": "const pakGrantPreview = await platform.workspaces.apiKeys.preview(\"acme\", { policy_ids: [\"11111111-1111-1111-1111-111111111111\"] });"
482
482
  },
483
483
  "PlatformApiKeyController_revoke": {
484
484
  "actor": null,
@@ -493,7 +493,7 @@
493
493
  "resource": "workspaces.apiKeys",
494
494
  "scope": null,
495
495
  "signature": "platform.workspaces.apiKeys.delete(workspaceSlug, id, params?, options?): void",
496
- "snippet": "await platform.workspaces.apiKeys.delete(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\");"
496
+ "snippet": "await platform.workspaces.apiKeys.delete(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
497
497
  },
498
498
  "PlatformApiKeyController_rotate": {
499
499
  "actor": null,
@@ -508,7 +508,7 @@
508
508
  "resource": "workspaces.apiKeys",
509
509
  "scope": null,
510
510
  "signature": "platform.workspaces.apiKeys.rotate(workspaceSlug, id, params?, options?): PlatformAuth.RotatePak",
511
- "snippet": "const rotatePak = await platform.workspaces.apiKeys.rotate(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\", { grace_hours: 24 });"
511
+ "snippet": "const rotatePak = await platform.workspaces.apiKeys.rotate(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\", { grace_hours: 24 });"
512
512
  },
513
513
  "PlatformApiKeyController_setBindings": {
514
514
  "actor": null,
@@ -523,7 +523,7 @@
523
523
  "resource": "workspaces.apiKeys",
524
524
  "scope": null,
525
525
  "signature": "platform.workspaces.apiKeys.updateBindings(workspaceSlug, id, params, options?): PlatformAuth.PublicApiKey",
526
- "snippet": "const publicApiKey = await platform.workspaces.apiKeys.updateBindings(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\", { policy_ids: [\"string\"] });"
526
+ "snippet": "const publicApiKey = await platform.workspaces.apiKeys.updateBindings(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\", { policy_ids: [\"string\"] });"
527
527
  },
528
528
  "PlatformApiKeyController_update": {
529
529
  "actor": null,
@@ -538,7 +538,7 @@
538
538
  "resource": "workspaces.apiKeys",
539
539
  "scope": null,
540
540
  "signature": "platform.workspaces.apiKeys.update(workspaceSlug, id, params?, options?): PlatformAuth.PublicApiKey",
541
- "snippet": "const publicApiKey = await platform.workspaces.apiKeys.update(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\", { description: \"string\" });"
541
+ "snippet": "const publicApiKey = await platform.workspaces.apiKeys.update(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\", { description: \"string\" });"
542
542
  },
543
543
  "SessionController_getSessions": {
544
544
  "actor": null,
@@ -583,7 +583,7 @@
583
583
  "resource": "sessions",
584
584
  "scope": null,
585
585
  "signature": "platform.sessions.delete(id, options?): PlatformAuth.RevokeSession",
586
- "snippet": "const revokeSession = await platform.sessions.delete(\"3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b\");"
586
+ "snippet": "const revokeSession = await platform.sessions.delete(\"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
587
587
  },
588
588
  "VerificationController_resend": {
589
589
  "actor": null,
@@ -628,7 +628,7 @@
628
628
  "resource": "workspaces.auditLogs",
629
629
  "scope": null,
630
630
  "signature": "platform.workspaces.auditLogs.export(workspaceSlug, params?, options?): Response",
631
- "snippet": "const response = await platform.workspaces.auditLogs.export(\"workspace\");\nconst text = await response.text();"
631
+ "snippet": "const response = await platform.workspaces.auditLogs.export(\"acme\");\nconst text = await response.text();"
632
632
  },
633
633
  "WorkspaceAuditController_listAuditLogs": {
634
634
  "actor": "query",
@@ -643,7 +643,7 @@
643
643
  "resource": "workspaces.auditLogs",
644
644
  "scope": null,
645
645
  "signature": "platform.workspaces.auditLogs.list(workspaceSlug, params?, options?): PagePromise<PlatformAuth.WorkspaceAuditLogEntry>",
646
- "snippet": "for await (const auditLog of platform.workspaces.auditLogs.list(\"workspace\")) {\n console.log(auditLog);\n}\nconst page = await platform.workspaces.auditLogs.list(\"workspace\", {}, { timeout: 5_000 });"
646
+ "snippet": "for await (const auditLog of platform.workspaces.auditLogs.list(\"acme\")) {\n console.log(auditLog);\n}\nconst page = await platform.workspaces.auditLogs.list(\"acme\", {}, { timeout: 5_000 });"
647
647
  },
648
648
  "WorkspaceAuditFeedController_listFeed": {
649
649
  "actor": "query",
@@ -658,7 +658,7 @@
658
658
  "resource": "workspaces.auditFeed",
659
659
  "scope": null,
660
660
  "signature": "platform.workspaces.auditFeed.list(workspaceSlug, params?, options?): PagePromise<PlatformAuth.FeedItem>",
661
- "snippet": "for await (const auditFeed of platform.workspaces.auditFeed.list(\"workspace\")) {\n console.log(auditFeed);\n}\nconst page = await platform.workspaces.auditFeed.list(\"workspace\", {}, { timeout: 5_000 });"
661
+ "snippet": "for await (const auditFeed of platform.workspaces.auditFeed.list(\"acme\")) {\n console.log(auditFeed);\n}\nconst page = await platform.workspaces.auditFeed.list(\"acme\", {}, { timeout: 5_000 });"
662
662
  },
663
663
  "WorkspaceController_acceptInvite": {
664
664
  "actor": null,
@@ -688,7 +688,7 @@
688
688
  "resource": "workspaces.invites",
689
689
  "scope": null,
690
690
  "signature": "platform.workspaces.invites.create(workspaceSlug, params?, options?): PlatformAuth.WorkspaceInvite",
691
- "snippet": "const workspaceInvite = await platform.workspaces.invites.create(\"workspace\", { email: \"alice@example.com\" });"
691
+ "snippet": "const workspaceInvite = await platform.workspaces.invites.create(\"acme\", { email: \"alice@example.com\" });"
692
692
  },
693
693
  "WorkspaceController_createWorkspace": {
694
694
  "actor": null,
@@ -718,7 +718,7 @@
718
718
  "resource": "workspaces",
719
719
  "scope": null,
720
720
  "signature": "platform.workspaces.delete(workspaceSlug, options?): void",
721
- "snippet": "await platform.workspaces.delete(\"workspace\");"
721
+ "snippet": "await platform.workspaces.delete(\"acme\");"
722
722
  },
723
723
  "WorkspaceController_getWorkspace": {
724
724
  "actor": null,
@@ -733,7 +733,7 @@
733
733
  "resource": "workspaces",
734
734
  "scope": null,
735
735
  "signature": "platform.workspaces.retrieve(workspaceSlug, options?): PlatformAuth.Workspace",
736
- "snippet": "const workspace = await platform.workspaces.retrieve(\"workspace\");"
736
+ "snippet": "const workspace = await platform.workspaces.retrieve(\"acme\");"
737
737
  },
738
738
  "WorkspaceController_listInvites": {
739
739
  "actor": null,
@@ -748,7 +748,7 @@
748
748
  "resource": "workspaces.invites",
749
749
  "scope": null,
750
750
  "signature": "platform.workspaces.invites.list(workspaceSlug, params?, options?): PagePromise<PlatformAuth.WorkspaceInviteListItem>",
751
- "snippet": "for await (const invite of platform.workspaces.invites.list(\"workspace\")) {\n console.log(invite);\n}\nconst page = await platform.workspaces.invites.list(\"workspace\", {}, { timeout: 5_000 });"
751
+ "snippet": "for await (const invite of platform.workspaces.invites.list(\"acme\")) {\n console.log(invite);\n}\nconst page = await platform.workspaces.invites.list(\"acme\", {}, { timeout: 5_000 });"
752
752
  },
753
753
  "WorkspaceController_listMembers": {
754
754
  "actor": null,
@@ -763,7 +763,7 @@
763
763
  "resource": "workspaces.members",
764
764
  "scope": null,
765
765
  "signature": "platform.workspaces.members.list(workspaceSlug, params?, options?): PagePromise<PlatformAuth.WorkspaceMember>",
766
- "snippet": "for await (const member of platform.workspaces.members.list(\"workspace\")) {\n console.log(member);\n}\nconst page = await platform.workspaces.members.list(\"workspace\", {}, { timeout: 5_000 });"
766
+ "snippet": "for await (const member of platform.workspaces.members.list(\"acme\")) {\n console.log(member);\n}\nconst page = await platform.workspaces.members.list(\"acme\", {}, { timeout: 5_000 });"
767
767
  },
768
768
  "WorkspaceController_listWorkspaces": {
769
769
  "actor": null,
@@ -793,7 +793,7 @@
793
793
  "resource": "workspaces.avatar",
794
794
  "scope": null,
795
795
  "signature": "platform.workspaces.avatar.clear(workspaceSlug, options?): void",
796
- "snippet": "await platform.workspaces.avatar.clear(\"workspace\");"
796
+ "snippet": "await platform.workspaces.avatar.clear(\"acme\");"
797
797
  },
798
798
  "WorkspaceController_removeMember": {
799
799
  "actor": null,
@@ -808,7 +808,7 @@
808
808
  "resource": "workspaces.members",
809
809
  "scope": null,
810
810
  "signature": "platform.workspaces.members.delete(workspaceSlug, accountId, options?): void",
811
- "snippet": "await platform.workspaces.members.delete(\"workspace\", \"account\");"
811
+ "snippet": "await platform.workspaces.members.delete(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
812
812
  },
813
813
  "WorkspaceController_revokeInvite": {
814
814
  "actor": null,
@@ -823,7 +823,7 @@
823
823
  "resource": "workspaces.invites",
824
824
  "scope": null,
825
825
  "signature": "platform.workspaces.invites.delete(workspaceSlug, inviteId, options?): void",
826
- "snippet": "await platform.workspaces.invites.delete(\"workspace\", \"invite\");"
826
+ "snippet": "await platform.workspaces.invites.delete(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
827
827
  },
828
828
  "WorkspaceController_setAvatar": {
829
829
  "actor": null,
@@ -838,7 +838,7 @@
838
838
  "resource": "workspaces.avatar",
839
839
  "scope": null,
840
840
  "signature": "platform.workspaces.avatar.upload(workspaceSlug, params, options?): PlatformAuth.WorkspaceAvatarUrl",
841
- "snippet": "const workspaceAvatarUrl = await platform.workspaces.avatar.upload(\"workspace\", { file: new File([\"…\"], \"image.png\", { type: \"image/png\" }) });"
841
+ "snippet": "const workspaceAvatarUrl = await platform.workspaces.avatar.upload(\"acme\", { file: new File([\"…\"], \"image.png\", { type: \"image/png\" }) });"
842
842
  },
843
843
  "WorkspaceController_updateMemberRole": {
844
844
  "actor": null,
@@ -853,7 +853,7 @@
853
853
  "resource": "workspaces.members",
854
854
  "scope": null,
855
855
  "signature": "platform.workspaces.members.updateRole(workspaceSlug, accountId, params?, options?): PlatformAuth.UpdateMemberRole",
856
- "snippet": "const updateMemberRole = await platform.workspaces.members.updateRole(\"workspace\", \"account\", { role: \"owner\" });"
856
+ "snippet": "const updateMemberRole = await platform.workspaces.members.updateRole(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\", { role: \"owner\" });"
857
857
  },
858
858
  "WorkspaceController_updateWorkspace": {
859
859
  "actor": null,
@@ -868,7 +868,7 @@
868
868
  "resource": "workspaces",
869
869
  "scope": null,
870
870
  "signature": "platform.workspaces.update(workspaceSlug, params?, options?): PlatformAuth.Workspace",
871
- "snippet": "const workspace = await platform.workspaces.update(\"workspace\", { display_name: \"string\" });"
871
+ "snippet": "const workspace = await platform.workspaces.update(\"acme\", { display_name: \"string\" });"
872
872
  },
873
873
  "WorkspacePolicyController_catalog": {
874
874
  "actor": null,
@@ -883,7 +883,7 @@
883
883
  "resource": "workspaces.policies.actions",
884
884
  "scope": null,
885
885
  "signature": "platform.workspaces.policies.actions.catalog(workspaceSlug, options?): PlatformAuth.WorkspaceActionCatalog",
886
- "snippet": "const workspaceActionCatalog = await platform.workspaces.policies.actions.catalog(\"workspace\");"
886
+ "snippet": "const workspaceActionCatalog = await platform.workspaces.policies.actions.catalog(\"acme\");"
887
887
  },
888
888
  "WorkspacePolicyController_create": {
889
889
  "actor": null,
@@ -898,7 +898,7 @@
898
898
  "resource": "workspaces.policies",
899
899
  "scope": null,
900
900
  "signature": "platform.workspaces.policies.create(workspaceSlug, params, options?): PlatformAuth.ManagedPolicy",
901
- "snippet": "const managedPolicy = await platform.workspaces.policies.create(\"workspace\", {\n name: \"mail-readonly\",\n policy: [{ actions: [\"mail.read\", \"mail.list\"], effect: \"allow\", resources: [\"*\"] }],\n});"
901
+ "snippet": "const managedPolicy = await platform.workspaces.policies.create(\"acme\", {\n name: \"mail-readonly\",\n policy: [{ actions: [\"mail.read\", \"mail.list\"], effect: \"allow\", resources: [\"*\"] }],\n});"
902
902
  },
903
903
  "WorkspacePolicyController_delete": {
904
904
  "actor": null,
@@ -913,7 +913,7 @@
913
913
  "resource": "workspaces.policies",
914
914
  "scope": null,
915
915
  "signature": "platform.workspaces.policies.delete(workspaceSlug, policyId, options?): PlatformAuth.ManagedPolicyDeleted",
916
- "snippet": "const managedPolicyDeleted = await platform.workspaces.policies.delete(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\");"
916
+ "snippet": "const managedPolicyDeleted = await platform.workspaces.policies.delete(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
917
917
  },
918
918
  "WorkspacePolicyController_get": {
919
919
  "actor": null,
@@ -928,7 +928,7 @@
928
928
  "resource": "workspaces.policies",
929
929
  "scope": null,
930
930
  "signature": "platform.workspaces.policies.retrieve(workspaceSlug, policyId, options?): PlatformAuth.ManagedPolicyDetail",
931
- "snippet": "const managedPolicyDetail = await platform.workspaces.policies.retrieve(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\");"
931
+ "snippet": "const managedPolicyDetail = await platform.workspaces.policies.retrieve(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
932
932
  },
933
933
  "WorkspacePolicyController_list": {
934
934
  "actor": null,
@@ -943,7 +943,7 @@
943
943
  "resource": "workspaces.policies",
944
944
  "scope": null,
945
945
  "signature": "platform.workspaces.policies.list(workspaceSlug, params?, options?): PagePromise<PlatformAuth.ManagedPolicy>",
946
- "snippet": "for await (const policy of platform.workspaces.policies.list(\"workspace\")) {\n console.log(policy);\n}\nconst page = await platform.workspaces.policies.list(\"workspace\", {}, { timeout: 5_000 });"
946
+ "snippet": "for await (const policy of platform.workspaces.policies.list(\"acme\")) {\n console.log(policy);\n}\nconst page = await platform.workspaces.policies.list(\"acme\", {}, { timeout: 5_000 });"
947
947
  },
948
948
  "WorkspacePolicyController_update": {
949
949
  "actor": null,
@@ -958,7 +958,7 @@
958
958
  "resource": "workspaces.policies",
959
959
  "scope": null,
960
960
  "signature": "platform.workspaces.policies.update(workspaceSlug, policyId, params?, options?): PlatformAuth.ManagedPolicyDetail",
961
- "snippet": "const managedPolicyDetail = await platform.workspaces.policies.update(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\", { description: \"Read-only access to all Mail resources\" });"
961
+ "snippet": "const managedPolicyDetail = await platform.workspaces.policies.update(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\", { description: \"Read-only access to all Mail resources\" });"
962
962
  },
963
963
  "WorkspaceRoleController_create": {
964
964
  "actor": null,
@@ -973,7 +973,7 @@
973
973
  "resource": "workspaces.roles",
974
974
  "scope": null,
975
975
  "signature": "platform.workspaces.roles.create(workspaceSlug, params, options?): PlatformAuth.WorkspaceRole",
976
- "snippet": "const workspaceRole = await platform.workspaces.roles.create(\"workspace\", { name: \"BillingAdmin\" });"
976
+ "snippet": "const workspaceRole = await platform.workspaces.roles.create(\"acme\", { name: \"BillingAdmin\" });"
977
977
  },
978
978
  "WorkspaceRoleController_delete": {
979
979
  "actor": null,
@@ -988,7 +988,7 @@
988
988
  "resource": "workspaces.roles",
989
989
  "scope": null,
990
990
  "signature": "platform.workspaces.roles.delete(workspaceSlug, roleId, options?): void",
991
- "snippet": "await platform.workspaces.roles.delete(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\");"
991
+ "snippet": "await platform.workspaces.roles.delete(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
992
992
  },
993
993
  "WorkspaceRoleController_get": {
994
994
  "actor": null,
@@ -1003,7 +1003,7 @@
1003
1003
  "resource": "workspaces.roles",
1004
1004
  "scope": null,
1005
1005
  "signature": "platform.workspaces.roles.retrieve(workspaceSlug, roleId, options?): PlatformAuth.WorkspaceRole",
1006
- "snippet": "const workspaceRole = await platform.workspaces.roles.retrieve(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\");"
1006
+ "snippet": "const workspaceRole = await platform.workspaces.roles.retrieve(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\");"
1007
1007
  },
1008
1008
  "WorkspaceRoleController_list": {
1009
1009
  "actor": null,
@@ -1018,7 +1018,7 @@
1018
1018
  "resource": "workspaces.roles",
1019
1019
  "scope": null,
1020
1020
  "signature": "platform.workspaces.roles.list(workspaceSlug, params?, options?): PagePromise<PlatformAuth.WorkspaceRole>",
1021
- "snippet": "for await (const role of platform.workspaces.roles.list(\"workspace\")) {\n console.log(role);\n}\nconst page = await platform.workspaces.roles.list(\"workspace\", {}, { timeout: 5_000 });"
1021
+ "snippet": "for await (const role of platform.workspaces.roles.list(\"acme\")) {\n console.log(role);\n}\nconst page = await platform.workspaces.roles.list(\"acme\", {}, { timeout: 5_000 });"
1022
1022
  },
1023
1023
  "WorkspaceRoleController_update": {
1024
1024
  "actor": null,
@@ -1033,7 +1033,7 @@
1033
1033
  "resource": "workspaces.roles",
1034
1034
  "scope": null,
1035
1035
  "signature": "platform.workspaces.roles.update(workspaceSlug, roleId, params?, options?): PlatformAuth.WorkspaceRole",
1036
- "snippet": "const workspaceRole = await platform.workspaces.roles.update(\"workspace\", \"5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6\", { description: \"string\" });"
1036
+ "snippet": "const workspaceRole = await platform.workspaces.roles.update(\"acme\", \"3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f\", { description: \"string\" });"
1037
1037
  },
1038
1038
  "WorkspaceServiceController_disable": {
1039
1039
  "actor": null,
@@ -1048,7 +1048,7 @@
1048
1048
  "resource": "workspaces.services",
1049
1049
  "scope": null,
1050
1050
  "signature": "platform.workspaces.services.disable(workspaceSlug, service, options?): void",
1051
- "snippet": "await platform.workspaces.services.disable(\"workspace\", \"service\");"
1051
+ "snippet": "await platform.workspaces.services.disable(\"acme\", \"mail\");"
1052
1052
  },
1053
1053
  "WorkspaceServiceController_enable": {
1054
1054
  "actor": null,
@@ -1063,7 +1063,7 @@
1063
1063
  "resource": "workspaces.services",
1064
1064
  "scope": null,
1065
1065
  "signature": "platform.workspaces.services.enable(workspaceSlug, service, params?, options?): PlatformAuth.WorkspaceServiceState",
1066
- "snippet": "const workspaceServiceState = await platform.workspaces.services.enable(\"workspace\", \"service\", { settings: {} });"
1066
+ "snippet": "const workspaceServiceState = await platform.workspaces.services.enable(\"acme\", \"mail\", { settings: {} });"
1067
1067
  },
1068
1068
  "WorkspaceServiceController_list": {
1069
1069
  "actor": null,
@@ -1078,7 +1078,7 @@
1078
1078
  "resource": "workspaces.services",
1079
1079
  "scope": null,
1080
1080
  "signature": "platform.workspaces.services.list(workspaceSlug, options?): PlatformAuth.ListWorkspaceServices",
1081
- "snippet": "const listWorkspaceServices = await platform.workspaces.services.list(\"workspace\");"
1081
+ "snippet": "const listWorkspaceServices = await platform.workspaces.services.list(\"acme\");"
1082
1082
  },
1083
1083
  "WorkspaceServiceController_updateSettings": {
1084
1084
  "actor": null,
@@ -1093,7 +1093,7 @@
1093
1093
  "resource": "workspaces.services",
1094
1094
  "scope": null,
1095
1095
  "signature": "platform.workspaces.services.updateSettings(workspaceSlug, service, params?, options?): PlatformAuth.WorkspaceServiceState",
1096
- "snippet": "const workspaceServiceState = await platform.workspaces.services.updateSettings(\"workspace\", \"service\", { default_sender: \"noreply@acme.com\" });"
1096
+ "snippet": "const workspaceServiceState = await platform.workspaces.services.updateSettings(\"acme\", \"mail\", { default_sender: \"noreply@acme.com\" });"
1097
1097
  },
1098
1098
  "WorkspaceStatsController_get": {
1099
1099
  "actor": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@productcraft/platform-auth",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Workspaces, members, invites, roles and IAM policies, API keys, service activation and introspection (ProductCraft Platform). Resources, auto-pagination, typed errors and retries with idempotency keys, generated from the production OpenAPI spec.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -8,17 +8,34 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js",
13
- "require": "./dist/index.cjs"
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
14
19
  },
15
20
  "./testing": {
16
- "types": "./dist/testing.d.ts",
17
- "import": "./dist/testing.js",
18
- "require": "./dist/testing.cjs"
21
+ "import": {
22
+ "types": "./dist/testing.d.ts",
23
+ "default": "./dist/testing.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/testing.d.cts",
27
+ "default": "./dist/testing.cjs"
28
+ }
19
29
  },
20
30
  "./manifest.json": "./manifest.json"
21
31
  },
32
+ "typesVersions": {
33
+ "*": {
34
+ "testing": [
35
+ "./dist/testing.d.ts"
36
+ ]
37
+ }
38
+ },
22
39
  "files": [
23
40
  "dist/**",
24
41
  "manifest.json",
@@ -52,7 +69,7 @@
52
69
  },
53
70
  "dependencies": {
54
71
  "openapi-fetch": "^0.13.0",
55
- "@productcraft/core": "^1.0.0"
72
+ "@productcraft/core": "^1.1.0"
56
73
  },
57
74
  "scripts": {
58
75
  "build": "tsup && node -e \"require('node:fs').copyFileSync('src/_generated/manifest.json','manifest.json')\"",