@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/dist/index.js CHANGED
@@ -210,7 +210,7 @@ var IntrospectWorkspacesResource = class extends APIResource {
210
210
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-introspect-workspaces-workspace-id
211
211
  * @example
212
212
  * ```ts
213
- * const introspectWorkspace = await platform.introspect.workspaces.retrieve("workspace");
213
+ * const introspectWorkspace = await platform.introspect.workspaces.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
214
214
  * ```
215
215
  */
216
216
  retrieve(workspaceId, options) {
@@ -306,7 +306,7 @@ var MeHiddenGuidesResource = class extends APIResource {
306
306
  * @see https://productcraft.co/docs/platform/api-reference#put-v1-me-hidden-guides-key
307
307
  * @example
308
308
  * ```ts
309
- * const hiddenGuide = await platform.me.hiddenGuides.hide("key");
309
+ * const hiddenGuide = await platform.me.hiddenGuides.hide("dashboard");
310
310
  * ```
311
311
  */
312
312
  hide(key, options) {
@@ -365,7 +365,7 @@ var MeHiddenGuidesResource = class extends APIResource {
365
365
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-me-hidden-guides-key
366
366
  * @example
367
367
  * ```ts
368
- * await platform.me.hiddenGuides.unhide("key");
368
+ * await platform.me.hiddenGuides.unhide("dashboard");
369
369
  * ```
370
370
  */
371
371
  unhide(key, options) {
@@ -439,7 +439,7 @@ var OauthConnectionsResource = class extends APIResource {
439
439
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-oauth-connections-grant-id
440
440
  * @example
441
441
  * ```ts
442
- * await platform.oauth.connections.delete("3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b");
442
+ * await platform.oauth.connections.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
443
443
  * ```
444
444
  */
445
445
  delete(grantId, options) {
@@ -486,7 +486,7 @@ var OauthWorkspacesConnectionsResource = class extends APIResource {
486
486
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-oauth-workspaces-workspace-id-connections-grant-id
487
487
  * @example
488
488
  * ```ts
489
- * await platform.oauth.workspaces.connections.delete("3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6");
489
+ * await platform.oauth.workspaces.connections.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
490
490
  * ```
491
491
  */
492
492
  delete(workspaceId, grantId, options) {
@@ -508,10 +508,10 @@ var OauthWorkspacesConnectionsResource = class extends APIResource {
508
508
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-oauth-workspaces-workspace-id-connections
509
509
  * @example
510
510
  * ```ts
511
- * for await (const connection of platform.oauth.workspaces.connections.list("3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b")) {
511
+ * for await (const connection of platform.oauth.workspaces.connections.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
512
512
  * console.log(connection);
513
513
  * }
514
- * const page = await platform.oauth.workspaces.connections.list("3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b", {}, { timeout: 5_000 });
514
+ * const page = await platform.oauth.workspaces.connections.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
515
515
  * ```
516
516
  */
517
517
  list(workspaceId, params, options) {
@@ -534,7 +534,7 @@ var OauthWorkspacesConnectionsResource = class extends APIResource {
534
534
  * @see https://productcraft.co/docs/platform/api-reference#post-v1-oauth-workspaces-workspace-id-connections-grant-id-restore
535
535
  * @example
536
536
  * ```ts
537
- * await platform.oauth.workspaces.connections.restore("3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6");
537
+ * await platform.oauth.workspaces.connections.restore("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
538
538
  * ```
539
539
  */
540
540
  restore(workspaceId, grantId, options) {
@@ -571,7 +571,7 @@ var SessionsResource = class extends APIResource {
571
571
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-session-id
572
572
  * @example
573
573
  * ```ts
574
- * const revokeSession = await platform.sessions.delete("3f0c1a2b-4c5d-4e6f-8a9b-0c1d2e3f4a5b");
574
+ * const revokeSession = await platform.sessions.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
575
575
  * ```
576
576
  */
577
577
  delete(id, options) {
@@ -720,7 +720,7 @@ var WorkspacesApiKeysPresetsResource = class extends APIResource {
720
720
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-api-keys-presets
721
721
  * @example
722
722
  * ```ts
723
- * for await (const preset of platform.workspaces.apiKeys.presets.list("workspace")) {
723
+ * for await (const preset of platform.workspaces.apiKeys.presets.list("acme")) {
724
724
  * console.log(preset);
725
725
  * }
726
726
  * ```
@@ -750,7 +750,7 @@ var WorkspacesApiKeysResource = class extends APIResource {
750
750
  * @see https://productcraft.co/docs/platform/api-reference#post-v1-workspaces-workspace-slug-api-keys
751
751
  * @example
752
752
  * ```ts
753
- * const mintPak = await platform.workspaces.apiKeys.create("workspace", { name: "Production social client" });
753
+ * const mintPak = await platform.workspaces.apiKeys.create("acme", { name: "Production social client" });
754
754
  * ```
755
755
  */
756
756
  create(workspaceSlug, params, options) {
@@ -772,7 +772,7 @@ var WorkspacesApiKeysResource = class extends APIResource {
772
772
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-workspaces-workspace-slug-api-keys-id
773
773
  * @example
774
774
  * ```ts
775
- * await platform.workspaces.apiKeys.delete("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6");
775
+ * await platform.workspaces.apiKeys.delete("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
776
776
  * ```
777
777
  */
778
778
  delete(workspaceSlug, id, params, options) {
@@ -795,10 +795,10 @@ var WorkspacesApiKeysResource = class extends APIResource {
795
795
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-api-keys
796
796
  * @example
797
797
  * ```ts
798
- * for await (const apiKey of platform.workspaces.apiKeys.list("workspace")) {
798
+ * for await (const apiKey of platform.workspaces.apiKeys.list("acme")) {
799
799
  * console.log(apiKey);
800
800
  * }
801
- * const page = await platform.workspaces.apiKeys.list("workspace", {}, { timeout: 5_000 });
801
+ * const page = await platform.workspaces.apiKeys.list("acme", {}, { timeout: 5_000 });
802
802
  * ```
803
803
  */
804
804
  list(workspaceSlug, params, options) {
@@ -819,7 +819,7 @@ var WorkspacesApiKeysResource = class extends APIResource {
819
819
  * @see https://productcraft.co/docs/platform/api-reference#post-v1-workspaces-workspace-slug-api-keys-preview
820
820
  * @example
821
821
  * ```ts
822
- * const pakGrantPreview = await platform.workspaces.apiKeys.preview("workspace", { policy_ids: ["11111111-1111-1111-1111-111111111111"] });
822
+ * const pakGrantPreview = await platform.workspaces.apiKeys.preview("acme", { policy_ids: ["11111111-1111-1111-1111-111111111111"] });
823
823
  * ```
824
824
  */
825
825
  preview(workspaceSlug, params, options) {
@@ -840,7 +840,7 @@ var WorkspacesApiKeysResource = class extends APIResource {
840
840
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-api-keys-id
841
841
  * @example
842
842
  * ```ts
843
- * const publicApiKey = await platform.workspaces.apiKeys.retrieve("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6");
843
+ * const publicApiKey = await platform.workspaces.apiKeys.retrieve("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
844
844
  * ```
845
845
  */
846
846
  retrieve(workspaceSlug, id, options) {
@@ -862,7 +862,7 @@ var WorkspacesApiKeysResource = class extends APIResource {
862
862
  * @see https://productcraft.co/docs/platform/api-reference#post-v1-workspaces-workspace-slug-api-keys-id-rotate
863
863
  * @example
864
864
  * ```ts
865
- * const rotatePak = await platform.workspaces.apiKeys.rotate("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6", { grace_hours: 24 });
865
+ * const rotatePak = await platform.workspaces.apiKeys.rotate("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { grace_hours: 24 });
866
866
  * ```
867
867
  */
868
868
  rotate(workspaceSlug, id, params, options) {
@@ -885,7 +885,7 @@ var WorkspacesApiKeysResource = class extends APIResource {
885
885
  * @see https://productcraft.co/docs/platform/api-reference#patch-v1-workspaces-workspace-slug-api-keys-id
886
886
  * @example
887
887
  * ```ts
888
- * const publicApiKey = await platform.workspaces.apiKeys.update("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6", { description: "string" });
888
+ * const publicApiKey = await platform.workspaces.apiKeys.update("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "string" });
889
889
  * ```
890
890
  */
891
891
  update(workspaceSlug, id, params, options) {
@@ -908,7 +908,7 @@ var WorkspacesApiKeysResource = class extends APIResource {
908
908
  * @see https://productcraft.co/docs/platform/api-reference#patch-v1-workspaces-workspace-slug-api-keys-id-bindings
909
909
  * @example
910
910
  * ```ts
911
- * const publicApiKey = await platform.workspaces.apiKeys.updateBindings("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6", { policy_ids: ["string"] });
911
+ * const publicApiKey = await platform.workspaces.apiKeys.updateBindings("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { policy_ids: ["string"] });
912
912
  * ```
913
913
  */
914
914
  updateBindings(workspaceSlug, id, params, options) {
@@ -933,10 +933,10 @@ var WorkspacesAuditFeedResource = class extends APIResource {
933
933
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-audit-feed
934
934
  * @example
935
935
  * ```ts
936
- * for await (const auditFeed of platform.workspaces.auditFeed.list("workspace")) {
936
+ * for await (const auditFeed of platform.workspaces.auditFeed.list("acme")) {
937
937
  * console.log(auditFeed);
938
938
  * }
939
- * const page = await platform.workspaces.auditFeed.list("workspace", {}, { timeout: 5_000 });
939
+ * const page = await platform.workspaces.auditFeed.list("acme", {}, { timeout: 5_000 });
940
940
  * ```
941
941
  */
942
942
  list(workspaceSlug, params, options) {
@@ -962,7 +962,7 @@ var WorkspacesAuditLogsResource = class extends APIResource {
962
962
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-audit-logs-export
963
963
  * @example
964
964
  * ```ts
965
- * const response = await platform.workspaces.auditLogs.export("workspace");
965
+ * const response = await platform.workspaces.auditLogs.export("acme");
966
966
  * const text = await response.text();
967
967
  * ```
968
968
  */
@@ -982,10 +982,10 @@ var WorkspacesAuditLogsResource = class extends APIResource {
982
982
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-audit-logs
983
983
  * @example
984
984
  * ```ts
985
- * for await (const auditLog of platform.workspaces.auditLogs.list("workspace")) {
985
+ * for await (const auditLog of platform.workspaces.auditLogs.list("acme")) {
986
986
  * console.log(auditLog);
987
987
  * }
988
- * const page = await platform.workspaces.auditLogs.list("workspace", {}, { timeout: 5_000 });
988
+ * const page = await platform.workspaces.auditLogs.list("acme", {}, { timeout: 5_000 });
989
989
  * ```
990
990
  */
991
991
  list(workspaceSlug, params, options) {
@@ -1006,7 +1006,7 @@ var WorkspacesAvatarResource = class extends APIResource {
1006
1006
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-workspaces-workspace-slug-avatar
1007
1007
  * @example
1008
1008
  * ```ts
1009
- * await platform.workspaces.avatar.clear("workspace");
1009
+ * await platform.workspaces.avatar.clear("acme");
1010
1010
  * ```
1011
1011
  */
1012
1012
  clear(workspaceSlug, options) {
@@ -1025,7 +1025,7 @@ var WorkspacesAvatarResource = class extends APIResource {
1025
1025
  * @see https://productcraft.co/docs/platform/api-reference#post-v1-workspaces-workspace-slug-avatar
1026
1026
  * @example
1027
1027
  * ```ts
1028
- * const workspaceAvatarUrl = await platform.workspaces.avatar.upload("workspace", { file: new File(["…"], "image.png", { type: "image/png" }) });
1028
+ * const workspaceAvatarUrl = await platform.workspaces.avatar.upload("acme", { file: new File(["…"], "image.png", { type: "image/png" }) });
1029
1029
  * ```
1030
1030
  */
1031
1031
  upload(workspaceSlug, params, options) {
@@ -1071,7 +1071,7 @@ var WorkspacesInvitesResource = class extends APIResource {
1071
1071
  * @see https://productcraft.co/docs/platform/api-reference#post-v1-workspaces-workspace-slug-invites
1072
1072
  * @example
1073
1073
  * ```ts
1074
- * const workspaceInvite = await platform.workspaces.invites.create("workspace", { email: "alice@example.com" });
1074
+ * const workspaceInvite = await platform.workspaces.invites.create("acme", { email: "alice@example.com" });
1075
1075
  * ```
1076
1076
  */
1077
1077
  create(workspaceSlug, params, options) {
@@ -1091,7 +1091,7 @@ var WorkspacesInvitesResource = class extends APIResource {
1091
1091
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-workspaces-workspace-slug-invites-invite-id
1092
1092
  * @example
1093
1093
  * ```ts
1094
- * await platform.workspaces.invites.delete("workspace", "invite");
1094
+ * await platform.workspaces.invites.delete("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
1095
1095
  * ```
1096
1096
  */
1097
1097
  delete(workspaceSlug, inviteId, options) {
@@ -1112,10 +1112,10 @@ var WorkspacesInvitesResource = class extends APIResource {
1112
1112
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-invites
1113
1113
  * @example
1114
1114
  * ```ts
1115
- * for await (const invite of platform.workspaces.invites.list("workspace")) {
1115
+ * for await (const invite of platform.workspaces.invites.list("acme")) {
1116
1116
  * console.log(invite);
1117
1117
  * }
1118
- * const page = await platform.workspaces.invites.list("workspace", {}, { timeout: 5_000 });
1118
+ * const page = await platform.workspaces.invites.list("acme", {}, { timeout: 5_000 });
1119
1119
  * ```
1120
1120
  */
1121
1121
  list(workspaceSlug, params, options) {
@@ -1138,7 +1138,7 @@ var WorkspacesMembersResource = class extends APIResource {
1138
1138
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-workspaces-workspace-slug-members-account-id
1139
1139
  * @example
1140
1140
  * ```ts
1141
- * await platform.workspaces.members.delete("workspace", "account");
1141
+ * await platform.workspaces.members.delete("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
1142
1142
  * ```
1143
1143
  */
1144
1144
  delete(workspaceSlug, accountId, options) {
@@ -1159,10 +1159,10 @@ var WorkspacesMembersResource = class extends APIResource {
1159
1159
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-members
1160
1160
  * @example
1161
1161
  * ```ts
1162
- * for await (const member of platform.workspaces.members.list("workspace")) {
1162
+ * for await (const member of platform.workspaces.members.list("acme")) {
1163
1163
  * console.log(member);
1164
1164
  * }
1165
- * const page = await platform.workspaces.members.list("workspace", {}, { timeout: 5_000 });
1165
+ * const page = await platform.workspaces.members.list("acme", {}, { timeout: 5_000 });
1166
1166
  * ```
1167
1167
  */
1168
1168
  list(workspaceSlug, params, options) {
@@ -1185,7 +1185,7 @@ var WorkspacesMembersResource = class extends APIResource {
1185
1185
  * @see https://productcraft.co/docs/platform/api-reference#patch-v1-workspaces-workspace-slug-members-account-id-role
1186
1186
  * @example
1187
1187
  * ```ts
1188
- * const updateMemberRole = await platform.workspaces.members.updateRole("workspace", "account", { role: "owner" });
1188
+ * const updateMemberRole = await platform.workspaces.members.updateRole("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { role: "owner" });
1189
1189
  * ```
1190
1190
  */
1191
1191
  updateRole(workspaceSlug, accountId, params, options) {
@@ -1206,7 +1206,7 @@ var WorkspacesPoliciesActionsResource = class extends APIResource {
1206
1206
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-policies-actions-catalog
1207
1207
  * @example
1208
1208
  * ```ts
1209
- * const workspaceActionCatalog = await platform.workspaces.policies.actions.catalog("workspace");
1209
+ * const workspaceActionCatalog = await platform.workspaces.policies.actions.catalog("acme");
1210
1210
  * ```
1211
1211
  */
1212
1212
  catalog(workspaceSlug, options) {
@@ -1233,7 +1233,7 @@ var WorkspacesPoliciesResource = class extends APIResource {
1233
1233
  * @see https://productcraft.co/docs/platform/api-reference#post-v1-workspaces-workspace-slug-policies
1234
1234
  * @example
1235
1235
  * ```ts
1236
- * const managedPolicy = await platform.workspaces.policies.create("workspace", {
1236
+ * const managedPolicy = await platform.workspaces.policies.create("acme", {
1237
1237
  * name: "mail-readonly",
1238
1238
  * policy: [{ actions: ["mail.read", "mail.list"], effect: "allow", resources: ["*"] }],
1239
1239
  * });
@@ -1256,7 +1256,7 @@ var WorkspacesPoliciesResource = class extends APIResource {
1256
1256
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-workspaces-workspace-slug-policies-policy-id
1257
1257
  * @example
1258
1258
  * ```ts
1259
- * const managedPolicyDeleted = await platform.workspaces.policies.delete("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6");
1259
+ * const managedPolicyDeleted = await platform.workspaces.policies.delete("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
1260
1260
  * ```
1261
1261
  */
1262
1262
  delete(workspaceSlug, policyId, options) {
@@ -1275,10 +1275,10 @@ var WorkspacesPoliciesResource = class extends APIResource {
1275
1275
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-policies
1276
1276
  * @example
1277
1277
  * ```ts
1278
- * for await (const policy of platform.workspaces.policies.list("workspace")) {
1278
+ * for await (const policy of platform.workspaces.policies.list("acme")) {
1279
1279
  * console.log(policy);
1280
1280
  * }
1281
- * const page = await platform.workspaces.policies.list("workspace", {}, { timeout: 5_000 });
1281
+ * const page = await platform.workspaces.policies.list("acme", {}, { timeout: 5_000 });
1282
1282
  * ```
1283
1283
  */
1284
1284
  list(workspaceSlug, params, options) {
@@ -1297,7 +1297,7 @@ var WorkspacesPoliciesResource = class extends APIResource {
1297
1297
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-policies-policy-id
1298
1298
  * @example
1299
1299
  * ```ts
1300
- * const managedPolicyDetail = await platform.workspaces.policies.retrieve("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6");
1300
+ * const managedPolicyDetail = await platform.workspaces.policies.retrieve("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
1301
1301
  * ```
1302
1302
  */
1303
1303
  retrieve(workspaceSlug, policyId, options) {
@@ -1320,7 +1320,7 @@ var WorkspacesPoliciesResource = class extends APIResource {
1320
1320
  * @see https://productcraft.co/docs/platform/api-reference#patch-v1-workspaces-workspace-slug-policies-policy-id
1321
1321
  * @example
1322
1322
  * ```ts
1323
- * const managedPolicyDetail = await platform.workspaces.policies.update("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6", { description: "Read-only access to all Mail resources" });
1323
+ * const managedPolicyDetail = await platform.workspaces.policies.update("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "Read-only access to all Mail resources" });
1324
1324
  * ```
1325
1325
  */
1326
1326
  update(workspaceSlug, policyId, params, options) {
@@ -1344,7 +1344,7 @@ var WorkspacesRolesResource = class extends APIResource {
1344
1344
  * @see https://productcraft.co/docs/platform/api-reference#post-v1-workspaces-workspace-slug-roles
1345
1345
  * @example
1346
1346
  * ```ts
1347
- * const workspaceRole = await platform.workspaces.roles.create("workspace", { name: "BillingAdmin" });
1347
+ * const workspaceRole = await platform.workspaces.roles.create("acme", { name: "BillingAdmin" });
1348
1348
  * ```
1349
1349
  */
1350
1350
  create(workspaceSlug, params, options) {
@@ -1366,7 +1366,7 @@ var WorkspacesRolesResource = class extends APIResource {
1366
1366
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-workspaces-workspace-slug-roles-role-id
1367
1367
  * @example
1368
1368
  * ```ts
1369
- * await platform.workspaces.roles.delete("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6");
1369
+ * await platform.workspaces.roles.delete("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
1370
1370
  * ```
1371
1371
  */
1372
1372
  delete(workspaceSlug, roleId, options) {
@@ -1385,10 +1385,10 @@ var WorkspacesRolesResource = class extends APIResource {
1385
1385
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-roles
1386
1386
  * @example
1387
1387
  * ```ts
1388
- * for await (const role of platform.workspaces.roles.list("workspace")) {
1388
+ * for await (const role of platform.workspaces.roles.list("acme")) {
1389
1389
  * console.log(role);
1390
1390
  * }
1391
- * const page = await platform.workspaces.roles.list("workspace", {}, { timeout: 5_000 });
1391
+ * const page = await platform.workspaces.roles.list("acme", {}, { timeout: 5_000 });
1392
1392
  * ```
1393
1393
  */
1394
1394
  list(workspaceSlug, params, options) {
@@ -1409,7 +1409,7 @@ var WorkspacesRolesResource = class extends APIResource {
1409
1409
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-roles-role-id
1410
1410
  * @example
1411
1411
  * ```ts
1412
- * const workspaceRole = await platform.workspaces.roles.retrieve("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6");
1412
+ * const workspaceRole = await platform.workspaces.roles.retrieve("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
1413
1413
  * ```
1414
1414
  */
1415
1415
  retrieve(workspaceSlug, roleId, options) {
@@ -1432,7 +1432,7 @@ var WorkspacesRolesResource = class extends APIResource {
1432
1432
  * @see https://productcraft.co/docs/platform/api-reference#patch-v1-workspaces-workspace-slug-roles-role-id
1433
1433
  * @example
1434
1434
  * ```ts
1435
- * const workspaceRole = await platform.workspaces.roles.update("workspace", "5d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6", { description: "string" });
1435
+ * const workspaceRole = await platform.workspaces.roles.update("acme", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "string" });
1436
1436
  * ```
1437
1437
  */
1438
1438
  update(workspaceSlug, roleId, params, options) {
@@ -1456,7 +1456,7 @@ var WorkspacesServicesResource = class extends APIResource {
1456
1456
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-workspaces-workspace-slug-services-service
1457
1457
  * @example
1458
1458
  * ```ts
1459
- * await platform.workspaces.services.disable("workspace", "service");
1459
+ * await platform.workspaces.services.disable("acme", "mail");
1460
1460
  * ```
1461
1461
  */
1462
1462
  disable(workspaceSlug, service, options) {
@@ -1478,7 +1478,7 @@ var WorkspacesServicesResource = class extends APIResource {
1478
1478
  * @see https://productcraft.co/docs/platform/api-reference#post-v1-workspaces-workspace-slug-services-service
1479
1479
  * @example
1480
1480
  * ```ts
1481
- * const workspaceServiceState = await platform.workspaces.services.enable("workspace", "service", { settings: {} });
1481
+ * const workspaceServiceState = await platform.workspaces.services.enable("acme", "mail", { settings: {} });
1482
1482
  * ```
1483
1483
  */
1484
1484
  enable(workspaceSlug, service, params, options) {
@@ -1497,7 +1497,7 @@ var WorkspacesServicesResource = class extends APIResource {
1497
1497
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug-services
1498
1498
  * @example
1499
1499
  * ```ts
1500
- * const listWorkspaceServices = await platform.workspaces.services.list("workspace");
1500
+ * const listWorkspaceServices = await platform.workspaces.services.list("acme");
1501
1501
  * ```
1502
1502
  */
1503
1503
  list(workspaceSlug, options) {
@@ -1519,7 +1519,7 @@ var WorkspacesServicesResource = class extends APIResource {
1519
1519
  * @see https://productcraft.co/docs/platform/api-reference#patch-v1-workspaces-workspace-slug-services-service-settings
1520
1520
  * @example
1521
1521
  * ```ts
1522
- * const workspaceServiceState = await platform.workspaces.services.updateSettings("workspace", "service", { default_sender: "noreply@acme.com" });
1522
+ * const workspaceServiceState = await platform.workspaces.services.updateSettings("acme", "mail", { default_sender: "noreply@acme.com" });
1523
1523
  * ```
1524
1524
  */
1525
1525
  updateSettings(workspaceSlug, service, params, options) {
@@ -1594,7 +1594,7 @@ var WorkspacesResource = class extends APIResource {
1594
1594
  * @see https://productcraft.co/docs/platform/api-reference#delete-v1-workspaces-workspace-slug
1595
1595
  * @example
1596
1596
  * ```ts
1597
- * await platform.workspaces.delete("workspace");
1597
+ * await platform.workspaces.delete("acme");
1598
1598
  * ```
1599
1599
  */
1600
1600
  delete(workspaceSlug, options) {
@@ -1634,7 +1634,7 @@ var WorkspacesResource = class extends APIResource {
1634
1634
  * @see https://productcraft.co/docs/platform/api-reference#get-v1-workspaces-workspace-slug
1635
1635
  * @example
1636
1636
  * ```ts
1637
- * const workspace = await platform.workspaces.retrieve("workspace");
1637
+ * const workspace = await platform.workspaces.retrieve("acme");
1638
1638
  * ```
1639
1639
  */
1640
1640
  retrieve(workspaceSlug, options) {
@@ -1655,7 +1655,7 @@ var WorkspacesResource = class extends APIResource {
1655
1655
  * @see https://productcraft.co/docs/platform/api-reference#patch-v1-workspaces-workspace-slug
1656
1656
  * @example
1657
1657
  * ```ts
1658
- * const workspace = await platform.workspaces.update("workspace", { display_name: "string" });
1658
+ * const workspace = await platform.workspaces.update("acme", { display_name: "string" });
1659
1659
  * ```
1660
1660
  */
1661
1661
  update(workspaceSlug, params, options) {
@@ -1721,7 +1721,7 @@ var StatsMetric = { values: ["audit_events"] };
1721
1721
  var StatsWindow = { values: ["1d", "7d", "30d"] };
1722
1722
 
1723
1723
  // src/_generated/client.ts
1724
- var VERSION = "1.0.1" ;
1724
+ var VERSION = "1.0.3" ;
1725
1725
  var PlatformAuth = class extends PlatformAuthResources {
1726
1726
  #openapi;
1727
1727
  constructor(options = {}) {