-
Notifications
You must be signed in to change notification settings - Fork 334
Expand file tree
/
Copy pathadminorganizationauditlog.go
More file actions
2249 lines (2076 loc) · 98.6 KB
/
Copy pathadminorganizationauditlog.go
File metadata and controls
2249 lines (2076 loc) · 98.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
package openai
import (
"context"
"net/http"
"net/url"
"slices"
"github.com/openai/openai-go/v3/internal/apijson"
"github.com/openai/openai-go/v3/internal/apiquery"
"github.com/openai/openai-go/v3/internal/requestconfig"
"github.com/openai/openai-go/v3/option"
"github.com/openai/openai-go/v3/packages/pagination"
"github.com/openai/openai-go/v3/packages/param"
"github.com/openai/openai-go/v3/packages/respjson"
)
// List user actions and configuration changes within this organization.
//
// AdminOrganizationAuditLogService contains methods and other services that help
// with interacting with the openai API.
//
// Note, unlike clients, this service does not read variables from the environment
// automatically. You should not instantiate this service directly, and instead use
// the [NewAdminOrganizationAuditLogService] method instead.
type AdminOrganizationAuditLogService struct {
Options []option.RequestOption
}
// NewAdminOrganizationAuditLogService generates a new service that applies the
// given options to each request. These options are applied after the parent
// client's options (if there is one), and before any request-specific options.
func NewAdminOrganizationAuditLogService(opts ...option.RequestOption) (r AdminOrganizationAuditLogService) {
r = AdminOrganizationAuditLogService{}
r.Options = opts
return
}
// List user actions and configuration changes within this organization.
func (r *AdminOrganizationAuditLogService) List(ctx context.Context, query AdminOrganizationAuditLogListParams, opts ...option.RequestOption) (res *pagination.ConversationCursorPage[AdminOrganizationAuditLogListResponse], err error) {
var raw *http.Response
var preClientOpts = []option.RequestOption{requestconfig.WithAdminAPIKeyAuthSecurity()}
opts = slices.Concat(preClientOpts, r.Options, opts)
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
path := "organization/audit_logs"
cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, query, &res, opts...)
if err != nil {
return nil, err
}
err = cfg.Execute()
if err != nil {
return nil, err
}
res.SetPageConfig(cfg, raw)
return res, nil
}
// List user actions and configuration changes within this organization.
func (r *AdminOrganizationAuditLogService) ListAutoPaging(ctx context.Context, query AdminOrganizationAuditLogListParams, opts ...option.RequestOption) *pagination.ConversationCursorPageAutoPager[AdminOrganizationAuditLogListResponse] {
return pagination.NewConversationCursorPageAutoPager(r.List(ctx, query, opts...))
}
// A log of a user action or configuration change within this organization.
type AdminOrganizationAuditLogListResponse struct {
// The ID of this log.
ID string `json:"id" api:"required"`
// The Unix timestamp (in seconds) of the event.
EffectiveAt int64 `json:"effective_at" api:"required" format:"unixtime"`
// The event type.
//
// Any of "api_key.created", "api_key.updated", "api_key.deleted",
// "certificate.created", "certificate.updated", "certificate.deleted",
// "certificates.activated", "certificates.deactivated",
// "checkpoint.permission.created", "checkpoint.permission.deleted",
// "external_key.registered", "external_key.removed", "group.created",
// "group.updated", "group.deleted", "invite.sent", "invite.accepted",
// "invite.deleted", "ip_allowlist.created", "ip_allowlist.updated",
// "ip_allowlist.deleted", "ip_allowlist.config.activated",
// "ip_allowlist.config.deactivated", "login.succeeded", "login.failed",
// "logout.succeeded", "logout.failed", "organization.updated", "project.created",
// "project.updated", "project.archived", "project.deleted", "rate_limit.updated",
// "rate_limit.deleted", "resource.deleted", "tunnel.created", "tunnel.updated",
// "tunnel.deleted", "workload_identity_provider.created",
// "workload_identity_provider.updated", "workload_identity_provider.deleted",
// "workload_identity_provider_mapping.created",
// "workload_identity_provider_mapping.updated",
// "workload_identity_provider_mapping.deleted", "role.created", "role.updated",
// "role.deleted", "role.assignment.created", "role.assignment.deleted",
// "role.bound_to_resource", "role.unbound_from_resource", "scim.enabled",
// "scim.disabled", "service_account.created", "service_account.updated",
// "service_account.deleted", "user.added", "user.updated", "user.deleted".
Type AdminOrganizationAuditLogListResponseType `json:"type" api:"required"`
// The actor who performed the audit logged action.
Actor AdminOrganizationAuditLogListResponseActor `json:"actor" api:"nullable"`
// The details for events with this `type`.
APIKeyCreated AdminOrganizationAuditLogListResponseAPIKeyCreated `json:"api_key.created"`
// The details for events with this `type`.
APIKeyDeleted AdminOrganizationAuditLogListResponseAPIKeyDeleted `json:"api_key.deleted"`
// The details for events with this `type`.
APIKeyUpdated AdminOrganizationAuditLogListResponseAPIKeyUpdated `json:"api_key.updated"`
// The details for events with this `type`.
CertificateCreated AdminOrganizationAuditLogListResponseCertificateCreated `json:"certificate.created"`
// The details for events with this `type`.
CertificateDeleted AdminOrganizationAuditLogListResponseCertificateDeleted `json:"certificate.deleted"`
// The details for events with this `type`.
CertificateUpdated AdminOrganizationAuditLogListResponseCertificateUpdated `json:"certificate.updated"`
// The details for events with this `type`.
CertificatesActivated AdminOrganizationAuditLogListResponseCertificatesActivated `json:"certificates.activated"`
// The details for events with this `type`.
CertificatesDeactivated AdminOrganizationAuditLogListResponseCertificatesDeactivated `json:"certificates.deactivated"`
// The project and fine-tuned model checkpoint that the checkpoint permission was
// created for.
CheckpointPermissionCreated AdminOrganizationAuditLogListResponseCheckpointPermissionCreated `json:"checkpoint.permission.created"`
// The details for events with this `type`.
CheckpointPermissionDeleted AdminOrganizationAuditLogListResponseCheckpointPermissionDeleted `json:"checkpoint.permission.deleted"`
// The details for events with this `type`.
ExternalKeyRegistered AdminOrganizationAuditLogListResponseExternalKeyRegistered `json:"external_key.registered"`
// The details for events with this `type`.
ExternalKeyRemoved AdminOrganizationAuditLogListResponseExternalKeyRemoved `json:"external_key.removed"`
// The details for events with this `type`.
GroupCreated AdminOrganizationAuditLogListResponseGroupCreated `json:"group.created"`
// The details for events with this `type`.
GroupDeleted AdminOrganizationAuditLogListResponseGroupDeleted `json:"group.deleted"`
// The details for events with this `type`.
GroupUpdated AdminOrganizationAuditLogListResponseGroupUpdated `json:"group.updated"`
// The details for events with this `type`.
InviteAccepted AdminOrganizationAuditLogListResponseInviteAccepted `json:"invite.accepted"`
// The details for events with this `type`.
InviteDeleted AdminOrganizationAuditLogListResponseInviteDeleted `json:"invite.deleted"`
// The details for events with this `type`.
InviteSent AdminOrganizationAuditLogListResponseInviteSent `json:"invite.sent"`
// The details for events with this `type`.
IPAllowlistConfigActivated AdminOrganizationAuditLogListResponseIPAllowlistConfigActivated `json:"ip_allowlist.config.activated"`
// The details for events with this `type`.
IPAllowlistConfigDeactivated AdminOrganizationAuditLogListResponseIPAllowlistConfigDeactivated `json:"ip_allowlist.config.deactivated"`
// The details for events with this `type`.
IPAllowlistCreated AdminOrganizationAuditLogListResponseIPAllowlistCreated `json:"ip_allowlist.created"`
// The details for events with this `type`.
IPAllowlistDeleted AdminOrganizationAuditLogListResponseIPAllowlistDeleted `json:"ip_allowlist.deleted"`
// The details for events with this `type`.
IPAllowlistUpdated AdminOrganizationAuditLogListResponseIPAllowlistUpdated `json:"ip_allowlist.updated"`
// The details for events with this `type`.
LoginFailed AdminOrganizationAuditLogListResponseLoginFailed `json:"login.failed"`
// This event has no additional fields beyond the standard audit log attributes.
LoginSucceeded any `json:"login.succeeded"`
// The details for events with this `type`.
LogoutFailed AdminOrganizationAuditLogListResponseLogoutFailed `json:"logout.failed"`
// This event has no additional fields beyond the standard audit log attributes.
LogoutSucceeded any `json:"logout.succeeded"`
// The details for events with this `type`.
OrganizationUpdated AdminOrganizationAuditLogListResponseOrganizationUpdated `json:"organization.updated"`
// The project that the action was scoped to. Absent for actions not scoped to
// projects. Note that any admin actions taken via Admin API keys are associated
// with the default project.
Project AdminOrganizationAuditLogListResponseProject `json:"project"`
// The details for events with this `type`.
ProjectArchived AdminOrganizationAuditLogListResponseProjectArchived `json:"project.archived"`
// The details for events with this `type`.
ProjectCreated AdminOrganizationAuditLogListResponseProjectCreated `json:"project.created"`
// The details for events with this `type`.
ProjectDeleted AdminOrganizationAuditLogListResponseProjectDeleted `json:"project.deleted"`
// The details for events with this `type`.
ProjectUpdated AdminOrganizationAuditLogListResponseProjectUpdated `json:"project.updated"`
// The details for events with this `type`.
RateLimitDeleted AdminOrganizationAuditLogListResponseRateLimitDeleted `json:"rate_limit.deleted"`
// The details for events with this `type`.
RateLimitUpdated AdminOrganizationAuditLogListResponseRateLimitUpdated `json:"rate_limit.updated"`
// The details for events with this `type`.
RoleAssignmentCreated AdminOrganizationAuditLogListResponseRoleAssignmentCreated `json:"role.assignment.created"`
// The details for events with this `type`.
RoleAssignmentDeleted AdminOrganizationAuditLogListResponseRoleAssignmentDeleted `json:"role.assignment.deleted"`
// The details for events with this `type`.
RoleBoundToResource AdminOrganizationAuditLogListResponseRoleBoundToResource `json:"role.bound_to_resource"`
// The details for events with this `type`.
RoleCreated AdminOrganizationAuditLogListResponseRoleCreated `json:"role.created"`
// The details for events with this `type`.
RoleDeleted AdminOrganizationAuditLogListResponseRoleDeleted `json:"role.deleted"`
// The details for events with this `type`.
RoleUnboundFromResource AdminOrganizationAuditLogListResponseRoleUnboundFromResource `json:"role.unbound_from_resource"`
// The details for events with this `type`.
RoleUpdated AdminOrganizationAuditLogListResponseRoleUpdated `json:"role.updated"`
// The details for events with this `type`.
ScimDisabled AdminOrganizationAuditLogListResponseScimDisabled `json:"scim.disabled"`
// The details for events with this `type`.
ScimEnabled AdminOrganizationAuditLogListResponseScimEnabled `json:"scim.enabled"`
// The details for events with this `type`.
ServiceAccountCreated AdminOrganizationAuditLogListResponseServiceAccountCreated `json:"service_account.created"`
// The details for events with this `type`.
ServiceAccountDeleted AdminOrganizationAuditLogListResponseServiceAccountDeleted `json:"service_account.deleted"`
// The details for events with this `type`.
ServiceAccountUpdated AdminOrganizationAuditLogListResponseServiceAccountUpdated `json:"service_account.updated"`
// The details for events with this `type`.
UserAdded AdminOrganizationAuditLogListResponseUserAdded `json:"user.added"`
// The details for events with this `type`.
UserDeleted AdminOrganizationAuditLogListResponseUserDeleted `json:"user.deleted"`
// The details for events with this `type`.
UserUpdated AdminOrganizationAuditLogListResponseUserUpdated `json:"user.updated"`
// The details for events with this `type`.
WorkloadIdentityProviderMappingCreated AdminOrganizationAuditLogListResponseWorkloadIdentityProviderMappingCreated `json:"workload_identity_provider_mapping.created"`
// The details for events with this `type`.
WorkloadIdentityProviderMappingDeleted AdminOrganizationAuditLogListResponseWorkloadIdentityProviderMappingDeleted `json:"workload_identity_provider_mapping.deleted"`
// The details for events with this `type`.
WorkloadIdentityProviderMappingUpdated AdminOrganizationAuditLogListResponseWorkloadIdentityProviderMappingUpdated `json:"workload_identity_provider_mapping.updated"`
// The details for events with this `type`.
WorkloadIdentityProviderCreated AdminOrganizationAuditLogListResponseWorkloadIdentityProviderCreated `json:"workload_identity_provider.created"`
// The details for events with this `type`.
WorkloadIdentityProviderDeleted AdminOrganizationAuditLogListResponseWorkloadIdentityProviderDeleted `json:"workload_identity_provider.deleted"`
// The details for events with this `type`.
WorkloadIdentityProviderUpdated AdminOrganizationAuditLogListResponseWorkloadIdentityProviderUpdated `json:"workload_identity_provider.updated"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
EffectiveAt respjson.Field
Type respjson.Field
Actor respjson.Field
APIKeyCreated respjson.Field
APIKeyDeleted respjson.Field
APIKeyUpdated respjson.Field
CertificateCreated respjson.Field
CertificateDeleted respjson.Field
CertificateUpdated respjson.Field
CertificatesActivated respjson.Field
CertificatesDeactivated respjson.Field
CheckpointPermissionCreated respjson.Field
CheckpointPermissionDeleted respjson.Field
ExternalKeyRegistered respjson.Field
ExternalKeyRemoved respjson.Field
GroupCreated respjson.Field
GroupDeleted respjson.Field
GroupUpdated respjson.Field
InviteAccepted respjson.Field
InviteDeleted respjson.Field
InviteSent respjson.Field
IPAllowlistConfigActivated respjson.Field
IPAllowlistConfigDeactivated respjson.Field
IPAllowlistCreated respjson.Field
IPAllowlistDeleted respjson.Field
IPAllowlistUpdated respjson.Field
LoginFailed respjson.Field
LoginSucceeded respjson.Field
LogoutFailed respjson.Field
LogoutSucceeded respjson.Field
OrganizationUpdated respjson.Field
Project respjson.Field
ProjectArchived respjson.Field
ProjectCreated respjson.Field
ProjectDeleted respjson.Field
ProjectUpdated respjson.Field
RateLimitDeleted respjson.Field
RateLimitUpdated respjson.Field
RoleAssignmentCreated respjson.Field
RoleAssignmentDeleted respjson.Field
RoleBoundToResource respjson.Field
RoleCreated respjson.Field
RoleDeleted respjson.Field
RoleUnboundFromResource respjson.Field
RoleUpdated respjson.Field
ScimDisabled respjson.Field
ScimEnabled respjson.Field
ServiceAccountCreated respjson.Field
ServiceAccountDeleted respjson.Field
ServiceAccountUpdated respjson.Field
UserAdded respjson.Field
UserDeleted respjson.Field
UserUpdated respjson.Field
WorkloadIdentityProviderMappingCreated respjson.Field
WorkloadIdentityProviderMappingDeleted respjson.Field
WorkloadIdentityProviderMappingUpdated respjson.Field
WorkloadIdentityProviderCreated respjson.Field
WorkloadIdentityProviderDeleted respjson.Field
WorkloadIdentityProviderUpdated respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponse) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponse) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The event type.
type AdminOrganizationAuditLogListResponseType string
const (
AdminOrganizationAuditLogListResponseTypeAPIKeyCreated AdminOrganizationAuditLogListResponseType = "api_key.created"
AdminOrganizationAuditLogListResponseTypeAPIKeyUpdated AdminOrganizationAuditLogListResponseType = "api_key.updated"
AdminOrganizationAuditLogListResponseTypeAPIKeyDeleted AdminOrganizationAuditLogListResponseType = "api_key.deleted"
AdminOrganizationAuditLogListResponseTypeCertificateCreated AdminOrganizationAuditLogListResponseType = "certificate.created"
AdminOrganizationAuditLogListResponseTypeCertificateUpdated AdminOrganizationAuditLogListResponseType = "certificate.updated"
AdminOrganizationAuditLogListResponseTypeCertificateDeleted AdminOrganizationAuditLogListResponseType = "certificate.deleted"
AdminOrganizationAuditLogListResponseTypeCertificatesActivated AdminOrganizationAuditLogListResponseType = "certificates.activated"
AdminOrganizationAuditLogListResponseTypeCertificatesDeactivated AdminOrganizationAuditLogListResponseType = "certificates.deactivated"
AdminOrganizationAuditLogListResponseTypeCheckpointPermissionCreated AdminOrganizationAuditLogListResponseType = "checkpoint.permission.created"
AdminOrganizationAuditLogListResponseTypeCheckpointPermissionDeleted AdminOrganizationAuditLogListResponseType = "checkpoint.permission.deleted"
AdminOrganizationAuditLogListResponseTypeExternalKeyRegistered AdminOrganizationAuditLogListResponseType = "external_key.registered"
AdminOrganizationAuditLogListResponseTypeExternalKeyRemoved AdminOrganizationAuditLogListResponseType = "external_key.removed"
AdminOrganizationAuditLogListResponseTypeGroupCreated AdminOrganizationAuditLogListResponseType = "group.created"
AdminOrganizationAuditLogListResponseTypeGroupUpdated AdminOrganizationAuditLogListResponseType = "group.updated"
AdminOrganizationAuditLogListResponseTypeGroupDeleted AdminOrganizationAuditLogListResponseType = "group.deleted"
AdminOrganizationAuditLogListResponseTypeInviteSent AdminOrganizationAuditLogListResponseType = "invite.sent"
AdminOrganizationAuditLogListResponseTypeInviteAccepted AdminOrganizationAuditLogListResponseType = "invite.accepted"
AdminOrganizationAuditLogListResponseTypeInviteDeleted AdminOrganizationAuditLogListResponseType = "invite.deleted"
AdminOrganizationAuditLogListResponseTypeIPAllowlistCreated AdminOrganizationAuditLogListResponseType = "ip_allowlist.created"
AdminOrganizationAuditLogListResponseTypeIPAllowlistUpdated AdminOrganizationAuditLogListResponseType = "ip_allowlist.updated"
AdminOrganizationAuditLogListResponseTypeIPAllowlistDeleted AdminOrganizationAuditLogListResponseType = "ip_allowlist.deleted"
AdminOrganizationAuditLogListResponseTypeIPAllowlistConfigActivated AdminOrganizationAuditLogListResponseType = "ip_allowlist.config.activated"
AdminOrganizationAuditLogListResponseTypeIPAllowlistConfigDeactivated AdminOrganizationAuditLogListResponseType = "ip_allowlist.config.deactivated"
AdminOrganizationAuditLogListResponseTypeLoginSucceeded AdminOrganizationAuditLogListResponseType = "login.succeeded"
AdminOrganizationAuditLogListResponseTypeLoginFailed AdminOrganizationAuditLogListResponseType = "login.failed"
AdminOrganizationAuditLogListResponseTypeLogoutSucceeded AdminOrganizationAuditLogListResponseType = "logout.succeeded"
AdminOrganizationAuditLogListResponseTypeLogoutFailed AdminOrganizationAuditLogListResponseType = "logout.failed"
AdminOrganizationAuditLogListResponseTypeOrganizationUpdated AdminOrganizationAuditLogListResponseType = "organization.updated"
AdminOrganizationAuditLogListResponseTypeProjectCreated AdminOrganizationAuditLogListResponseType = "project.created"
AdminOrganizationAuditLogListResponseTypeProjectUpdated AdminOrganizationAuditLogListResponseType = "project.updated"
AdminOrganizationAuditLogListResponseTypeProjectArchived AdminOrganizationAuditLogListResponseType = "project.archived"
AdminOrganizationAuditLogListResponseTypeProjectDeleted AdminOrganizationAuditLogListResponseType = "project.deleted"
AdminOrganizationAuditLogListResponseTypeRateLimitUpdated AdminOrganizationAuditLogListResponseType = "rate_limit.updated"
AdminOrganizationAuditLogListResponseTypeRateLimitDeleted AdminOrganizationAuditLogListResponseType = "rate_limit.deleted"
AdminOrganizationAuditLogListResponseTypeResourceDeleted AdminOrganizationAuditLogListResponseType = "resource.deleted"
AdminOrganizationAuditLogListResponseTypeTunnelCreated AdminOrganizationAuditLogListResponseType = "tunnel.created"
AdminOrganizationAuditLogListResponseTypeTunnelUpdated AdminOrganizationAuditLogListResponseType = "tunnel.updated"
AdminOrganizationAuditLogListResponseTypeTunnelDeleted AdminOrganizationAuditLogListResponseType = "tunnel.deleted"
AdminOrganizationAuditLogListResponseTypeWorkloadIdentityProviderCreated AdminOrganizationAuditLogListResponseType = "workload_identity_provider.created"
AdminOrganizationAuditLogListResponseTypeWorkloadIdentityProviderUpdated AdminOrganizationAuditLogListResponseType = "workload_identity_provider.updated"
AdminOrganizationAuditLogListResponseTypeWorkloadIdentityProviderDeleted AdminOrganizationAuditLogListResponseType = "workload_identity_provider.deleted"
AdminOrganizationAuditLogListResponseTypeWorkloadIdentityProviderMappingCreated AdminOrganizationAuditLogListResponseType = "workload_identity_provider_mapping.created"
AdminOrganizationAuditLogListResponseTypeWorkloadIdentityProviderMappingUpdated AdminOrganizationAuditLogListResponseType = "workload_identity_provider_mapping.updated"
AdminOrganizationAuditLogListResponseTypeWorkloadIdentityProviderMappingDeleted AdminOrganizationAuditLogListResponseType = "workload_identity_provider_mapping.deleted"
AdminOrganizationAuditLogListResponseTypeRoleCreated AdminOrganizationAuditLogListResponseType = "role.created"
AdminOrganizationAuditLogListResponseTypeRoleUpdated AdminOrganizationAuditLogListResponseType = "role.updated"
AdminOrganizationAuditLogListResponseTypeRoleDeleted AdminOrganizationAuditLogListResponseType = "role.deleted"
AdminOrganizationAuditLogListResponseTypeRoleAssignmentCreated AdminOrganizationAuditLogListResponseType = "role.assignment.created"
AdminOrganizationAuditLogListResponseTypeRoleAssignmentDeleted AdminOrganizationAuditLogListResponseType = "role.assignment.deleted"
AdminOrganizationAuditLogListResponseTypeRoleBoundToResource AdminOrganizationAuditLogListResponseType = "role.bound_to_resource"
AdminOrganizationAuditLogListResponseTypeRoleUnboundFromResource AdminOrganizationAuditLogListResponseType = "role.unbound_from_resource"
AdminOrganizationAuditLogListResponseTypeScimEnabled AdminOrganizationAuditLogListResponseType = "scim.enabled"
AdminOrganizationAuditLogListResponseTypeScimDisabled AdminOrganizationAuditLogListResponseType = "scim.disabled"
AdminOrganizationAuditLogListResponseTypeServiceAccountCreated AdminOrganizationAuditLogListResponseType = "service_account.created"
AdminOrganizationAuditLogListResponseTypeServiceAccountUpdated AdminOrganizationAuditLogListResponseType = "service_account.updated"
AdminOrganizationAuditLogListResponseTypeServiceAccountDeleted AdminOrganizationAuditLogListResponseType = "service_account.deleted"
AdminOrganizationAuditLogListResponseTypeUserAdded AdminOrganizationAuditLogListResponseType = "user.added"
AdminOrganizationAuditLogListResponseTypeUserUpdated AdminOrganizationAuditLogListResponseType = "user.updated"
AdminOrganizationAuditLogListResponseTypeUserDeleted AdminOrganizationAuditLogListResponseType = "user.deleted"
)
// The actor who performed the audit logged action.
type AdminOrganizationAuditLogListResponseActor struct {
// The API Key used to perform the audit logged action.
APIKey AdminOrganizationAuditLogListResponseActorAPIKey `json:"api_key"`
// The session in which the audit logged action was performed.
Session AdminOrganizationAuditLogListResponseActorSession `json:"session"`
// The type of actor. Is either `session` or `api_key`.
//
// Any of "session", "api_key".
Type string `json:"type"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
APIKey respjson.Field
Session respjson.Field
Type respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseActor) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseActor) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The API Key used to perform the audit logged action.
type AdminOrganizationAuditLogListResponseActorAPIKey struct {
// The tracking id of the API key.
ID string `json:"id"`
// The service account that performed the audit logged action.
ServiceAccount AdminOrganizationAuditLogListResponseActorAPIKeyServiceAccount `json:"service_account"`
// The type of API key. Can be either `user` or `service_account`.
//
// Any of "user", "service_account".
Type string `json:"type"`
// The user who performed the audit logged action.
User AdminOrganizationAuditLogListResponseActorAPIKeyUser `json:"user"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ServiceAccount respjson.Field
Type respjson.Field
User respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseActorAPIKey) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseActorAPIKey) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The service account that performed the audit logged action.
type AdminOrganizationAuditLogListResponseActorAPIKeyServiceAccount struct {
// The service account id.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseActorAPIKeyServiceAccount) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseActorAPIKeyServiceAccount) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The user who performed the audit logged action.
type AdminOrganizationAuditLogListResponseActorAPIKeyUser struct {
// The user id.
ID string `json:"id"`
// The user email.
Email string `json:"email"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Email respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseActorAPIKeyUser) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseActorAPIKeyUser) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The session in which the audit logged action was performed.
type AdminOrganizationAuditLogListResponseActorSession struct {
// The IP address from which the action was performed.
IPAddress string `json:"ip_address"`
// The user who performed the audit logged action.
User AdminOrganizationAuditLogListResponseActorSessionUser `json:"user"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
IPAddress respjson.Field
User respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseActorSession) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseActorSession) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The user who performed the audit logged action.
type AdminOrganizationAuditLogListResponseActorSessionUser struct {
// The user id.
ID string `json:"id"`
// The user email.
Email string `json:"email"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Email respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseActorSessionUser) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseActorSessionUser) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseAPIKeyCreated struct {
// The tracking ID of the API key.
ID string `json:"id"`
// The payload used to create the API key.
Data AdminOrganizationAuditLogListResponseAPIKeyCreatedData `json:"data"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Data respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseAPIKeyCreated) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseAPIKeyCreated) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The payload used to create the API key.
type AdminOrganizationAuditLogListResponseAPIKeyCreatedData struct {
// A list of scopes allowed for the API key, e.g. `["api.model.request"]`
Scopes []string `json:"scopes"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Scopes respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseAPIKeyCreatedData) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseAPIKeyCreatedData) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseAPIKeyDeleted struct {
// The tracking ID of the API key.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseAPIKeyDeleted) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseAPIKeyDeleted) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseAPIKeyUpdated struct {
// The tracking ID of the API key.
ID string `json:"id"`
// The payload used to update the API key.
ChangesRequested AdminOrganizationAuditLogListResponseAPIKeyUpdatedChangesRequested `json:"changes_requested"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ChangesRequested respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseAPIKeyUpdated) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseAPIKeyUpdated) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The payload used to update the API key.
type AdminOrganizationAuditLogListResponseAPIKeyUpdatedChangesRequested struct {
// A list of scopes allowed for the API key, e.g. `["api.model.request"]`
Scopes []string `json:"scopes"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Scopes respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseAPIKeyUpdatedChangesRequested) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseAPIKeyUpdatedChangesRequested) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseCertificateCreated struct {
// The certificate ID.
ID string `json:"id"`
// The name of the certificate.
Name string `json:"name"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Name respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCertificateCreated) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseCertificateCreated) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseCertificateDeleted struct {
// The certificate ID.
ID string `json:"id"`
// The certificate content in PEM format.
Certificate string `json:"certificate"`
// The name of the certificate.
Name string `json:"name"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Certificate respjson.Field
Name respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCertificateDeleted) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseCertificateDeleted) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseCertificateUpdated struct {
// The certificate ID.
ID string `json:"id"`
// The name of the certificate.
Name string `json:"name"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Name respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCertificateUpdated) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseCertificateUpdated) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseCertificatesActivated struct {
Certificates []AdminOrganizationAuditLogListResponseCertificatesActivatedCertificate `json:"certificates"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Certificates respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCertificatesActivated) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseCertificatesActivated) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
type AdminOrganizationAuditLogListResponseCertificatesActivatedCertificate struct {
// The certificate ID.
ID string `json:"id"`
// The name of the certificate.
Name string `json:"name"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Name respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCertificatesActivatedCertificate) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseCertificatesActivatedCertificate) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseCertificatesDeactivated struct {
Certificates []AdminOrganizationAuditLogListResponseCertificatesDeactivatedCertificate `json:"certificates"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Certificates respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCertificatesDeactivated) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseCertificatesDeactivated) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
type AdminOrganizationAuditLogListResponseCertificatesDeactivatedCertificate struct {
// The certificate ID.
ID string `json:"id"`
// The name of the certificate.
Name string `json:"name"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Name respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCertificatesDeactivatedCertificate) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseCertificatesDeactivatedCertificate) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The project and fine-tuned model checkpoint that the checkpoint permission was
// created for.
type AdminOrganizationAuditLogListResponseCheckpointPermissionCreated struct {
// The ID of the checkpoint permission.
ID string `json:"id"`
// The payload used to create the checkpoint permission.
Data AdminOrganizationAuditLogListResponseCheckpointPermissionCreatedData `json:"data"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Data respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCheckpointPermissionCreated) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseCheckpointPermissionCreated) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The payload used to create the checkpoint permission.
type AdminOrganizationAuditLogListResponseCheckpointPermissionCreatedData struct {
// The ID of the fine-tuned model checkpoint.
FineTunedModelCheckpoint string `json:"fine_tuned_model_checkpoint"`
// The ID of the project that the checkpoint permission was created for.
ProjectID string `json:"project_id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
FineTunedModelCheckpoint respjson.Field
ProjectID respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCheckpointPermissionCreatedData) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseCheckpointPermissionCreatedData) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseCheckpointPermissionDeleted struct {
// The ID of the checkpoint permission.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseCheckpointPermissionDeleted) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseCheckpointPermissionDeleted) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseExternalKeyRegistered struct {
// The ID of the external key configuration.
ID string `json:"id"`
// The configuration for the external key.
Data any `json:"data"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Data respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseExternalKeyRegistered) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseExternalKeyRegistered) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseExternalKeyRemoved struct {
// The ID of the external key configuration.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseExternalKeyRemoved) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseExternalKeyRemoved) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseGroupCreated struct {
// The ID of the group.
ID string `json:"id"`
// Information about the created group.
Data AdminOrganizationAuditLogListResponseGroupCreatedData `json:"data"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Data respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseGroupCreated) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseGroupCreated) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// Information about the created group.
type AdminOrganizationAuditLogListResponseGroupCreatedData struct {
// The group name.
GroupName string `json:"group_name"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
GroupName respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseGroupCreatedData) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseGroupCreatedData) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseGroupDeleted struct {
// The ID of the group.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseGroupDeleted) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseGroupDeleted) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseGroupUpdated struct {
// The ID of the group.
ID string `json:"id"`
// The payload used to update the group.
ChangesRequested AdminOrganizationAuditLogListResponseGroupUpdatedChangesRequested `json:"changes_requested"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ChangesRequested respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseGroupUpdated) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseGroupUpdated) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The payload used to update the group.
type AdminOrganizationAuditLogListResponseGroupUpdatedChangesRequested struct {
// The updated group name.
GroupName string `json:"group_name"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
GroupName respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseGroupUpdatedChangesRequested) RawJSON() string {
return r.JSON.raw
}
func (r *AdminOrganizationAuditLogListResponseGroupUpdatedChangesRequested) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseInviteAccepted struct {
// The ID of the invite.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseInviteAccepted) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseInviteAccepted) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseInviteDeleted struct {
// The ID of the invite.
ID string `json:"id"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseInviteDeleted) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseInviteDeleted) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The details for events with this `type`.
type AdminOrganizationAuditLogListResponseInviteSent struct {
// The ID of the invite.
ID string `json:"id"`
// The payload used to create the invite.
Data AdminOrganizationAuditLogListResponseInviteSentData `json:"data"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
Data respjson.Field
ExtraFields map[string]respjson.Field
raw string
} `json:"-"`
}
// Returns the unmodified JSON received from the API
func (r AdminOrganizationAuditLogListResponseInviteSent) RawJSON() string { return r.JSON.raw }
func (r *AdminOrganizationAuditLogListResponseInviteSent) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}
// The payload used to create the invite.
type AdminOrganizationAuditLogListResponseInviteSentData struct {
// The email invited to the organization.
Email string `json:"email"`